/* Слой для фона */
.background-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: -1;
}

.background-img {
    width: 1920px;
    height: 1080px;
    display: block;
}

/* Контейнер для контента с прокруткой */
.content-wrapper {
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Общие стили */
body {
    font-family: Arial, sans-serif;
    color: #fff;
    margin: 0;
    padding: 0;
    background-color: #1a1a1a;
    min-height: 100vh;
    overflow-x: hidden;
}

.header-text {
    text-align: center;
    padding: 20px 0;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-text h1 {
    font-size: 2.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    vertical-align: middle;
}

.intro {
    text-align: center;
    max-width: 800px;
    padding: 20px;
    margin: 0 auto;
}

.intro h2 {
    font-size: 1.8rem;
}

.intro p {
    font-size: 1.1rem;
    color: #ccc;
}

.seo-only {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

#last-updated-container {
    text-align: center;
    padding: 10px 0;
    color: #888;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
    flex-grow: 1;
}

.content-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow-x: hidden;
    flex-grow: 1;
}

.profile-card {
    background-color: #fff;
    color: #000;
    border-radius: 25px;
    margin: 10px 0;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
    cursor: pointer;
    box-sizing: border-box;
}

.profile-card:hover {
    transform: scale(1.02);
}

.profile-content {
    display: flex;
    align-items: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.profile-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.profile-content h2 {
    font-size: 1.2rem;
    margin: 0;
    flex-grow: 1;
}

.of-link {
    position: absolute;
    right: 15px;
}

.of-icon {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    filter: invert(0);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 800px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    box-sizing: border-box;
    z-index: 20;
}

.cookie-banner p {
    margin: 0;
    font-size: 1rem;
    flex: 1 1 auto;
    max-width: 100%;
}

.cookie-banner a {
    color: #66b3ff;
    text-decoration: none;
}

.cookie-banner button {
    background-color: #66b3ff;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    flex: 0 0 auto;
}

.cookie-banner button:hover {
    background-color: #4d94ff;
}

#revoke-cookies {
    background-color: #444;
    color: #e6e6e6;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 10px;
    display: none;
}

#revoke-cookies:hover {
    background-color: #555;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #333;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

footer a, footer button {
    color: #e6e6e6;
    text-decoration: none;
    padding: 8px 15px;
    background-color: #444;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

footer a:hover, footer button:hover {
    background-color: #555;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

footer button {
    border: none;
    cursor: pointer;
}

footer p {
    margin: 10px 0;
    color: #888;
    width: 100%;
}

.contacts {
    display: none;
    background-color: #444;
    padding: 10px;
    border-radius: 5px;
    box-sizing: border-box; /* Учитываем padding в ширине */
    z-index: 15; /* Выше контента, но ниже cookie-баннера */
}

.contacts.active {
    display: block;
}

.contacts a {
    color: #66b3ff;
    text-decoration: none;
}

.contacts a:hover {
    color: #4d94ff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header-text h1 {
        font-size: 2rem;
    }

    .header-icon {
        width: 35px;
        height: 35px;
    }

    .intro h2 {
        font-size: 1.5rem;
    }

    .profile-content h2 {
        font-size: 1rem;
    }

    .profile-img {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }

    .of-icon {
        width: 35px;
        height: 35px;
    }

    .profile-content {
        padding: 15px;
    }

    .profile-card {
        width: 90%;
        max-width: 90%;
        margin: 10px auto;
        border-radius: 25px;
    }

    footer a, footer button {
        margin: 5px 10px;
        padding: 6px 12px;
    }

    #revoke-cookies {
        padding: 6px 12px;
    }

    .content-wrapper {
        min-height: 100vh;
        overflow-x: hidden;
    }

    .background-layer {
        top: 0;
        left: 0;
    }

    .background-img {
        width: 100%; /* Сжимаем фон для телефонов */
        height: auto;
    }

    .content-inner {
        max-width: 100%;
        overflow-x: hidden;
        flex-grow: 1;
    }

    main {
        padding: 20px 0;
        max-width: 100%;
        overflow-x: hidden;
    }

    .header-text {
        padding: 10px 0;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .cookie-banner {
        padding: 10px;
        gap: 8px;
        max-width: 100%;
        left: 0;
        transform: none;
    }

    .cookie-banner p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .cookie-banner button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    /* Дополнительные стили для .contacts на мобильных */
    .contacts {
        width: 90%; /* Ограничиваем ширину */
        max-width: 90%; /* Не шире экрана */
        margin: 0 auto; /* Центрируем */
        left: 5%; /* Отступ от левого края */
        transform: translateX(0); /* Убираем смещение */
    }
}