/* ============================================
   БАЗОВЫЕ СТИЛИ
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #faf8ff;
    color: #131b2e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   ЦВЕТОВАЯ СИСТЕМА (Material Design)
   ============================================ */
:root {
    /* Primary */
    --primary: #00236f;
    --on-primary: #ffffff;
    --primary-container: #1e3a8a;
    --on-primary-container: #90a8ff;
    --primary-fixed: #dce1ff;
    --primary-fixed-dim: #b6c4ff;
    --on-primary-fixed: #00164e;
    --on-primary-fixed-variant: #264191;

    /* Secondary */
    --secondary: #0051d5;
    --on-secondary: #ffffff;
    --secondary-container: #316bf3;
    --on-secondary-container: #fefcff;
    --secondary-fixed: #dbe1ff;
    --secondary-fixed-dim: #b4c5ff;
    --on-secondary-fixed: #00174b;
    --on-secondary-fixed-variant: #003ea8;

    /* Tertiary */
    --tertiary: #003211;
    --on-tertiary: #ffffff;
    --tertiary-container: #004b1d;
    --on-tertiary-container: #44c365;
    --tertiary-fixed: #7ffc97;
    --tertiary-fixed-dim: #62df7d;
    --on-tertiary-fixed: #002109;
    --on-tertiary-fixed-variant: #005320;

    /* Error */
    --error: #ba1a1a;
    --on-error: #ffffff;
    --error-container: #ffdad6;
    --on-error-container: #93000a;

    /* Surface */
    --surface: #faf8ff;
    --surface-dim: #d2d9f4;
    --surface-bright: #faf8ff;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f2f3ff;
    --surface-container: #eaedff;
    --surface-container-high: #e2e7ff;
    --surface-container-highest: #dae2fd;
    --on-surface: #131b2e;
    --on-surface-variant: #444651;

    /* Inverse */
    --inverse-surface: #283044;
    --inverse-on-surface: #eef0ff;
    --inverse-primary: #b6c4ff;

    /* Outline */
    --outline: #757682;
    --outline-variant: #c5c5d3;

    /* Tint */
    --surface-tint: #4059aa;

    /* Background */
    --background: #faf8ff;
    --on-background: #131b2e;
    --surface-variant: #dae2fd;
}

/* ============================================
   ТИПОГРАФИЯ
   ============================================ */
.display-lg {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    letter-spacing: -0.02em;
}

.headline-lg {
    font-family: 'Inter', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: -0.01em;
}

.headline-lg-mobile {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.headline-md {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
}

.body-lg {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
}

.body-md {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
}

.label-md {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.05em;
}

.caption {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
}

/* ============================================
   КОМПОНЕНТЫ
   ============================================ */
/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* Кнопки */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: var(--on-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.05em;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    height: 48px;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-container);
    transform: scale(0.98);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.05em;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid var(--secondary);
    cursor: pointer;
    transition: background 0.2s ease;
    height: 48px;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--surface-container-low);
}

.btn-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #16a34a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.05em;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    height: 48px;
    text-decoration: none;
}

.btn-success:hover {
    background: #15803d;
}

/* Карточки */
.card {
    background: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1);
}

/* Чипы/Бейджи */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.05em;
    background: var(--surface-container-high);
    color: var(--on-surface);
}

.chip-primary {
    background: var(--primary-container);
    color: var(--on-primary-container);
}

.chip-success {
    background: var(--tertiary-container);
    color: var(--on-tertiary-container);
}

/* ============================================
   УТИЛИТЫ (из твоего кода)
   ============================================ */
.full-width {
    width: 100%;
}

.no-shadows {
    box-shadow: none;
}

.flat {
    border: none;
}

/* Mega menu */
.mega-menu {
    display: none;
}

.group:hover .mega-menu {
    display: block;
}

/* ============================================
   СТРАНИЦА 404
   ============================================ */
.error-404-number {
    font-size: 120px;
    font-weight: 700;
    color: rgba(0, 35, 111, 0.1);
    line-height: 1;
    user-select: none;
}

@media (min-width: 768px) {
    .error-404-number {
        font-size: 180px;
    }
}

.error-icon {
    background: rgba(186, 26, 26, 0.2);
    padding: 24px;
    border-radius: 9999px;
}

.error-icon .material-symbols-outlined {
    font-size: 64px;
    color: var(--error);
}

/* ============================================
   АНИМАЦИИ
   ============================================ */
.transition-colors {
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.transition-shadow {
    transition: box-shadow 0.2s ease;
}

.transition-transform {
    transition: transform 0.2s ease;
}

.hover\:scale-95:hover {
    transform: scale(0.95);
}

.hover\:opacity-100:hover {
    opacity: 1;
}

.opacity-80 {
    opacity: 0.8;
}

/* ============================================
   ФУТЕР
   ============================================ */
footer a {
    transition: color 0.2s ease;
}

footer a:hover {
    color: var(--secondary-fixed-dim);
}