/* ----- Базовые сбросы ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: #fff;
  color: #2D3748;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ----- Шапка ----- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s;
}
.header.scrolled {
  position: fixed;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.logo-img {
  height: 70px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.nav a {
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.header.scrolled .nav a {
  color: #2D3748;
}
.nav a:hover {
  border-bottom-color: #F2C94C;
}
.nav a.active {
  border-bottom-color: #F2C94C;
}

/* ----- Баннер (с размытием нижнего края) ----- */
.hero {
  min-height: 400px;
  padding: 120px 0;
  background: linear-gradient(135deg, #0F4C5C 0%, #1A5B6B 100%);
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  position: relative;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to top, #ffffff, transparent);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0;
}

/* ----- Блок с изображениями ----- */
.image-section {
  padding: 80px 0;
  background: #fff;
}
.image-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.image-item {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #fff;
}
.image-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
.image-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.image-item:hover img {
  transform: scale(1.03);
}

/* ----- Контакты ----- */
.contacts {
  padding: 80px 0;
  background: #F8F9FA;
}
.section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #0F4C5C;
}
.section-title span {
  color: #F2C94C;
}
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}
.contact-item {
  background: #fff;
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.contact-item .icon {
  font-size: 32px;
  display: block;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}
.contact-item:hover .icon {
  transform: scale(1.2) rotate(-5deg);
}
.contact-item h4 {
  font-size: 20px;
  color: #0F4C5C;
  margin-bottom: 8px;
}
.contact-item p {
  color: #4A5568;
}

/* ----- Подвал ----- */
.footer {
  background: #0F4C5C;
  color: #CBD5E0;
  padding: 40px 0;
  text-align: center;
}
.footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.footer-links a {
  color: #CBD5E0;
  transition: color 0.3s;
}
.footer-links a:hover {
  color: #fff;
}

/* ----- Кнопка "Наверх" (стеклянная, полупрозрачная) ----- */
.to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #2D3748;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, visibility 0.4s, background 0.3s;
  transform: translateY(30px) scale(0.9);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.to-top:hover {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transform: scale(1.05) translateY(-3px);
}
.to-top:active {
  transform: scale(0.92);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  /* Шапка: делаем относительной, чтобы меню не вылезало */
  .header {
    position: relative;
    padding: 16px 0;
    background: #0F4C5C;
  }
  .header.scrolled {
    position: fixed;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
  }
  .header .container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .logo-img {
    height: 50px;
    align-self: center;
  }
  .nav {
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nav a {
    font-size: 14px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    border-bottom: none;
  }
  .header.scrolled .nav a {
    background: #edf2f7;
    color: #2D3748;
  }
  .nav a:hover {
    border-bottom: none;
    background: rgba(242, 201, 76, 0.2);
  }
  .nav a.active {
    border-bottom: none;
    background: #F2C94C;
    color: #0F4C5C;
  }

  /* Баннер */
  .hero {
    min-height: 300px;
    padding: 100px 0 60px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero::after {
    height: 60px;
  }

  /* Контейнер */
  .container {
    padding: 0 20px;
  }

  /* Заголовки */
  .section-title {
    font-size: 30px;
  }

  /* Отступ между картинками меньше */
  .image-stack {
    gap: 24px;
  }

  /* Кнопка "Наверх" */
  .to-top {
    width: 44px;
    height: 44px;
    font-size: 22px;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.4);
  }
}

@media (max-width: 480px) {
  .header {
    padding: 12px 0;
  }
  .logo-img {
    height: 40px;
  }
  .nav a {
    font-size: 12px;
    padding: 4px 10px;
  }
  .hero {
    min-height: 250px;
    padding: 80px 0 40px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .hero::after {
    height: 40px;
  }
  .section-title {
    font-size: 24px;
  }
  .image-stack {
    gap: 16px;
  }
}

/* ----- Двухколоночный макет (контент + боковое меню) ----- */
.two-columns {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding: 40px 0;
}
.main-content {
  flex: 1;
  min-width: 0;
}
.sidebar {
  flex: 0 0 250px;
}
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  overflow: hidden;
}
.sidebar-menu li {
  border-bottom: 1px solid #f0f0f0;
}
.sidebar-menu li:last-child {
  border-bottom: none;
}
.sidebar-menu a {
  display: block;
  padding: 16px 20px;
  color: #2D3748;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-left 0.2s;
  border-left: 4px solid transparent;
}
.sidebar-menu a:hover {
  background: #F8F9FA;
  color: #0F4C5C;
}
.sidebar-menu a.active {
  background: #F8F9FA;
  color: #0F4C5C;
  border-left-color: #F2C94C;
  font-weight: 600;
}

/* ----- Таблица с данными ----- */
.table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
table thead {
  background: #0F4C5C;
  color: #fff;
}
table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
table td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
}
table tbody tr:hover {
  background: #F8F9FA;
}
table tbody tr:last-child td {
  border-bottom: none;
}

/* Адаптив для двухколоночного макета */
@media (max-width: 768px) {
  .two-columns {
    flex-direction: column;
  }
  .sidebar {
    flex: 1 1 100%;
    width: 100%;
  }
  .sidebar-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
  .sidebar-menu li {
    border-bottom: none;
    flex: 1 0 auto;
  }
  .sidebar-menu a {
    padding: 10px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    border-left: none;
    text-align: center;
  }
  .sidebar-menu a.active {
    border-left: none;
    border-color: #F2C94C;
    background: #F2C94C;
    color: #0F4C5C;
  }
  .sidebar-menu a:hover {
    background: #edf2f7;
  }
  table {
    font-size: 13px;
  }
  table th, table td {
    padding: 10px 12px;
  }
}
@media (max-width: 480px) {
  table {
    font-size: 12px;
  }
  table th, table td {
    padding: 8px 10px;
  }
}

/* ----- Блок документов (вертикальный стек) ----- */
.documents-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.document-item {
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #fff;
}
.document-item:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
.document-item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.doc-caption {
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 500;
  color: #2D3748;
  text-align: center;
  border-top: 1px solid #edf2f7;
  background: #fafafa;
}