/* Базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, 'Apple Color Emoji','Segoe UI Emoji';
}

body {
    background: #0f1115;
    color: #eaeef2;
    line-height: 1.6;
}

a {
    color: #9ecbff;
    text-decoration: none;
}

a:hover {
    opacity: 0.9;
}

/* Header и footer */
header, footer {
    border-color: #2a2f3a;
}

header {
    position: sticky;
    top: 0;
    background: rgba(15,17,21,0.9);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid #2a2f3a;
    z-index: 10;
}

nav {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

nav .logo {
    display: flex;
    flex-direction: column;
}

nav .logo a {
    font-weight: 600;
    font-size: 20px;
    color: #eaeef2;
    text-decoration: none;
}

nav .contacts {
    font-size: 14px;
    color: #a9b1bc;
    margin-top: 4px;
}

nav .links {
    display: flex;
    gap: 16px;
}

nav .links a {
    color: #eaeef2;
    text-decoration: none;
}

nav .links a:hover {
    opacity: 0.8;
}

nav .socials {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

nav .socials a {
    color: #9ecbff;
    text-decoration: none;
}

nav .socials a:hover {
    opacity: 0.8;
}

/* Бургер-меню */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    margin-top: 8px;
}

.burger span {
    display: block;
    height: 3px;
    background: #eaeef2;
    border-radius: 2px;
}

/* Main */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

h1 {
    font-size: 40px;
    line-height: 1.1;
    margin: 0 0 12px;
}

h2 {
    font-size: 28px;
    margin: 24px 0 12px;
}

p.lead {
    color: #a9b1bc;
    max-width: 720px;
}

button, .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff0d;
    border: 1px solid #2a2f3a;
    color: #eaeef2;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
}

button.primary, .btn.primary {
    background: #111827;
    border-color: #374151;
}

/* Секции и сетка */
section {
    margin: 28px 0;
}

.grid {
    display: grid;
    gap: 12px;
}

.grid.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #0b0d11;
    border: 1px solid #2a2f3a;
    border-radius: 14px;
    overflow: hidden;
    padding: 14px;
}

.muted {
    color: #a9b1bc;
    margin-top: 6px;
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

.chip {
    display: inline-block;
    background: #1f2937;
    color: #eaeef2;
    border-radius: 999px;
    padding: 6px 10px;
    margin-right: 6px;
    margin-bottom: 6px;
    font-size: 12px;
}

.hero-box {
    height: 220px;
    border-radius: 14px;
    background: linear-gradient(135deg,#243b55,#141e30);
    border: 1px solid #2a2f3a;
}

/* Footer */
footer {
    margin-top: 48px;
    background: #0b0d11;
    border-top: 1px solid #2a2f3a;
}

footer .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

/* Изображения и видео */
img.resp, video.resp {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid #2a2f3a;
}

video.resp {
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card video.resp:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Адаптив и анимация бургер-меню */
@media (max-width: 768px) {
    header { flex-direction: column; align-items: flex-start; position: relative; }

    nav .links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #0f1115;
        padding: 16px;
        border-top: 1px solid #2a2f3a;
        z-index: 100;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    nav .links.active {
        max-height: 500px;
        opacity: 1;
    }

    .burger { display: flex; }
}

