/* Основные стили для domain.com */

/* Сброс CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Переменные цвета */
:root {
    --main-color: #2A2F4A;      /* Midnight Indigo */
    --accent-1: #FF5E57;        /* Electric Coral */
    --accent-2: #7CE3D4;        /* Soft Mint */
    --background: #FDFDFD;      /* Pearl White */
    --text-color: #333333;      /* Charcoal */
    --shadow: 0 4px 15px rgba(42, 47, 74, 0.1);
    scroll-padding-top: 100px; /* для якорей, чтобы они учитывали фиксированную шапку */
}

/* Основные стили */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--background);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    margin-bottom: 1rem;
    color: var(--main-color);
}

h2 {
    text-align: center;
}

a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-1);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Стили для заголовка */
.header {
    background-color: var(--background);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    z-index: 1000;
    top: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 28px;
    font-weight: 700;
}

.logo a {
    background: linear-gradient(135deg, var(--main-color), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

/* Навигация */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 30px;
}

.nav ul li a {
    position: relative;
}

.nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-1);
    transition: width 0.3s ease;
}

.nav ul li a:hover::after {
    width: 100%;
}

/* Основной контент */
.main-content {
    margin-top: 90px;
    padding: 0;
}

/* Секция Hero */
.hero {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--accent-2) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 0;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

.btn {
    display: inline-block;
    background-color: var(--accent-1);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--main-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(42, 47, 74, 0.2);
}

/* Секция О компании */
.about {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Секция Услуги */
.services {
    padding: 80px 0;
    background-color: rgba(124, 227, 212, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    position: relative;
    padding: 30px;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    transform: rotate(45deg);
    background-color: var(--accent-1);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
}

/* Секция Преимущества */
.benefits {
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    font-size: 3rem;
    color: var(--accent-2);
    margin-bottom: 15px;
}

/* Секция Финансовые данные */
.financial-insights {
    padding: 80px 0;
    background-color: var(--main-color);
    color: white;
}

.financial-insights h2 {
    color: white;
    text-align: center;
    margin-bottom: 50px;
}

.insights-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.insight-box {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.insight-box h3 {
    color: var(--accent-2);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.insight-box h4 {
    color: white;
}

/* Секция Отзывы */
.testimonials {
    padding: 80px 0;
    text-align: center;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 50px auto 0;
}

.testimonial-item {
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 20px auto;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--main-color);
}

/* Секция Форма заказа */
.order-form-section {
    padding: 80px 0;
    background-color: rgba(124, 227, 212, 0.1);
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: border 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-2);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
    margin-top: 5px;
}

/* Секция FAQ */
.faq {
    padding: 80px 0;
}

.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    margin-bottom: 15px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.faq-toggle {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

.faq-question {
    display: block;
    background-color: white;
    color: var(--main-color);
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--main-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-toggle:checked + .faq-question {
    border-bottom: 1px solid #eee;
}

.faq-toggle:checked + .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background-color: white;
    transition: max-height 0.3s ease;
    padding: 0 15px;
}

.faq-toggle:checked ~ .faq-answer {
    max-height: 300px;
    padding: 15px;
}

/* Секция Контакты и подвал */
.contact-footer {
    padding: 60px 0 20px;
    background-color: var(--main-color);
    color: white;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-info h3, .footer-links h3 {
    color: white;
    margin-bottom: 20px;
}

.footer-info p {
    margin-bottom: 15px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: var(--accent-1);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Стили для страниц политик */
.policy-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: 10px;
}

.policy-page h1 {
    margin-bottom: 30px;
}

.policy-page h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-page p {
    margin-bottom: 20px;
}

.policy-page ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Страница благодарности */
.thank-you {
    text-align: center;
    padding: 100px 0;
}

.thank-you h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Адаптивные стили */
@media (max-width: 992px) {
    .services-grid,
    .benefits-grid,
    .insights-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-toggle-label {
        display: block;
        font-size: 24px;
    }
    
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--background);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .nav-toggle:checked ~ .nav {
        max-height: 500px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .benefits-grid,
    .insights-container,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 20px;
    }
}

/* Стили для всплывающего окна cookie */
.cookie-consent {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 9999;
}

.cookie-consent p {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    justify-content: space-between;
}
