/* Modern Redesign for Medkomissia SPb */
/* Based on professional UI/UX design principles */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Professional Medical Trust */
    --color-primary: #0077b6;
    --color-primary-light: #009cd6;
    --color-primary-dark: #005f87;
    --color-accent: #f35150;
    --color-accent-hover: #d63d3c;

    --color-text-main: #1e293b;
    --color-text-secondary: #475569;
    --color-bg-body: #ffffff;
    --color-bg-light: #f8fafc;
    --color-border: #e2e8f0;

    /* Typography */
    --font-family-main: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;

    /* Spacing */
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;

    /* Layout */
    --header-height: 72px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* Effects */
    --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);
    --transition-fast: 0.2s ease;
}

/* Override existing body fonts */
body {
    font-family: var(--font-family-main) !important;
    color: var(--color-text-main) !important;
    -webkit-font-smoothing: antialiased;
}

/* Modern Compact Header */
.header.modern-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0;
}

.header.modern-header .header-row {
    padding: 0;
    background: transparent;
    border: none;
}

.header.modern-header .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

.header.modern-header .logo-block {
    font-weight: 800;
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.header.modern-header .logo-block .logo-name {
    font-family: var(--font-family-main) !important;
    font-size: var(--font-size-lg) !important;
    font-weight: 800 !important;
    color: var(--color-text-main) !important;
}

/* Modern Navigation */
.header.modern-header .top-nav {
    margin: 0;
}

.header.modern-header .top-nav>ul {
    gap: var(--spacing-8);
    border: none;
}

.header.modern-header .top-nav>ul>li {
    border: none;
    flex: none;
}

.header.modern-header .top-nav>ul>li>a {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: var(--spacing-2) var(--spacing-3);
    min-height: auto;
}

.header.modern-header .top-nav>ul>li>a:hover,
.header.modern-header .top-nav>ul .current-menu-item>a {
    color: var(--color-primary);
}

/* Phone Block */
.header.modern-header .contacts-block.phone {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.header.modern-header .contacts-block.phone .phone-link {
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--color-text-main);
}

.header.modern-header .contacts-block.phone .block-info {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin: 0;
}

/* Modern Button */
.btn.btn-modern-primary {
    background-color: var(--color-primary);
    color: white;
    border: none;
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
    min-height: 44px;
}

.btn.btn-modern-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Hide old header rows */
.header.modern-header .header-row.first,
.header.modern-header .header-row.second.hide-on-sticky {
    display: none !important;
}

/* Hero Section - стилистика сайта */
.hero-modern {
    padding: 85px 0 60px;
    background: #f2f7fd;
    position: relative;
}

.hero-modern .hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-modern .hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-modern .hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 25px;
}

.hero-modern .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    color: #009cd6;
    font-size: 13px;
    font-weight: 500;
    border-radius: 22px;
    box-shadow: 0px 3px 9px rgba(34, 87, 142, 0.09);
    font-family: "Roboto", Arial, sans-serif;
}

.hero-modern .badge:nth-child(2) {
    color: #f35150;
}

.hero-modern .badge svg,
.hero-modern .badge img {
    width: 16px;
    height: 16px;
}

.hero-modern .text-h1 {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.333;
    color: #0e3f60;
    margin: 0 0 20px;
    font-family: "Roboto", Arial, sans-serif;
}

.hero-modern .text-h1 span {
    color: #009cd6;
    font-weight: 500;
}

.hero-modern .text-lead {
    font-size: 16px;
    color: #57758f;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 30px;
    font-family: "Roboto", Arial, sans-serif;
}

.hero-modern .hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-modern .btn-lg {
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 400;
    min-height: 44px;
    border-radius: 22px;
    transition: all 0.3s;
    font-family: "Roboto", Arial, sans-serif;
    text-transform: uppercase;
}

.hero-modern .btn-lg.btn-filled {
    background: linear-gradient(to top, #2283df 0%, #03a8e5 100%);
    color: #fff;
    border: 1px solid #009cd6;
}

.hero-modern .btn-lg.btn-filled:hover {
    background: #fff;
    color: #009cd6;
}

.hero-modern .btn-secondary {
    background: #fff;
    color: #009cd6;
    border: 1px solid #009cd6;
}

.hero-modern .btn-secondary:hover {
    background: #009cd6;
    color: #fff;
}

.hero-modern .hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 30px 0;
    border-top: 1px solid #e6e9ee;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.hero-modern .stat-item {
    text-align: center;
}

.hero-modern .stat-item h3 {
    font-size: 32px;
    font-weight: 600;
    color: #009cd6;
    line-height: 1;
    margin-bottom: 8px;
    font-family: "Roboto", Arial, sans-serif;
}

.hero-modern .stat-item p {
    font-size: 14px;
    color: #57758f;
    line-height: 1.4;
    font-family: "Roboto", Arial, sans-serif;
}

/* Карточки услуг в hero */
.hero-modern .hero-services {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-modern .hero-service-card {
    background: #fff;
    box-shadow: 0px 3px 9px rgba(34, 87, 142, 0.09);
    border-radius: 8px;
    padding: 25px 30px;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    min-width: 180px;
}

.hero-modern .hero-service-card:hover {
    box-shadow: 0px 8px 25px rgba(34, 87, 142, 0.15);
    transform: translateY(-3px);
}

.hero-modern .hero-service-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.hero-modern .hero-service-card .card-caption {
    font-size: 14px;
    color: #0e3f60;
    font-weight: 500;
    margin-bottom: 5px;
}

.hero-modern .hero-service-card .card-price {
    font-size: 13px;
    color: #f35150;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 767px) {
    .hero-modern {
        padding: 30px 0 40px;
    }

    .hero-modern .text-h1 {
        font-size: 26px;
    }

    .hero-modern .hero-badges {
        gap: 8px;
    }

    .hero-modern .badge {
        padding: 8px 14px;
        font-size: 12px;
    }

    .hero-modern .hero-stats {
        gap: 20px;
    }

    .hero-modern .stat-item h3 {
        font-size: 24px;
    }

    .hero-modern .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-modern .btn-lg {
        width: 100%;
        max-width: 280px;
    }
}