/* Общие стили */
:root {
    --primary-gradient: linear-gradient(135deg, #1e1e2f, #2c2c40);
    --secondary-gradient: linear-gradient(135deg, #2c3e50, #34495e);
    --accent-gradient: linear-gradient(135deg, #3498db, #2980b9);
    --warning-gradient: linear-gradient(135deg, #ff4d4d, #e74c3c);
    --text-color: #ecf0f1;
    --shadow: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background: var(--primary-gradient);
    color: var(--text-color);
    line-height: 1.8;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

/* Шапка сайта */
header {
    background: var(--secondary-gradient);
    color: var(--text-color);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 6px var(--shadow);
    width: 100%;
    max-width: 400px;
}

header h1 {
    margin: 0;
    font-size: clamp(1.5em, 4vw, 2em);
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

header p {
    margin: 10px 0 0;
    font-size: clamp(0.9em, 3vw, 1em);
    font-style: italic;
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Основной контейнер */
.container {
    max-width: 400px;
    width: 100%;
    margin: 40px auto;
    padding: 40px 20px;
    background: linear-gradient(135deg, #27273a, #31314b);
    border-radius: 12px;
    box-shadow: 0 6px 10px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.container h2 {
    color: var(--text-color);
    font-size: clamp(1.2em, 3vw, 1.5em);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--text-color);
    padding-bottom: 10px;
    position: relative;
}

.container h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #3498db;
}

.container p {
    line-height: 2;
    margin-bottom: 20px;
    text-align: justify;
}

/* Списки шагов */
.steps ol {
    padding-left: 0;
    counter-reset: step-counter;
    text-align: left; /* Убираем центрирование текста */
    list-style: none; /* Убираем стандартные маркеры списка */
    margin: 0; /* Убираем отступы по умолчанию */
}

.steps li {
    margin-bottom: 15px; /* Расстояние между элементами */
    position: relative;
    padding-left: 30px; /* Отступ слева для текста */
    font-size: clamp(0.9em, 2.5vw, 1em);
    color: var(--text-color);
    display: block; /* Выстраиваем элементы вертикально */
    text-align: left; /* Текст выравнивается по левому краю */
}

.steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0; /* Позиционируем номер слева */
    top: 0;
    width: 25px;
    height: 25px;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8em;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Предупреждение */
.warning {
    background: var(--warning-gradient);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #c0392b;
    font-size: clamp(0.9em, 2.5vw, 1em);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.warning strong {
    color: #fff;
}

/* Кнопка */
.btn {
    display: inline-block;
    background: var(--accent-gradient);
    color: #fff;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-size: clamp(0.9em, 3vw, 1.1em);
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px var(--shadow);
    margin-top: 30px;
}

.btn:hover {
    background: var(--accent-gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 10px var(--shadow);
}

/* Футер */
footer {
    text-align: center;
    padding: 20px;
    background: var(--secondary-gradient);
    color: var(--text-color);
    margin-top: 40px;
    font-size: clamp(0.8em, 2.5vw, 0.9em);
    box-shadow: 0 -4px 6px var(--shadow);
    width: 100%;
    max-width: 400px;
}

footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 768px) {
    header h1 {
        font-size: clamp(1.3em, 4vw, 1.8em);
    }

    header p {
        font-size: clamp(0.8em, 3vw, 0.9em);
    }

    .container {
        padding: 30px 15px;
    }

    .container h2 {
        font-size: clamp(1em, 3vw, 1.3em);
    }

    .btn {
        padding: 10px 20px;
        font-size: clamp(0.8em, 3vw, 0.9em);
    }
}
