/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #c4ff00;
    --dark-bg: #111111;
    --light-bg: #1e1e1e;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-primary: rgba(196, 255, 0, 0.5);
    
    /* Fonts */
    --main-font: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 4rem 0;
    --container-padding: 0 1.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

button, .button, .primary-button, .secondary-button, .service-button, .submit-button {
    cursor: pointer;
    font-family: var(--main-font);
    font-weight: 600;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    outline: none;
}

.primary-button {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: 2px solid var(--primary-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.primary-button:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.secondary-button {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.secondary-button:hover {
    background-color: var(--text-light);
    color: var(--dark-bg);
}

/* Section styles */
.section-header {
    margin-bottom: 3rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: flex;
    align-items: center;
}

.section-number {
    color: var(--primary-color);
    margin-right: 1rem;
    font-weight: 700;
    font-size: 2rem;
}

.section-description {
    max-width: 800px;
    margin-top: 1rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Border outline effect for cards */
.outlined-card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--light-bg);
    overflow: hidden;
}

.outlined-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    pointer-events: none;
    z-index: 1;
}

/* Стили для мобильного меню */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(17, 17, 17); /* Сплошной цвет для предотвращения артефактов */
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-overlay .nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    width: 100%;
}

.mobile-menu-overlay .nav-link {
    font-size: 1.5rem;
    color: var(--text-light);
    text-align: center;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: none;
}

.mobile-menu-overlay .nav-button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1.1rem;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-shadow: none;
}

.mobile-menu-close:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: rotate(90deg);
}

/* Убираем любые эффекты свечения, которые могут вызывать артефакты */
.mobile-menu-overlay * {
    box-shadow: none;
}

/* Media queries for responsiveness */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 2rem 0;
        --container-padding: 0 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    button, .button, .primary-button, .secondary-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.d-flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.my-1 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.my-2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.my-3 {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.my-4 {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(196, 255, 0, 0.8);
}