/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Отступ для якорей */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1F2937;
    background-color: #F6F8FC;
}

/* ===== КОНТЕЙНЕРЫ ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ЗАГОЛОВОК ===== */
.header {
    background: linear-gradient(135deg, #7C3AED 0%, #FF5E5B 100%);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
}

.nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* CSS-only мобильная навигация через checkbox */
.nav-toggle-checkbox {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle-checkbox:checked + .nav-toggle span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle-checkbox:checked + .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-toggle-checkbox:checked + .nav-toggle span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== ГЛАВНЫЙ КОНТЕНТ ===== */
.main {
    min-height: calc(100vh - 200px);
}

/* ===== СЕКЦИИ ===== */
section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

section:nth-child(even) {
    background: linear-gradient(135deg, #F6F8FC 0%, #E0E7FF 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #7C3AED;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #7C3AED, #FF5E5B);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6B7280;
}

/* ===== ГЕРОЙ СЕКЦИЯ ===== */
.hero {
    background: linear-gradient(135deg, #7C3AED 0%, #FF5E5B 100%);
    color: white;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" fill-opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #7C3AED;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    color: #5B21B6;
}

.hero-image {
    animation: slideInRight 1s ease-out 0.6s both;
}

.hero-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== О НАС СЕКЦИЯ ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    color: #7C3AED;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(124, 58, 237, 0.2);
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid #7C3AED;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.2);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.advantage-item h3 {
    color: #7C3AED;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.advantage-item p {
    color: #6B7280;
    line-height: 1.7;
}

/* ===== УСЛУГИ ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(124, 58, 237, 0.2);
}

.service-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    color: #7C3AED;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-content p {
    color: #6B7280;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-content ul {
    list-style: none;
    padding: 0;
}

.service-content li {
    color: #374151;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-content li::before {
    content: '✓';
    color: #FF5E5B;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* ===== ПРОЦЕСС РАБОТЫ ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #FF5E5B);
    color: white;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.step h3 {
    color: #7C3AED;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.step p {
    color: #6B7280;
    line-height: 1.7;
}

/* ===== ОТЗЫВЫ ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.testimonial::before {
    content: '"';
    font-size: 4rem;
    color: #7C3AED;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    opacity: 0.3;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.testimonial-author strong {
    color: #7C3AED;
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial-author span {
    color: #6B7280;
    font-size: 0.9rem;
}

/* ===== ФОРМА ===== */
.form-section {
    background: linear-gradient(135deg, #F6F8FC 0%, #E0E7FF 100%);
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.1);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #7C3AED;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0 10px 0 0;
    accent-color: #7C3AED;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #7C3AED, #FF5E5B);
    color: white;
    padding: 1.2rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.4);
}

/* ===== КОНТАКТЫ ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
}

.contact-item h3 {
    color: #7C3AED;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.contact-item p {
    color: #6B7280;
    line-height: 1.8;
}

.contact-item a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: #FF5E5B;
}

.map-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(124, 58, 237, 0.2);
}

.contact-map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 15px;
    box-shadow: 0 15px 45px rgba(124, 58, 237, 0.2);
    transition: transform 0.3s ease;
}

.contact-map iframe:hover {
    transform: translateY(-2px);
}

/* ===== ПОДВАЛ ===== */
.footer {
    background: #1F2937;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: #7C3AED;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.footer-section p {
    color: #D1D5DB;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #FF5E5B;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #D1D5DB;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #7C3AED;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #9CA3AF;
}

/* ===== COOKIE POPUP ===== */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.cookie-content {
    padding: 2rem;
}

.cookie-content h3 {
    color: #7C3AED;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cookie-content p {
    color: #6B7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-accept {
    background: linear-gradient(135deg, #7C3AED, #FF5E5B);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.3);
}

.btn-info {
    color: #7C3AED;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid #7C3AED;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #7C3AED;
    color: white;
}

/* ===== ПРАВОВЫЕ СТРАНИЦЫ ===== */
.legal-page {
    padding: 4rem 0;
    background: #F6F8FC;
    min-height: calc(100vh - 200px);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(124, 58, 237, 0.1);
}

.legal-content h1 {
    color: #7C3AED;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.legal-intro {
    text-align: center;
    color: #6B7280;
    font-style: italic;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #E5E7EB;
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.legal-section h2 {
    color: #7C3AED;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.legal-section h3 {
    color: #374151;
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
}

.legal-section h4 {
    color: #4B5563;
    font-size: 1.2rem;
    margin: 1.5rem 0 0.5rem 0;
}

.legal-section p {
    line-height: 1.8;
    margin-bottom: 1rem;
    color: #4B5563;
}

.legal-section ul,
.legal-section ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-section li {
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: #4B5563;
}

.legal-section a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 600;
}

.legal-section a:hover {
    color: #FF5E5B;
    text-decoration: underline;
}

/* ===== АНИМАЦИИ ===== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Навигация */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: linear-gradient(135deg, #7C3AED 0%, #FF5E5B 100%);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .nav-toggle-checkbox:checked ~ .nav-menu {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    /* Секции */
    section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    /* Герой */
    .hero {
        padding: 4rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* О нас */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Услуги */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Процесс */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    /* Отзывы */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    /* Форма */
    .contact-form {
        padding: 2rem 1.5rem;
    }

    .checkbox-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Контакты */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Подвал */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Cookie popup */
    .cookie-popup {
        left: 15px;
        right: 15px;
        bottom: 15px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    /* Правовые страницы */
    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .advantage-item,
    .service-card,
    .testimonial {
        margin: 0 10px;
    }

    .contact-form {
        padding: 1.5rem 1rem;
    }

    .legal-content {
        padding: 1.5rem 1rem;
    }
}

/* ===== УТИЛИТЫ ===== */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ===== ПЕЧАТЬ ===== */
@media print {
    .header,
    .footer,
    .cookie-popup,
    .nav-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
        line-height: 1.4;
    }

    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
} 