/* Layout: sticky footer — #welcome участвует во flex (сетка из scaffold) */
#welcome {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background-color: var(--color-light-gray);
  background-image: url("/static/project/img/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.footer p {
  text-align: center;
  margin: 0;
}




h1,
h1.title,
.title,
.content h1,
.content .page-title {
  text-align: center !important;
}
h1.title,
.title {
  color: var(--blue);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
/* Единые отступы для заголовка страницы: как на главной (30px сверху — из .content, 1rem снизу) */
.content .container > .row:first-child h1.title,
.content > .container > .row:first-child h1.title {
  margin-top: 0;
  margin-bottom: 0;
}
.content .row > h1,
.content .container > h1 {
  width: 100%;
}
/* h2 — обычный размер, не 2rem */
.content h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}
h2 {
  color: var(--blue);
}
h3 {
  font-size: 1rem;
}
/* Отступы везде: во всех, без исключения, блоках и формах */
.content {
  box-sizing: border-box;
  padding-top: 0; /* отступ сверху задаётся .page-title-row, чтобы было одинаково на главной и остальных */
}
/* Единое расстояние от шапки до h1 на всех страницах */
.content .page-title-row {
  padding-top: 30px;
  margin-bottom: 1rem;
}
/* Контент во всю ширину, где возможно: минимальные боковые отступы */
.content .container,
.content.container {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 1400px;
}
.content .row {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1rem;
  box-sizing: border-box;
}
.content .col-12,
.content .col-lg-12,
.content .col-lg-8,
.content .col-lg-4,
.content .col-md-4,
.content [class^="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-sizing: border-box;
}
.content .card,
.content .card .card-body,
.content .card-body {
  padding: 2rem 2.25rem;
  box-sizing: border-box;
}
.content .card > .card-body { padding: 2rem 2.25rem; }

.content section {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.content form,
.auth-form,
.sleek-form {
  padding: 1.5rem 0;
  box-sizing: border-box;
}
.content form .form-group,
.auth-form .form-group {
  margin-bottom: 1rem;
  padding: 0 0.25rem;
}

/* Карточки одинаковой высоты в ряду */
.content .row {
  display: flex;
  flex-wrap: wrap;
}
.content .row > [class*="col-"] {
  display: flex;
}
.content .row .card {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  width: 100%;
}
.content .row .card > div,
.content .row .card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Кнопки в карточках — всегда внизу карточки, на одном уровне */
.content .row .card .btn,
.content .row .card .card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Контакты: одна строка «метка: значение», одинаковый отступ снизу */
.contact-block__title { text-align: center; margin: 0 0 1rem; font-size: 1.1rem; }
.contact-block__list { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-row {
  margin-bottom: 0;
  line-height: 1.5;
}
.contact-row strong { margin-right: 0.25em; }
.contact-row a { color: var(--blue); }

/* Партнёры: изображение по центру в карточке */
.card img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Пункты меню: при наведении и активный — синий, как у кнопок */
.nav__link:hover,
.nav__link.active {
  color: var(--blue);
}
.nav__link.active {
  border-bottom-color: var(--blue);
}
@media (max-width: 768px) {
  .nav__link.active { background: rgba(0, 64, 128, 0.08); }
}

/* Переключатель языка — один выпадающий список, компактно */
.nav__lang { margin-left: 0.5rem; display: flex; align-items: center; }
.nav__lang-form { display: inline-flex; align-items: center; margin: 0; padding: 0; }
.nav__lang-select {
  padding: 0.2rem 0.5rem;
  font-size: 0.9em;
  line-height: 1.2;
  max-height: 2rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  background: var(--header-bg, #fff);
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}
.nav__lang-select:hover { border-color: var(--blue, #006); }
.nav__lang-select:focus { outline: none; border-color: var(--blue, #006); }

/* Header: бренд и логотип (BEM), не выходят за пределы шапки */
.header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 50%;
  min-width: 0;
  z-index: 1001;
}
.header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  min-height: 44px;
  max-height: 60px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.header__logo-link:hover {
  opacity: 0.9;
}
.header__logo-img {
  height: 40px;
  width: auto;
  max-height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}
.header__logo-text {
  font-weight: 600;
  font-size: 1.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header.scrolled .header__logo-img {
  height: 36px;
  max-height: 44px;
}

@media (max-width: 992px) {
  .header__logo-img { height: 38px; max-height: 44px; }
}
@media (max-width: 768px) {
  .header__brand { max-width: 70%; }
  .header__logo-img { height: 34px; max-height: 40px; }
  .header__logo-text { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .header__logo-img { height: 30px; max-height: 36px; }
  .header__logo-text { font-size: 1rem; }
}



/* Списки ul: маркер airplane-right.png — в .index (главная) и в .card (напр. направления, о нас) */
.index ul,
.card ul {
    list-style: none;
    padding-left: 0;
}

.index ul li,
.card ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 8px;
}

.index ul li::before,
.card ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background-image: url("/static/project/img/icons/airplane-right.png");
    background-size: contain;
    background-repeat: no-repeat;
}


/* ------------------------------------------------------------------ */
/*                            Feddback                                */
/* ------------------------------------------------------------------ */
.sleek-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 16px;
}
.sleek-form .form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.sleek-form input[type="text"],
.sleek-form input[type="email"],
.sleek-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f9f9f9;
  transition: border 0.3s;
}
.sleek-form .form-row input {
  flex: 1 1 48%;
}
.sleek-form input:focus,
.sleek-form textarea:focus {
  border-color: var(--blue);
  background: #fff;
}
.sleek-form .checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.sleek-form .checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #333;
}
.sleek-form .btn-send {
  padding: 14px;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s;
}
.sleek-form .btn-send:hover {
  background: #002f5f;
}

@media (max-width: 480px) {
  .activity-direction__title {
    font-size: 30px;
  }
}























:root {
  --bg: #0a0e14;
  --surface: #0d1117;
  --cyan: #00d4aa;
  --magenta: #d946ef;
  --green: #22c55e;
  --text: #e2e8f0;
  --muted: #64748b;
  --glow-cyan: rgba(0, 212, 170, 0.4);
  --glow-magenta: rgba(217, 70, 239, 0.25);
  --blue: #004080;
}

.welcome {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "SF Mono", "Consolas", "Monaco", "JetBrains Mono", monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 170, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.main {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
}

.line {
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 12px var(--glow-magenta);
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 2rem;
}

.link {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.link:hover {
  color: var(--green);
  text-shadow: 0 0 8px var(--glow-cyan);
}

.year {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.7;
  margin: 0;
}

.main .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.5rem 0;
}
.main .actions .btn { min-width: 140px; }

/* ========== Flights: трекинг полётов ========== */

.flights-app-wrapper {
  min-height: 60vh;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Анимация предзагрузки — по центру видимой области (переопределение без правки scaffold) */
.flights-app-wrapper .view-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.flights-app .wrapper { min-height: 100vh; }
.flights-content-wrapper { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.flights-content { flex: 1; padding: 1.5rem 0; }
.flights-header { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.flights-header .header__logo-text { font-weight: 700; color: var(--color-dark); }
.flights-header .nav__user { font-size: 0.9rem; color: var(--color-text); padding: 0 0.5rem; }

/* Dashboard: заголовок сверху, кнопки строкой ниже */
.flights-dashboard { max-width: 1000px; }
.dashboard-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dashboard-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.page-title { font-size: 1.75rem; margin: 0; }
.page-subtitle { color: var(--color-text); font-size: 0.95rem; margin: 0; opacity: 0.9; }
.aircraft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.aircraft-card { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.aircraft-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.aircraft-card-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}
.aircraft-info { flex: 0 0 auto; min-width: 0; }
.aircraft-card-body .btn { margin-top: 0; align-self: flex-start; }
.aircraft-plate { font-weight: 600; font-size: 1.1rem; margin-bottom: 0.25rem; }
.aircraft-meta { font-size: 0.85rem; color: var(--color-text); opacity: 0.85; }
.api-help { margin-top: 2rem; padding: 1rem; background: var(--color-gray); border-radius: var(--radius); font-size: 0.9rem; }
.api-help summary { cursor: pointer; font-weight: 500; }
.api-help code { background: rgba(0,0,0,0.06); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.85em; }

/* Vehicle page */
.flights-vehicle-page .row { align-items: flex-start; }
.vehicle-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.toolbar-actions .btn { flex-shrink: 0; }
.form-inline {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.form-inline .btn { margin: 0; }
.vehicle-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.vehicle-controls label { display: block; font-size: 0.75rem; margin-bottom: 0.25rem; color: var(--color-text); }
.vehicle-controls .form-control { min-width: 140px; }
.vehicle-json-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.vehicle-json-actions > a,
.vehicle-json-actions > .form-inline {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.vehicle-json-actions .form-inline { margin: 0; }
/* Одинаковая высота и выравнивание кнопок в одном ряду */
.vehicle-json-actions .btn {
  margin: 0;
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.map-box {
  width: 100%;
  height: 400px;
  background: #e8ecef;
  border-radius: var(--radius);
  overflow: hidden;
}
.map-box .leaflet-container { height: 100%; width: 100%; }
.table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  margin-top: 0.5rem;
  max-height: 420px;
}
.table-wrap .table { width: 100%; }
.table-wrap .table th { white-space: nowrap; }
.table-wrap .table td { font-size: 0.85rem; }
.table-wrap .table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--color-white);
}
.table tbody tr { cursor: pointer; transition: background 0.15s; }
.table tbody tr:hover { background: var(--color-gray); }
.table tbody tr.active { background: rgba(52, 152, 219, 0.12); }
.font-monospace { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.small { font-size: 0.85rem; }
.card-header-inline { font-weight: 600; margin-bottom: 0.75rem; font-size: 1rem; }
.chart-row { margin-bottom: 1.25rem; }
.chart-row:last-child { margin-bottom: 0; }
.chart-label { font-size: 0.85rem; color: var(--color-text); margin-bottom: 0.35rem; }
/* Оба блока сайдбара (Текущая точка + API токен) зафиксированы при прокрутке */
.vehicle-sidebar-sticky {
  position: sticky;
  top: 1rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sticky-panel {
  position: sticky;
  top: 1rem;
  z-index: 2;
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.sticky-panel.soft-card { background: var(--color-white); }
.current-point { font-size: 0.9rem; line-height: 1.6; }
.current-point span { font-family: ui-monospace, Consolas, monospace; }
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  background: var(--color-gray);
  border-radius: 50px;
  color: var(--color-text);
}
.btn-outline.btn-danger { border-color: var(--color-red); color: var(--color-red); }
.btn-outline.btn-danger:hover { background: var(--color-red); color: var(--color-white); }
.soft-card { border: 1px solid #e8ecf0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.empty-state .card-body { text-align: center; color: var(--color-text); }

/* Auth */
.flights-auth { min-height: 100vh; background: linear-gradient(145deg, #0d1117 0%, #161b22 100%); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-page { width: 100%; max-width: 400px; }
.auth-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  padding: 2rem;
}
.auth-title { font-size: 1.5rem; margin: 0 0 1.5rem; text-align: center; }
.auth-footer { text-align: center; margin: 1rem 0 0; font-size: 0.9rem; color: var(--color-text); }
.auth-footer a { font-weight: 500; }
.auth-back { display: inline-block; margin-bottom: 1rem; font-size: 0.9rem; color: var(--color-text); }
.auth-messages { list-style: none; margin: 0 0 1rem; padding: 0; }
.auth-messages .alert { margin-bottom: 0.5rem; }
.auth-in-site { padding: 2rem 0; }
.auth-card--in-site { max-width: 420px; margin: 0 auto; padding: 2rem; background: var(--color-white); border-radius: var(--radius); border: 1px solid #e8ecf0; box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
.auth-lead { margin: 0 0 1.25rem; color: var(--color-text); }
.auth-form .form-group { margin-bottom: 1rem; }
/* Чекбокс слева от надписи «Запомнить меня» */
.auth-form .form-group:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.auth-form .form-group:has(input[type="checkbox"]) .form-label { order: 2; margin-bottom: 0; }
.auth-form .form-group:has(input[type="checkbox"]) input[type="checkbox"] { order: 1; width: auto; }
.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"],
.auth-form input[type="url"] { width: 100%; padding: 0.6rem 1rem; border: 1px solid var(--color-border); border-radius: var(--radius); font-size: 1rem; }
.auth-form input:focus { outline: none; border-color: var(--blue); }
.auth-form .form-help { display: block; font-size: 0.85rem; color: var(--color-text); margin-top: 0.25rem; }
.auth-form .form-error { display: block; font-size: 0.85rem; color: var(--color-red); margin-top: 0.25rem; }
/* Кнопка «Войти» — синяя из scaffold */
/* Кнопки как на странице «Контакты»: тёмно-синие, по центру где одна кнопка */
.auth-form .btn-primary,
.auth-card .btn-primary {
  padding: 14px 1.5rem;
  background: var(--blue);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  transition: background 0.3s;
}
.auth-form .btn-primary:hover,
.auth-card .btn-primary:hover { background: #002f5f; color: #fff; }
.auth-form_centered button[type="submit"] { display: block; margin-left: auto; margin-right: auto; }
.auth-subtitle { font-size: 1.1rem; margin: 0 0 0.75rem; }
.form-group--inline { display: block; margin-bottom: 0.5rem; }
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.alert-danger { background: #fde8e8; color: #c0392b; border: 1px solid #f5c6cb; }
.mt-3 { margin-top: 1rem; }

/* Form page */
.flights-form-page { max-width: 520px; }
.form-card .card-body { padding: 1.5rem; }
.input-group { display: flex; gap: 0.5rem; }
.input-group .form-control { flex: 1; min-width: 0; }
.input-group--align { align-items: center; }
.input-group--align .form-control { height: 38px; min-height: 38px; padding: 0.4rem 0.75rem; }
.api-token-card .card-body { padding: 1.5rem 2rem; }
.api-token-field { margin-bottom: 0.5rem; }
.api-token-field .form-control { width: 100%; }
.api-token-actions { margin-bottom: 0.75rem; }
.api-token-card form { margin-top: 0; }
@media (max-width: 768px) {
  .vehicle-controls { flex-direction: column; align-items: stretch; }
  .vehicle-controls .form-control { min-width: 0; }
  .col-lg-4 .sticky-panel { position: static; }
  .vehicle-sidebar-sticky { position: static; }
}

/* ========== Основной layout (body.app) ========== */
.header {box-shadow: 0 2px 8px rgba(0,0,0,0.06);}
.app .wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.header--main .header__logo-text { font-weight: 700; color: var(--color-dark); }
.app__content { flex: 1; }
.app__footer { margin-top: auto; padding: 1.5rem 0; border-top: 1px solid #e8ecf0; }
.app__footer .footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.app__footer .footer__logo { font-weight: 600; color: var(--color-dark); margin-right: 1rem; }
.app__footer .footer__nav { display: flex; gap: 1rem; margin-right: auto; }
.app__footer .footer__nav a { color: var(--color-text); }
.app__footer .footer__copy { margin: 0; font-size: 0.9rem; color: var(--color-text); opacity: 0.9; width: 100%; }
.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(180deg, #f8fafc 0%, var(--color-light-gray) 100%);
}
.hero__title { font-size: 2.5rem; margin: 0 0 0.5rem; color: var(--color-dark); }
.hero__subtitle { font-size: 1.2rem; color: var(--color-text); margin: 0 0 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: center; }
.hero__login { font-size: 1rem; color: var(--color-text); }
.hero__login a { font-weight: 500; }
.demo {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid #e8ecf0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.demo__title { font-weight: 600; margin: 0 0 0.5rem; font-size: 1rem; }
.demo p { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--color-text); }
.demo .btn { margin-top: 0.5rem; }
.section { padding: 2.5rem 0; }
.section__title { font-size: 1.75rem; margin: 0 0 1.5rem; color: var(--color-dark); }
.section__cta { margin: 1.5rem 0 0; }
.product__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--color-white);
  border: 1px solid #e8ecf0;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.feature-card h3 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.feature-card p { margin: 0; font-size: 0.95rem; color: var(--color-text); }
.feature-card code { font-size: 0.85em; background: var(--color-gray); padding: 0.1rem 0.35rem; border-radius: 4px; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #eee; }
.news-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.news-list__date { display: block; font-size: 0.85rem; color: var(--color-text); opacity: 0.8; margin-bottom: 0.35rem; }
.news-list a { color: var(--blue); }
.news-list--full .news-list__date { margin-bottom: 0.5rem; }
.news-list--full h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }
.news-list--full p { margin: 0; color: var(--color-text); }
.page-head { padding: 2rem 0 1rem; }
.page-head__title { font-size: 2rem; margin: 0 0 0.5rem; }
.page-head__subtitle { font-size: 1.1rem; color: var(--color-text); margin: 0; }
.text-list { margin: 0 0 1rem; padding-left: 1.5rem; }
.text-list li { margin-bottom: 0.5rem; }
.container--narrow { max-width: 720px; }
.news-item-card { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; }
.news-item-card__date { font-size: 0.9rem; color: var(--color-text); opacity: 0.8; }
.news-item-card__title { font-size: 1.25rem; margin: 0.5rem 0; }
.news-item-card__title a { color: inherit; }
.news-item-card__title a:hover { color: var(--blue); }
.news-item-card__summary { margin: 0; font-size: 0.95rem; color: var(--color-text); }
.news-body { margin-bottom: 1.5rem; }
.page-head__date { display: block; font-size: 0.95rem; color: var(--color-text); margin-bottom: 0.25rem; }
.pagination { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pagination__current { color: var(--color-text); font-size: 0.9rem; }

/* Карточка контента: секции, блоки, списки — без инлайновых стилей в шаблонах */
.card__block { margin: 1rem 0; }
.card__hr { margin: 2.5rem 0; }
.card__list { margin: 1rem 0; padding-left: 0; list-style: none; }
.card__list li { margin-bottom: 0.5rem; }
.card__highlight { margin: 2.5rem 0; padding: 1.25rem; background-color: #f8f9fa; border-radius: 8px; }

.partner-logo img { max-height: 90px; width: auto; }
.input-file-hidden { display: none; }

/* Контент: секции и заголовки (BEM), единый стиль с сайтом */
.content__section { padding: 1.5rem 0 2rem; }
.content__section .container { padding-left: 1.25rem; padding-right: 1.25rem; }
.content__title { text-align: center; margin: 0 0 1.5rem; font-size: 1.75rem; }
.content__body { padding: 0.5rem 0 1rem; }
.content__body > * + * { margin-top: 1rem; }
.content__meta { font-size: 0.95rem; color: var(--color-text); margin: 0 0 1rem; }
.content__empty { margin: 1rem 0; }
.content__back { margin-top: 1.5rem; }

/* Новости: карточки списка (BEM) */
.news-card {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid #e8ecf0;
}
.news-card:last-of-type { margin-bottom: 0; border-bottom: 0; }
.news-card__date { display: block; font-size: 0.9rem; color: var(--color-text); opacity: 0.8; margin-bottom: 0.35rem; }
.news-card__title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.news-card__link { color: var(--blue); text-decoration: none; }
.news-card__link:hover { color: var(--magenta); }
.news-card__summary { margin: 0; font-size: 0.95rem; color: var(--color-text); }

/* Страница одной новости */
.news-detail__body { padding: 0.5rem 0 1rem; line-height: 1.6; }
.news-detail__body p { margin-bottom: 1rem; }

/* ========== Базовый класс кнопок: единые размеры для ВСЕХ кнопок ========== */
.btn,
a.btn {
  display: inline-block;
  box-sizing: border-box;
  padding: 10px 1.25rem;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
  border-radius: 8px;
  min-height: 44px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-sm,
a.btn-sm {
  padding: 8px 1rem;
  font-size: 0.9rem;
  min-height: 38px;
}

/* Основная кнопка (синяя) */
.btn-primary,
.content .btn-primary,
.flights-app-wrapper .btn-primary,
a.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.btn-primary:hover,
a.btn-primary:hover { background: #002f5f; border-color: #002f5f; color: #fff; }

/* Контурная кнопка — та же форма, другой стиль */
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover { background: rgba(0, 64, 128, 0.08); color: #002f5f; }
.btn-outline.btn-danger {
  color: #c0392b;
  border-color: #c0392b;
}
.btn-outline.btn-danger:hover { background: #c0392b; color: #fff; }

/* Переопределения старых селекторов — только цвет, размеры из .btn */
.content .btn:not(.btn-danger):not(.btn-outline.btn-danger),
.content .btn-primary { background: var(--blue); border: 2px solid var(--blue); color: #fff; }
.content .btn:not(.btn-danger):not(.btn-outline.btn-danger):hover,
.content .btn-primary:hover { background: #002f5f; border-color: #002f5f; color: #fff; }
.flights-app-wrapper .btn:not(.btn-danger):not(.btn-outline.btn-danger),
.flights-app-wrapper .btn-primary { background: var(--blue); border: 2px solid var(--blue); color: #fff; }
.flights-app-wrapper .btn:not(.btn-danger):not(.btn-outline.btn-danger):hover,
.flights-app-wrapper .btn-primary:hover { background: #002f5f; border-color: #002f5f; color: #fff; }
