﻿:root {
    --green: #2EAF6E;
    --green-dark: #24965C;
    --green-light: #E8F7EF;
    --mint: #E6F5EE;
    --blue-light: #E8F2FA;
    --blue: #4A9FD4;
    --teal: #1A5C5A;
    --teal-dark: #134847;
    --red: #E53935;
    --white: #ffffff;
    --text: #2D3748;
    --text-muted: #5A6578;
    --radius: 16px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(46, 175, 110, 0.12);
    --font: 'Inter', system-ui, sans-serif;
    --container: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(46, 175, 110, 0.12);
}
.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 72px;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--green);
}
.logo-icon { color: var(--green); display: flex; }
.logo--footer .logo-text { color: var(--white); }
.logo--footer .logo-icon { color: var(--white); }

.main-nav ul {
    display: flex;
    justify-content: center;
    gap: 1.75rem;
    flex-wrap: wrap;
}
.main-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a.active { color: var(--green); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(46, 175, 110, 0.35);
}
.btn-primary:hover {
    background: var(--green-dark);
    box-shadow: 0 6px 20px rgba(46, 175, 110, 0.45);
}
.btn-lg { padding: 0.95rem 1.75rem; font-size: 0.85rem; }

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
}

.section { padding: 4.5rem 0; }
.section-title {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.04em;
    margin-bottom: 2.5rem;
    color: var(--text);
}

.hero {
    position: relative;
    margin-top: 72px;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.75) 40%, rgba(255, 255, 255, 0.1) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px;
    padding: 4rem 0;
}
.hero-content h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: 0.03em;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text);
}
.hero-lead {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    max-width: 440px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2.5rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    min-height: 180px;
    transition: transform 0.2s;
}
.service-card:hover { transform: translateY(-3px); }
.service-card--green { background: var(--mint); }
.service-card--green .service-icon { color: var(--green); }
.service-card--blue { background: var(--blue-light); }
.service-card--blue .service-icon { color: var(--blue); }
.service-card--mint { background: var(--green-light); }
.service-card--mint .service-icon { color: var(--green); }
.service-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.doctor-card {
    text-align: center;
}
.doctor-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--green-light);
    box-shadow: var(--shadow);
}
.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.doctor-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}
.doctor-role {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.doctor-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--green);
}
.doctor-link:hover { text-decoration: underline; }

.booking-section { background: var(--mint); border-radius: var(--radius-lg); margin-inline: 1rem; max-width: calc(var(--container) + 2rem); margin-left: auto; margin-right: auto; }
.booking-bar {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    background: var(--white);
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}
.booking-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #F7FAF8;
    border-radius: var(--radius);
    padding: 0 1rem;
    min-height: 48px;
    flex: 0 0 auto;
}
.booking-field--grow { flex: 1 1 180px; }
.booking-field-icon { color: var(--green); display: flex; flex-shrink: 0; }
.booking-field input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.875rem;
    color: var(--text);
    min-width: 0;
}
.booking-field input[type="date"],
.booking-field input[type="time"] {
    color-scheme: light;
    cursor: pointer;
}
.booking-bar .btn-primary {
    flex-shrink: 0;
    align-self: center;
    padding: 0.85rem 1.5rem;
}

.pharmacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.pharmacy-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--blue-light);
    aspect-ratio: 4 / 3;
}
.pharmacy-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pharmacy-action { text-align: center; }

.emergency-banner {
    background: var(--red);
    margin: 0 1rem 0;
    border-radius: var(--radius-lg);
    max-width: calc(var(--container) + 2rem);
    margin-left: auto;
    margin-right: auto;
}
.emergency-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem 2rem;
    color: var(--white);
}
.emergency-badge {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}
.emergency-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.emergency-text strong {
    font-size: 1rem;
    letter-spacing: 0.06em;
}
.emergency-text span,
.emergency-text a {
    font-size: 0.95rem;
    color: var(--white);
}
.emergency-text a:hover { text-decoration: underline; }

.site-footer {
    background: var(--teal);
    color: rgba(255, 255, 255, 0.9);
    margin-top: 3rem;
    padding-top: 3rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1.2fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}
.footer-brand .logo { margin-bottom: 1.25rem; }
.footer-socials {
    display: flex;
    gap: 0.75rem;
}
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transition: background 0.2s;
}
.social-link:hover { background: rgba(255, 255, 255, 0.22); }
.footer-links h4,
.footer-contacts h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}
.footer-links ul,
.footer-contacts ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a,
.footer-contacts a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
}
.footer-links a:hover,
.footer-contacts a:hover { color: var(--white); }
.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
}
.footer-contacts .icon { flex-shrink: 0; margin-top: 2px; }
.map-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.map-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}
.map-pin {
    position: relative;
    z-index: 1;
    color: var(--red);
    background: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem 0;
}
.footer-bottom p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(120%);
    background: var(--teal);
    color: var(--white);
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 200;
    transition: transform 0.35s ease;
    max-width: min(90vw, 420px);
    text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }

@media (max-width: 960px) {
    .header-inner { grid-template-columns: auto 1fr auto; }
    .main-nav {
        position: fixed;
        inset: 72px 0 auto;
        background: var(--white);
        padding: 1rem;
        border-bottom: 1px solid rgba(46, 175, 110, 0.12);
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.3s, opacity 0.3s;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .main-nav ul { flex-direction: column; align-items: center; gap: 0.75rem; }
    .menu-toggle { display: flex; }
    .header-cta { display: none; }
    .services-grid,
    .doctors-grid,
    .pharmacy-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-map { grid-column: 1 / -1; max-width: 320px; }
}

@media (max-width: 600px) {
    .hero { min-height: 440px; }
    .hero-content { padding: 2.5rem 0; }
    .booking-bar { flex-direction: column; }
    .booking-bar .btn-primary { width: 100%; }
    .emergency-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .booking-section { margin-inline: 0.5rem; }
    .emergency-banner { margin-inline: 0.5rem; }
}
