body {
    background-color: #121212;
    color: #fff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

.header-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background-color: #938d85;
}

/* Ліворуч: фото та ім'я */
.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.header-left img.thumb {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.header-left h1 {
    margin-top: 15px;
    font-size: 24px;
    text-align: center;
}

/* Центр: відео */
.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-center iframe {
    width: 600px;
    height: 340px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

/* Права колонка: кнопки */
.header-right {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}
.header-right .btn-purple {
    display: block;
    width: 180px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background-color: #6b0b0b;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}
.header-right .btn-purple:hover {
    background-color: #610a0a;
    transform: scale(1.05);
}
.btn-purple {
    display: block;
    width: 180px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background-color: #6b0b0b;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-purple:hover {
    background-color: #610a0a;
    transform: scale(1.05);
}
/* Основний контент */
.main-content {
    padding: 20px;
    background-color: #111;
    color: #fff;
}

/* Footer */
footer {
    background-color: #6b0b0b;
    text-align: center;
    padding: 15px;
    font-size: 14px;
}

/* Контакти */
.contacts {
    width: fit-content;
    margin: 0 auto;
    text-align: left;
}
.contact-item {
    display: flex;
    align-items: center;
    margin: 12px 0;
}

/* Іконки */
.contact-item .icon {
    width: 3em;
    height: 3em;
    margin-right: 12px;
    object-fit: contain;
    vertical-align: middle;
}
.contacts h2 {
    color: white;
    margin: 0;
}
.contacts a {
    color: #888;
    text-decoration: none;
}
.contacts a:hover {
    color: #610a0a;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 20px;
}
.gallery img.thumb,
.gallery video.thumb {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
}

/* Upload form */
.upload-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 20px auto;
    position: relative;
}
.upload-form .input-icon {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.upload-form .input-icon img {
    position: absolute;
    left: 10px;
    width: 2.5em;
    height: 2.5em;
    opacity: 0.8;
}
.upload-form .input-icon input {
    width: 100%;
    padding: 10px 10px 10px 3.5em;
    border: none;
    border-radius: 8px;
    background-color: #222;
    color: #fff;
    font-size: 16px;
}
.upload-form .input-icon input:hover {
    background-color: #333;
    transform: scale(1.03);
    box-shadow: 0 2px 8px rgba(255,255,255,0.2);
}
.upload-form .input-icon input:focus + img {
    transform: scale(1.2);
    opacity: 1;
}
.upload-form button {
    padding: 12px;
    border-radius: 8px;
    border: none;
    background-color: #6b0b0b;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
.upload-form button:hover {
    background-color: #610a0a;
    transform: scale(1.05);
}

/* Адаптивність */
@media (max-width: 768px) {
    .header-grid { flex-direction: column; align-items: center; }
    .header-left img.thumb { width: 70%; height: auto; }
    .header-center iframe { width: 90%; height: auto; }
    .header-right .btn-purple { width: 80%; }
    .contacts { width: 90%; }
}
