/* main/static/main/css/template.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0b0d15;
    color: #e4e7f0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

a {
    color: #6c8cff;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #a0b8ff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ===== HEADER ===== */
header {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 13, 21, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;  /* Запрещаем перенос */
    gap: 12px;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    white-space: nowrap;  /* Логотип не переносится */
}

.logo span {
    color: #6c8cff;
}

.logo small {
    font-size: 13px;
    font-weight: 400;
    color: #8892b0;
    margin-left: 4px;
}

nav {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: nowrap;  /* Запрещаем перенос пунктов меню */
}

nav a {
    color: #ccd6f6;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;  /* Текст не переносится */
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #6c8cff;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.nav-cta {
    background: #6c8cff;
    color: #0b0d15 !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.3s, transform 0.2s;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #8aa6ff;
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none !important;
}
/* ===== MAIN CONTENT ===== */
main {
    flex: 1;
    padding: 40px 0 60px;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 32px 0;
    text-align: center;
    color: #8892b0;
    font-size: 14px;
    background: rgba(11, 13, 21, 0.6);
}

footer .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

footer .social-links a {
    color: #8892b0;
    font-size: 20px;
    transition: color 0.3s, transform 0.2s;
}

footer .social-links a:hover {
    color: #6c8cff;
    transform: translateY(-3px);
}
/* ===== АДАПТИВ ДЛЯ ТЕЛЕФОНОВ ===== */
@media (max-width: 768px) {
    header {
        padding: 12px 0;
    }

    .header-inner {
        gap: 8px;
    }

    .logo {
        font-size: 16px;
    }

    .logo small {
        font-size: 11px;
        margin-left: 2px;
    }

    nav {
        gap: 10px;
    }

    nav a {
        font-size: 12px;
        padding: 4px 0;
    }

    .nav-cta {
        padding: 6px 12px;
        font-size: 11px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 0;
    }

    .header-inner {
        gap: 6px;
    }

    .logo {
        font-size: 14px;
    }

    .logo small {
        font-size: 10px;
        margin-left: 2px;
    }

    nav {
        gap: 8px;
    }

    nav a {
        font-size: 10px;
        padding: 4px 0;
        letter-spacing: 0.2px;
    }

    .nav-cta {
        padding: 5px 10px;
        font-size: 10px;
        border-radius: 5px;
    }
}

/* Для очень маленьких экранов (менее 400px) */
@media (max-width: 400px) {
    .header-inner {
        gap: 4px;
    }

    .logo {
        font-size: 12px;
    }

    .logo small {
        display: none;  /* Скрываем "Django" на самых маленьких */
    }

    nav {
        gap: 6px;
    }

    nav a {
        font-size: 9px;
        padding: 3px 0;
    }

    .nav-cta {
        padding: 4px 8px;
        font-size: 9px;
        border-radius: 4px;
    }
}

