/* Основные стили для сайта domain */

/* Переменные */
:root {
    --primary-bg: #0E0B16; /* глубокий графит */
    --accent: #E93D82; /* яркий фуксийный розовый */
    --secondary-accent: #2A1B3D; /* баклажановый */
    --text-color: #F7F7F7; /* светло-серый */
    --block-bg: #F1F0F4; /* светло-лиловый */
    --lines-icons: #B0AAC0; /* серо-фиолетовый */
    --border-radius: 16px; /* 2xl border-radius */
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Типография */
h1, h2, h3 {
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.4rem;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

/* Кнопки */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), #FF6DA7);
    color: var(--text-color);
    padding: 12px 25px;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 61, 130, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(233, 61, 130, 0.5);
    color: var(--text-color);
}

/* Шапка */
header {
    background-color: var(--primary-bg);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Выравнивание всех элементов в шапке на одной линии */
.desktop-menu, .logo, .mobile-menu-toggle {
    display: flex;
    align-items: center;
    height: 40px;
}

/* Точное выравнивание текста на уровне логотипа */
.desktop-menu ul {
    height: 40px;
}

.desktop-menu ul li {
    height: 100%;
    display: flex;
    align-items: center;
}

nav ul li a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

/* Навигация */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Мобильное меню */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--primary-bg);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 15px;
}

.mobile-menu ul li a {
    color: var(--text-color);
    font-size: 1.2rem;
}

.mobile-menu-open .mobile-menu {
    display: block;
}

/* Секции */
.section {
    padding: 80px 0;
}

/* Закрепление якорей выше, чтобы не перекрывались шапкой */
section[id]::before {
    content: "";
    display: block;
    height: 100px; /* Высота с запасом для шапки */
    margin-top: -100px; /* Негативный отступ равный высоте */
    visibility: hidden;
    pointer-events: none;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

/* Карточки */
.card {
    background-color: var(--block-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1), 
                -8px -8px 15px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--primary-bg);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.15), 
                -10px -10px 20px rgba(255, 255, 255, 0.1);
}

.card-title {
    color: var(--secondary-accent);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Карточки услуг с изображениями */
.service-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: var(--border-radius);
    background-color: var(--block-bg);
    display: flex;
    flex-direction: column;
}

.service-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card-content p {
    color: #000000; /* Черный цвет текста */
}

.service-card h3 {
    color: var(--secondary-accent);
    margin-bottom: 15px;
}

.service-card-content .btn {
    align-self: flex-start;
    margin-top: 20px;
}

/* Сетки */
.grid {
    display: grid;
    grid-gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* Hero блок */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    position: relative;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    padding: 40px;
}

.hero-image {
    background-size: cover;
    background-position: center;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(14, 11, 22, 0.8), rgba(42, 27, 61, 0.8));
    z-index: 1;
}

/* FAQ */
.faq-item {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--block-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--secondary-accent);
}

.faq-question i {
    color: var(--accent);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: var(--primary-bg);
    display: none;
    line-height: 1.6;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: -10px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Форма */
.form-section {
    background-color: var(--secondary-accent);
    padding: 60px 0;
    border-radius: var(--border-radius);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--block-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: 8px 8px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-bg);
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--lines-icons);
    border-radius: var(--border-radius);
    background-color: white;
    font-size: 16px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--secondary-accent);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--lines-icons);
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--block-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    color: var(--primary-bg);
    text-align: center;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

@keyframes slideUp {
    from {
        bottom: -100px;
        opacity: 0;
    }
    to {
        bottom: 20px;
        opacity: 1;
    }
}

/* Политики */
.policy-page {
    padding-top: 120px;
    padding-bottom: 60px;
}

.policy-container {
    background-color: var(--block-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    color: var(--primary-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
    color: var(--secondary-accent);
    margin-bottom: 30px;
}

.policy-container h2 {
    color: var(--secondary-accent);
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* Адаптивность */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .grid-3, .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-image {
        width: 100%;
        opacity: 0.4;
    }
    
    .hero {
        background: linear-gradient(to bottom, var(--primary-bg) 50%, rgba(42, 27, 61, 0.8));
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 60px 0;
    }
}
