* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body, html {
    height: 100%;
    overflow-x: hidden;
    line-height: 1.6;
    width: 100%;
}

/* Popup Message Styles */
.popup-message {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: slideIn 0.3s ease;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #333;
}

.popup-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.popup-icon.success {
    background-color: #d4edda;
    color: #28a745;
}

.popup-icon.success::before {
    content: "✓";
}

.popup-icon.error {
    background-color: #f8d7da;
    color: #dc3545;
}

.popup-icon.error::before {
    content: "!";
}

.popup-content h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.5rem;
}

.popup-content p {
    color: #666;
    line-height: 1.5;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Hero Section with Smaller Logo */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-container {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo 10% smaller - changed from min(500px, 80%) to min(450px, 72%) */
img.logo {
    width: min(450px, 72%);
    height: auto;
    opacity: 0.9;
    display: block;
    margin: 0 auto;
}

.company-info {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a2f3a 0%, #2d4a5a 100%);
    color: white;
    width: 100%;
}

.company-info h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #e8c589;
}

.company-info p {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    color: #e0e0e0;
}

.content-with-image {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.text-content {
    text-align: left;
}

.image-content {
    text-align: center;
}

.content-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.content-image:hover {
    transform: scale(1.05);
}

.what-we-do {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #2d4a5a 0%, #3a5c6f 100%);
    color: white;
    width: 100%;
}

.what-we-do h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #e8c589;
}

.what-we-do p {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 1000px;
    margin: 0 auto 2rem auto;
    text-align: left;
    color: #e0e0e0;
}

.product-showcase {
    max-width: 1000px;
    margin: 3rem auto 0 auto;
    width: 100%;
}

.product-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    width: 100%;
}

.product-item.reverse {
    direction: rtl;
}

.product-item.reverse > * {
    direction: ltr;
}

.product-image {
    text-align: center;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.product-image img:hover {
    transform: scale(1.05);
}

.product-text {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.product-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #e8c589;
    text-align: center;
}

.product-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #e0e0e0;
    text-align: center;
}

.why-choose {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #3a5c6f 0%, #4a7086 100%);
    color: white;
    width: 100%;
}

.why-choose h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #e8c589;
}

.benefits {
    max-width: 1000px;
    margin: 0 auto 3rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: #e8c589;
    text-align: center;
}

.benefit-item p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #e0e0e0;
    text-align: left;
}

.production-scale {
    max-width: 1000px;
    margin: 3rem auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.production-scale img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    margin-bottom: 2rem;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.production-scale img:hover {
    transform: scale(1.02);
}

.scale-text h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: #e8c589;
}

.scale-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #e0e0e0;
}

.contacts {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #4a7086 0%, #5a849e 100%);
    color: white;
    width: 100%;
}

.contacts h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #e8c589;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    width: 100%;
}

.addresses {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.address-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.address-item h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #e8c589;
}

.address-item p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    width: 100%;
}

.map-container iframe {
    filter: grayscale(100%) contrast(110%) brightness(90%);
    transition: filter 0.3s ease;
    width: 100%;
    display: block;
}

.map-container:hover iframe {
    filter: grayscale(70%) contrast(120%) brightness(95%);
}

.contact-form {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    width: 100%;
}

.contact-form h3 {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
    color: #2d4a5a;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d4a5a;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a7086;
}

.captcha {
    background: #f0f4f8;
    padding: 1rem;
    border-radius: 4px;
    border-left: 4px solid #4a7086;
    width: 100%;
    box-sizing: border-box;
}

.captcha label {
    color: #2d4a5a;
    font-weight: 600;
}

button[type="submit"] {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #4a7086 0%, #5a849e 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #5a849e 0%, #6a98b4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media queries for responsive design */
@media screen and (max-width: 1024px) {
    .benefits {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .benefit-item {
        padding: 1.5rem;
    }
    
    .content-with-image {
        gap: 2rem;
    }
    
    .product-item {
        gap: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .company-info,
    .what-we-do,
    .why-choose,
    .contacts {
        padding: 2rem 1rem;
    }

    .company-info h1,
    .what-we-do h2,
    .why-choose h2,
    .contacts h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }

    .company-info p,
    .what-we-do p,
    .address-item p {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
    }

    .content-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .product-item,
    .product-item.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    
    .product-item.reverse > * {
        direction: ltr;
    }
    
    .product-item .product-text {
        order: 1;
    }
    
    .product-item .product-image {
        order: 2;
    }

    .product-text {
        padding: 1.5rem;
    }

    .product-text h3 {
        font-size: 1.5rem;
    }

    .benefits {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }

    .benefit-item {
        padding: 1.5rem;
    }

    .benefit-item h3 {
        font-size: 1.25rem;
    }

    .benefit-item p {
        font-size: 1rem;
    }

    .production-scale {
        margin: 2rem auto;
        padding: 2rem;
        max-width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .addresses {
        gap: 1.5rem;
    }

    .address-item {
        padding: 1.25rem;
    }

    .address-item h3 {
        font-size: 1.125rem;
    }

    /* Smaller logo for mobile - 10% smaller */
    img.logo {
        width: min(270px, 65%);
    }

    .popup-content {
        padding: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .company-info h1,
    .what-we-do h2,
    .why-choose h2,
    .contacts h2 {
        font-size: 1.5rem;
    }

    .company-info p,
    .what-we-do p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .benefit-item,
    .address-item {
        padding: 1.25rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .product-text h3,
    .scale-text h3 {
        font-size: 1.25rem;
    }
    
    .product-text p,
    .scale-text p {
        font-size: 1rem;
    }
    
    .product-item {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .product-image img {
        max-height: 300px;
    }
    
    .hero-section {
        height: 70vh;
    }

    .popup-content {
        padding: 1.25rem;
    }

    .popup-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Even smaller logo for very small screens */
    img.logo {
        width: min(240px, 60%);
    }
}