body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Lato', sans-serif;
}

.container {
    position: relative;
    height: 100%;
    width: 100%;
}

.background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.background-image.active {
    opacity: 1;
}

.header-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    padding: 15px 30px;
}

.logo {
    max-width: 80px;
    margin-right: 20px;
}

.header-text {
    color: white;
    font-size: 2em;
    font-weight: 300;
    flex-grow: 1;
    text-align: center;
    letter-spacing: 1px;
}

.contact-left, .contact-right {
    color: white;
    font-size: 1.2em;
    text-shadow: 1px 1px 2px black;
}

.contact-left a, .contact-right a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid white;
}

.contact-left a:hover, .contact-right a:hover {
    color: #ccc;
    border-bottom: 1px solid #ccc;
}

.text-container {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 10;
    color: white;
    font-size: 1.5em;
    text-shadow: 1px 1px 2px black;
}

.address {
    font-size: 1em;
}

.center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3em;
    text-align: center;
    text-shadow: 1px 1px 2px black;
    z-index: 10;
}

.controls {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .header-text {
        font-size: 1.5em;
    }

    .contact-left, .contact-right {
        font-size: 1em;
    }

    .address {
        font-size: 1em;
    }

    .center-text {
        font-size: 2em;
    }

    .controls button {
        font-size: 1.5em;
        padding: 5px 10px;
    }

    .text-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-left, .contact-right {
        text-align: center;
    }

    .contact-left, .contact-right, .address {
        font-size: 1em;
        margin: 5px 0;
    }
}
