.header {
    background-image: url(../image/background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    min-height: 100vh;
    inline-size: 100%;
}

.header-titles {
    display: flex;
    flex-direction: column;
    justify-content: center;   
    align-items: center;
    gap: 24px;
    flex: 1 0 auto;
}

.header::before {
    content: '';
    background-color: rgb(0 0 0 / 0.5);
    position: absolute;
    top:0; 
    left:0; 
    width:100%;
    height:100%
}

.header-title,
.header-subtitle,
.header-button {
    position: relative;
    z-index: 2;
}

.header-title {
    text-align: center;
    color: var(--color-h1-page);
    font-family: 'Montserrat', Arial, serif;
    font-size: var(--size-h1-page);
    font-weight: var(--weight-h1-page);
    line-height: 1.2;
}

.header-subtitle {
    color: var(--color-h2-page);
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: var(--size-h2-page);
    font-weight: var(--weight-h2-page);
    line-height: 1.3;
}

.header-button {
    font-family: 'OpenSans', Arial, sans-serif;
    font-size: var(--size-text);
    font-weight: var(--weight-text);
    line-height: 120%;
    text-align: center;
    border: none;
    border-radius: 10px;
    color: var(--color-text);
    background-color: var(--background-color);
    padding: 20px 32px;
    margin-top: 8px;
    cursor: pointer;
}

.header-button:hover {
    background-color: var(--background-color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-button:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    background-color: var(--background-color-accent);
}

.header-button:active {
    transform: translateY(0px);
    background-color: #e9ecef;
    transition: all 0.05s ease;
}

@media (max-width: 1024px) and (min-width: 768px) {
    .header-titles {
        gap: 20px;
        padding: 0 30px;
    }
    
    .header-button {
        padding: 16px 28px;
    }
}

@media (max-width: 768px) {
    .header-titles {
        gap: 16px;
        padding: 0 20px;
    }
    
    .header-button {
        padding: 14px 24px;
        font-size: 14px;
    }
}