/* ===== БАЗОВЫЕ ПЕРЕМЕННЫЕ И ГЛОБАЛЬНЫЕ СТИЛИ ===== */
:root {
    --primary-color: #4B0082;    /* Глубокий фиолетовый */
    --accent-color: #D4AF37;     /* Песочно-золотой */
    --background-color: #E6E6FA;  /* Нежно-лавандовый */
    --text-color: #2E2E2E;       /* Графитово-серый */
    --white: #FFFFFF;            /* Белый */
    --gradient-primary: linear-gradient(135deg, #4B0082 0%, #663399 100%);
    --gradient-accent: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    --shadow-soft: 0 4px 20px rgba(75, 0, 130, 0.1);
    --shadow-medium: 0 8px 30px rgba(75, 0, 130, 0.15);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #E6E6FA 0%, #F8F8FF 100%);
    overflow-x: hidden;
}

/* ===== КОНТЕЙНЕР И УТИЛИТЫ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--white);
}

.section:nth-child(odd) {
    background: var(--background-color);
}

/* Services section with background image */
#services {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(230, 230, 250, 0.9)), url('./img/dj1jBe.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* About section styling */
#about {
    background: linear-gradient(rgba(230, 230, 250, 0.9), rgba(255, 255, 255, 0.95)), url('./img/50v0gY.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* ===== АНИМАЦИИ ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ===== ТИПОГРАФИКА ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
    line-height: 1.2;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--text-color);
    box-shadow: var(--shadow-soft);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ===== ШАПКА (HEADER) ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow-soft);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo svg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* ===== HERO СЕКЦИЯ ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(230, 230, 250, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%), url('./img/V6qGxF.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    opacity: 0.8;
    animation: pulse 4s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-contact {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-color);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: var(--accent-color);
}

/* ===== СЕКЦИИ КОНТЕНТА ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease-out;
}

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* ===== КАРТОЧКИ ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Преимущества в одну линию */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

/* Service cards with subtle background images */
#services .card:nth-child(1) {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)), url('./img/V6qGxF.jpg');
    background-size: cover;
    background-position: center;
}

#services .card:nth-child(2) {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)), url('./img/L1YZhj.jpg');
    background-size: cover;
    background-position: center;
}

#services .card:nth-child(3) {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98)), url('./img/50v0gY.jpg');
    background-size: cover;
    background-position: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    fill: var(--accent-color);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card-text {
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== ФОРМА ===== */
.form-container {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-medium);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: var(--accent-color);
}

.form-checkbox-label {
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
}

.form-checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-checkbox-label a:hover {
    text-decoration: underline;
}

/* ===== FAQ ===== */
.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-checkbox {
    display: none;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    border: none;
    width: 100%;
    text-align: left;
    background: transparent;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    display: block;
}

.faq-question:hover {
    background: var(--background-color);
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.faq-checkbox:checked + .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 300px;
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* ===== ОТЗЫВЫ ===== */
.testimonials {
    background: linear-gradient(rgba(75, 0, 130, 0.85), rgba(75, 0, 130, 0.9)), url('./img/L1YZhj.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
    backdrop-filter: blur(10px);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 1rem;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    font-weight: 600;
    color: var(--accent-color);
}

/* ===== ПОДВАЛ (FOOTER) ===== */
.footer {
    background: var(--text-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section li {
    margin-bottom: 0.5rem;
    opacity: 0.9;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-color);
    color: var(--white);
    padding: 1rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: var(--transition);
}

.cookie-banner p {
    color: var(--white);
    margin-bottom: 0;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner a {
    color: var(--accent-color);
    text-decoration: none;
}

.cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
}

.cookie-banner .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .form-container {
        padding: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner-buttons {
        justify-content: center;
    }
    
    /* Mobile optimization for background images */
    .hero, .testimonials, .thank-you-page, .policy-page, #services, #about {
        background-attachment: scroll;
    }
    
    /* Адаптивность для декоративных изображений */
    .office-image {
        position: static;
        margin: 2rem auto;
    }
    
    .consultation-image {
        float: none;
        margin: 2rem auto;
        max-width: 90%;
    }
    
    .section-image, .floating-image, .rounded-image {
        max-width: 90%;
        height: auto;
        min-height: 200px;
    }
    
    .circular-image {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
}

/* ===== СТРАНИЦЫ ПОЛИТИК ===== */
.policy-page {
    padding-top: 120px;
    min-height: 100vh;
    background: linear-gradient(rgba(230, 230, 250, 0.9), rgba(230, 230, 250, 0.95)), url('./img/50v0gY.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.policy-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow-soft);
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.policy-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.policy-content h3 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.policy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
}

.policy-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

/* ===== СТРАНИЦА БЛАГОДАРНОСТИ ===== */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(230, 230, 250, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%), url('./img/dj1jBe.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    fill: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

.thank-you-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.thank-you-text {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* ===== ДЕКОРАТИВНЫЕ ИЗОБРАЖЕНИЯ ===== */
.decorative-image, .office-image, .consultation-image, .team-image {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.section-image {
    width: 100%;
    max-width: 500px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    transition: var(--transition);
    animation: zoomIn 1s ease-out;
}

.section-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(75, 0, 130, 0.2);
}

.floating-image {
    width: 100%;
    max-width: 450px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 0.9;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.rounded-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 50px;
    box-shadow: var(--shadow-medium);
    border: 4px solid var(--accent-color);
    transition: var(--transition);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.rounded-image:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.circular-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-medium);
    border: 5px solid var(--white);
    transition: var(--transition);
    position: relative;
    animation: zoomIn 1.2s ease-out 0.3s both;
}

.circular-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: var(--gradient-accent);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.circular-image:hover::before {
    opacity: 1;
}

.circular-image:hover {
    transform: scale(1.05);
}

/* Позиционирование изображений */
.decorative-image {
    position: relative;
    margin-bottom: 3rem;
}

#services {
    position: relative;
    overflow: hidden;
}

.office-image {
    position: absolute;
    top: 100px;
    right: 50px;
    z-index: 1;
    opacity: 0.9;
    animation: slideInRight 1.5s ease-out;
}

.consultation-image {
    float: right;
    margin: 0 0 2rem 2rem;
    max-width: 35%;
    shape-outside: circle(50%);
}

.team-image {
    position: relative;
    margin-bottom: 2rem;
}

/* ===== УТИЛИТЫ ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-center { justify-content: center; }
.align-center { align-items: center; }
.text-bold { font-weight: bold; }
.text-italic { font-style: italic; } 