/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: #F4F7FB;
    --color-bg-alt: #EEF3FA;
    --color-white: #FFFFFF;
    --color-navy: #0D2B5A;
    --color-navy-light: #1A4080;
    --color-blue: #2563A8;
    --color-blue-light: #3B82C4;
    --color-green: #1A7A55;
    --color-green-light: #22A06B;
    --color-green-bg: #EBF7F2;
    --color-amber: #B45309;
    --color-amber-bg: #FFF8ED;
    --color-red: #B91C1C;
    --color-red-bg: #FEF2F2;
    --color-text: #1E2D45;
    --color-text-secondary: #4A6080;
    --color-border: #D0DCF0;
    --color-shadow: rgba(13, 43, 90, 0.12);

    --font-heading: 'Montserrat', 'Arial', sans-serif;
    --font-body: 'Open Sans', 'Arial', sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px var(--color-shadow);
    --shadow-md: 0 6px 24px var(--color-shadow);
    --shadow-lg: 0 12px 48px rgba(13, 43, 90, 0.18);

    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-navy);
    font-weight: 700;
}

h1 {
    font-size: clamp(1.7rem, 5vw, 2.8rem);
}

h2 {
    font-size: clamp(1.35rem, 3.5vw, 2rem);
}

h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

p {
    margin-bottom: 0.75rem;
}

p:last-child {
    margin-bottom: 0;
}

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 52px 0;
}

section:nth-child(even) {
    background-color: var(--color-white);
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-blue);
    background: rgba(37, 99, 168, 0.08);
    padding: 5px 13px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 28px;
}

/* ===== HEADER ===== */
.site-header {
    position: relative;
    z-index: 1000;
    background: var(--color-navy);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
    padding: 12px 0;
    transition: background var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header-name {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.header-name span {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 2px;
}

.header-phones {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.header-phone-link {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--color-green);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), transform var(--transition);
    white-space: nowrap;
}

.header-phone-link:hover {
    background: var(--color-green-light);
    transform: translateY(-1px);
}

.header-phone-link svg {
    flex-shrink: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(145deg, var(--color-navy) 0%, var(--color-navy-light) 60%, #1E5CA8 100%);
    position: relative;
    overflow: hidden;
    padding: 56px 0 64px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: 12px;
}

.hero h1 em {
    font-style: normal;
    color: #7DD3B8;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    max-width: 600px;
}

.doctor-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 18px;
    backdrop-filter: blur(6px);
}

.doctor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82C4, #22A06B);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
}

.doctor-info {
    flex: 1;
    min-width: 0;
}

.doctor-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-white);
    margin-bottom: 4px;
}

.doctor-meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doctor-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.doctor-meta-item strong {
    color: #7DD3B8;
    font-weight: 700;
}

.hero-phones {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-phone-link {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--color-green);
    color: #fff;
    padding: 16px 22px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    box-shadow: 0 4px 20px rgba(26, 122, 85, 0.45);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.hero-phone-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 122, 85, 0.55);
    background: var(--color-green-light);
}

.hero-phone-link .phone-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-phone-label {
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    display: block;
    margin-top: 2px;
}

.hero-urgency {
    margin-top: 20px;
    background: rgba(180, 83, 9, 0.15);
    border: 1px solid rgba(180, 83, 9, 0.3);
    border-left: 4px solid #F59E0B;
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.5;
}

.hero-urgency strong {
    color: #FCD34D;
    font-family: var(--font-heading);
}

/* ===== STATS STRIP ===== */
.stats-strip {
    background: var(--color-blue);
    padding: 28px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 800;
    color: #7DD3B8;
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    line-height: 1.3;
}

/* ===== URGENCY BLOCK ===== */
.urgency-block {
    background: linear-gradient(135deg, #FFF8ED 0%, #FFFBF5 100%);
    border-top: 4px solid #F59E0B;
    padding: 44px 0;
}

.urgency-intro {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    margin-bottom: 28px;
}

.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    gap: 0;
    position: relative;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-dot {
    width: 56px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid;
    flex-shrink: 0;
}

.dot-green {
    border-color: var(--color-green);
    background: var(--color-green);
}

.dot-amber {
    border-color: #F59E0B;
    background: #F59E0B;
}

.dot-red {
    border-color: var(--color-red);
    background: var(--color-red);
}

.timeline-body {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    flex: 1;
    border-left: 3px solid transparent;
}

.timeline-body.green {
    border-left-color: var(--color-green);
}

.timeline-body.amber {
    border-left-color: #F59E0B;
}

.timeline-body.red {
    border-left-color: var(--color-red);
}

.timeline-phase {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.timeline-body h3 {
    font-size: 1rem;
    margin-bottom: 6px;
}

.timeline-body p {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ===== PROGNOSIS SECTION ===== */
.prognosis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.prognosis-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    border-top: 4px solid transparent;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.prognosis-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.prognosis-card.light {
    border-top-color: var(--color-green);
}

.prognosis-card.medium {
    border-top-color: #F59E0B;
}

.prognosis-card.heavy {
    border-top-color: var(--color-red);
}

.prognosis-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.severity-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.severity-badge.light {
    background: var(--color-green-bg);
    color: var(--color-green);
}

.severity-badge.medium {
    background: var(--color-amber-bg);
    color: var(--color-amber);
}

.severity-badge.heavy {
    background: var(--color-red-bg);
    color: var(--color-red);
}

.prognosis-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.prognosis-features {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 10px;
}

.prognosis-feature {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.88rem;
    color: var(--color-text);
    line-height: 1.4;
}

.prognosis-feature svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.rehab-duration {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 7px;
}

.rehab-duration strong {
    color: var(--color-navy);
}

/* ===== COMPLICATIONS SECTION ===== */
.complications-intro {
    background: var(--color-red-bg);
    border: 1px solid rgba(185, 28, 28, 0.15);
    border-left: 4px solid var(--color-red);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 28px;
    font-size: 0.9rem;
    color: #7F1D1D;
    line-height: 1.5;
}

.complications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.complication-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.complication-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.complication-card.early {
    border-left-color: var(--color-amber);
}

.complication-card.late {
    border-left-color: var(--color-red);
}

.complication-card.aphasia {
    border-left-color: var(--color-blue);
}

.complication-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.comp-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comp-icon.amber {
    background: var(--color-amber-bg);
}

.comp-icon.red {
    background: var(--color-red-bg);
}

.comp-icon.blue {
    background: rgba(37, 99, 168, 0.08);
}

.comp-title-block h3 {
    font-size: 1rem;
    margin-bottom: 3px;
}

.comp-type-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.comp-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comp-item {}

.comp-item-name {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 3px;
}

.comp-item-desc {
    font-size: 0.84rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
    margin: 0;
}

.comp-help {
    margin-top: 8px;
    background: var(--color-green-bg);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    font-size: 0.82rem;
    color: var(--color-green);
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.comp-help-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-green);
}

.comp-help svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== APHASIA DETAIL ===== */
.aphasia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 14px;
}

.aphasia-type {
    background: rgba(37, 99, 168, 0.05);
    border: 1px solid rgba(37, 99, 168, 0.15);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
}

.aphasia-type-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--color-blue);
    margin-bottom: 5px;
}

.aphasia-type p {
    font-size: 0.83rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
    margin: 0;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(145deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    color: var(--color-white);
    margin-bottom: 12px;
}

.cta-section .cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-phones {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.cta-phone-link {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-green);
    color: #fff;
    padding: 18px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    box-shadow: 0 4px 24px rgba(26, 122, 85, 0.5);
    width: 100%;
    max-width: 380px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.cta-phone-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(26, 122, 85, 0.6);
    background: var(--color-green-light);
}

.cta-phone-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-note {
    margin-top: 20px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== FOOTER ===== */
.site-footer {
    background: #0A1F3D;
    padding: 28px 0;
    text-align: center;
}

.footer-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 4px;
}

.footer-city {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 14px;
}

.footer-phones-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.footer-phone {
    color: #7DD3B8;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-phone:hover {
    color: var(--color-green-light);
}

.footer-copy {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ===== FLOATING PHONE BUTTON ===== */
.floating-call {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.floating-call a {
    pointer-events: all;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--color-green);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 122, 85, 0.55);
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
    animation: pulse 2.5s infinite;
}

.floating-call a:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(26, 122, 85, 0.65);
    background: var(--color-green-light);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 122, 85, 0.6);
    }

    60% {
        box-shadow: 0 0 0 12px rgba(26, 122, 85, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 122, 85, 0);
    }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 600px) {
    .prognosis-grid {
        grid-template-columns: 1fr 1fr;
    }

    .prognosis-card.heavy {
        grid-column: 1 / -1;
    }

    .complications-grid {
        grid-template-columns: 1fr 1fr;
    }

    .complications-grid .complication-card.aphasia {
        grid-column: 1 / -1;
    }

    .aphasia-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-grid {
        gap: 32px;
    }
}

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }

    .container {
        padding: 0;
    }

    .site-header {
        position: sticky;
        top: 0;
    }

    section {
        padding: 68px 0;
    }

    .hero {
        padding: 72px 0 80px;
    }

    .hero-phones {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-phone-link {
        flex: 1;
        min-width: 240px;
    }

    .cta-phones {
        flex-direction: row;
        justify-content: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}