html, body {
  font-size: 16px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

#logo img {
  width: 200px;
  height: auto;
}

#logo a {
  display: block;
}

#header-contact {
  text-align: right;
}

#header-contact p {
  margin-bottom: 0.25rem;
}

#header-contact a {
  color: inherit;
  text-decoration: none;
}

#header-contact a:hover {
  text-decoration: underline;
}

#slider-one {
  background-image: url('/static/images/slider01.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #f1f1f1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

#slider-one .btn {
  text-shadow: none;
}

#footer-page {
  background-color: #262626;
  color: #fff;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.content-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1rem 0;
}

.content-body h2,
.content-body h3 {
  margin-top: 1.5rem;
}

.content-body table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.content-body table th,
.content-body table td {
  padding: 0.65rem 0.85rem;
  border: 1px solid #dee2e6;
  vertical-align: top;
}

.content-body table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.content-body table th {
  background-color: #f1f3f5;
  font-weight: 600;
}

.content-body table thead:empty,
.content-body table thead tr:only-child:not(:has(th:not(:empty))) {
  display: none;
}

/* Пакетный каркас посадочных (АПС и остальные услуги) */

.aps-lead {
  font-size: 1.05rem;
  color: #495057;
  margin-bottom: 1rem;
}

.aps-fork-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}

.aps-fork-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.aps-fork-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid #dee2e6;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #fff 0%, #f8f9fa 100%);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.aps-fork-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 0.5rem 1.25rem rgba(13, 110, 253, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
  color: inherit;
}

.aps-fork-kicker {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6c757d;
}

.aps-fork-card strong {
  font-size: 1.15rem;
}

.aps-fork-card > span:last-child {
  font-size: 0.92rem;
  color: #6c757d;
}

.aps-section {
  margin-top: 2.25rem;
  padding-top: 0.25rem;
  scroll-margin-top: 1.25rem;
}

.aps-package-single {
  max-width: 28rem;
}

.aps-packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0;
}

.aps-package {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.15rem 1.2rem;
  border: 1px solid #dee2e6;
  border-radius: 0.85rem;
  background: #fff;
}

.aps-package-accent {
  border-color: #0d6efd;
  box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.15);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 55%);
}

.aps-package-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  margin-bottom: 0.35rem;
}

.aps-package-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.aps-package-meta {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

.aps-package-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0d6efd;
  background: rgba(13, 110, 253, 0.1);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.aps-package-price {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0.35rem 0 0.5rem;
}

.aps-package-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: #6c757d;
  margin-left: 0.15rem;
}

.aps-package ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  flex: 1;
}

.aps-package li {
  margin-bottom: 0.3rem;
  font-size: 0.92rem;
}

.aps-package .btn {
  align-self: flex-start;
}

.aps-note {
  font-size: 0.9rem;
  color: #6c757d;
}

.aps-checklist {
  margin-bottom: 0.5rem;
}

.aps-rates th {
  white-space: nowrap;
}

.aps-seo-block {
  margin-top: 2.5rem;
  padding-top: 0.25rem;
}

.aps-seo-block h2 {
  margin-top: 0;
}

.aps-seo-block h3 {
  margin-top: 1.25rem;
  font-size: 1.15rem;
}

.aps-related {
  margin-top: 2rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid #dee2e6;
  border-radius: 0.85rem;
  background: #f8f9fa;
}

.aps-related h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.aps-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aps-related a {
  text-decoration: none;
  font-weight: 500;
}

.aps-related a:hover {
  text-decoration: underline;
}

.aps-faq {
  margin-top: 2.5rem;
  scroll-margin-top: 1.25rem;
}

.aps-faq h2 {
  margin-bottom: 1rem;
}

.aps-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.aps-faq-item {
  padding: 1rem 1.15rem;
  border: 1px solid #dee2e6;
  border-radius: 0.85rem;
  background: #fff;
}

.aps-faq-q {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 650;
}

.aps-faq-a {
  margin: 0;
  color: #495057;
  font-size: 0.96rem;
}

@media screen and (max-width: 992px) {
  .aps-packages,
  .aps-fork-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .aps-fork-grid {
    grid-template-columns: 1fr;
  }
}

.contact-box {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 2rem 0 1rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

.admin-shell {
  max-width: 1100px;
}

.admin-nav a {
  margin-right: 0.75rem;
}

.menu-admin-item {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.menu-admin-item.child {
  margin-left: 1.5rem;
}

.menu-admin-item.is-open {
  border-color: #adb5bd;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.menu-admin-summary .badge {
  font-weight: 500;
}

.tox-tinymce {
  border-radius: 0.5rem !important;
}

@media screen and (max-width: 768px) {
  #logo {
    text-align: center;
  }

  #header-contact {
    text-align: center;
  }

  #header-contact p {
    margin-bottom: 0;
  }

  #slider-one {
    background-image: url('/static/images/slider_mobile_mbtgroup.jpg');
  }

  #footer-page .col-6 {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}
