* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #27ae60;
    --medical-blue: #2c3e50;
    --medical-green: #16a085;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --text-light: #ecf0f1;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-medical: #f0f8ff;
    --border-color: #e9ecef;
    --shadow-light: 0 2px 10px rgba(52, 152, 219, 0.1);
    --shadow-medium: 0 8px 25px rgba(52, 152, 219, 0.15);
    --shadow-heavy: 0 15px 35px rgba(52, 152, 219, 0.2);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #2c3e50 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(52, 152, 219, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(39, 174, 96, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(22, 160, 133, 0.05) 0%, transparent 50%);
    z-index: -1;
}


@keyframes bloodFlow {
    0% {
        background-position:
            0 0,
            50px 50px,
            25px 25px,
            75px 75px,
            0 0,
            30px 30px;
    }
    100% {
        background-position:
            200px 200px,
            250px 250px,
            125px 125px,
            195px 195px,
            50px 50px,
            80px 80px;
    }
}

.wrap {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(52, 152, 219, 0.1);
    max-width: 900px;
    width: 95%;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 85vh;
    margin: 20px auto;
}

.wrap::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(52, 152, 219, 0.4), 
        rgba(39, 174, 96, 0.4), 
        rgba(22, 160, 133, 0.4), 
        rgba(52, 152, 219, 0.4));
    border-radius: var(--border-radius);
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderGlow {
    0% {
        opacity: 0.5;
        filter: blur(2px);
    }
    100% {
        opacity: 0.8;
        filter: blur(1px);
    }
}

/* Заголовки */
.header-top {
    font-size: clamp(12px, 2.5vw, 16px);
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    margin-bottom: auto;
    margin-top: 0;
    order: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.header-bottom {
    font-size: clamp(12px, 2.5vw, 16px);
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    margin-top: auto;
    margin-bottom: 0;
    order: 6;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

/* Центральный контейнер */
.content-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    order: 3;
    position: relative;
    z-index: 2;
}

/* Центральная группа элементов */
.title {
    font-size: clamp(24px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-primary);
    line-height: 1.1;
    text-transform: none;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    order: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.subtitle {
    font-size: clamp(14px, 2.5vw, 20px);
    font-weight: 500;
    color: var(--medical-blue);
    margin-bottom: 30px;
    font-style: italic;
    order: 2;
}

.subtitle-description {
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-style: italic;
    order: 3;
    text-align: center;
}

.description {
    font-size: clamp(18px, 3.5vw, 28px);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    line-height: 1.4;
    text-transform: none;
    order: 4;
}

.button-container {
    order: 5;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    padding: 18px 36px;
    font-size: clamp(16px, 3vw, 22px);
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 250px;
    border: 2px solid transparent;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.button:hover::before {
    left: 100%;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(255, 255, 255, 0.3);
}

.button:active {
    transform: translateY(-1px);
}

.button::after {
    content: '🔬';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.button:hover::after {
    transform: scale(1.2);
}

/* Медицинские иконки */
.medical-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.medical-icon {
    position: absolute;
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.medical-icon:nth-child(1) { 
    top: 10%; 
    left: 15%;
    animation: heartbeat 2s ease-in-out infinite;
}
.medical-icon:nth-child(2) { 
    top: 20%; 
    right: 15%; 
    animation-delay: 1s;
}
.medical-icon:nth-child(3) { 
    bottom: 25%; 
    left: 20%; 
    animation-delay: 2s;
}
.medical-icon:nth-child(4) { 
    bottom: 15%; 
    right: 10%; 
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes heartbeat {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2) rotate(2deg); 
        opacity: 0.6;
    }
}

/* Адаптивность для планшетов */
@media (max-width: 1024px) {
    .wrap {
        padding: 50px 30px;
        min-height: 80vh;
        width: 90%;
    }
    
    .title {
        margin-bottom: 15px;
    }
    
    .subtitle {
        margin-bottom: 25px;
    }
    
    .description {
        margin-bottom: 35px;
    }
    
    .header-top {
        margin-bottom: 35px;
    }
    
    .header-bottom {
        margin-top: 35px;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding: 15px;
        align-items: stretch;
        min-height: 100vh;
    }
    
    .wrap {
        padding: 40px 25px;
        border-radius: 15px;
        width: 100%;
        max-width: none;
        min-height: calc(100vh - 30px);
        justify-content: center;
        margin: 0;
    }
    
    .header-top {
        margin-bottom: 30px;
        font-size: clamp(11px, 3vw, 14px);
    }
    
    .header-bottom {
        margin-top: 30px;
        font-size: clamp(11px, 3vw, 14px);
    }
    
    .title {
        font-size: clamp(20px, 6vw, 32px);
        margin-bottom: 15px;
    }
    
    .subtitle {
        font-size: clamp(12px, 3vw, 16px);
        margin-bottom: 20px;
    }
    
    .description {
        font-size: clamp(16px, 4vw, 24px);
        margin-bottom: 30px;
    }
    
    .button {
        padding: 16px 32px;
        font-size: clamp(15px, 4vw, 20px);
        min-width: 200px;
    }
    
    .medical-icon {
        font-size: 18px;
    }
}

/* Адаптивность для маленьких мобильных */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .wrap {
        padding: 30px 20px;
        border-radius: 12px;
        min-height: calc(100vh - 20px);
    }
    
    .header-top {
        margin-bottom: 25px;
        font-size: clamp(10px, 3.5vw, 13px);
    }
    
    .header-bottom {
        margin-top: 25px;
        font-size: clamp(10px, 3.5vw, 13px);
    }
    
    .title {
        font-size: clamp(18px, 7vw, 28px);
        margin-bottom: 12px;
    }
    
    .subtitle {
        font-size: clamp(11px, 3.5vw, 14px);
        margin-bottom: 18px;
    }
    
    .description {
        font-size: clamp(14px, 5vw, 20px);
        margin-bottom: 25px;
    }
    
    .button {
        padding: 14px 28px;
        font-size: clamp(14px, 4.5vw, 18px);
        min-width: 180px;
    }
    
    .medical-icon {
        font-size: 16px;
    }
}

/* Адаптивность для очень маленьких экранов */
@media (max-width: 360px) {
    body {
        padding: 5px;
    }
    
    .wrap {
        padding: 25px 15px;
        min-height: calc(100vh - 10px);
    }
    
    .header-top {
        margin-bottom: 20px;
        font-size: clamp(9px, 4vw, 12px);
    }
    
    .header-bottom {
        margin-top: 20px;
        font-size: clamp(9px, 4vw, 12px);
    }
    
    .title {
        font-size: clamp(16px, 8vw, 24px);
        margin-bottom: 10px;
    }
    
    .subtitle {
        font-size: clamp(10px, 4vw, 12px);
        margin-bottom: 15px;
    }
    
    .description {
        font-size: clamp(13px, 6vw, 18px);
        margin-bottom: 20px;
    }
    
    .button {
        padding: 12px 24px;
        font-size: clamp(13px, 5vw, 16px);
        min-width: 160px;
    }
    
    .medical-icon {
        font-size: 14px;
    }
}

/* Ландшафтная ориентация на мобильных */
@media (max-width: 768px) and (orientation: landscape) {
    body {
        align-items: center;
        padding: 10px;
    }
    
    .wrap {
        min-height: auto;
        padding: 25px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .header-top {
        margin-bottom: 15px;
    }
    
    .header-bottom {
        margin-top: 15px;
    }
    
    .title {
        margin-bottom: 10px;
    }
    
    .subtitle {
        margin-bottom: 12px;
    }
    
    .description {
        margin-bottom: 15px;
    }
}