* {
    padding: 0px;
    margin: 0px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@font-face {
  font-family: 'CustomFont';
  src: url('src/font/Ubuntu-Bold.ttf') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

body {
    background: linear-gradient(to bottom, #500000 30%, #000000 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: whitesmoke;
    font-family: "CustomFont";
    display: flex;
    flex-direction: column;
}

/* ===== Навигация ===== */

nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border: 1px red solid;
    border-radius: 20px;
    background-color: #580101;
    box-shadow: 0 4px 20px rgba(7, 7, 7, 0.4);
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 30px auto;
}

nav .h1 h1 {
    font-size: 22px;
}

nav .tag {
    color: red;
    border: 2px red solid;
    border-radius: 50px;
    padding: 8px 10px;
    white-space: nowrap;
}

ul {
    display: flex;
    list-style: none;
    padding: 10px;
    gap: 10px;
}

a {
    text-decoration: none;
    background-color: rgba(12, 12, 12, 0.425);
    padding: 7px;
    border-radius: 30px;
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    color: whitesmoke;
}

a:hover {
    background-color: rgba(5, 5, 5, 0.425);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 12px 30px rgba(0, 50, 100, 0.3), 
                inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.nav-toggle,
.burger {
    display: none;
}

/* ===== Контент ===== */

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px 40px;
    gap: 30px;
}

.section-title {
    font-size: clamp(22px, 3.5vw, 30px);
    padding: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ===== Герой-блок ===== */

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    max-width: 900px;
    padding: 50px 30px;
    background: rgba(8, 8, 8, 0.603);
    border: 1px solid rgba(255, 0, 0, 0.45);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.hero-badge {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ff6b6b;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 0, 0, 0.5);
    padding: 7px 16px;
    border-radius: 30px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.hero h1 {
    font-size: clamp(28px, 5vw, 46px);
    text-shadow: 0 0 25px rgba(255, 0, 0, 0.35);
}

.hero p {
    max-width: 640px;
    font-size: 17px;
    line-height: 1.6;
    color: #e9e9e9;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 13px 26px;
    font-size: 16px;
    border-radius: 40px;
    background: rgba(12, 12, 12, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary {
    font-weight: bold;
    background: linear-gradient(135deg, #c1121f, #7a0000);
    border: 1px solid #ff4d4d;
    box-shadow: 0 8px 25px rgba(193, 18, 31, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e01826, #930000);
}

/* ===== Статистика ===== */

.stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    max-width: 900px;
}

.stat {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 15px;
    background: rgba(8, 8, 8, 0.603);
    border: 1px solid rgba(255, 0, 0, 0.25);
    border-radius: 14px;
}

.stat .num {
    font-size: 40px;
    font-weight: bold;
    color: #ff5252;
    text-shadow: 0 0 18px rgba(255, 0, 0, 0.4);
}

.stat-label {
    font-size: 14px;
    color: #d8d8d8;
}

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

.about {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 10px;
}

.card {
    flex: 1 1 240px;
    max-width: 320px;
    padding: 24px 20px;
    background-color: rgba(8, 8, 8, 0.603);
    border: 1px solid transparent;
    border-radius: 14px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover,
.js .card.reveal.visible:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.card .icon {
    display: block;
    font-size: 34px;
    margin-bottom: 10px;
}

.card h3 {
    color: #ff6b6b;
    margin-bottom: 10px;
}

/* ===== Шаги вступления ===== */

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
    padding: 10px;
}

.step {
    flex: 1 1 250px;
    max-width: 320px;
    padding: 26px 20px;
    background: rgba(8, 8, 8, 0.603);
    border: 1px solid rgba(255, 0, 0, 0.25);
    border-radius: 14px;
    transition: transform 0.3s ease, border 0.3s ease;
}

.step:hover {
    transform: translateY(-6px);
    border: 2px solid rgba(255, 0, 0, 0.473);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 14px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
    background: linear-gradient(135deg, #c1121f, #7a0000);
    border: 1px solid #ff4d4d;
}

.step h3 {
    margin-bottom: 10px;
}

/* ===== Баннер-призыв ===== */

.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 900px;
    padding: 40px 25px;
    background: linear-gradient(135deg, rgba(120, 0, 0, 0.75), rgba(20, 0, 0, 0.85));
    border: 1px solid rgba(255, 0, 0, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.cta p {
    color: #f0dede;
}

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

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.55);
    text-align: center;
}

footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

footer p {
    color: #bdbdbd;
    font-size: 14px;
}

/* ===== Анимация появления ===== */

.js .reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Адаптив ===== */

@media (max-width: 900px) {
    .card,
    .step {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    nav {
        margin: 15px auto;
        width: calc(100% - 24px);
        padding: 15px;
        border-radius: 16px;
    }

    nav .h1 h1 {
        font-size: 17px;
    }

    nav .tag {
        padding: 5px 8px;
    }

    .burger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 11px 12px;
        cursor: pointer;
        background: rgba(12, 12, 12, 0.425);
        border-radius: 12px;
    }

    .burger span {
        display: block;
        width: 24px;
        height: 3px;
        border-radius: 3px;
        background: whitesmoke;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 8px;
        padding: 10px 0 0;
    }

    nav ul li a {
        display: block;
        padding: 12px 10px;
        font-size: 15px;
    }

    .nav-toggle:checked ~ ul {
        display: flex;
    }

    .nav-toggle:checked ~ .burger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle:checked ~ .burger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked ~ .burger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .content {
        padding: 10px 14px 30px;
        gap: 24px;
    }

    .hero {
        padding: 35px 20px;
    }

    .hero p {
        font-size: 15px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 14px 20px;
    }

    a:hover {
        transform: none;
    }
}

@media (max-width: 480px) {
    .about,
    .steps {
        padding: 0;
    }

    .stat {
        flex-basis: 100%;
    }

    .stat .num {
        font-size: 34px;
    }

    .hero {
        padding: 30px 16px;
    }

    .cta {
        padding: 30px 16px;
    }
}
