/* Reset y configuración básica */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Smooth Scroll - ЗАМЕНА JAVASCRIPT */
html {
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #F3F4F6;
    --color-red: #E53935;
    --color-green: #43A047;
    --color-blue: #1E88E5;
    --text-primary: #1F1F1F;
    --gradient-btn: linear-gradient(135deg, #43A047, #1E88E5);
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    max-width: 100vw;
}

/* Layout principales */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section {
    padding: 80px 0;
    position: relative;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--color-blue);
    text-decoration: none;
}

.logo svg {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.nav {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a:hover {
    color: var(--color-blue);
    transform: translateY(-2px);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-btn);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

/* Scroll offset для якорных ссылок - ЗАМЕНА JAVASCRIPT */
.section:target {
    scroll-margin-top: 100px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-blue), var(--color-green));
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('./img/HoYoOG.jpg') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.8), rgba(67, 160, 71, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.btn {
    display: inline-block;
    background: var(--gradient-btn);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* About Section */
.about {
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-blue);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #666;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: 15px;
    transition: var(--transition);
    animation: slideInRight 0.6s ease-out;
}

.timeline-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow);
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

/* Services Section */
.services {
    background: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--color-blue);
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    animation: fadeInUp 0.6s ease-out;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-btn);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.service-card h3 {
    color: var(--color-blue);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* Benefits Section */
.benefits {
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: zoomIn 0.6s ease-out;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-btn);
    opacity: 0.1;
    transition: var(--transition);
}

.benefit-card:hover::before {
    left: 0;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

/* Pricing Section */
.pricing {
    background: var(--bg-primary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.pricing-header {
    margin-bottom: 30px;
}

.pricing-title {
    font-size: 1.5rem;
    color: var(--color-blue);
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--color-green);
    margin-bottom: 10px;
}

.pricing-period {
    color: #666;
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Testimonials */
.testimonials {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
    animation: fadeIn 0.6s ease-out;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.testimonial-quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 20px;
    color: #444;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--color-blue);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-blue);
}

/* Contact Section */
.contact {
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-btn);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #666;
}

.checkbox-group a {
    color: var(--color-blue);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Map */
.map-container {
    margin-top: 30px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--color-blue);
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #999;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(31, 31, 31, 0.95);
    color: white;
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    flex: 1;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.cookie-btn.accept {
    background: var(--gradient-btn);
    color: white;
}

.cookie-btn.decline {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

/* CSS Animations - ЗАМЕНА JAVASCRIPT */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* CSS scroll-based animations */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .benefit-card,
    .pricing-card,
    .testimonial-card {
        animation-delay: calc(var(--animation-order, 0) * 0.1s);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    * {
        max-width: 100%;
        word-wrap: break-word;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .section {
        padding: 40px 0;
        width: 100%;
    }
    
    .services-grid,
    .benefits-grid,
    .pricing-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .hero, .hero::before, .hero::after {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .header-content {
        padding: 10px 0;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .logo svg {
        width: 30px;
        height: 30px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-blue {
    color: var(--color-blue);
}

.text-green {
    color: var(--color-green);
}

.text-red {
    color: var(--color-red);
}

.bg-white {
    background: white;
}

.bg-gray {
    background: var(--bg-primary);
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}