/* ==========================================================================
   ПЕРЕМЕННЫЕ (Глобальная палитра со скриншотов)
   ========================================================================== */
:root {
    --color-bg-main: #F8FAFC;
    --color-bg-card: #FFFFFF;
    --color-text-main: #64748B;
    --color-text-dark: #0F172A;
    --color-text-light: #FFFFFF;
    
    /* Акцентные цвета сайта */
    --color-brand: #0D6865;
    --color-brand-hover: #0A5350;
    --color-brand-light: #E6F3F2;
    
    /* Статусы */
    --color-status-active-bg: #E6F7F4;
    --color-status-active-text: #0D6865;
    --color-status-susp-bg: #FFF3E0;
    --color-status-susp-text: #E65100;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   БАЗОВЫЕ И ТИПОГРАФИЧЕСКИЕ СТИЛИ (H1-H6, Ссылки)
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.page {
    font-family: var(--font-family);
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; } /* 36px */
h2 { font-size: 1.75rem; } /* 28px */
h3 { font-size: 1.35rem; } /* 22px */
h4 { font-size: 1.15rem; } /* 18px */
h5 { font-size: 1rem; }    /* 16px */
h6 { font-size: 0.85rem; } /* 14px */

.link {
    color: var(--color-brand);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.link:hover {
    color: var(--color-brand-hover);
    border-color: var(--color-brand-hover);
}

.text-accent {
    color: var(--color-text-dark);
    font-weight: 600;
}

.divider {
    border: none;
    border-top: 1px solid #E2E8F0;
    margin: 2rem 0;
}

/* ==========================================================================
   КОМПОНЕНТ: ЛОГОТИП (БЭМ: .logo)
   ========================================================================== */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo__text-group {
    display: flex;
    flex-direction: column;
}

.logo__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.logo__title_light {
    color: var(--color-text-light);
}

.logo__subtitle {
    font-size: 0.75rem;
    color: var(--color-text-main);
}

/* ==========================================================================
   КОМПОНЕНТ: КНОПКИ С АНИМАЦИЯМИ (БЭМ: .button)
   ========================================================================== */
.button {
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.button_style_primary {
    background-color: var(--color-brand);
    color: var(--color-text-light);
    border: 1px solid var(--color-brand);
}

.button_style_primary:hover {
    background-color: var(--color-brand-hover);
    border-color: var(--color-brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 104, 101, 0.15);
}

.button_style_primary:active {
    transform: translateY(0);
}

.button_style_secondary {
    background-color: transparent;
    color: var(--color-brand);
    border: 1px solid var(--color-brand);
}

.button_style_secondary:hover {
    background-color: var(--color-brand-light);
    transform: translateY(-1px);
}

/* ==========================================================================
   БЛОК: ШАПКА (БЭМ: .header)
   ========================================================================== */
.header {
    background-color: var(--color-bg-card);
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__actions {
    display: flex;
    gap: 12px;
}

/* Элементы меню внутри шапки */
.menu__list {
    display: flex;
    list-style: none;
    gap: 24px;
}

.menu__link {
    font-size: 0.95rem;
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.menu__link:hover,
.menu__link_active {
    color: var(--color-brand);
}

/* ==========================================================================
   БЛОК: ТЕЛО СТРАНИЦЫ (БЭМ: .main)
   ========================================================================== */
.main {
    padding: 48px 0;
    min-height: 60px;
}

.main__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.main__title {
    margin-bottom: 8px;
}

.main__subtitle {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* ==========================================================================
   КОМПОНЕНТ: ТАБЛИЦА РЕЕСТРА (БЭМ: .registry-table)
   ========================================================================== */
.table-responsive {
    overflow-x: auto;
    background: var(--color-bg-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #E2E8F0;
    margin-bottom: 40px;
}

.registry-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.registry-table__th {
    background-color: #F8FAFC;
    color: var(--color-text-dark);
    padding: 16px 24px;
    font-weight: 600;
    border-bottom: 1px solid #E2E8F0;
}

.registry-table__td {
    padding: 18px 24px;
    border-bottom: 1px solid #E2E8F0;
    color: var(--color-text-dark);
}

.registry-table__row:last-child .registry-table__td {
    border-bottom: none;
}

.registry-table__row:hover {
    background-color: #F8FAFC;
}

.registry-table__td_bold {
    font-weight: 600;
    color: var(--color-text-main);
}

/* Компонент статуса (badge) внутри таблицы */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge_status_active {
    background-color: var(--color-status-active-bg);
    color: var(--color-status-active-text);
}

.badge_status_suspended {
    background-color: var(--color-status-susp-bg);
    color: var(--color-status-susp-text);
}

/* ==========================================================================
   БЛОК: ПОДВАЛ (БЭМ: .footer)
   ========================================================================== */
.footer {
    background-color: #0F172A; /* Темный глубокий бэкграунд */
    color: #94A3B8;
    padding: 48px 0;
    margin-top: auto;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer__block_type_info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer__title {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__link {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--color-text-light);
}

.footer__text {
    font-size: 0.9rem;
    line-height: 1.6;
    max-width: 320px;
}

/* Демонстрационная секция типографики */
.demo-typography {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border: 1px dashed #CBD5E1;
}