:root {
    --primary-color: #008289;
    --primary-hover: #00686D;
    --primary-light: rgba(0, 130, 137, 0.2);

    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #eaeaea;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background-image: radial-gradient(var(--primary-color) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.3;
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
}

a { 
    text-decoration: none; 
    color: inherit; 
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 800;
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
    font-size: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-primary:disabled { 
    background-color: #9ca3af; 
    border-color: #9ca3af; 
    cursor: not-allowed; 
}

.btn-avito {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 12px 24px;
    font-weight: 800;
    font-size: 15px;
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s ease;
}

.btn-avito:hover {
    background-color: var(--primary-hover);
}

.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--primary-color);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px; /* Уменьшили текст, чтобы он был меньше иконки */
    font-weight: 900;
    color: var(--text-dark);
    letter-spacing: -1px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap; /* Жестко запрещаем перенос строки */
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.text-accent { 
    color: var(--primary-color); 
}

.nav ul { 
    list-style: none; 
    display: flex; 
    align-items: center; 
    gap: 35px; 
}

.nav a { 
    font-weight: 700; 
    font-size: 15px; 
    text-transform: uppercase; 
    transition: color 0.2s; 
}

.nav a:not(.btn-avito):hover { 
    color: var(--primary-color); 
}

.contacts { 
    display: flex; 
    align-items: center; 
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-dark);
    transition: 0.3s;
}

.hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding: 100px 0 30px 0;
    background-color: transparent;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1 1 55%;
    max-width: 600px;
    margin-left: 40px;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-light);
    color: var(--primary-hover);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 130, 137, 0.2);
}

.location-badge svg { 
    width: 18px; 
    height: 18px; 
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 15px;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.hero-hardware {
    flex: 1 1 45%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
}

.hardware-item {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    width: 100%;
    max-width: 380px;
    animation: bobHardware 5s infinite ease-in-out;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.hardware-item:nth-child(2) {
    animation-delay: -2.5s;
}

.hardware-item:hover {
    transform: translateY(-5px);
}

.hardware-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1));
    transition: filter 0.3s ease;
}

.hardware-item:hover img {
    filter: drop-shadow(0 0 25px rgba(255, 255, 255, 1));
}

.brands { 
    background: #fff; 
    padding: 70px 0; 
    text-align: center; 
    border-bottom: 1px solid var(--border-color); 
    position: relative; 
    z-index: 2; 
}

.brands-subtitle { 
    color: var(--text-dark); 
    font-size: 14px; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    margin-bottom: 50px; 
}

.brands-list { 
    display: flex; 
    justify-content: center; 
    gap: 60px; 
    flex-wrap: wrap; 
}

.brand-item { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 15px; 
    transition: transform 0.2s; 
}

.brand-item:hover { 
    transform: translateY(-5px); 
}

.brand-item img { 
    height: 70px; 
    width: auto; 
    object-fit: contain; 
    mix-blend-mode: multiply; 
}

.brand-item span { 
    font-weight: 800; 
    font-size: 15px; 
    color: var(--text-dark); 
    letter-spacing: 1px; 
}

.services { 
    padding: 100px 0; 
    background-color: var(--bg-light); 
    position: relative; 
    z-index: 2; 
}

.section-title { 
    text-align: center; 
    font-size: 42px; 
    font-weight: 900; 
    margin-bottom: 60px; 
    color: var(--text-dark); 
    text-transform: uppercase; 
}

.services-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
}

.service-block {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 40px 25px;
    transition: all 0.2s ease-out;
    position: relative;
}

.service-block:hover {
    transform: translate(-6px, -6px);
    box-shadow: 8px 8px 0 var(--primary-color);
    border-color: var(--primary-color);
}

.service-icon {
    display: block;
    margin: 0 auto 25px auto;
    width: 120px;
    height: 120px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: 0.2s;
}

.service-block:hover .service-icon { 
    transform: scale(1.1); 
}

.service-block h3 { 
    font-size: 20px; 
    font-weight: 800; 
    margin-bottom: 15px; 
    text-align: center; 
    text-transform: uppercase; 
}

.service-block p { 
    color: var(--text-light); 
    font-size: 15px; 
    line-height: 1.6; 
    text-align: center; 
    font-weight: 500; 
}

.service-features-list { 
    list-style: none; 
    padding: 0; 
    margin-top: 25px; 
    border-top: 1px solid var(--border-color); 
    padding-top: 20px; 
    text-align: left; 
}

.service-features-list li { 
    font-size: 14px; 
    font-weight: 600; 
    color: var(--text-dark); 
    margin-bottom: 12px; 
    display: flex; 
    align-items: flex-start; 
}

.service-features-list li::before { 
    content: '■'; 
    color: var(--primary-color); 
    font-size: 12px; 
    margin-right: 12px; 
    margin-top: 2px; 
}

.workflow { 
    padding: 100px 0; 
    background-color: var(--bg-white); 
    border-top: 1px solid var(--border-color); 
    position: relative; 
    z-index: 2; 
}

.workflow-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
    text-align: center; 
}

.workflow-step { 
    position: relative; 
    padding: 20px; 
    transition: 0.2s; 
    border: 1px solid transparent; 
}

.workflow-step:hover { 
    background-color: var(--bg-light); 
    border-color: var(--border-color); 
    transform: translateY(-5px); 
}

.step-number {
    width: 60px; 
    height: 60px; 
    background-color: transparent; 
    color: var(--primary-color);
    border: 2px solid var(--primary-color); 
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-size: 24px; 
    font-weight: 900; 
    margin: 0 auto 25px auto; 
    transition: 0.2s;
}

.workflow-step:hover .step-number { 
    background-color: var(--primary-color); 
    color: var(--bg-white); 
    box-shadow: 4px 4px 0 var(--text-dark); 
    transform: translate(-2px, -2px); 
}

.workflow-step h3 { 
    font-size: 18px; 
    font-weight: 800; 
    margin-bottom: 15px; 
    color: var(--text-dark); 
    text-transform: uppercase; 
}

.workflow-step p { 
    color: var(--text-light); 
    font-size: 15px; 
    font-weight: 500; 
}

.contact { 
    padding: 100px 0; 
    background-color: transparent; 
    position: relative; 
    z-index: 2; 
}

.contact-container { 
    max-width: 600px; 
    margin: 0 auto; 
}

.contact-subtitle { 
    text-align: center; 
    color: var(--text-light); 
    margin-top: -30px; 
    margin-bottom: 40px; 
    font-size: 16px; 
    line-height: 1.6; 
    font-weight: 500; 
}

.contact-form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.contact-form input, .contact-form textarea {
    width: 100%; 
    padding: 18px; 
    border: 1px solid var(--border-color); 
    border-radius: 0;
    font-family: inherit; 
    font-size: 16px; 
    font-weight: 500; 
    transition: all 0.2s;
    background-color: var(--bg-white);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none; 
    border-color: var(--primary-color);
    box-shadow: 6px 6px 0 var(--primary-light);
    transform: translate(-2px, -2px);
}

.form-message { 
    margin-top: 20px; 
    padding: 15px; 
    border: 1px solid transparent; 
    text-align: center; 
    font-weight: 800; 
    text-transform: uppercase; 
}

.form-message.success { 
    background-color: #d1fae5; 
    color: #065f46; 
    border-color: #10b981; 
}

.form-message.error { 
    background-color: #fee2e2; 
    color: #991b1b; 
    border-color: #ef4444; 
}

.footer { 
    background-color: #111827; 
    color: #f9fafb; 
    padding: 70px 0 30px 0; 
    border-top: 4px solid var(--primary-color); 
    position: relative; 
    z-index: 3; 
}

.footer-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    flex-wrap: wrap; 
    gap: 40px; 
    margin-bottom: 50px; 
    border-bottom: 1px solid #374151; 
    padding-bottom: 50px; 
}

.footer-brand .logo { 
    color: #ffffff; 
    margin-bottom: 20px; 
}

.footer-brand p { 
    color: #9ca3af; 
    max-width: 320px; 
    font-size: 15px; 
    line-height: 1.6; 
    font-weight: 500; 
}

.footer-info p { 
    color: #d1d5db; 
    margin-bottom: 12px; 
    font-size: 15px; 
    font-weight: 500; 
}

.footer-info strong { 
    color: var(--primary-color); 
    font-weight: 800; 
}

.footer-bottom { 
    text-align: center; 
    color: #6b7280; 
    font-size: 14px; 
    text-transform: uppercase; 
    font-weight: 600; 
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 130px 0 60px 0;
    }
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    .hero-content {
        max-width: 100%;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-hardware {
        margin-top: 0;
        width: 100%;
        align-items: center;
    }

    .services-grid, .workflow-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
}

@media (max-width: 768px) {
    body::before { 
        display: none; 
    }

    .mobile-menu-btn { 
        display: flex; 
    }

    .nav {
        position: fixed;
        top: 73px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 73px);
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease-out;
        border-top: 1px solid var(--border-color);
    }

    .nav.active { 
        left: 0; 
    }

    .nav ul { 
        flex-direction: column; 
        text-align: center; 
        gap: 40px; 
    }

    .nav a { 
        font-size: 24px; 
        font-weight: 900; 
    }

    .contacts { 
        margin-left: auto; 
        margin-right: 20px; 
    }

    .btn-avito { 
        padding: 8px 12px; /* Сделали кнопку компактнее */
        font-size: 12px; 
    }

    .logo { 
        font-size: 18px; /* Текст еще меньше для мобилок */
    }

    .mobile-menu-btn.active span:nth-child(1) { 
        transform: translateY(9px) rotate(45deg); 
    }
    
    .mobile-menu-btn.active span:nth-child(2) { 
        opacity: 0; 
    }
    
    .mobile-menu-btn.active span:nth-child(3) { 
        transform: translateY(-9px) rotate(-45deg); 
    }

    .hero { 
        padding: 120px 0 50px 0; 
    }

    .hero-content h1 { 
        font-size: 36px; 
    }

    .hero-hardware::before { 
        display: none; 
    }

    .section-title { 
        font-size: 32px; 
        margin-bottom: 40px; 
    }

    .services, .workflow, .contact { 
        padding: 70px 0; 
    }

    .brands-list { 
        gap: 30px; 
    }

    .brand-item img { 
        height: 50px; 
    }

    .services-grid, .workflow-grid { 
        grid-template-columns: 1fr; 
    }

    .footer-container { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }
    
    .footer-brand .logo {
        justify-content: center; /* Центрируем логотип в футере на мобилках */
    }

    .footer-brand p { 
        margin: 0 auto; 
    }
}

/* Дополнительная адаптация под самые узкие экраны (iPhone SE и тд) */
@media (max-width: 480px) {
    .hero-content h1 { 
        font-size: 30px; 
    }
    
    .btn { 
        width: 100%; 
    }

    .btn-avito { 
        padding: 6px 10px; /* Еще компактнее */
        font-size: 11px; 
    }

    .logo { 
        font-size: 16px; 
        gap: 8px; /* Уменьшаем расстояние между текстом и иконкой */
    }

    .logo-icon { 
        width: 24px; 
        height: 24px; 
    }

    .contacts { 
        margin-right: 15px; /* Даем чуть больше пространства бургер-меню */
    }
}