/* Reset and base styles */
:root {
    --bg-primary: #0b0f14;
    --bg-secondary: #171d28;
    --accent-primary: #00f2ea;
    --accent-secondary: #8e44ad;
    --text-primary: #e2e8f0;
    --text-secondary: #a0aec0;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Roboto Slab', serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    padding-top: 90px;
}

/* --- ОБЩИЕ СТИЛИ И ЭФФЕКТЫ --- */

.background-logo {
    background-image: url('logo.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 85vw;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.glass {
    background: rgba(23, 29, 40, 0.2); /* Прозрачность снова увеличена */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

/* --- Header --- */
.header {
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header.glass {
    background: rgba(11, 15, 20, 0.65);
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.slogan {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    font-style: italic;
    white-space: nowrap;
}


/* --- Sections --- */
section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent !important;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

/* --- Стили сетки --- */
.services-grid, .contact-grid {
    display: grid;
    gap: 2rem;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.contact-grid {
    grid-template-columns: 1fr;
}
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
}

/* --- Стили карточек и форм --- */
.service-card, .contact-info, .contact-form {
    padding: 2rem;
}

.service-icon {
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.service-desc {
    color: var(--text-secondary);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-link:hover {
    color: var(--accent-primary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
}

/* --- Стили кнопок --- */
.btn-primary, .btn-secondary, .cta-button {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    background-size: 150% 150%;
    color: #000;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 234, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.btn-secondary:hover {
    background-color: var(--accent-primary);
    color: #000;
}

.cta-button {
    background: var(--accent-primary);
    color: #000;
}

.hero-ctas {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 6rem 5%;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
}
.hero-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 2rem 5%;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .logo img {
        height: 40px;
    }
    .slogan {
        font-size: 0.8rem;
    }
    .logo-container {
        gap: 10px;
    }
    body {
        padding-top: 80px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .section-title {
        font-size: 2rem;
    }
}
