/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2563eb;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Header */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.nav a:hover {
    background-color: #f1f5f9;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 4rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h2 {
    font-size: 3rem;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    flex-shrink: 0;
}

.feature span {
    font-weight: 500;
    color: #1e293b;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
}

/* Image Placeholders */
.image-placeholder, .map-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 2px dashed #94a3b8;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Age Group Illustrations */
.age-illustration {
    margin: 1.5rem auto;
    display: block;
}

/* Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: #f8fafc;
}

/* Centered sections */
.centered {
    text-align: center;
}

.centered h2 {
    text-align: center;
}

.centered .container > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Grid Layouts */
.about-grid, .services-grid, .age-grid, .reasons-grid, .testimonials-grid {
    display: grid;
    gap: 2rem;
}

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

.age-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Cards */
.about-item, .service, .age-group, .reason, .testimonial {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-item:hover, .service:hover, .age-group:hover, .reason:hover, .testimonial:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.service-icon, .reason-icon {
    margin-bottom: 1rem;
}

.service h3, .reason h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

/* Age Groups */
.age-group h3 {
    color: #f59e0b;
    margin-bottom: 1rem;
}

/* Technology Section */
.tech-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.tech-feature {
    margin-bottom: 2rem;
}

.tech-feature h3 {
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.tech-visual {
    display: flex;
    justify-content: center;
}

.tech-illustration {
    max-width: 100%;
    height: auto;
}

/* Products Section */
.products {
    background-color: #1e293b;
    color: #ffffff;
}

.products h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product {
    background-color: #ffffff;
    color: #1e293b;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    transition: transform 0.2s ease;
}

.product:hover {
    transform: translateY(-4px);
}

.product.featured {
    border: 3px solid #f59e0b;
    transform: scale(1.05);
}

.product.featured::before {
    content: "Популярний вибір";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f59e0b;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.product h3 {
    color: #2563eb;
    margin-bottom: 1rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 1.5rem;
}

.product ul {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.product ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    padding-left: 1.5rem;
}

.product ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.product-btn {
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.product-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

/* Testimonials */
.testimonial {
    text-align: center;
    position: relative;
    padding-top: 2.5rem;
}

.testimonial::before {
    content: """;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 4rem;
    color: #f59e0b;
    line-height: 1;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial span {
    font-weight: 600;
    color: #2563eb;
}

/* Contacts Section */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
    color: #2563eb;
}

.contact-item a {
    font-size: 1.1rem;
    font-weight: 500;
}

address {
    font-style: normal;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    grid-column: 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
}

.footer-nav h4,
.footer-legal h4,
.footer-contact h4 {
    color: #f59e0b;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #cbd5e1;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #f59e0b;
}

.footer-contact-info p {
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav {
        justify-content: center;
    }

    .tech-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        align-items: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product.featured {
        transform: none;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .feature {
        flex-direction: column;
        text-align: center;
    }

    .about-grid, .services-grid, .reasons-grid {
        grid-template-columns: 1fr;
    }

    .age-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}