/* =====================================================
   VetClinic - Modern Veterinary Clinic Website
   Professional, Clean, Trust-inspiring Design
   ===================================================== */

/* CSS Variables - Medical/Veterinary Color Scheme */
:root {
    /* Primary - Professional Teal/Blue-Green */
    --primary: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #22d3ee;
    --primary-50: #ecfeff;
    --primary-100: #cffafe;
    
    /* Secondary - Warm Orange for CTAs */
    --accent: #f97316;
    --accent-dark: #ea580c;
    --accent-light: #fb923c;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Typography */
    --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--gray-50);
    color: var(--gray-700);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gray-800);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-600);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* =====================================================
   NAVIGATION
   ===================================================== */
.navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: var(--primary-dark) !important;
}

.navbar-brand .brand-icon {
    font-size: 1.75rem;
}

.nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-50);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* CTA Button in Nav */
.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 0.625rem 1.25rem !important;
    border-radius: var(--radius-lg);
    font-weight: 600;
    margin-left: 0.5rem;
}

.nav-cta:hover {
    background: var(--accent-dark) !important;
    color: var(--white) !important;
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none;
}

/* Phone in header */
.header-phone {
    color: var(--gray-800);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-phone i {
    color: var(--primary);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-section .lead {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-badge {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-badge i {
    color: var(--accent-light);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* =====================================================
   CARDS
   ===================================================== */
.card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.75rem;
}

.card-text {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.card-footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-100);
    padding: 1rem 1.5rem;
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2rem;
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
    padding: 5rem 0;
}

.section-light {
    background: var(--white);
}

.section-gray {
    background: var(--gray-50);
}

.section-primary {
    background: var(--primary);
    color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* =====================================================
   FEATURES / ADVANTAGES
   ===================================================== */
.feature-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
    font-size: 1.25rem;
}

.feature-content h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.feature-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Stats */
.stats-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    color: var(--white);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* =====================================================
   REVIEWS / TESTIMONIALS
   ===================================================== */
.review-card {
    padding: 2rem;
    position: relative;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    color: var(--primary-100);
    font-family: Georgia, serif;
    line-height: 1;
}

.review-text {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 700;
}

.review-author-info h5 {
    margin: 0;
    font-size: 1rem;
}

.review-author-info span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

.review-rating {
    color: var(--warning);
    margin-bottom: 0.5rem;
}

/* =====================================================
   PRICES TABLE
   ===================================================== */
.price-category {
    margin-bottom: 3rem;
}

.price-category-header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-category-header i {
    font-size: 1.5rem;
}

.price-category-header h3 {
    margin: 0;
    color: var(--white);
    font-size: 1.25rem;
}

.price-list {
    background: var(--white);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.price-item:last-child {
    border-bottom: none;
}

.price-item:hover {
    background: var(--gray-50);
}

.price-name {
    font-weight: 500;
    color: var(--gray-700);
}

.price-value {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.price-note {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* =====================================================
   TEAM / DOCTORS
   ===================================================== */
.team-card {
    text-align: center;
}

.team-card .card-img-top {
    height: 280px;
}

.team-card .card-body {
    padding: 1.5rem;
}

.team-position {
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.contact-info-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-content h4 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: var(--gray-800);
}

.contact-content p {
    margin: 0;
    color: var(--gray-600);
}

.contact-content a {
    color: var(--gray-700);
    font-weight: 500;
}

.contact-content a:hover {
    color: var(--primary);
}

/* Map */
.map-container {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 400px;
    background: var(--gray-100);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Яндекс Карты - кастомизация */
.map-container [class*="ymaps-"] {
    border-radius: var(--radius-xl);
}

.map-container .ymaps-2-1-79-map {
    border-radius: var(--radius-xl);
}

/* Стили для балуна Яндекс Карт */
.map-container .ymaps-2-1-79-balloon__content {
    padding: 10px;
}

.map-container .ymaps-2-1-79-balloon__close {
    opacity: 0.7;
}

.map-container .ymaps-2-1-79-balloon__close:hover {
    opacity: 1;
}

/* =====================================================
   FORMS
   ===================================================== */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-100);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 0.875rem 1rem;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-100);
}

/* Appointment Form */
.appointment-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.appointment-form h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--gray-600);
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--primary);
    font-weight: 500;
}

/* =====================================================
   FOOTER
   ===================================================== */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer ul li a {
    color: var(--gray-400);
    transition: var(--transition);
}

footer ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--gray-400);
}

.footer-contact i {
    color: var(--primary-light);
    width: 20px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    margin-top: 3rem;
    text-align: center;
    color: var(--gray-500);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo i {
    color: var(--primary-light);
}

/* =====================================================
   ALERTS
   ===================================================== */
.alert {
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

.alert-info {
    background: var(--primary-100);
    color: var(--primary-dark);
}

/* =====================================================
   NEWS / BLOG
   ===================================================== */
.news-card .card-img-top {
    height: 220px;
}

.news-date {
    font-size: 0.85rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.news-date i {
    color: var(--primary);
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    gap: 0.5rem;
}

.page-link {
    border: none;
    border-radius: var(--radius);
    color: var(--gray-600);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary-100);
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--primary);
    color: var(--white);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    padding: 4rem 0;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-primary-light {
    background: var(--primary-100) !important;
}

.rounded-xl {
    border-radius: var(--radius-xl) !important;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        border-radius: var(--radius-lg);
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-cta {
        margin: 1rem 0 0 0;
        display: block;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* =====================================================
   PAGE SPECIFIC STYLES
   ===================================================== */

/* Page Header */
.page-header-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 3rem 0;
    color: var(--white);
    margin-bottom: 2rem;
}

.page-header-section h1 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header-section .breadcrumb {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.page-header-section .breadcrumb-item,
.page-header-section .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
}

.page-header-section .breadcrumb-item.active {
    color: var(--white);
}

.page-header-section .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.5);
}

/* Emergency Banner */
.emergency-banner {
    background: var(--error);
    color: var(--white);
    padding: 0.75rem 0;
    text-align: center;
    font-weight: 500;
}

.emergency-banner a {
    color: var(--white);
    text-decoration: underline;
}

/* Working hours badge */
.working-hours-badge {
    background: var(--success);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.working-hours-badge.closed {
    background: var(--error);
}
