/* Main Styles for domain - Horoscope Service */

/* Base Styles */
:root {
    --primary-bg: #0F0E17;
    --secondary-bg: #E53170;
    --accent: #FFB100;
    --text-primary: #FAFAFA;
    --text-secondary: #B5B5B5;
    --ui-elements: #2E2F3E;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container > h2, .container > p {
    text-align: center;
}

.container > p {
    margin-bottom: 2rem;
}

/* Button Styles */
.btn {
    display: block;
    margin: auto;
    max-width: max-content;
    background-color: var(--accent);
    color: var(--primary-bg);
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover, .btn:focus {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 177, 0, 0.3);
}

/* Header Styles */
header {
    background-color: var(--ui-elements);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
}

/* Navigation */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 20px;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent);
}

#menu-toggle {
    display: none;
}

.menu-button {
    display: none;
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background: none; /* Убираем любой фоновый стиль */
}

.hero-content {
    position: relative;
    text-align: center;
    margin: 0 auto;
    max-width: 800px;
    background-color: rgba(15, 14, 23, 0.7);
    padding: 30px;
    border-radius: 10px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* Sections Styling */
section {
    padding: 80px 0;
}

section:nth-child(even) {
    background: linear-gradient(var(--primary-bg), var(--ui-elements));
}

/* Service Description */
.services {
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: linear-gradient(135deg, var(--ui-elements), var(--primary-bg));
    border-radius: 10px;
    padding: 30px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.service-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--accent);
}

.service-card:hover {
    transform: translateY(-10px);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 15px;
}

/* Testimonials */
.testimonials {
    overflow: hidden;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 20px;
    padding: 20px 0;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    scroll-snap-align: center;
    min-width: 280px;
    background: linear-gradient(135deg, var(--ui-elements), var(--primary-bg));
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex: 0 0 calc(33.333% - 20px);
}

.testimonial-card h4 {
    color: var(--accent);
    margin-bottom: 10px;
}

.testimonial-card p.quote {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial-card p.author {
    text-align: right;
    font-weight: 600;
}

/* FAQ Section */
.faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background-color: var(--ui-elements);
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    display: block;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-checkbox {
    display: none;
}

.faq-answer {
    background-color: rgba(46, 47, 62, 0.7);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 20px;
}

.faq-checkbox:checked ~ .faq-answer {
    max-height: 500px;
    padding: 20px;
}

.faq-checkbox:checked ~ .faq-question::after {
    content: '-';
}

/* Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--ui-elements), var(--primary-bg));
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23FAFAFA' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 15px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

select.form-control option {
    color: black;
    background-color: white;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.checkbox-group input {
    margin-right: 10px;
}

.checkbox-group label {
    margin-bottom: 0;
}

.checkbox-group label a {
    color: white;
}

/* Footer */
footer {
    background-color: #232536;
    padding: 50px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--secondary-bg), var(--accent));
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--accent);
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--ui-elements);
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.5s ease;
    min-width: 300px;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.accept-cookies {
    background-color: var(--accent);
    color: var(--primary-bg);
}

.cookie-policy {
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

/* Extra Pages Styling */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--ui-elements), var(--primary-bg));
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-content h1 {
    color: var(--accent);
    margin-bottom: 20px;
    text-align: center;
}

.page-content p {
    margin-bottom: 15px;
}

.page-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-content ul li {
    margin-bottom: 10px;
}

/* Thanks Page */
.thanks-section {
    min-height: 100vh;
    display: grid;
    align-items: center;
}

.thanks-content {
    text-align: center;
    position: relative;
    background: linear-gradient(145deg, rgba(46, 47, 62, 0.7), rgba(15, 14, 23, 0.9));
    padding: 40px;
    border-radius: 15px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.thanks-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--secondary-bg), var(--accent)) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.thanks-content::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--secondary-bg) 0%, transparent 70%);
    opacity: 0.2;
    top: -50px;
    right: -50px;
    border-radius: 50%;
    z-index: -1;
}

.thanks-content h1 {
    color: var(--accent);
    margin-bottom: 30px;
    position: relative;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.thanks-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-bg), var(--accent));
}

.thanks-content p {
    margin-bottom: 30px;
    line-height: 1.7;
}

.thanks-content .btn {
    margin-top: 20px;
    position: relative;
    z-index: 2;
}

.stars-decoration {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    opacity: 0.7;
    color: var(--accent);
}

/* Media Queries */
@media (max-width: 768px) {
    .header-container {
        position: relative;
    }
    
    .menu-button {
        display: block;
        background: none;
        border: none;
        color: var(--text-primary);
        font-size: 1.5rem;
        cursor: pointer;
    }
    
    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--ui-elements);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    nav ul {
        flex-direction: column;
        padding: 0;
        gap: 5px;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    
    #menu-toggle:checked ~ nav {
        max-height: 100vh;
    }
    
    body:has(#menu-toggle:checked) {
        overflow: hidden;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .thanks-section {
        height: auto;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 40px);
    }
}
