:root {
    /* Colors */
    --primary-color: #0B2447;
    --secondary-color: #19376D;
    --accent-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    
    /* Gradient Colors */
    --gradient-6: #000000;
    --gradient-1: #7f7f7f;
    --gradient-2: #0b1c47;
    --gradient-3: #19266d;
    --gradient-4: #151e6d;
    --gradient-5: #000101;
    
    /* Text Colors */
    --text-light: rgba(255, 255, 255, 0.95);
    --text-medium: rgba(255, 255, 255, 0.85);
    --text-accent: hsl(233 2% 60% / 1);

    /* Breakpoints and Widths */
    --container-width: 75rem;  /* 1200px */
    --card-min-width: 21.875rem;  /* 350px */
    --feature-min-width: 15.625rem;  /* 250px */
    --reference-min-width: 12.5rem;  /* 200px */
    --mobile-breakpoint: 64rem;  /* 1024px - Increased from 768px */

    /* Button Colors */
    --button-primary: color(srgb 0 0 0 / 0.5);
    --button-hover: color(srgb 0 0 0 / 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

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

/* Header and Navigation Styles */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: #f4f4f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem;
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.logo img {
    height: 95px;
    width: auto;
    object-fit: contain;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #1f2937;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Mobile Menu Styles */
@media screen and (max-width: 64rem) {
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 24px;
        background: none;
        border: none;
        padding: 0;
        z-index: 1001;
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(244, 244, 245, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        font-size: 1.25rem;
        padding: 0.75rem 1.5rem;
        color: #4b5563;
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        color: var(--primary-color);
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: width 0.3s ease;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Container padding adjustment for mobile */
    .container {
        padding: 0 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    /* Hero section mobile adjustment */
    .hero-content {
        padding: 1rem;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    /* Contact section mobile adjustment */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        order: 2;
    }

    .contact-info {
        order: 1;
    }

    /* Footer mobile adjustment */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        margin-left: 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    clip-path: inset(0 0 50px 0);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 1.8rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--button-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
}

/* Sections Common Styles */
section {
    padding: 5rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
}

/* About Section */
.about {
    background: linear-gradient(to bottom, var(--gradient-1), var(--gradient-2));
    color: var(--white);
}

.about h2, .about p {
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.about p {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-medium);
}

/* Products Section */
.products {
    background: linear-gradient(to bottom, var(--gradient-3), var(--gradient-4));
    color: var(--white);
}

.products h2, .product-card h3 {
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--card-min-width), 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.product-card i, .product-card ul li::before {
    color: var(--text-accent);
}

.product-card p, .product-card ul li {
    color: var(--text-medium);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.product-card ul {
    list-style: none;
    margin-top: 1rem;
}

.product-card ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.product-card ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Features Section */
.features {
    background: linear-gradient(to bottom, var(--gradient-2), var(--gradient-3));
    color: var(--white);
}

.features h2, .feature-item h3, .feature-item p {
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(var(--feature-min-width), 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--text-accent);
    margin-bottom: 1rem;
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.feature-item p {
    color: var(--text-medium);
}

/* References Section */
.references {
    background: linear-gradient(to bottom, var(--gradient-5), var(--gradient-5));
    color: var(--white);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.references .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.reference-grid {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    width: max-content;
    animation: scroll 50s linear infinite;
}

.reference-grid:hover {
    animation-play-state: paused;
}

.reference-placeholder {
    flex: 0 0 auto;
    width: 300px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: transform 0.3s ease;
    margin: 0 1rem;
}

.reference-placeholder:hover {
    transform: translateY(-5px);
}

.reference-logo {
    width: 200px;
    height: 100px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.reference-placeholder:hover .reference-logo {
    filter: brightness(1) invert(0);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Contact Section */
.contact {
    background: var(--gradient-5);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('source/gemmmm-MHQDZp07QVo-unsplash.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.15;
    filter: brightness(0.7) contrast(1.2);
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    position: relative;
}

.contact-form {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-medium);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    background: var(--button-primary);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.submit-button:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
}

.submit-button .spinner {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.submit-button.loading .btn-text {
    opacity: 0.7;
}

.submit-button.loading .spinner {
    display: block;
}

.contact-info {
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--text-light);
    font-size: 1.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-bottom: 1rem;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--text-accent);
    border-radius: 2px;
}

.contact-info p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.03);
}

.contact-info p:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.contact-info a {
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.2rem 0;
}

.contact-info a:hover {
    color: var(--text-accent);
}

.contact-info a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-accent);
    transition: width 0.3s ease;
}

.contact-info a:hover::after {
    width: 100%;
}

.contact-info i {
    margin-right: 1rem;
    color: var(--text-accent);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-info .fa-brands.fa-whatsapp {
    font-size: 1.4rem;
    width: 28px;
}

.contact-info p:hover i {
    transform: scale(1.2);
}

.address-container {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.address-container:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.address-container i {
    margin-top: 0.2rem;
}

.address-text {
    display: inline-block;
    line-height: 1.8;
}

/* Footer */
footer {
    background: var(--gradient-6);
    color: var(--text-medium);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
}

.footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-light);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-medium);
}

/* CRM Features Section */
.crm-features {
    background: linear-gradient(to bottom, var(--gradient-4), var(--gradient-5));
    color: var(--white);
    padding: 5rem 0;
}

.crm-features .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.crm-features h2, .crm-feature-card h3 {
    color: var(--text-light);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.crm-features-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding: 2rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.crm-feature-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: row;
    height: 600px;
    opacity: 0;
    transform: translateX(100px);
}

.crm-feature-card:nth-child(even) {
    transform: translateX(-100px);
}

.crm-feature-card.animate {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.8s ease-out;
}

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

.feature-image-placeholder {
    flex: 1;
    background: var(--light-gray);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 0 0 10px;
    padding: 2rem;
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    max-height: 550px;
}

.crm-feature-card:hover .feature-image {
    transform: scale(1.02);
}

.feature-content {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.feature-content ul {
    list-style: none;
    margin: 0;
}

.feature-content ul li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.2rem;
    color: var(--text-medium);
    line-height: 1.8;
}

.feature-content ul li::before {
    content: '✓';
    color: var(--text-accent);
    position: absolute;
    left: 0;
}

@media (max-width: 1024px) {
    .crm-feature-card {
        flex-direction: column;
        height: auto;
    }

    .feature-image-placeholder {
        height: 400px;
        border-radius: 10px 10px 0 0;
        padding: 1.5rem;
    }

    .feature-image {
        max-height: 350px;
    }

    .feature-content {
        padding: 2.5rem;
    }
}

@media (max-width: 767px) {
    .crm-features .container {
        padding: 0 1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: hidden;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoom 0.3s ease;
    transform-origin: center;
    cursor: move;
    transition: transform 0.3s ease;
}

.modal-content.zoomed {
    cursor: move;
}

.modal-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close {
    position: absolute;
    right: 35px;
    top: 15px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover {
    color: #bbb;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.modal-zoom-controls {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    gap: 15px;
    z-index: 2001;
}

.zoom-button {
    color: white;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.zoom-button:hover {
    color: var(--text-accent);
}

.feature-image {
    cursor: pointer;
    transition: transform 0.3s ease;
}

@media screen and (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        order: 1;
    }

    .contact-info {
        order: 2;
        margin-top: 1rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-info p {
        font-size: 1.1rem;
    }

    .contact h2 {
        margin-bottom: 2rem;
    }
}

/* Добавьте в styles.css */
.form-status {
    margin-top: 10px;
    padding: 8px;
    border-radius: 4px;
    display: none;
}

.form-status.success {
    display: block;
    background-color: rgba(76, 175, 80, 0.2);
    color: #2e7d32;
}

.form-status.error {
    display: block;
    background-color: rgba(244, 67, 54, 0.2);
    color: #d32f2f;
}

.submit-button {
    position: relative;
}

.submit-button .spinner {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.submit-button.loading .btn-text {
    opacity: 0.7;
}

.submit-button.loading .spinner {
    display: block;
}