* {
    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: #021D5C;
    overflow-x: hidden;
}

/* Critical CSS - Above the fold */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #3D6CD9;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #021D5C;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: #3D6CD9;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #3D6CD9;
    aria-label: "Відкрити меню"
}

.hero {
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(135deg, #3D6CD9 0%, #613DD9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="pawprint" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="5" cy="5" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="15" cy="5" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/><ellipse cx="10" cy="15" rx="2" ry="3" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23pawprint)"/></svg>') repeat;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

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

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 20px rgba(255,255,255,0.3); }
    to { text-shadow: 2px 2px 4px rgba(0,0,0,0.3), 0 0 30px rgba(255,255,255,0.5); }
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #9FD93D, #3D6CD9);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(61, 108, 217, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(61, 108, 217, 0.4);
}

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

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: #021D5C;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #3D6CD9, #613DD9);
    border-radius: 2px;
}

.clinics {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.clinics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.clinic-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clinic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, #3D6CD9, #613DD9);
}

.clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.clinic-name {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: #021D5C;
    display: flex;
    align-items: center;
    gap: 12px;
}

.clinic-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #3D6CD9, #613DD9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.clinic-address {
    color: #5D5184;
    margin-bottom: 15px;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.6;
}

.clinic-hours {
    color: #9FD93D;
    margin-bottom: 15px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
}

.clinic-phone {
    background: linear-gradient(45deg, #9FD93D, #3D6CD9);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(61, 108, 217, 0.3);
    width: 100%;
    text-align: center;
}

.clinic-phone:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61, 108, 217, 0.4);
    background: linear-gradient(45deg, #7ab82d, #2d4fb8);
}

.services {
    padding: 80px 0;
    background: white;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #5D5184;
    line-height: 1.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.service-item:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #3D6CD9 0%, #613DD9 100%);
    color: white;
}

.service-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 10px;
}

.service-item p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    line-height: 1.5;
}

.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
    color: #021D5C;
}

.about-text p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: #5D5184;
    line-height: 1.7;
    margin-bottom: 15px;
}

.about-features {
    list-style: none;
    margin-top: 20px;
}

.about-features li {
    padding: 8px 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #9FD93D;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-features li::before {
    content: '✓';
    background: #9FD93D;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.faq {
    padding: 80px 0;
    background: white;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    color: #021D5C;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 20px;
    max-height: 200px;
}

.faq-answer p {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: #5D5184;
    line-height: 1.6;
}

.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 20px;
}

.contact p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 12px 25px;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: transparent;
    font-size: clamp(0.9rem, 2vw, 1rem);
    min-width: 120px;
    text-align: center;
}

.contact-btn:hover {
    background: white;
    color: #021D5C;
    transform: translateY(-2px);
}

.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0 20px;
}

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

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #3D6CD9;
}

.footer-section p,
.footer-section a {
    font-size: 0.9rem;
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.6;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: #95a5a6;
    margin-bottom: 5px;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skip to content for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3D6CD9;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 10px 0;
    }

    .nav-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 70vh;
        padding: 60px 15px 20px;
    }

    .hero-content {
        padding: 0 10px;
    }

    .clinics {
        padding: 60px 0;
    }

    .clinics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .clinic-card {
        padding: 25px 20px;
        text-align: center;
    }

    .clinic-name {
        align-items: center;
        gap: 10px;
        justify-content: center;
    }

    .services {
        padding: 60px 0;
    }

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

    .service-item {
        padding: 25px 15px;
    }

    .about {
        padding: 60px 0;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .faq {
        padding: 60px 0;
    }

    .contact {
        padding: 60px 0;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .contact-btn {
        width: 200px;
    }

    .container {
        padding: 0 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 60vh;
        padding: 60px 10px 20px;
    }

    .clinics-grid {
        gap: 15px;
    }

    .clinic-card {
        padding: 20px 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-item {
        padding: 20px 15px;
    }

    .contact-btn {
        width: 180px;
        padding: 10px 20px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .clinic-card:hover,
    .service-item:hover,
    .cta-button:hover,
    .clinic-phone:hover,
    .contact-btn:hover {
        transform: none;
    }

    .clinic-card:active {
        transform: scale(0.98);
    }

    .cta-button:active,
    .clinic-phone:active,
    .contact-btn:active {
        transform: scale(0.95);
    }
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s;
}

.lazy-load.loaded {
    opacity: 1;
}

.site-logo {
    max-width: 10%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 600px;
}

@media (max-width: 768px) {
    .site-logo {
        max-width: 15%;
    }

    .header-title {
        text-align: center;
    }

    .logo {
        gap: 0px;
    }
}