/* Основные переменные и сброс стилей */
:root {
    --primary-color: #2563eb;
    --secondary-color: #0ea5e9;
    --text-color: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --light-bg: #f8fafc;
    --dark-bg: #0f172a;
    --success: #10b981;
    --error: #ef4444;
    --border-radius: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: var(--text-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

section {
    padding: 80px 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    text-decoration: none;
}

/* Header Styles */
.header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.menu a {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
}

.menu a:hover,
.menu a.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    text-decoration: none;
}

.menu .cta-button {
    background: var(--primary-color);
    color: var(--white);
}

.menu .cta-button:hover {
    background: var(--secondary-color);
}

/* Мобильная навигация */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 6px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 0 100px;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9)), url('./img/HjZBBq.jpg') center/cover no-repeat;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.hero .btn {
    font-size: 1.125rem;
    padding: 16px 32px;
    border-radius: 50px;
}

/* About Section */
.about {
    background: var(--white);
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.about-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.about-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.about h2, .services h2, .testimonials h2, .faq h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--white);
    padding: 0 0 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-photo {
    transform: scale(1.05);
}

.service-card h3 {
    margin: 0 30px;
    margin-bottom: 16px;
    text-align: center;
    color: var(--primary-color);
}

.service-card p {
    margin: 0 30px;
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    background: var(--white);
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 4rem;
    color: rgba(37, 99, 235, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 24px;
    padding-left: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact Form Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.contact-form {
    max-width: 650px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: var(--border-radius);
    background: var(--white);
    transition: var(--transition);
    font-size: 1rem;
    color: var(--text-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
}

.checkbox-group input {
    margin-right: 12px;
    margin-top: 6px;
}

.form-errors {
    color: var(--error);
    margin-bottom: 20px;
    padding: 12px;
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: var(--border-radius);
}

/* FAQ Section */
.faq {
    background: var(--white);
    padding: 100px 0;
}

.faq-item {
    margin-bottom: 24px;
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(100, 116, 139, 0.1);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-lg);
}

.faq-question {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 12px;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 24px;
    transition: var(--transition);
}

.faq-answer {
    display: none;
    padding-top: 12px;
    color: var(--text-light);
}

.faq-item.active .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    display: block;
}

/* Footer Styles */
.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer h3 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: 1.25rem;
    position: relative;
    padding-bottom: 12px;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Социальные иконки */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Контактные элементы с иконками */
.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-icon {
    margin-right: 12px;
    flex-shrink: 0;
    color: var(--primary-color);
}

/* Рабочие часы */
.working-hours {
    color: rgba(255, 255, 255, 0.7);
}

.working-day {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.working-day:last-child {
    border-bottom: none;
}

/* Сердечко в футере */
.heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.5s ease infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Cookie Popup с улучшенным дизайном */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--dark-bg);
    color: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: bottom 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    display: flex;
    align-items: center;
    margin-right: 30px;
}

.cookie-icon {
    margin-right: 16px;
    flex-shrink: 0;
    color: var(--primary-color);
}

.cookie-content p {
    margin-right: 30px;
    margin-bottom: 0;
}

.accept-cookies {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.accept-cookies:hover {
    background: var(--secondary-color);
}



@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}



.animate-slide-in {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Улучшенные стили для элементов */
.hero-content h1 {
    position: relative;
    overflow: hidden;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.hero .btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.hero .btn:hover::before {
    left: 100%;
}

.service-card {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, transparent 50%, rgba(14, 165, 233, 0.1) 50%);
    border-radius: 0 0 0 100%;
    z-index: -1;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-card:hover::before {
    width: 150%;
    height: 150%;
}

/* Улучшенные эффекты для элементов */
.about-card:hover .about-icon {
    transform: scale(1.2) rotate(10deg);
}

.faq-question {
    position: relative;
    transition: all 0.4s ease;
}

.faq-item.active .faq-question {
    color: var(--secondary-color);
}

.faq-answer {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    opacity: 1;
    transform: translateY(0);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
}

/* Улучшенные стили футера */
.footer {
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    animation: gradient 8s linear infinite;
    background-size: 200% 100%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Добавляем интерактивность социальным иконкам */
.social-link {
    position: relative;
    overflow: hidden;
}

.social-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: width 0.5s ease, height 0.5s ease, top 0.5s ease, left 0.5s ease;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.social-link:hover::after {
    width: 120%;
    height: 120%;
}

/* Скролл-эффекты */
html {
    scroll-behavior: smooth;
}

/* Улучшенная кнопка скролла наверх */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

.scroll-top svg {
    width: 24px;
    height: 24px;
}

/* Улучшенный слайдер для отзывов */
.testimonials-grid {
    position: relative;
}

@media (min-width: 769px) {
    .testimonial-card {
        transform: translateZ(0);
        backface-visibility: hidden;
        transition: transform 0.5s ease, box-shadow 0.5s ease;
    }
    
    .testimonial-card:hover {
        transform: translateY(-15px);
        box-shadow: var(--shadow-lg);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: var(--shadow);
        padding: 24px;
        z-index: 99;
    }

    .menu-icon {
        display: block;
    }

    .menu-toggle:checked ~ .menu {
        display: flex;
    }

    .menu-toggle:checked ~ .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle:checked ~ .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle:checked ~ .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.125rem;
    }

    section {
        padding: 60px 0;
    }
    
    .about-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 20px;
    }
    
    .service-image {
        height: 180px;
    }
    
    .about-card, .testimonial-card {
        padding: 30px 20px;
    }
    
    .testimonial-card::before {
        font-size: 3rem;
    }
    
    .section-intro {
        padding: 0 20px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-text {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 20px;
        margin-right: 0;
    }
    
    .cookie-icon {
        margin-bottom: 12px;
    }
    
    .cookie-content p {
        margin-right: 0;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
    }
    
    .working-day {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-grid {
        gap: 30px;
        margin-bottom: 30px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-intro {
        font-size: 1rem;
    }
    
    .hero .btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .service-image {
        height: 160px;
    }
    
    .about-icon {
        font-size: 2.5rem;
    }
    
    .about-card {
        padding: 25px 15px;
    }
    
    .faq-question {
        padding-right: 20px;
        font-size: 1rem;
    }
    
    .faq-question::after {
        font-size: 20px;
    }
    
    .contact-form {
        padding: 25px 15px;
    }
    
    .form-control {
        padding: 12px;
    }
    
    .btn {
        padding: 12px 20px;
    }
    
    .cookie-popup {
        padding: 20px 15px;
    }
    
    .accept-cookies {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
} 