/* Main styles for domain.com
   Colors:
   - Main: Deep Blue #0B1B2E
   - Accent: Lemon #F9F871
   - Background: Light Gray #F2F2F2
   - Secondary Text: Graphite #333333
   - Buttons: Gradient from #F9F871 to #FFD166
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Смещение якорей для лучшей навигации */
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background-color: #F2F2F2;
    color: #333333;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #0B1B2E;
    transition: color 0.3s ease;
}

a:hover {
    color: #F9F871;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0B1B2E;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(to right, #F9F871, #FFD166);
    color: #0B1B2E;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Header styles */
header {
    background-color: #0B1B2E;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
}

.logo a {
    color: #F9F871;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-menu a {
    color: #fff;
    position: relative;
}

.nav-menu a:hover {
    color: #F9F871;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background-color: #F9F871;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
}

/* Hero section */
.hero {
    background: linear-gradient(to right, #0B1B2E, #1a395e);
    color: #fff;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* About section */
.about {
    background-color: #fff;
}

.about-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
}

/* Services section */
.services {
    background-color: #F2F2F2;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 50px;
    height: 3px;
    background-color: #F9F871;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 20px;
}

.service-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Benefits section */
.benefits {
    background-color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F2F2F2;
    border-radius: 50%;
}

.benefit-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Testimonials section */
.testimonials {
    background-color: #F2F2F2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    left: -20px;
    top: -20px;
    opacity: 0.1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
}

/* FAQ section */
.faq {
    background-color: #fff;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    background-color: #F2F2F2;
    padding: 15px 20px;
    cursor: pointer;
    position: relative;
    font-weight: 600;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.faq-question.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    background-color: #fff;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 500px;
}

/* Contact form */
.contact {
    background-color: #F2F2F2;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check input {
    margin-right: 10px;
    margin-top: 5px;
}

/* Footer */
footer {
    background-color: #0B1B2E;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: #F9F871;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #fff;
}

.footer-links a:hover {
    color: #F9F871;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 10px;
    color: #F9F871;
}

.contact-text {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Cookie popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: slideUp 0.5s ease forwards;
}

.cookie-popup p {
    margin-bottom: 15px;
}

.cookie-popup button {
    width: 100%;
}

/* Animations */
@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Policy pages */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-content h1 {
    margin-bottom: 30px;
    text-align: center;
}

.policy-content h2 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: #0B1B2E;
}

.policy-content p,
.policy-content ul {
    margin-bottom: 20px;
}

.policy-content ul {
    padding-left: 20px;
}

/* Thank you page */
.thank-you {
    padding: 80px 20px;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thank-you-content {
    text-align: center;
    max-width: 600px;
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
}

.thank-you h1 {
    margin-bottom: 30px;
    color: #0B1B2E;
}

.thank-you p {
    margin-bottom: 30px;
}

/* Mobile menu (for PHP implementation) */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0B1B2E;
    z-index: 999;
    padding: 20px;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-close {
    color: #fff;
    font-size: 1.5rem;
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

.mobile-nav {
    list-style: none;
    padding: 50px 0;
}

.mobile-nav li {
    margin-bottom: 20px;
}

.mobile-nav a {
    color: #fff;
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
}

/* Responsive styles */
@media (max-width: 992px) {
    .services-grid,
    .benefits-grid,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        color: #fff;
        font-size: 1.5rem;
    }
    
    .services-grid,
    .benefits-grid,
    .testimonials-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    section {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}
