html, body {
    height: 100%; /* Устанавливаем высоту на 100% для html и body */
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Распределяем элементы по вертикали */
    background: url('background.gif') no-repeat center center/cover; /* Устанавливаем фон */
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #fff;
    text-align: center;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    background: transparent; /* Убираем монотонный фон */
    overflow: hidden;
}

.hero {
    height: 100vh;
    background: transparent; /* Убираем монотонный фон */
    position: relative;
    overflow: hidden;
}

.hero-card {
    z-index: 1;
    max-width: 720px;
    width: 100%;
    padding: 40px;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон для читаемости текста */
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.08);
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(0.95) saturate(0.9);
}

.subtitle {
    color: #d1d1d1;
    margin-bottom: 18px;
}

.btn {
    cursor: pointer;
    border: none;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    display: inline-block;
    margin: 10px;
    background: linear-gradient(135deg, #00bcd4, #008cba);
    color: #fff;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.5);
}

.btn:hover {
    background: linear-gradient(135deg, #ff4081, #e91e63);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 64, 129, 0.5);
}

.btn-next {
    margin-top: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg,#ff4081,#e91e63);
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(255, 64, 129, 0.5);
}

.btn-next:hover {
    background: linear-gradient(135deg, #00bcd4, #008cba);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
}

.btn-back {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 8px 12px;
    position: absolute;
    left: 20px;
    top: 20px;
}

section {
    margin: 40px 0;
    padding: 20px;
    animation: slideIn 1.5s ease-in-out;
}

footer {
    margin-top: 20px;
    font-size: 0.9em;
    background: transparent; /* Убираем фон у footer */
    padding: 10px 0;
    color: #d1d1d1;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-buttons a {
    font-size: 1.2em;
    padding: 10px 20px;
    border: 2px solid #00bcd4;
    border-radius: 5px;
    transition: all 0.3s;
}

.social-buttons a:hover {
    background: #00bcd4;
    color: #fff;
    transform: translateY(-5px);
}

.info-header {
    position: relative;
    padding: 28px 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон */
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.info-main {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    flex-grow: 1; /* Заставляем main занимать оставшееся пространство */
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.profile-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.1);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(10%) contrast(0.95);
}

.contact-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
}

.contact-list p {
    margin: 6px 0 2px 0;
}

/* кнопки-ссылки в списке контактов */
.link-btn {
    display: inline-block;
    padding: 10px 16px;
    background: linear-gradient(135deg,#0fd2e6,#008cba);
    color: #071624;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 26px rgba(0,140,186,0.12);
    transition: transform 0.15s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.link-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0,140,186,0.18);
}

/* кнопка-копия выглядит как обычная link-btn */
.copy-btn {
    background: linear-gradient(135deg,#ffd166,#ff8a00);
    color: #071624;
}

.contact-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.5); /* Полупрозрачный фон */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 14px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
}

.contact-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center; /* Центрируем кнопки */
}

/* небольшой стиль для значения контакта */
.contact-value {
    color: #dfeff3;
    font-weight: 600;
    background: rgba(0,0,0,0.15);
    padding: 8px 12px;
    border-radius: 8px;
    display: none; /* Скрываем текстовые значения ссылок */
}

/* кнопка действия (копировать/открыть) */
.action-btn {
    display: inline-block;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff4081, #e91e63);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.5);
}

.action-btn:hover {
    background: linear-gradient(135deg, #00bcd4, #008cba);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.5);
}

.info-footer {
    padding: 20px 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.7); /* Полупрозрачный фон */
    color: #d1d1d1;
    font-size: 0.9rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}

/* Медиазапрос для экранов шириной до 768px */
@media (max-width: 768px) {
    .info-header {
        font-size: 1.5rem; /* Уменьшаем размер заголовка */
        padding: 20px;
    }

    .profile-photo {
        width: 150px; /* Уменьшаем размер фото */
        height: 150px;
    }

    .contact-list {
        grid-template-columns: 1fr; /* Кнопки в одну колонку */
        gap: 15px;
    }

    .action-btn {
        font-size: 0.9rem; /* Уменьшаем размер текста кнопок */
        padding: 10px 15px;
    }

    .btn-back {
        font-size: 0.9rem; /* Уменьшаем размер кнопки "Back" */
        padding: 6px 10px;
    }

    .info-footer {
        font-size: 0.8rem; /* Уменьшаем размер текста в футере */
        padding: 15px 0;
    }
}

/* Медиазапрос для экранов шириной до 480px */
@media (max-width: 480px) {
    .info-header {
        font-size: 1.2rem; /* Ещё больше уменьшаем заголовок */
    }

    .profile-photo {
        width: 120px; /* Ещё меньшее фото */
        height: 120px;
    }

    .action-btn {
        font-size: 0.8rem; /* Ещё меньше текст кнопок */
        padding: 8px 12px;
    }

    .btn-back {
        font-size: 0.8rem; /* Ещё меньше кнопка "Back" */
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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