/* Base Styles and Variables */
:root {
    --primary-color: #6610f2;     /* Индиго */
    --secondary-color: #20c997;   /* Бирюзовый */
    --accent-color: #fd7e14;      /* Коралловый */
    --light-color: #f8d7da;       /* Светло-розовый */
    --gold-color: #ffc107;        /* Золотистый Желтый */
    --dark-color: #343a40;
    --white-color: #ffffff;
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --font-main: 'Arial', sans-serif;
    --font-heading: 'Georgia', serif;
    --transition-speed: 0.3s;
}

/* Global Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 40px;
}

section[id] {
    scroll-margin-top: 40px;
}

div {
    word-break: break-word;
    overflow-wrap: break-word;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white-color);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 10px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all var(--transition-speed);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white-color);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
}

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

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    transition: transform var(--transition-speed);
}

.logo-text:hover {
    transform: scale(1.05);
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav ul li {
    margin-left: 20px;
}

.desktop-nav ul li a {
    position: relative;
    padding: 5px 0;
}

.desktop-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-speed);
}

.desktop-nav ul li a:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-menu-checkbox {
    display: none;
}

.mobile-menu-button {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-icon, 
.mobile-menu-icon::before, 
.mobile-menu-icon::after {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    transition: transform var(--transition-speed);
}

.mobile-menu-icon {
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-icon::before {
    content: '';
    top: -8px;
}

.mobile-menu-icon::after {
    content: '';
    bottom: -8px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--white-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right var(--transition-speed);
    z-index: 1000;
    padding-top: 70px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav ul li {
    margin: 20px 0;
    padding: 0 20px;
}

.mobile-nav ul li a {
    font-size: 1.2rem;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid var(--light-gray);
}

#mobile-menu-toggle:checked ~ .mobile-nav {
    right: 0;
}

#mobile-menu-toggle:checked ~ .mobile-menu-button .mobile-menu-icon {
    background-color: transparent;
}

#mobile-menu-toggle:checked ~ .mobile-menu-button .mobile-menu-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-toggle:checked ~ .mobile-menu-button .mobile-menu-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    background-image: url('./img/FJWIG9.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 100px 0;
    position: relative;
}

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--white-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.section-title.centered {
    text-align: center;
    margin-bottom: 40px;
}

.section-title.centered h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    order: 1;
}

.about-image {
    flex: 0.8;
    min-width: 280px;
    order: 2;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition-speed);
    margin: 0 auto;
    display: block;
}

.about-image img:hover {
    transform: scale(1.02);
}

/* Services Section */
.services-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
}

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

.service-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--secondary-color);
}

.service-image {
    height: 180px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 8px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

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

.service-description {
    margin-bottom: 20px;
}

.service-price {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.service-btn {
    display: block;
    text-align: center;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

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

.feature-item {
    text-align: center;
    padding: 25px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    background-color: var(--white-color);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.feature-title {
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.testimonial-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    max-width: 350px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 4rem;
    color: var(--light-color);
    line-height: 1;
    font-family: Georgia, serif;
}

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

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

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.testimonial-author-info p {
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin: 0;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

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

.blog-card {
    background-color: var(--white-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

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

.blog-title {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.blog-excerpt {
    margin-bottom: 15px;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--white-color);
}

.map-container {
    flex: 1;
    min-width: 300px;
    height: 350px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info-item {
    display: flex;
    margin-bottom: 20px;
}

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

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

.contact-text p {
    color: var(--dark-gray);
    margin: 0;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.25);
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.form-check-input {
    margin-right: 10px;
    margin-top: 5px;
}

.form-check-label {
    font-size: 0.9rem;
}

.form-check-label a {
    text-decoration: underline;
}

.form-submit {
    margin-top: 20px;
}

/* Order Form Styles - Unique Design */
.order-form {
    background: linear-gradient(135deg, var(--light-color) 0%, var(--white-color) 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.order-form::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(32, 201, 151, 0.1);
    z-index: 0;
}

.order-form::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: rgba(102, 16, 242, 0.1);
    z-index: 0;
}

.order-form .form-group {
    position: relative;
    z-index: 1;
}

.order-form .form-control {
    border: 2px solid transparent;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-speed);
}

.order-form .form-control:focus {
    background-color: var(--white-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.order-form .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 25px;
    font-size: 1.1rem;
    transition: all var(--transition-speed);
}

.order-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
}

/* Footer Styles */
footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section p {
    margin-bottom: 10px;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: var(--medium-gray);
    transition: color var(--transition-speed);
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 9999;
    transition: bottom var(--transition-speed);
}

.cookie-consent.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    flex: 1;
    min-width: 300px;
    margin: 0;
}

.cookie-content button {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.cookie-content button:hover {
    background-color: var(--secondary-color);
}

/* Policy Pages */
.policy-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.policy-container h2 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.policy-container p, .policy-container ul {
    margin-bottom: 15px;
}

.policy-container ul {
    padding-left: 20px;
}

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

/* Thank You Page */
.thank-you-container {
    text-align: center;
    max-width: 700px;
    margin: 100px auto;
    padding: 50px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

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

.thank-you-message {
    margin-bottom: 30px;
}

/* Extra Pages */
.extra-page-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.extra-page-container h1 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.extra-page-content {
    line-height: 1.8;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

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

.faq-item {
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.faq-item details {
    background-color: var(--white-color);
    border-left: 3px solid var(--primary-color);
}

.faq-item summary {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    background-color: var(--white-color);
    transition: background-color var(--transition-speed);
    position: relative;
    outline: none;
}

.faq-item summary:hover {
    background-color: var(--light-color);
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    transition: transform var(--transition-speed);
}

.faq-item details[open] summary::after {
    content: '−';
}

.faq-item .faq-content {
    padding: 15px 20px;
    border-top: 1px solid var(--medium-gray);
}

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

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.8s ease-in-out;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-button {
        display: block;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .about-section, 
    .services-section, 
    .features-section, 
    .testimonials-section, 
    .blog-section, 
    .contact-section, 
    .faq-section {
        padding: 50px 0;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 8px 16px;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .policy-container, 
    .thank-you-container, 
    .extra-page-container {
        padding: 20px;
        margin: 30px 15px;
    }
}
