/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* Hero-блок (параллакс) */
.parallax {
    background-image: url('images/hero-bg.jpg');
    background-position: center 20%;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    width: 100%;
    min-height: 90vh;
    height: auto;
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
        min-height: 60vh;
        background-position: center 25%;
    }
}

@media (min-width: 769px) {
    .parallax {
        background-attachment: fixed;
        min-height: 90vh;
    }
}

/* Логотип в hero-блоке (справа) */
.parallax .logo {
    position: absolute;
    top: 20px;
    right: 20px;
    left: auto;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.parallax .logo img {
    max-width: 466px;
    width: auto;
    height: auto;
}

.parallax .logo.hide {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 768px) {
    .parallax .logo img {
        max-width: 280px;
    }
}

/* Sticky-бар (полупрозрачная полоска) */
.sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 5px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-bar.visible {
    transform: translateY(0);
}

.sticky-bar .logo img {
    max-width: 120px;
    height: auto;
}

@media (max-width: 768px) {
    .sticky-bar .logo img {
        max-width: 100px;
    }
    .sticky-bar {
        padding: 3px 10px;
    }
}

/* Остальные стили (параллакс-контент, форма, filmroll) без изменений */
.parallax-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .parallax-content {
        font-size: 1rem;
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 8px 12px;
    }
}

/* Блок с формой на фоне neuroback.jpg (с параллаксом) */
.form-background {
    background-image: url('images/neuroback.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 60px 0;
    position: relative;
}

@media (min-width: 769px) {
    .form-background {
        background-attachment: fixed;
        padding: 80px 0;
    }
}

.form-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.form-background .container {
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
}

.dropzone {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border 0.3s;
}

.dropzone.dragover {
    border-color: #007bff;
    background: #f0f8ff;
}

.file-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.file-item {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.file-item button {
    background: none;
    border: none;
    cursor: pointer;
    color: #dc3545;
    font-weight: bold;
}

button[type="submit"] {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"]:hover {
    background: #0056b3;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Filmroll footer */
.filmroll-footer {
    background: #000;
    padding: 20px 0;
    overflow: hidden;
    position: relative;
    margin-top: 40px;
}

.filmroll-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.filmroll {
    display: inline-flex;
    animation: scrollFilm 30s linear infinite;
}

.filmroll-item {
    display: inline-block;
    margin: 0 5px;
    width: 180px;
    height: 180px;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s;
}

.filmroll-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.filmroll-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

@keyframes scrollFilm {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.filmroll-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.filmroll-overlay a {
    pointer-events: auto;
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.filmroll-overlay a:hover {
    background: #0056b3;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .filmroll-item {
        width: 120px;
        height: 120px;
        margin: 0 3px;
    }
    .filmroll-overlay a {
        padding: 8px 16px;
        font-size: 1rem;
    }
}