/* =========================================
   КИНО-ВЕЧЕР — ОБЩИЙ ДИЗАЙН
   ========================================= */

:root {
    /* Основные цвета */
    --bg-primary: #101014;
    --bg-card: #1b1b22;
    --bg-input: #25252e;
    --bg-secondary: #30303c;

    /* Красные акценты */
    --accent: #c83e48;
    --accent-hover: #e0525d;
    --accent-soft: #291d23;

    /* Текст */
    --text-primary: #f5f5f7;
    --text-secondary: #aaaab5;
    --text-muted: #92929f;

    /* Границы */
    --border: #30303b;
    --border-input: #40404d;

    /* Размеры */
    --radius-small: 8px;
    --radius-medium: 10px;
    --radius-large: 18px;
}

/* Базовые элементы */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px 20px;
    font-family: Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* Заголовки */

h1,
h2,
h3 {
    line-height: 1.3;
}

h1 {
    font-size: 34px;
}

h2 {
    font-size: 23px;
}

/* Кнопки */

.btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-medium);
    background: var(--accent);
    color: white;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-secondary);
}

.btn-secondary:hover {
    background: #414150;
}

.btn:disabled,
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Карточки */

.card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-large);
    background: var(--bg-card);
}

/* Поля ввода */

.form-field {
    margin-bottom: 24px;
}

.form-field label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: bold;
}

.form-field input:not([type="checkbox"]),
.form-field textarea,
.form-field select {
    width: 100%;
    max-width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-medium);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 62, 72, 0.15);
}

/* Вспомогательный текст */

.muted {
    color: var(--text-secondary);
}

.help-text {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

/* Сообщения */

.message {
    margin-bottom: 15px;
    padding: 14px 18px;
    border-radius: var(--radius-medium);
    background: #203329;
    color: #d5f5df;
}

.error {
    margin-bottom: 15px;
    padding: 14px 18px;
    border: 1px solid #773d44;
    border-radius: var(--radius-medium);
    background: #382126;
    color: #ffb7bd;
}

.errorlist {
    color: #ff9da6;
}

/* Адаптация для телефонов */

@media (max-width: 650px) {
    body {
        padding: 18px 12px;
    }

    h1 {
        font-size: 27px;
    }

    h2 {
        font-size: 21px;
    }
}