
:root {
    --primary-color: #FFD700;
    --secondary-color: #0A1172;
    --accent-color: #6A0DAD;
    --accent-light: #40E0D0;
    --accent-warm: #FF7F50;
    --white: #FFFFFF;
    --light-gray: #f5f5f5;
    --dark-gray: #333333;
}

* {
    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: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--secondary-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 15px auto;
    border-radius: 2px;
}

/* Шапка */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

@media (max-width: 768px) {
    .header-container {
        justify-content: center;
    }
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu a {
    font-weight: 600;
    position: relative;
    text-decoration: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Мобильное меню */
#mobile-menu-toggle {
    display: none;
}

.mobile-menu {
    display: none;
}


.hero {
    background-image: url('../img/e3WZed.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 17, 114, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* О услуге */
.about-service {
    background-color: var(--light-gray);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 40px;
}

.feature {
    flex: 0 0 calc(33.333% - 30px);
    margin-bottom: 30px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* Виды гороскопов */
.horoscope-types {
    background-color: var(--white);
}

.horoscope-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.horoscope-card {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.horoscope-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.horoscope-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.horoscope-content {
    padding: 20px;
}

.horoscope-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.horoscope-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 15px 0;
}

.order-form-section {
    background-color: var(--secondary-color);
    color: var(--white);
}

.order-form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.order-form-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background-color: var(--primary-color);
    border-radius: 50%;
    z-index: 0;
}

.order-form-container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background-color: var(--accent-light);
    border-radius: 50%;
    z-index: 0;
}

.form-title {
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 13, 173, 0.1);
}

option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-input {
    margin-right: 10px;
    margin-top: 4px;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.checkbox-label a {
    color: var(--accent-color);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Отзывы */
.testimonials {
    background-color: var(--light-gray);
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.testimonial {
    flex: 0 0 calc(33.333% - 20px);
    margin-bottom: 30px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-name {
    font-weight: 700;
    color: var(--secondary-color);
}

/* Преимущества */
.benefits {
    background-color: var(--white);
}

.benefits-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit {
    padding: 30px;
    background-color: var(--light-gray);
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    background-color: var(--secondary-color);
    color: var(--white);
}

.benefit:hover .benefit-title {
    color: var(--primary-color);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.benefit-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.faq {
    background-color: var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    background-color: var(--white);
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.faq-answer {
    background-color: var(--white);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

details {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
}

summary {
    padding: 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: var(--secondary-color);
    outline: none;
}

details[open] summary {
    border-bottom: 1px solid #e0e0e0;
}

details div {
    padding: 20px;
}


.blog {
    background-color: var(--white);
}

.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.read-more {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-block;
    margin-top: 10px;
}

/* Контакты */
.contact {
    background-color: var(--light-gray);
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.contact-info {
    flex: 0 0 calc(50% - 20px);
    padding: 30px;
    border: 2px solid var(--accent-light);
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-image {
    flex: 0 0 calc(50% - 20px);
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 15px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.contact-text h4 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .contact-info,
    .contact-image {
        flex: 0 0 100%;
    }
}

/* Футер */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-about {
    margin-bottom: 20px;
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--white);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}


.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background-color: var(--accent-light);
    color: var(--dark-gray);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s forwards;
}

.cookie-text {
    margin-bottom: 15px;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
}

.cookie-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-accept {
    background-color: var(--secondary-color);
    color: var(--white);
    margin-left: 10px;
}

.cookie-accept:hover {
    background-color: var(--accent-color);
}

/* Страницы политик */
.policy-page {
    padding: 80px 0;
}

.policy-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--accent-light);
}

.policy-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
    text-align: center;
}

.policy-section {
    margin-bottom: 30px;
}

.policy-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.policy-section p {
    margin-bottom: 15px;
}

.policy-section ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.policy-section ul li {
    margin-bottom: 10px;
}

.contact-details {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.contact-details h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.contact-details p {
    margin-bottom: 10px;
}

.contact-details strong {
    color: var(--accent-color);
}

/* Страница спасибо */
.thank-you {
    min-height: calc(100vh - 200px);
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--light-gray);
}

.thank-you-container {
    max-width: 600px;
    padding: 40px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.thank-you-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.thank-you-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

/* Анимации */
@keyframes slideUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Адаптивность */
@media (max-width: 992px) {
    .nav-menu {
        display: flex;
    }

    .menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .feature,
    .horoscope-card,
    .testimonial {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature,
    .horoscope-card,
    .testimonial {
        flex: 0 0 100%;
    }

    .contact-info {
        flex: 0 0 100%;
        margin-bottom: 30px;
    }

    .order-form-container {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }
}
