:root {
    --bg-body: #0f172a;
    --bg-surface: #f8fafc;
    --bg-card: #ffffff;
    --navy-900: #091326;
    --navy-800: #112240;
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --accent-amber: #f59e0b;
    --text-dark: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-surface);
    color: var(--text-body);
    line-height: 1.65;
}

/* Шапка портала */
header {
    background: radial-gradient(circle at top right, #1e3a8a, var(--navy-900) 70%);
    color: #ffffff;
    padding: 3.5rem 1.5rem 2.8rem;
    text-align: center;
    border-bottom: 4px solid var(--primary);
    position: relative;
}

.header-badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin-bottom: 0.6rem;
    color: #ffffff;
}

header p {
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* Навигационная панель */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.nav-wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

nav a:hover {
    background: #f1f5f9;
    color: var(--primary);
}

nav a.active {
    background: var(--primary);
    color: #ffffff;
}

/* Основной контейнер */
.container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}

/* Сводная таблица на главной */
.summary-box {
    background: var(--bg-card);
    border-radius: 14px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    margin-bottom: 2.5rem;
}

.summary-box h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.summary-box p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.overview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.overview-table th, .overview-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.overview-table th {
    background: #f8fafc;
    color: var(--text-dark);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0.6px;
}

.overview-table tr:hover td {
    background: #f8fafc;
}

/* Карточки флота */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.fleet-card {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.fleet-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.fleet-card img {
    width: 100%;
    height: 215px;
    object-fit: cover;
    background: #cbd5e1;
    border-bottom: 1px solid var(--border-light);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

.tag {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tag-turboprop {
    background: #fef3c7;
    color: #b45309;
}

.fleet-card h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.fleet-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
    margin-bottom: 1.4rem;
    flex: 1;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    background: var(--primary);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1.5px solid var(--primary);
}

.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-pdf-checklist {
    background: #ffffff;
    color: var(--text-dark);
    border: 1.5px solid #cbd5e1;
}

.btn-pdf-checklist:hover {
    background: #f1f5f9;
    border-color: var(--primary);
    color: var(--primary);
}

/* Внутренние страницы самолётов */
.aircraft-hero {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    margin-bottom: 2rem;
}

.hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.hero-top h2 {
    font-size: 1.85rem;
    color: var(--text-dark);
    margin-top: 0.4rem;
}

.pdf-buttons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.aircraft-photo {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: #cbd5e1;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .content-grid { grid-template-columns: 1fr; }
}

.info-card {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    color: var(--text-dark);
    font-size: 1.22rem;
    border-bottom: 2px solid #e0f2fe;
    padding-bottom: 0.6rem;
    margin-bottom: 1.1rem;
}

.info-card p {
    margin-bottom: 1rem;
}

.info-card ul {
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
}

.info-card li {
    margin-bottom: 0.65rem;
}

/* Таблица ТТХ */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.spec-table th, .spec-table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
}

.spec-table th {
    color: var(--text-muted);
    font-weight: 600;
    width: 46%;
}

.spec-table td {
    color: var(--text-dark);
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.spec-section {
    background: #f8fafc;
    color: var(--primary) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    font-size: 0.76rem;
    letter-spacing: 0.6px;
}

footer {
    text-align: center;
    padding: 2.5rem 1.2rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    border-top: 1px solid var(--border-light);
    margin-top: 3.5rem;
    background: #ffffff;
}