/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #F5F8FF;
    --accent-coral: #FF4C60;
    --secondary-indigo: #3D155F;
    --text-dark: #1A1A1A;
    --bg-elements: #EAF1FB;
    --white: #FFFFFF;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
    color: var(--secondary-indigo);
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-indigo);
}

h3 {
    font-size: 1.8rem;
    color: var(--secondary-indigo);
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Контейнеры и сетка */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section:nth-child(even) {
    background-color: var(--bg-elements);
}

/* Flexbox утилиты */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.text-center {
    text-align: center;
}

.gap-20 {
    gap: 20px;
}

.gap-40 {
    gap: 40px;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-coral);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #e63946;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 76, 96, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-indigo);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #2d1045;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(61, 21, 95, 0.3);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav a:hover {
    color: var(--accent-coral);
}

/* Hero блок */
.hero {
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-elements) 100%);
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 76, 96, 0.1), rgba(61, 21, 95, 0.1));
    border-radius: 50%;
    transform: rotate(-15deg);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s both;
    margin: 0 10px;
}

/* Карточки услуг */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-coral), var(--secondary-indigo));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--white);
}

/* Блок отзывов */
.testimonials {
    background: var(--bg-elements);
    color: var(--text-dark);
}

.testimonial-card {
    background: var(--white);
    color: var(--text-dark);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 20px;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent-coral);
    margin-top: 20px;
}

/* FAQ */
.faq-item {
    background: var(--white);
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: none;
}

.faq-question {
    padding: 25px;
    background: var(--secondary-indigo);
    color: var(--white);
    font-weight: 600;
    cursor: pointer;
    position: relative;
    display: block;
    border: none;
    outline: none;
    list-style: none;
}

.faq-question::marker {
    display: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    background: #4a1f7a;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 25px;
    background: var(--white);
}

/* Форма */
.form-section {
    background: var(--secondary-indigo);
    color: var(--white);
}

.form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-dark);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-indigo);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--bg-elements);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-coral);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
}

.checkbox-group label {
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--accent-coral);
    margin-bottom: 20px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-coral);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #999;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 10000;
    display: none;
    max-width: 500px;
    margin: 0 auto;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s ease;
}

.cookie-buttons {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo-link span {
        font-size: 1.5rem !important;
        margin-left: 10px !important;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 30px 20px;
        margin: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cookie-popup {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 20px;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .service-card {
        padding: 30px 20px;
    }
    
    .testimonial-card {
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 25px 15px;
    }
    
    .logo-link span {
        font-size: 1.3rem !important;
        margin-left: 8px !important;
    }
}

/* Утилиты для скрытия/показа */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Отступ для якорей чтобы показывать заголовки */
}

/* Фокус для доступности */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--accent-coral);
    outline-offset: 2px;
} 