/* Основные стили */
body {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  color: #222;
  line-height: 1.6;
  padding: 0 15px;
}

/* Навигация */
nav {
  background: #4772a3;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 5px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

nav li {
  margin-right: 15px;
  position: relative;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 3px;
  transition: background-color 0.3s;
}

/* Графическая ссылка - логотип */
.logo-link {
  margin-right: 20px;
}

.logo-img {
  height: 15px;
  width: auto;
  vertical-align: middle;
  border-radius: 3px;
}

/* Активная ссылка */
.nav-link.active {
  text-decoration: underline;
  background: #a8c3e1;
  color: #222;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Выпадающее меню */
nav ul li .dropdown > a::after { 
  content: ' ▼'; 
  font-size: 0.8em; 
}

nav ul li ul {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 150px;
  background: #4080b0;
  border-radius: 0 0 6px 6px;
  padding: 0;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

nav ul li:hover > ul { 
  display: block; 
}

nav ul li ul li { 
  display: block; 
  margin: 0; 
}

nav ul li ul li a { 
  color: #fff; 
  white-space: nowrap; 
  display: block; 
  padding: 6px 12px; 
  border-bottom: 1px solid #5a8bc5;
}

nav ul li ul li:last-child a {
  border-bottom: none;
}
nav a.active, 
nav a:hover, 
nav a:focus { 
  background: #a8c3e1; 
  color: #222; 
  text-decoration: underline;
  border-radius: 4px;
}

/* Заголовки */
h1 { 
  color: #4772a3; 
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

h2 { 
  color: #255080; 
  margin-top: 30px;
}

h3 {
  color: #3a6ba5;
  margin-top: 20px;
}

/* Внутренняя навигация */
.internal-nav {
  background: #e8f0f8;
  padding: 15px;
  margin: 20px 0;
  border-radius: 5px;
  text-align: center;
  border: 1px solid #d0e0f0;
}

.internal-nav a {
  color: #255080;
  text-decoration: none;
  margin: 0 10px;
  padding: 5px 10px;
  border-radius: 3px;
  font-weight: bold;
}

.internal-nav a:hover {
  background: #d0e0f0;
  text-decoration: underline;
}

/* Таблицы */
table {
  background: #f7f7f7;
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
}

th, td { 
  border: 1px solid #aaa; 
  padding: 10px; 
  text-align: left;
}

th {
  background: #4772a3;
  color: white;
  font-weight: bold;
}

/* Таблица с фоновым изображением */
.table-bg-image {
  background-image: url('images/background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border: 2px solid #4772a3;
}

.table-bg-image th {
  background-color: rgba(71, 114, 163, 0.85);
  color: white;
}

.table-bg-image td {
  background-color: rgba(255, 255, 255, 0.92);
}

/* Дополнительные классы для таблицы */
.table-header {
  text-align: center;
  background-color: #e8f4f8;
  height: 50px;
  vertical-align: middle;
  font-size: 1.1em;
}

.table-cell-left {
  vertical-align: top;
  padding: 15px;
  width: 200px;
}

.table-cell-right {
  vertical-align: top;
  padding: 15px;
  width: 250px;
}

.table-footer {
  text-align: center;
  padding: 10px;
  background-color: #f0f8ff;
}

/* Класс для технологических изображений (опционально) */
.tech-image {
  width: 300px;
  height: 200px;
  object-fit: cover;
  margin: 10px auto;
  border: 1px solid #ccc;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Ячейка с фоновым изображением */
.cell-bg-image {
  background-image: url('images/cell-bg.jpg');
  background-size: cover;
  background-position: center;
  text-align: center;
  vertical-align: middle;
}

/* Изображения */
.thumbnail {
  width: 100px;
  height: auto;
  border: 2px solid #4772a3;
  border-radius: 4px;
  transition: transform 0.3s;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

.thumbnail:hover {
  transform: scale(1.05);
  border-color: #255080;
}

.large-image-link {
  display: inline-block;
  text-align: center;
  margin: 15px 0;
}

    .small-btn {
      background: #3498db;
      color: white;
      border: none;
      padding: 5px 10px;
      border-radius: 3px;
      cursor: pointer;
      font-size: 14px;
    }

    .small-btn:hover {
      background: #2980b9;
    }

    .passport-card p {
      font-size: 18px;
      margin: 10px 0;
    }

    .cyrillic-text {
      font-weight: bold;
      color: #2c3e50;
    }


/* Классы для галереи (опционально) */
.box-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px 0;
  justify-content: center;
}

.box-card {
  border: 1px solid #ddd;
  padding: 20px;
  width: 300px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.box-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.box-card h4 {
  color: #255080;
  margin-top: 0;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Класс для специальных миниатюр (опционально) */
.miniature {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 2px solid #ccc;
  cursor: pointer;
  border-radius: 4px;
}

.miniature:hover {
  border-color: #4772a3;
}

.image-caption {
  font-style: italic;
  color: #555;
  font-size: 0.9em;
  margin-top: 8px;
  text-align: center;
}

figure {
  margin: 25px 0;
  text-align: center;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 5px;
  border: 1px solid #eee;
}

figcaption {
  font-style: italic;
  color: #666;
  margin-top: 10px;
  font-size: 0.9em;
  line-height: 1.4;
}

/* Списки */
ul, ol {
  margin: 15px 0;
  padding-left: 25px;
}

li {
  margin: 5px 0;
}

/* Формы */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.form-section {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 25px;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-section h2 {
  color: #255080;
  border-bottom: 2px solid #4772a3;
  padding-bottom: 10px;
  margin-top: 0;
}

.form-label {
  display: block;
  margin: 15px 0 5px;
  font-weight: bold;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  transition: border-color 0.3s;
}

.form-input:focus {
  border-color: #4772a3;
  outline: none;
  box-shadow: 0 0 5px rgba(71, 114, 163, 0.3);
}

.required::after {
  content: " *";
  color: #e74c3c;
}

.form-submit {
  background: #4772a3;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s;
}

.form-submit:hover {
  background: #255080;
}

.form-submit:active {
  transform: translateY(1px);
}

/* Если этих классов нет в вашем styles.css, добавьте: */
.info-box {
  background: #e8f4f8;
  padding: 15px;
  border-radius: 5px;
  margin-top: 30px;
  border: 1px solid #d0e0f0;
}

.page-footer-links {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.form-note {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  font-style: italic;
}

.radio-label, .checkbox-label {
  display: inline-block;
  margin-right: 20px;
  font-weight: normal;
  cursor: pointer;
}

/* Группы элементов формы */
.inline-group {
  margin: 15px 0;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 4px;
}

.inline-group label {
  display: inline-block;
  margin-right: 20px;
  font-weight: normal;
  cursor: pointer;
}

/* Адаптивность */
@media (max-width: 768px) {
  body {
    max-width: 100%;
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    margin-right: 0;
    margin-bottom: 8px;
  }

  nav ul li ul {
    position: static;
    display: none;
    background: #5a8bc5;
    margin-left: 15px;
    width: calc(100% - 30px);
  }

  nav ul li:hover > ul {
    display: block;
  }

  .thumbnail {
    width: 80px;
  }

  table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
  }

  .internal-nav {
    font-size: 14px;
  }

  .internal-nav a {
    display: inline-block;
    margin: 5px;
    padding: 8px 12px;
  }

  .form-section {
    padding: 15px;
  }
}
    /* Стили для выделения активной страницы в навигации */
    .nav-active {
      background-color: #2c3e50;
      color: white;
      border-radius: 4px;
      padding: 5px 10px;
    }

    /* Уменьшаем размер логотипа */

    .logo-img:hover {
      transform: scale(1.05);
    }

    /* Стили для внутренней навигации */
    .internal-nav {
      margin: 20px 0;
      padding: 10px;
      background-color: #f8f9fa;
      border-left: 4px solid #3498db;
    }

    .internal-nav a {
      color: #2c3e50;
      text-decoration: none;
      margin-right: 15px;
      padding: 5px 10px;
      border-radius: 3px;
    }

    .internal-nav a:hover {
      background-color: #e9ecef;
    }

    .internal-nav a.internal-active {
      background-color: #3498db;
      color: white;
      font-weight: bold;
    }

@media (max-width: 480px) {
  h1 { font-size: 1.5em; }
  h2 { font-size: 1.3em; }
  h3 { font-size: 1.1em; }

  .thumbnail {
    width: 70px;
  }
}
nav ul li ul li { display: block; margin: 0; }
nav ul li ul li a { color: #fff; white-space: nowrap; display: block; padding: 6px 12px; }
nav a.active, nav a:focus, nav a:hover { background: #a8c3e1; color: #222; text-decoration: underline; border-radius: 4px; }




