/* =========================================
   Design System & Variables
   ========================================= */
:root {
    /* Colors */
    --primary: #005bb7;
    --primary-light: #3382d6;
    --primary-dark: #00448a;

    --accent: #10b981;
    --accent-light: #34d399;
    --accent-dark: #059669;

    --bg-main: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;

    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    --border-color: #e2e8f0;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Layout */
    --container-padding: 2rem;
    --section-spacing: 6rem;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --header-height: 80px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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-glow: 0 0 20px rgba(0, 91, 183, 0.2);
    --shadow-glow-accent: 0 0 20px rgba(16, 185, 129, 0.4);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease;
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-spacing) 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#privacy-policy {
    scroll-margin-top: 100px;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.flex {
    display: flex;
}

.gap-2 {
    gap: 0.5rem;
}

/* =========================================
   Typography & Utilities
   ========================================= */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.bg-dark .section-title,
.bg-dark .section-subtitle {
    color: var(--text-light);
}

/* =========================================
   Buttons
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
    color: white;
}

.btn-accent {
    background-color: var(--accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background-color: var(--accent-dark);
    box-shadow: var(--shadow-glow-accent);
    transform: translateY(-2px);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* =========================================
   Top Utility Bar
   ========================================= */
.top-bar {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accessibility-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: color var(--transition-fast);
}

.accessibility-btn:hover {
    color: var(--primary);
}

.accessibility-btn i {
    font-size: 1.1rem;
    color: var(--primary);
}

.top-bar-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.top-bar-address i {
    color: var(--primary);
}

@media (max-width: 768px) {
    .top-bar {
        padding: 0.3rem 0;
        font-size: 0.75rem;
    }

    .accessibility-btn .acc-text {
        display: none;
    }
}

/* =========================================
   Header & Navigation
   ========================================= */
.header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo i {
    color: var(--primary);
    font-size: 2rem;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    margin: 0 auto;
}

.nav-link {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.header-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--text-main);
    cursor: pointer;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    padding-top: 4rem;
    padding-bottom: 6rem;
    overflow: hidden;
    background-color: var(--bg-light);
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 0;
}

.blob-1 {
    top: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: rgba(0, 91, 183, 0.2);
    animation: float 10s infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: rgba(16, 185, 129, 0.2);
    animation: float 8s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(20px, 30px) scale(1.05);
    }

    100% {
        transform: translate(-20px, -30px) scale(0.95);
    }
}

.hero-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: rgba(0, 91, 183, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 95%;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--text-main);
}

.stat-item i {
    color: var(--accent);
    font-size: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 550px;
}

.hero-img-masked {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    /* Soft organic blob mask generated via CSS clip-path */
    clip-path: polygon(68% 10%, 89% 34%, 94% 68%, 79% 94%, 39% 97%, 14% 82%, 10% 48%, 26% 16%);
    border-radius: 40px;
    /* Fallback for browsers that don't support clip-path perfectly */
    transition: transform var(--transition-bounce), filter var(--transition-normal);
    filter: drop-shadow(0 20px 30px rgba(0, 91, 183, 0.1));
}

.hero-img-masked:hover {
    transform: scale(1.05);
    /* Zoom in on hover */
}

.glass-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    transition: transform var(--transition-bounce);
}

.glass-badge:hover {
    transform: translateY(-5px) scale(1.05);
}

.glass-badge i {
    color: var(--primary);
    font-size: 1.25rem;
}

.badge-1 {
    top: 15%;
    left: -5%;
    animation: float 5s infinite alternate;
}

.badge-1 i {
    color: #f59e0b;
    /* Star gold */
}

.badge-2 {
    bottom: 25%;
    right: -10%;
    animation: float 7s infinite alternate-reverse;
}

.badge-2 i {
    color: var(--accent);
}

.badge-3 {
    bottom: 5%;
    left: 10%;
    animation: float 6s infinite alternate;
}

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-main);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background-color: var(--bg-light);
    color: var(--text-main);
    transition: all var(--transition-normal);
    margin: 0 auto 1.5rem auto;
}

/* =========================================
   Guarantees Section
   ========================================= */

.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.guarantee-card {
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    background: white;
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.guarantee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--primary);
}

.card-action {
    display: block;
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.guarantee-card:hover .card-action {
    opacity: 1;
}

.icon-wrapper.primary {
    background-color: rgba(0, 91, 183, 0.1);
    color: var(--primary);
}

.icon-wrapper.accent {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
}

/* =========================================
   Specializations Section
   ========================================= */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.spec-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: white;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--border-color);
    transition: all var(--transition-normal);
}

.spec-card:hover::before {
    background-color: var(--primary);
}

.spec-card.highlight::before {
    background-color: var(--accent);
}

.spec-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.spec-icon {
    font-size: 3rem;
    color: var(--primary);
    margin: 0 auto 1.5rem auto;
}

.spec-card.highlight .spec-icon {
    color: var(--accent);
}

.spec-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.spec-desc {
    color: var(--text-muted);
}

/* =========================================
   Services Section
   ========================================= */
.services-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-category {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
    min-height: 85px;
}

.category-header i {
    font-size: 2rem;
    color: var(--primary);
}

.category-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.service-category>p {
    min-height: 120px;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.price-list li:last-child {
    border-bottom: none;
}

.service-code {
    font-size: 0.85rem;
    color: var(--text-muted);
    flex: 0 0 110px;
    padding-right: 0.5rem;
    text-align: left;
}

.service-name {
    font-size: 0.95rem;
    color: var(--text-main);
    flex-grow: 1;
    text-align: left;
    padding-right: 1rem;
}

.service-price {
    font-weight: 700;
    color: var(--accent-dark);
    font-family: var(--font-heading);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    white-space: nowrap;
    margin-left: auto;
}

/* =========================================
   Doctors Section
   ========================================= */
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.doctor-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal);
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-avatar {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    /* centers it when flex turns column */
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center; /* Fallback */
    box-shadow: var(--shadow-sm);
    display: block;
}

.avatar-oks {
    object-position: center 5% !important;
}

.avatar-art {
    object-position: center 20% !important;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.avatar-placeholder.alt {
    background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

.doctor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cert-btn {
    margin-top: auto;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    align-self: center;
    /* Center horizontally within the flex column */
}

.doctor-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.doctor-title {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.doctor-bio {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    /* Safe spacing to prevent button from touching text */
}

/* =========================================
   Lightbox Gallery
   ========================================= */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.lightbox-overlay.active {
    display: flex !important;
    /* overrides inline none */
    opacity: 1;
}

.lightbox-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 90%;
    max-width: 1000px;
}

.lightbox-image-container {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.lightbox-counter {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 1rem;
    border-radius: 50px;
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    cursor: default;
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

/* =========================================
   Guarantees Section
   ========================================= */
.guarantees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.guarantee-card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.guarantee-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* =========================================
   Contacts Section
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    /* Removing gap to stick map and info together or use a smaller gap for cohesiveness */
    align-items: stretch;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.contact-info-blocks {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-lead-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-details strong {
    font-family: var(--font-heading);
    margin-bottom: 0.25rem;
}


.contact-details a {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 600;
}

.contact-details a:hover {
    color: var(--accent);
}

.social-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
}

.social-badge.vk {
    background-color: #0077FF;
}

.social-badge.tg {
    background-color: #0088cc;
}

.social-badge:hover {
    transform: translateY(-2px) scale(1.05);
    /* Subtle scale animation */
    opacity: 0.95;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    /* Separator between info and map */
    border-radius: 0;
    /* Reset radius since we handle it on .contact-grid and inline */
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 400px;
}

.map-inner i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.map-inner p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: var(--text-main);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.footer-column.brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
}

.footer-column.brand .copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-column.links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color var(--transition-short, 0.3s ease);
}

.footer-column.links a:hover {
    color: white;
}

.footer-column.legal {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        border-radius: var(--border-radius);
    }

    .glass-panel {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .contact-info-blocks {
        padding: 2rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-description {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .contact-map-placeholder {
        min-height: 300px;
    }

    .services-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .mobile-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        opacity: 0;
        transition: all 0.4s ease-in-out;
        z-index: 999;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .header-btn {
        width: 100%;
    }

    .doctor-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .footer-column {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        text-wrap: balance;
    }

    .about-grid,
    .spec-grid,
    .doctors-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .about-card,
    .spec-card {
        padding: 2rem 1.25rem !important;
    }

    .contact-info-blocks {
        padding: 1.5rem 1rem !important;
    }

    .contact-map-placeholder {
        min-height: 350px !important;
    }
}

/* =========================================
   Version for Visually Impaired (GOST R 52872)
   ========================================= */
body.is-accessible {
    font-size: 130% !important;
    /* Increases root font size by ~30% */
    background: #ffffff !important;
    color: #000000 !important;
}

body.is-accessible * {
    color: #000000 !important;
}

/* Base structural backgrounds */
body.is-accessible .header,
body.is-accessible .footer,
body.is-accessible .about-card,
body.is-accessible .spec-card,
body.is-accessible .doctor-card,
body.is-accessible .price-card,
body.is-accessible .guarantee-card,
body.is-accessible .accordion-header,
body.is-accessible .accordion-content,
body.is-accessible .bg-light,
body.is-accessible .bg-dark,
body.is-accessible section {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* Hide decorative elements */
body.is-accessible .blob,
body.is-accessible .hero::before,
body.is-accessible .hero::after,
body.is-accessible .footer::before,
body.is-accessible .hero-image::after,
body.is-accessible .hero-image::before,
body.is-accessible .spec-card::before,
body.is-accessible .price-notice {
    display: none !important;
}

/* High Contrast Borders */
body.is-accessible .btn,
body.is-accessible .about-card,
body.is-accessible .spec-card,
body.is-accessible .doctor-card,
body.is-accessible .price-card,
body.is-accessible .guarantee-card,
body.is-accessible .accordion-item,
body.is-accessible .header,
body.is-accessible .footer,
body.is-accessible .icon-wrapper {
    border: 3px solid #000000 !important;
    box-shadow: none !important;
}

/* Buttons and Links */
body.is-accessible a {
    text-decoration: underline !important;
    font-weight: 700 !important;
}

body.is-accessible .btn {
    text-decoration: none !important;
    background: #ffffff !important;
}

/* Images Grayscale Filter */
body.is-accessible img {
    filter: grayscale(100%) contrast(120%) !important;
}

.accessibility-btn {
    font-weight: 600;
}

body.is-accessible .accessibility-btn {
    border-color: #000 !important;
}
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-main);
    max-width: 800px;
}

.cookie-text a {
    color: var(--primary);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
}
