/* ============================================
БРЕНДБУК: ЦВЕТОВАЯ ПАЛИТРА
============================================ */
:root {
    /* === ОСНОВНАЯ ПАЛИТРА === */
    --brand-graphite: #181D1F;
    /* Матовый техно-графит: логотип, паттерн, фон */
    --brand-synthetic-gray: #dfe1e080;
    /* Синтетический серый #DFE1E0 осветелнный: паттерн, текст, фон */
    --brand-accent: #FF3312;
    /* Технология будущего: акцент, знак, текст */

    /* === ДОПОЛНИТЕЛЬНАЯ ПАЛИТРА === */
    --brand-text-primary: #000000;
    /* Техно-колор 1: основной текст */
    --brand-bg-secondary: #747C7E;
    /* Техно-колор 2: паттерн, фон */
    --brand-bg-tertiary: #DFE1E0;
    /* Техно-колор 3: паттерн, фон */
    --brand-chart-purple: #7C00B6;
    /* Техно-лиловый: графики */
    --brand-chart-blue: #1A6CE7;
    /* Техно-синий: графики */
    --brand-chart-green: #14E782;
    /* Техно-зеленый: графики */
    --brand-chart-yellow: #FFCB12;
    /* Техно-желтый: графики */
    --shadow-red: #ff321235;
    --shadow-blue: #1a6ce742;

    /* === СЕМАНТИЧЕСКИЕ ПЕРЕМЕННЫЕ === */
    --header-height: 3.5rem;
    --footer-height: 2.5rem;

    /* Градиенты на основе брендбука */
    --primary-gradient: #1A6CE7;
    --mb-gradient: linear-gradient(135deg, #7c00b63d 0%, #7C00B6 100%);
    --radix-gradient: linear-gradient(135deg, #ff321235 0%, #FF3312 100%);

    /* Устаревшие алиасы для совместимости (постепенно убрать) */
    --brand-dark: var(--brand-graphite);
    --brand-gray-dark: var(--brand-bg-secondary);
    --brand-gray: var(--brand-bg-tertiary);
    --brand-gray-light: var(--brand-synthetic-gray);
    --chart-blue: var(--brand-chart-blue);
    --chart-green: var(--brand-chart-green);
}

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

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: 'TT Norms Pro', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--brand-text-primary);
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
}

/* Утилиты Bootstrap (минимальный набор) */
.d-none {
    display: none !important;
}

.d-md-block {
    display: block !important;
}

@media (min-width: 768px) {
    .d-md-block {
        display: block !important;
    }
}

@media (max-width: 767.98px) {
    .d-lg-none {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
}

.text-danger {
    color: var(--brand-accent) !important;
}

/* ============================================
HEADER
============================================ */
.app-header {
    height: var(--header-height);
    background: white;
    border-bottom: 1px solid var(--brand-synthetic-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    flex-shrink: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 123.75rem;
    margin: 0 auto;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    height: 2rem;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-graphite);
    /* Логотип по брендбуку — техно-графит */
    letter-spacing: -0.01em;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: var(--brand-bg-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-accent);
    background: rgba(255, 51, 18, 0.06);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-nav-icon {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brand-graphite);
    cursor: pointer;
}

.btn-nav-icon-load {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brand-chart-blue);
    cursor: pointer;
}

.btn-calculate {
    background: var(--brand-accent);
    color: white;
    border: none;
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px var(--shadow-red);
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.5;
}

.btn-calculate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--shadow-red);
    background: #cc2800;
    color: white;
}

.btn-ok {
    background: var(--brand-accent);
    color: white;
    border: 0.0625rem solid var(--brand-gray-light);
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px var(--shadow-red);
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.5;
}

.btn-calcel {
    background: var(--brand-gray-light);
    color: var(--brand-gray-dark);
    border: 0.0625rem solid var(--brand-gray-light);
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px var(--brand-bg-tertiary);
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.5;
}

.btn-choice {
    border: 0.0625rem solid var(--brand-gray-light);
    background: white;
    color: var(--brand-gray-dark);
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px var(--brand-bg-tertiary);
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.5;
}


/* Auth Area & Dropdown */
.user-area {
    position: relative;
}

.btn-login {
    padding: 0.4rem 1.2rem;
    border: 1.5px solid var(--brand-accent);
    color: var(--brand-accent);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-login:hover {
    background: var(--brand-accent);
    color: white;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.3s;
}

.user-profile-trigger:hover {
    background: rgba(0, 0, 0, 0.04);
}

.user-avatar {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-info .name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-text-primary);
}

.user-info .role {
    font-size: 0.7rem;
    color: var(--brand-bg-tertiary);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 2rem rgba(24, 29, 31, 0.12);
    min-width: 12rem;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: all 0.2s ease;
    z-index: 1001;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    width: 100%;
    border: none;
    background: none;
    font-size: 0.85rem;
    color: var(--brand-bg-secondary);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--brand-synthetic-gray);
}

.dropdown-divider {
    height: 1px;
    background: var(--brand-synthetic-gray);
    margin: 0.3rem 0;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--brand-synthetic-gray);
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 999;
    box-shadow: 0 0.5rem 1rem rgba(24, 29, 31, 0.05);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu .nav-link {
    padding: 0.75rem 1rem;
    width: 100%;
}

/* ============================================
HEADER — 4-ЧАСТНАЯ СТРУКТУРА (для модулей)
Не влияет на главную страницу: .header-toolbar 
и .btn-calculate отсутствуют в index.html
============================================ */

/* Кнопка «Рассчитать» (используется только в модулях) */
.btn-calculate {
    background: var(--brand-accent);
    color: white;
    border: none;
    padding: 0.25rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.75rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 51, 18, 0.3);
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.5;
}

.btn-calculate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 51, 18, 0.4);
    background: #cc2800;
    color: white;
}

/* Тулбар проектов (Новый проект, Сохранить, Загрузить, Экспорт) */
.header-toolbar {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-shrink: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.header-toolbar .btn-nav-icon,
.header-toolbar .btn-nav-icon-load {
    flex-shrink: 0;
    font-size: 1.2rem;
    padding: 0.25rem 0.4rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--brand-graphite);
    transition: color 0.2s, background 0.2s;
    border-radius: 0.375rem;
}

.header-toolbar .btn-nav-icon:hover,
.header-toolbar .btn-nav-icon-load:hover {
    color: var(--brand-accent);
    background: rgba(255, 51, 18, 0.06);
}

/* Синяя иконка для кнопок загрузки/импорта */
.header-toolbar .btn-nav-icon-load {
    color: var(--brand-chart-blue);
}

.header-toolbar-divider {
    width: 1px;
    height: 20px;
    background: var(--brand-gray-light);
    flex-shrink: 0;
}

/* На узких экранах скрываем текст бренда, оставляем только логотип */
@media (max-width: 900px) {
    .header-left .brand-text {
        display: none;
    }

    .header-left {
        gap: 0;
    }

    /* Уменьшаем отступы тулбара на средних экранах */
    .header-toolbar {
        gap: 0.75rem;
    }

    .header-toolbar .btn-nav-icon,
    .header-toolbar .btn-nav-icon-load {
        font-size: 1rem;
    }
}

/* ============================================
SCROLL SNAP CONTAINER
============================================ */
#app-main {
    flex: 1;
    min-height: 0;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

.main-content {
    display: block;
    width: 100%;
    min-height: 100%;
    max-width: 123.75rem;
    margin: 0 auto;
}

.snap-section {
    height: calc(100vh - var(--header-height) - var(--footer-height));
    height: calc(100dvh - var(--header-height) - var(--footer-height));
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

#section-dashboard,
#section-admin {
    display: none;
}

#section-dashboard.active,
#section-admin.active {
    display: flex;
}

.section-content {
    width: 100%;
    max-width: 87.5rem;
    padding: 1.25rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    overflow: hidden;
}

.scroll-indicator {
    position: absolute;
    bottom: 1.875rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    color: var(--brand-bg-tertiary);
    font-size: 0.75rem;
    animation: bounce 2s ease-in-out infinite;
    opacity: 1;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-indicator i {
    font-size: 1.5rem;
    color: var(--brand-accent);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(0.5rem);
    }
}

/* ============================================
ЭКРАН 1: HERO
============================================ */
#section-hero .hero-wrapper {
    justify-content: center;
    padding: 0.625rem 0;
    gap: 0.625rem;
}

#section-hero .hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

#section-hero .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-graphite);
    /* По брендбуку: техно-графит */
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

#section-hero .hero-desc-block {
    flex: 1 1 21.875rem;
    max-width: 40.625rem;
}

#section-hero .hero-desc {
    font-size: 1.2rem;
    color: var(--brand-bg-secondary);
    margin: 0;
    line-height: 1.5;
}

#section-hero .description-block {
    padding: 0.625rem 0;
    flex-shrink: 0;
}

#section-hero .description-text {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--brand-text-primary);
    margin: 0;
    padding: 0 0.3125rem;
    text-align: justify;
}

#section-hero .advantages-row {
    display: flex;
    justify-content: space-between;
    gap: 1.25rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

#section-hero .advantage-item {
    text-align: center;
    flex: 1 1 11.25rem;
    max-width: 17.5rem;
    padding: 0.625rem 0.75rem;
    background: rgba(223, 225, 224, 0.4);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

#section-hero .advantage-item:hover {
    background: var(--brand-synthetic-gray);
    transform: translateY(-0.125rem);
}

#section-hero .advantage-item i {
    font-size: 1.8rem;
    color: var(--brand-accent);
    display: block;
    margin-bottom: 0.25rem;
}

#section-hero .advantage-item h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-graphite);
    margin: 0 0 0.125rem;
}

#section-hero .advantage-item p {
    font-size: 0.8rem;
    color: var(--brand-bg-secondary);
    margin: 0;
    line-height: 1.3;
}

/* ============================================
ЭКРАН 2: МОДУЛИ (СЕТКА 4 КОЛОНКИ)
============================================ */
#section-modules {
    background: var(--brand-synthetic-gray);
}

#section-modules .modules-wrapper {
    justify-content: center;
    gap: 1.25rem;
    padding: 1.25rem 2.5rem;
}

#section-modules .modules-header {
    text-align: center;
    flex-shrink: 0;
}

#section-modules .modules-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-graphite);
    margin: 0 0 0.25rem;
}

#section-modules .modules-header p {
    font-size: 1rem;
    color: var(--brand-bg-secondary);
    margin: 0;
}

#section-modules .modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    flex: 1;
    min-height: 0;
    align-content: center;
}

.module-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0.625rem 1.875rem rgba(24, 29, 31, 0.08);
    cursor: pointer;
    height: 100%;
    max-height: 20rem;
    display: flex;
    flex-direction: column;
    background: white;
}

.module-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1.25rem 2.5rem rgba(24, 29, 31, 0.15);
}

.module-card .card-header {
    height: 6.25rem;
    min-height: 6.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.module-card.mb .card-header {
    background: var(--mb-gradient);
}

.module-card.radix .card-header {
    background: var(--radix-gradient);
}

.module-card .card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.module-icon {
    font-size: 3.5rem;
    z-index: 1;
    filter: drop-shadow(0 0.25rem 0.5rem rgba(0, 0, 0, 0.2));
}

.module-card .card-body {
    padding: 1rem 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.module-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--brand-graphite);
}

.module-subtitle {
    color: var(--brand-bg-secondary);
    font-size: 0.78rem;
    margin-bottom: 0.8rem;
}

.module-features {
    list-style: none;
    padding: 0;
    margin-bottom: 0.8rem;
    flex: 1;
}

.module-features li {
    padding: 0.2rem 0;
    color: var(--brand-bg-secondary);
    display: flex;
    align-items: center;
    font-size: 0.82rem;
}

.module-features li i {
    color: var(--brand-chart-green);
    margin-right: 0.6rem;
    font-size: 1rem;
}

.btn-module {
    width: 100%;
    padding: 0.5rem;
    font-weight: 600;
    border-radius: 0.625rem;
    transition: all 0.3s;
    border: none;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.btn-mb {
    background: var(--mb-gradient);
}

.btn-radix {
    background: var(--radix-gradient);
}

.btn-module:hover {
    transform: scale(1.02);
    box-shadow: 0 0.5rem 1.25rem rgba(24, 29, 31, 0.2);
    color: white;
}

/* ============================================
ЛИЧНЫЙ КАБИНЕТ (DASHBOARD)
============================================ */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    width: 100%;
}

.profile-card,
.sidebar-block {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(24, 29, 31, 0.03);
    border: 1px solid var(--brand-synthetic-gray);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--brand-synthetic-gray);
}

.profile-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.badge-role {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

.badge-user {
    background: var(--shadow-blue);
    color: var(--brand-chart-blue);
}

.badge-org-admin {
    background: rgba(255, 51, 18, 0.1);
    color: var(--brand-accent);
}

.badge-global-admin {
    background: rgba(20, 231, 130, 0.1);
    color: #0fa85e;
}

.profile-form .form-row {
    margin-bottom: 1.25rem;
}

.profile-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-graphite);
    margin-bottom: 0.4rem;
}

.profile-form input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--brand-synthetic-gray);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-family: 'TT Norms Pro', sans-serif;
}

.profile-form input:focus {
    border-color: var(--brand-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 51, 18, 0.08);
}

.input-disabled {
    background: var(--brand-synthetic-gray);
    color: var(--brand-bg-tertiary);
    cursor: not-allowed;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--brand-bg-tertiary);
    margin-top: 0.3rem;
    font-style: italic;
}

.password-wrapper {
    position: relative;
}

.btn-eye {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--brand-bg-tertiary);
    cursor: pointer;
}

.sidebar-block h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-graphite);
}

.rights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rights-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.rights-list li.active {
    color: var(--brand-text-primary);
}

.rights-list li.active i {
    color: var(--brand-chart-green);
}

.rights-list li.disabled {
    color: var(--brand-synthetic-gray);
}

.rights-list li.disabled i {
    color: var(--brand-synthetic-gray);
}

.last-login,
.session-info {
    font-size: 0.8rem;
    color: var(--brand-bg-tertiary);
    margin-bottom: 0.3rem;
}

/* ============================================
АДМИН-ПАНЕЛЬ
============================================ */
.admin-panel h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--brand-graphite);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.admin-table th,
.admin-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--brand-synthetic-gray);
    vertical-align: middle;
    text-align: left;
}

.admin-table th {
    font-weight: 600;
    color: var(--brand-bg-tertiary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-table input[type="checkbox"] {
    appearance: none;
    width: 1.1rem;
    height: 1.1rem;
    border: 1.5px solid var(--brand-bg-tertiary);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    margin-right: 0.5rem;
    flex-shrink: 0;
    vertical-align: middle;
    transition: all 0.2s;
}

.admin-table input[type="checkbox"]:checked {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
}

.admin-table input[type="checkbox"]:checked::after {
    content: '✓';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
}

/* ============================================
ЭКРАН 3: ИНФОРМАЦИЯ
============================================ */
#section-info {
    background: white;
}

#section-info .info-wrapper {
    justify-content: center;
    padding: 1.25rem 2.5rem;
    overflow-y: auto;
}

#section-info .info-section {
    background: white;
    border-radius: 1.25rem;
    padding: 0;
    margin-top: 0;
    box-shadow: none;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

#section-info .info-section::-webkit-scrollbar {
    width: 0.25rem;
}

#section-info .info-section::-webkit-scrollbar-thumb {
    background: var(--brand-synthetic-gray);
    border-radius: 0.25rem;
}

#section-info .info-section h2 {
    color: var(--brand-graphite);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

#section-info .info-text-muted {
    color: var(--brand-bg-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.info-panel {
    background: white;
    border-radius: 0.75rem;
    padding: 1.2rem 1.8rem;
    margin: 0.8rem 0;
    border-left: 0.25rem solid var(--brand-chart-blue);
    box-shadow: 0 0.25rem 0.9375rem rgba(24, 29, 31, 0.04);
    transition: all 0.3s ease;
}

.info-panel:hover {
    box-shadow: 0 0.375rem 1.5625rem rgba(24, 29, 31, 0.08);
    transform: translateY(-0.125rem);
}

.info-panel:last-child {
    border-left-color: var(--brand-chart-green);
}

.info-panel .panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.info-panel .panel-header i {
    font-size: 1.4rem;
    color: var(--brand-chart-blue);
    background: var(--shadow-blue);
    padding: 0.375rem;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.info-panel:last-child .panel-header i {
    color: var(--brand-chart-green);
    background: rgba(20, 231, 130, 0.1);
}

.info-panel .panel-header h4 {
    margin: 0;
    font-weight: 700;
    color: var(--brand-graphite);
    font-size: 1rem;
}

.info-panel .panel-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-panel .panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.3rem 0;
    color: var(--brand-bg-secondary);
    font-size: 0.88rem;
    line-height: 1.4;
    border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.04);
}

.info-panel .panel-list li:last-child {
    border-bottom: none;
}

.info-panel .panel-list li i {
    color: var(--brand-chart-blue);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.info-panel:last-child .panel-list li i {
    color: var(--brand-chart-green);
}

.cost-panel {
    border-left-color: var(--brand-chart-yellow);
}

.cost-panel .panel-header i {
    color: var(--brand-chart-yellow);
    background: rgba(255, 203, 18, 0.1);
}

.cost-panel .panel-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--brand-bg-secondary);
    margin: 0 0 0.8rem;
    padding-left: 0.25rem;
}

.btn-cost {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0.25rem 0.9375rem var(--shadow-blue);
}

.btn-cost:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.375rem 1.5625rem var(--shadow-blue);
    color: white;
}

.btn-cost:active {
    transform: translateY(0);
}

/* ============================================
ЭКРАН 4: ДОКУМЕНТАЦИЯ И КОНТАКТЫ
============================================ */
#section-docs {
    background: var(--brand-synthetic-gray);
}

#section-docs .docs-wrapper {
    justify-content: center;
    padding: 1.25rem 2.5rem;
    gap: 1.25rem;
}

#section-docs .docs-section {
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

#section-docs .docs-section::-webkit-scrollbar {
    width: 0.25rem;
}

#section-docs .docs-section::-webkit-scrollbar-thumb {
    background: var(--brand-bg-tertiary);
    border-radius: 0.25rem;
}

#section-docs .docs-section h2 {
    color: var(--brand-graphite);
    font-weight: 700;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.docs-block {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.25rem 1.25rem rgba(24, 29, 31, 0.06);
}

.docs-block .docs-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.docs-block .docs-header i {
    font-size: 1.6rem;
    color: var(--brand-accent);
}

.docs-block .docs-header h4 {
    margin: 0;
    font-weight: 700;
    color: var(--brand-graphite);
    font-size: 1.1rem;
}

.docs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.docs-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.05);
}

.docs-list li:last-child {
    border-bottom: none;
}

.docs-list li i {
    font-size: 1.3rem;
    color: var(--brand-bg-secondary);
    flex-shrink: 0;
}

.docs-list li span {
    flex: 1;
    font-size: 0.92rem;
    color: var(--brand-text-primary);
}

.docs-actions {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
}

.btn-docs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    background: transparent;
    color: var(--brand-bg-secondary);
    border: 0.0625rem solid var(--brand-synthetic-gray);
    border-radius: 0.375rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-docs:hover {
    background: var(--brand-chart-blue);
    color: white;
    border-color: var(--brand-chart-blue);
    transform: translateY(-0.0625rem);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 1rem;
    background: var(--brand-synthetic-gray);
    color: var(--brand-bg-secondary);
    border: none;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-download:hover {
    background: var(--brand-accent);
    color: white;
    transform: translateY(-0.0625rem);
    box-shadow: 0 0.25rem 0.75rem rgba(255, 51, 18, 0.3);
}

.btn-download:active {
    transform: translateY(0);
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.contact-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    text-align: center;
    box-shadow: 0 0.25rem 1.25rem rgba(24, 29, 31, 0.06);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 1.875rem rgba(24, 29, 31, 0.1);
}

.contact-card .contact-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--shadow-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

.contact-card .contact-icon i {
    font-size: 1.8rem;
    color: var(--brand-accent);
}

.contact-card h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-graphite);
    margin: 0 0 0.75rem;
}

.contact-card .contact-phone,
.contact-card .contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--brand-bg-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    padding: 0.25rem 0;
    transition: color 0.3s ease;
}

.contact-card .contact-phone:hover,
.contact-card .contact-email:hover {
    color: var(--brand-accent);
}

.contact-card .contact-phone i,
.contact-card .contact-email i {
    font-size: 1rem;
    color: var(--brand-bg-secondary);
}

.contact-card .contact-phone:hover i,
.contact-card .contact-email:hover i {
    color: var(--brand-accent);
}

/* ============================================
FOOTER
============================================ */
.app-footer {
    height: var(--footer-height);
    background: white;
    border-top: 1px solid var(--brand-synthetic-gray);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    font-size: 0.78rem;
    color: var(--brand-bg-secondary);
    z-index: 100;
    flex-shrink: 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 123.75rem;
    margin: 0 auto;
    gap: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--brand-chart-green);
    flex-shrink: 0;
}

.status-dot.busy {
    background: var(--brand-chart-yellow);
    animation: pulse-dot 1s infinite;
}

.status-dot.error {
    background: var(--brand-accent);
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.status-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-popup {
    display: none;
}

.footer-center {
    flex: 0 0 auto;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--brand-synthetic-gray);
    border-radius: 1rem;
    padding: 0.15rem 0.5rem;
    height: 1.2rem;
}

.progress-bar {
    height: 100%;
    background: var(--brand-accent);
    border-radius: 1rem;
    transition: width 0.3s ease;
    min-width: 0.2rem;
}

.progress-text {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--brand-graphite);
    min-width: 2rem;
    text-align: right;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.footer-version {
    font-weight: 600;
    color: var(--brand-bg-tertiary);
}

.footer-license {
    color: var(--brand-bg-tertiary);
}

.footer-date {
    color: var(--brand-bg-secondary);
}

.footer-time {
    font-weight: 700;
    color: var(--brand-accent);
    font-variant-numeric: tabular-nums;
}

/* ============================================
ФОРМА ЗАПРОСА СТОИМОСТИ
============================================ */
.cost-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 29, 31, 0.5);
    backdrop-filter: blur(0.25rem);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.cost-form-modal {
    background: white;
    border-radius: 1.25rem;
    max-width: 35rem;
    width: 90%;
    max-height: 90vh;
    padding: 2rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 1.25rem 3.75rem rgba(24, 29, 31, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(1.875rem);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cost-form-modal::-webkit-scrollbar {
    width: 0.25rem;
}

.cost-form-modal::-webkit-scrollbar-thumb {
    background: var(--brand-synthetic-gray);
    border-radius: 0.25rem;
}

.cost-form-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--brand-bg-tertiary);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.cost-form-close:hover {
    color: var(--brand-accent);
    background: rgba(255, 51, 18, 0.08);
}

.cost-form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.cost-form-header i {
    font-size: 2.5rem;
    color: var(--brand-accent);
    display: block;
    margin-bottom: 0.5rem;
}

.cost-form-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-graphite);
    margin: 0 0 0.25rem;
}

.cost-form-header p {
    font-size: 0.9rem;
    color: var(--brand-bg-tertiary);
    margin: 0;
}

.cost-form-group {
    margin-bottom: 1rem;
}

.cost-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-graphite);
    margin-bottom: 0.25rem;
}

.cost-form-group input,
.cost-form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    border: 1.5px solid var(--brand-synthetic-gray);
    border-radius: 0.5rem;
    background: white;
    color: var(--brand-text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
}

.cost-form-group input:focus,
.cost-form-group textarea:focus {
    outline: none;
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 0.1875rem var(--shadow-blue);
}

.cost-form-group textarea {
    resize: vertical;
    min-height: 5rem;
}

.cost-form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-cost-cancel {
    flex: 1;
    padding: 0.6rem;
    background: transparent;
    color: var(--brand-bg-secondary);
    border: 1.5px solid var(--brand-synthetic-gray);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cost-cancel:hover {
    background: var(--brand-synthetic-gray);
}

.btn-cost-submit {
    flex: 2;
    padding: 0.6rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cost-submit:hover {
    transform: translateY(-0.125rem);
    box-shadow: 0 0.25rem 1.25rem var(--shadow-blue);
}

.btn-cost-submit:active {
    transform: translateY(0);
}

/* ============================================
АДАПТИВНОСТЬ
============================================ */
@media (max-width: 1400px) {
    #section-modules .modules-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1080px) {
    #section-hero .hero-title {
        font-size: 2.8rem;
    }

    #section-hero .hero-desc {
        font-size: 1rem;
    }

    #section-hero .description-text {
        font-size: 0.85rem;
    }

    #section-hero .description-block {
        padding: 1.875rem 0;
    }

    #section-modules .modules-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .module-card .card-header {
        height: 5rem;
        min-height: 5rem;
    }

    .module-icon {
        font-size: 2.8rem;
    }

    .module-card {
        max-height: 21.875rem;
    }

    .module-card .card-body {
        padding: 1rem 1.2rem;
    }

    .module-title {
        font-size: 1.2rem;
    }

    .module-features li {
        font-size: 0.75rem;
        padding: 0.15rem 0;
    }

    #section-info .info-section h2 {
        font-size: 1.4rem;
    }

    .section-content {
        padding: 0.9375rem 1.875rem;
    }
}

@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #app-main {
        scroll-snap-type: none;
        overflow-y: auto;
        height: auto;
    }

    .snap-section {
        height: auto;
        min-height: 100vh;
        max-height: none;
        scroll-snap-align: none;
        padding: 1.25rem 0;
    }

    .section-content {
        padding: 0.625rem 1.25rem;
    }

    #section-hero .hero-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    #section-hero .hero-title {
        font-size: 2.2rem;
    }

    #section-hero .hero-desc-block {
        flex: 1 1 100%;
        max-width: 100%;
    }

    #section-hero .hero-desc {
        font-size: 0.9rem;
    }

    #section-hero .description-text {
        font-size: 0.8rem;
        text-align: left;
        padding: 0;
    }

    #section-hero .description-block {
        padding: 1.5625rem 0;
    }

    #section-hero .advantages-row {
        gap: 0.625rem;
    }

    #section-hero .advantage-item {
        flex: 1 1 6.25rem;
        padding: 0.5rem 0.625rem;
        min-width: 5rem;
    }

    #section-hero .advantage-item i {
        font-size: 1.4rem;
    }

    #section-hero .advantage-item h5 {
        font-size: 0.8rem;
    }

    #section-hero .advantage-item p {
        font-size: 0.7rem;
        display: none;
    }

    #section-modules .modules-grid {
        grid-template-columns: 1fr;
        gap: 0.9375rem;
    }

    .module-card {
        max-height: 20rem;
    }

    .module-card .card-header {
        height: 4.375rem;
        min-height: 4.375rem;
    }

    .module-icon {
        font-size: 2.2rem;
    }

    .module-card .card-body {
        padding: 0.8rem 1rem;
    }

    .module-title {
        font-size: 1.1rem;
    }

    .module-subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .module-features {
        display: none;
    }

    .btn-module {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    #section-modules .modules-header h2 {
        font-size: 1.5rem;
    }

    #section-modules .modules-header p {
        font-size: 0.85rem;
    }

    #section-info .info-section h2 {
        font-size: 1.2rem;
    }

    #section-info .info-text-muted {
        font-size: 0.85rem;
    }

    .info-panel {
        padding: 1rem 1.2rem;
        margin: 0.5rem 0;
    }

    .info-panel .panel-header h4 {
        font-size: 0.9rem;
    }

    .info-panel .panel-list li {
        font-size: 0.8rem;
        padding: 0.2rem 0;
    }

    .cost-panel .panel-text {
        font-size: 0.82rem;
    }

    .btn-cost {
        padding: 0.4rem 1.2rem;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }

    .scroll-indicator {
        bottom: 0.9375rem;
    }

    .scroll-indicator span {
        display: none;
    }

    #section-docs .docs-wrapper {
        padding: 0.625rem 1.25rem;
    }

    #section-docs .docs-section h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .docs-block {
        padding: 1rem 1.2rem;
        margin-bottom: 1.2rem;
    }

    .docs-block .docs-header i {
        font-size: 1.3rem;
    }

    .docs-block .docs-header h4 {
        font-size: 1rem;
    }

    .docs-list li {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .docs-list li span {
        flex: 1 1 100%;
        font-size: 0.82rem;
    }

    .docs-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-download {
        font-size: 0.72rem;
        padding: 0.2rem 0.7rem;
    }

    .btn-docs {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.8rem;
    }

    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .contact-card {
        padding: 1rem 1.2rem;
    }

    .contact-card .contact-icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .contact-card .contact-icon i {
        font-size: 1.3rem;
    }

    .contact-card h5 {
        font-size: 0.9rem;
    }

    .contact-card .contact-phone,
    .contact-card .contact-email {
        font-size: 0.85rem;
    }

    .app-footer {
        padding: 0 0.75rem;
        font-size: 0.7rem;
    }

    .footer-right {
        gap: 0.5rem;
    }

    .footer-license,
    .footer-date {
        display: none;
    }

    .status-text {
        max-width: 8rem;
    }

    .cost-form-modal {
        padding: 1.5rem;
        width: 95%;
    }

    .cost-form-header i {
        font-size: 2rem;
    }

    .cost-form-header h3 {
        font-size: 1.2rem;
    }

    .cost-form-actions {
        flex-direction: column;
    }

    .btn-cost-cancel,
    .btn-cost-submit {
        flex: none;
        width: 100%;
    }
}

@media (max-height: 700px) {
    #section-hero .hero-title {
        font-size: 2.5rem;
    }

    #section-hero .hero-desc {
        font-size: 0.9rem;
    }

    #section-hero .description-text {
        font-size: 0.78rem;
        line-height: 1.3;
    }

    #section-hero .description-block {
        padding: 0.9375rem 0;
    }

    #section-hero .advantages-row {
        padding: 0.3125rem 0;
    }

    #section-hero .advantage-item {
        padding: 0.25rem 0.5rem;
    }

    #section-hero .advantage-item i {
        font-size: 1.2rem;
        margin-bottom: 0.125rem;
    }

    #section-hero .advantage-item h5 {
        font-size: 0.7rem;
    }

    #section-hero .advantage-item p {
        font-size: 0.65rem;
    }

    .module-card {
        max-height: 17.5rem;
    }

    .module-card .card-header {
        height: 3.75rem;
        min-height: 3.75rem;
    }

    .module-icon {
        font-size: 2rem;
    }

    .module-card .card-body {
        padding: 0.6rem 1rem;
    }

    .module-title {
        font-size: 1rem;
    }

    .module-features li {
        font-size: 0.7rem;
        padding: 0.1rem 0;
    }

    #section-docs .docs-wrapper {
        padding: 0.625rem 1.875rem;
    }

    #section-docs .docs-section h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }

    .docs-block {
        padding: 0.8rem 1.2rem;
        margin-bottom: 0.8rem;
    }

    .docs-list li {
        padding: 0.3rem 0;
    }

    .docs-list li span {
        font-size: 0.78rem;
    }

    .btn-download {
        font-size: 0.7rem;
        padding: 0.15rem 0.6rem;
    }

    .btn-docs {
        width: 1.5rem;
        height: 1.5rem;
        font-size: 0.7rem;
    }

    .contact-card {
        padding: 0.8rem 1rem;
    }

    .contact-card .contact-icon {
        width: 2.375rem;
        height: 2.375rem;
        margin-bottom: 0.375rem;
    }

    .contact-card .contact-icon i {
        font-size: 1.1rem;
    }

    .contact-card h5 {
        font-size: 0.8rem;
        margin-bottom: 0.375rem;
    }

    .contact-card .contact-phone,
    .contact-card .contact-email {
        font-size: 0.78rem;
        padding: 0.125rem 0;
    }

    .contacts-grid {
        gap: 0.625rem;
    }

    .cost-form-modal {
        padding: 1rem;
        max-height: 95vh;
    }

    .cost-form-group {
        margin-bottom: 0.6rem;
    }

    .cost-form-group input,
    .cost-form-group textarea {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }

    .cost-form-group textarea {
        min-height: 3.125rem;
    }

    .cost-form-header {
        margin-bottom: 0.8rem;
    }

    .cost-form-header i {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
    }

    .cost-form-header h3 {
        font-size: 1rem;
    }
}

/* Баннер "Входные параметры изменены..." временно скрыт
   (показ/скрытие по корректным условиям будет реализовано позже) */
#calcWarningBanner {
    display: none !important;
}