/* Reset и базовые стили */
* {
    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: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.7;
    color: #2D2D44;
    background-color: #F8F5FF;
    overflow-x: hidden;
}

/* Цветовая палитра */
:root {
    --primary: #8B4C9F;
    --secondary: #FF6B9D;
    --tertiary: #4ECDC4;
    --dark-bg: #1A1A2E;
    --light-bg: #F8F5FF;
    --text-dark: #2D2D44;
    --text-light: #FFFFFF;
    --gradient1: linear-gradient(135deg, #8B4C9F 0%, #FF6B9D 100%);
    --gradient2: linear-gradient(135deg, #4ECDC4 0%, #8B4C9F 100%);
    --gradient3: linear-gradient(135deg, #FF6B9D 0%, #4ECDC4 100%);
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    background: var(--gradient1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--gradient2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-dark);
}

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

a.btn:hover,
a.btn-primary:hover,
a.btn-secondary:hover {
    color: var(--text-light);
    transition: none;
}

a.btn,
a.btn-primary,
a.btn-secondary {
    transition: none;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(139, 76, 159, 0.1);
    padding: 1rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Мобильное меню (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: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav ul li a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background: var(--gradient1);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* Мобильное меню */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 5px 20px rgba(139, 76, 159, 0.2);
    }
    
    .menu-toggle:checked ~ nav {
        max-height: 500px;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    nav ul li {
        width: 100%;
    }
    
    nav ul li a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* Секции */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

/* Hero секция */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(26, 26, 46, 0.7), rgba(139, 76, 159, 0.5)), url('./img/IQvtlj.jpg') center/cover no-repeat;
    text-align: center;
    color: var(--text-light);
    padding: 2rem 0;
    position: relative;
    max-width: none;
    margin: 0;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    color: var(--text-light);
    -webkit-text-fill-color: var(--text-light);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2rem;
    color: var(--text-light);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: var(--gradient1);
    color: var(--text-light);
    box-shadow: 0 10px 30px rgba(139, 76, 159, 0.3);
}

.btn-secondary {
    background: var(--gradient2);
    color: var(--text-light);
}

/* Карточки */
.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(139, 76, 159, 0.2);
    transition: all 0.3s ease;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(139, 76, 159, 0.3);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1.5rem;
}

/* О компании */
.about-section {
    background: var(--gradient2);
    color: var(--text-light);
    border-radius: 30px;
    margin: 3rem auto;
    padding: 4rem 2rem;
}

.about-section h2 {
    color: var(--text-light);
    -webkit-text-fill-color: var(--text-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Преимущества */
.benefits-section {
    background: var(--light-bg);
}

.benefit-card {
    text-align: center;
    padding: 2rem;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--gradient1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Виды гороскопов */
.horoscopes-section {
    background: var(--light-bg);
}

.horoscope-card {
    position: relative;
    overflow: hidden;
}

.horoscope-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.horoscope-card:hover::before {
    opacity: 0.1;
}

/* Как это работает */
.steps-section {
    background: var(--gradient1);
    color: var(--text-light);
    border-radius: 30px;
    margin: 3rem auto;
}

.steps-section h2 {
    color: var(--text-light);
    -webkit-text-fill-color: var(--text-light);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--text-light);
}

.step h3 {
    color: var(--text-light);
}

.step p {
    color: var(--text-light);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0.8;
    color: var(--text-light);
}

/* Отзывы */
.reviews-section {
    background: var(--light-bg);
}

.review-card {
    background: white;
    padding: 2rem;
    border-left: 4px solid var(--primary);
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* FAQ */
.faq-section {
    background: var(--light-bg);
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(139, 76, 159, 0.1);
}

.faq-item details {
    padding: 1.5rem;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    padding: 1rem;
    list-style: none;
    position: relative;
    padding-right: 2rem;
    transition: all 0.3s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item p {
    padding: 1rem;
    margin: 0;
    color: var(--text-dark);
}

/* Форма заказа */
.form-section {
    background: var(--gradient1);
    border-radius: 30px;
    padding: 4rem 2rem;
    margin: 3rem auto;
    max-width: 800px;
}

.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 76, 159, 0.1);
    transform: scale(1.02);
}

.form-group select option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.form-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient1);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Контакты */
.contact-section {
    background: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-box {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(139, 76, 159, 0.1);
}

.contact-box h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact-box p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-box a {
    color: var(--primary);
    transition: color 0.3s ease;
}

.contact-box a:hover {
    color: var(--secondary);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 76, 159, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--text-light);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Cookie Popup */
#cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 1.5rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#cookie-popup.show {
    transform: translateY(0);
}

#cookie-popup p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

#cookie-popup a {
    color: var(--tertiary);
    text-decoration: underline;
}

#accept-cookies {
    padding: 0.8rem 2rem;
    background: var(--gradient1);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

#accept-cookies:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(139, 76, 159, 0.4);
}

@media (max-width: 768px) {
    #cookie-popup {
        flex-direction: column;
        text-align: center;
    }
    
    #accept-cookies {
        width: 100%;
    }
}

/* Страницы политики - единый стиль */
.policy-page {
    padding: 3rem 2rem;
    min-height: 70vh;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(139, 76, 159, 0.2);
}

.policy-content h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.policy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.policy-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.policy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.policy-content strong {
    color: var(--primary);
}

/* Страница благодарности */
.thank-you-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem;
}

.thank-you-content {
    max-width: 600px;
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(139, 76, 159, 0.2);
}

.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--gradient1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease;
}

/* Адаптивность */
@media (max-width: 1024px) {
    section {
        padding: 4rem 1.5rem;
    }
    
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 1rem;
    }
    
    .hero {
        min-height: 80vh;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .steps {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Утилиты */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

