/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #FFF8E1;
    background: linear-gradient(180deg, #4A148C 0%, #1A237E 50%, #0D0D1A 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   ТИПОГРАФИКА
   ============================================ */

h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 30px;
    text-align: center;
    color: #FFB300;
}

h3 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

h4 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 10px;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
}

a {
    color: #FFB300;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFC107;
    text-decoration: underline;
}

/* ============================================
   HEADER И НАВИГАЦИЯ
   ============================================ */

.main-header {
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(74, 20, 140, 0.6);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 32px;
    font-weight: bold;
    color: #FFB300;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #FFC107;
    text-shadow: 0 0 20px rgba(255, 179, 0, 0.5);
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    color: #FFF8E1;
    font-size: 16px;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #FFB300;
    text-decoration: none;
}

/* Мобильное меню (checkbox hack) */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background: #FFB300;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 13, 26, 0.98);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }
    
    .header-content:has(.menu-toggle:checked) .main-nav {
        max-height: 500px;
        padding: 20px;
        opacity: 1;
        visibility: visible;
    }
    
    .header-content:has(.menu-toggle:checked) .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .header-content:has(.menu-toggle:checked) .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .header-content:has(.menu-toggle:checked) .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* ============================================
   HERO СЕКЦИЯ
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(74, 20, 140, 0.8) 0%, rgba(26, 35, 126, 0.9) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 20px;
    animation: fadeInUp 1s ease;
}

.logo-large {
    font-size: 72px;
    font-weight: bold;
    color: #FFB300;
    margin-bottom: 30px;
    text-shadow: 0 0 30px rgba(255, 179, 0, 0.6);
    animation: pulse 2s infinite;
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    color: #FFF8E1;
}

/* Звезды на фоне */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, #FFB300, transparent),
        radial-gradient(2px 2px at 60% 70%, #FFC107, transparent),
        radial-gradient(1px 1px at 50% 50%, #FFF8E1, transparent),
        radial-gradient(1px 1px at 80% 10%, #FFB300, transparent),
        radial-gradient(2px 2px at 90% 40%, #FFC107, transparent),
        radial-gradient(1px 1px at 33% 60%, #FFF8E1, transparent),
        radial-gradient(1px 1px at 10% 80%, #FFB300, transparent);
    background-size: 200% 200%;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   КНОПКИ
   ============================================ */

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #FFB300 0%, #FFC107 100%);
    color: #0D0D1A;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.5);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 179, 0, 0.8);
    text-decoration: none;
    color: #0D0D1A;
}

.btn-service {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4A148C 0%, #7B1FA2 100%);
    color: #FFF8E1;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #FFB300;
}

.btn-service:hover {
    background: linear-gradient(135deg, #FFB300 0%, #FFC107 100%);
    color: #0D0D1A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 179, 0, 0.4);
    text-decoration: none;
}

/* ============================================
   СЕКЦИИ
   ============================================ */

section {
    padding: 80px 0;
    position: relative;
}

.about-section {
    background: #1A237E;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.about-text {
    text-align: left;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.about-image {
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #FFB300;
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.3);
    transition: all 0.3s ease;
}

.about-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 179, 0, 0.5);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Почему мы */
.why-us-section {
    background: linear-gradient(180deg, #1A237E 0%, #4A148C 100%);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-us-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.why-us-card:hover {
    transform: translateY(-10px);
    border-color: #FFB300;
    box-shadow: 0 10px 30px rgba(255, 179, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.why-us-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

/* Услуги */
.services-section {
    background: #0D0D1A;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: scale(1.05);
    border-color: #FFB300;
    box-shadow: 0 0 30px rgba(255, 179, 0, 0.6);
}

.service-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.service-content {
    padding: 30px;
    text-align: center;
}

.service-content h3 {
    color: #FFB300;
    margin-bottom: 15px;
}

/* Как это работает */
.how-it-works-section {
    background: linear-gradient(180deg, #4A148C 0%, #1A237E 100%);
}

.steps-container {
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #FFB300;
    text-align: center;
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.2);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 179, 0, 0.4);
    border-color: #FFC107;
}

.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.3s; }
.step:nth-child(3) { animation-delay: 0.5s; }
.step:nth-child(4) { animation-delay: 0.7s; }

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFB300 0%, #FFC107 100%);
    color: #0D0D1A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.5);
}

.step h3 {
    color: #FFB300;
    margin-bottom: 10px;
}

/* Отзывы */
.testimonials-section {
    background: #1A237E;
}

.testimonials-container {
    max-width: 1200px;
    margin: 50px auto 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #FFB300;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 179, 0, 0.4);
    border-color: #FFC107;
}

.testimonial-stars {
    font-size: 24px;
    margin-bottom: 20px;
    color: #FFB300;
}

.testimonial-card p {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 20px;
    min-height: 100px;
}

/* Форма заказа */
.order-form-section {
    background: linear-gradient(180deg, #0D0D1A 0%, #4A148C 100%);
    position: relative;
    overflow: hidden;
}

.form-wrapper {
    max-width: 600px;
    margin: 50px auto 0;
    background: rgba(13, 13, 26, 0.8);
    padding: 50px;
    border-radius: 15px;
    border: 3px solid;
    border-image: linear-gradient(135deg, #FFB300, #FFC107, #4A148C) 1;
    box-shadow: 0 0 40px rgba(255, 179, 0, 0.4);
    position: relative;
}

.form-stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 10% 20%, #FFB300, transparent),
        radial-gradient(1px 1px at 80% 60%, #FFC107, transparent),
        radial-gradient(1px 1px at 50% 80%, #FFB300, transparent);
    background-size: 100% 100%;
    animation: twinkle 2s infinite;
    pointer-events: none;
    opacity: 0.6;
}

.order-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #FFB300;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #4A148C;
    border-radius: 8px;
    color: #FFF8E1;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #FFB300;
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

select option {
    color: black;
    background-color: white;
}

.form-checkboxes {
    margin: 30px 0;
}

.checkbox-group {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 5px;
    cursor: pointer;
}

.checkbox-group label {
    color: #FFF8E1;
    font-size: 14px;
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FFB300 0%, #FFC107 100%);
    color: #0D0D1A;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.5);
}

.btn-submit:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(255, 179, 0, 0.8);
}

/* FAQ */
.faq-section {
    background: #1A237E;
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: bold;
    color: #FFB300;
    list-style: none;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] {
    border-color: #FFB300;
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.3);
}

.faq-item p {
    padding: 0 20px 20px;
    color: #FFF8E1;
}

/* Контакты */
.contact-section {
    background: linear-gradient(180deg, #4A148C 0%, #0D0D1A 100%);
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 15px;
    border: 2px solid #FFB300;
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.2);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.contact-item p {
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
}

.contact-map {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid #FFB300;
    box-shadow: 0 0 20px rgba(255, 179, 0, 0.2);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ============================================
   FOOTER
   ============================================ */

.main-footer {
    background: #0D0D1A;
    padding: 60px 0 20px;
    border-top: 2px solid #4A148C;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #FFB300;
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #FFF8E1;
    font-size: 14px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 179, 0, 0.2);
    font-size: 14px;
}

/* ============================================
   COOKIE POPUP
   ============================================ */

.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(13, 13, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px;
    z-index: 10000;
    border-top: 3px solid #FFB300;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
    display: none;
}

.cookie-popup.show {
    display: block;
}

.cookie-popup.hidden {
    display: none;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

#accept-cookies {
    padding: 10px 25px;
    background: linear-gradient(135deg, #FFB300 0%, #FFC107 100%);
    color: #0D0D1A;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

#accept-cookies:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 179, 0, 0.5);
}

/* ============================================
   СТРАНИЦЫ ПОЛИТИКИ
   ============================================ */

.policy-page {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.policy-container {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 15px;
    border-top: 5px solid #FFB300;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.policy-content {
    color: #FFF8E1;
}

.policy-content h2 {
    color: #FFB300;
    text-align: left;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 24px;
}

.policy-content ul {
    margin-left: 30px;
    margin-bottom: 20px;
}

.policy-content li {
    margin-bottom: 10px;
}

.contact-info-box {
    background: rgba(255, 179, 0, 0.1);
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #FFB300;
    margin-top: 30px;
}

.contact-info-box p {
    margin-bottom: 10px;
}

.contact-info-box strong {
    color: #FFB300;
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ СТРАНИЦЫ
   ============================================ */

.single-content-page {
    padding: 80px 0;
    min-height: calc(100vh - 200px);
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.content-block {
    background: rgba(255, 255, 255, 0.05);
    padding: 50px;
    border-radius: 15px;
    border-top: 5px solid #FFB300;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.content-block p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.8;
}

.thank-you-page {
    padding: 100px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.thank-you-container {
    text-align: center;
}

.thank-you-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 60px 50px;
    border-radius: 15px;
    border-top: 5px solid #FFB300;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
}

.thank-you-message {
    font-size: 24px;
    color: #FFB300;
    margin-bottom: 20px;
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 1024px) {
    h1 { font-size: 40px; }
    h2 { font-size: 32px; }
    
    .why-us-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 28px; }
    h3 { font-size: 24px; }
    
    .logo-large {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .why-us-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    #accept-cookies {
        width: 100%;
    }
    
    .policy-container,
    .content-block {
        padding: 30px 20px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-map {
        height: 300px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-text {
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 28px; }
    h2 { font-size: 24px; }
    
    .logo-large {
        font-size: 36px;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .service-image {
        height: 200px;
    }
}

