.page {
  font-family: var(--regular-font), serif;
  min-inline-size: 320px;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: var(--regular-color);
}

/*STRIP*/
.strip {
  font-family: var(--secondary-font), serif;
  font-size: 12px;
  display: flex;
  width: 100%;
  background-color: #2b2b2e;
  color: var(--inverted-color);
  justify-content: space-between;
  padding: 3px 13px;
}

.strip-info {
  display: flex;
  gap: 10px;
}

.strip-contact {
  display: flex;
  gap: 20px;
}

.strip-contact a {
  color: inherit;
  text-decoration: none;
}

.strip_lk button {
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
  appearance: none;
}

/*HEADER*/

.logo {
  padding-top: 30px;
}

.logo-img {
  height: 11rem;
}

.slogan {
  font-family: var(--accent-font), serif;
  font-weight: 300;
  font-size: 20px;
  padding: 12px 0 20px;
}

/* COMPONENTS */
.popup {
  width: 500px;
  height: 500px;
  padding: 30px;
  position: absolute;
  /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)); */
  background-color: rgba(100, 100, 100 / 40%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 32px;
}

.link {
  color: inherit;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.btn {
  font-family: var(--accent-font);
  font-weight: 200;
  color: inherit;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.btn:hover {
  color: var(--accent-color);
}

.btn:focus-visible {
  color: var(--accent-color);
}

.btn-form {
  background-color: transparent;
  border: 1px solid var(--secondary-color);
  padding: 3px 30px;
  border-radius: 30px;
  cursor: pointer;
}

.btn-form:hover {
  border-color: var(--accent-color);
}

.textbox {
  height: 50px;
  width: 100%;
  border-radius: 3px;
  border: rgba(0, 0, 0, .3) 2px solid;
  font-size: 18px;
  padding: 10px;
  margin-bottom: 30px;
}

.textbox:focus {
  outline: none;
  border: 2px solid rgba(0, 0, 0, .3);
  color: black;
  -moz-box-shadow: 0 0 9px #c1caca;
  -webkit-box-shadow: 0 0 9px #c1caca;
  box-shadow: 0 0 9px #c1caca;
}

.nav-page {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.nav-page-list {
  display: flex;
  gap: 30px;
  font-size: 18px;
}

.title-page {
  font-size: 23px;
  color: var(--inverted-color);
  background-color: var(--accent-color);
  text-transform: uppercase;
  font-weight: normal;
  padding: 3px 60px;
}

.minimal-table {
  width: 100%;
  border-collapse: collapse;
}

.minimal-table caption {
  font-family: var(--secondary-font) color: #333;
  text-align: left;
  /* font-weight: 600; */
  font-size: 12px;
}

.minimal-table th {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
}

.minimal-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.minimal-table tr:last-child td {
  border-bottom: none;
}

/* Модальное окно (лайтбокс) */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.hidden {
  opacity: 0;
  visibility: hidden;
}

.lightbox.visible {
  opacity: 1;
  visibility: visible;
}

/* Само увеличенное фото */
.lightbox-image {
  max-width: 90vw;
  max-height: 95vh;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.lightbox.visible .lightbox-image {
  transform: scale(1.02);
}

/* Кнопка закрытия */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
  padding: 4px 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Фон-затемнение */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(211, 211, 211, 0.55);
  /* полупрозрачный чёрный */
  backdrop-filter: blur(8px);
  /* эффект матового стекла по фону */
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Само окно */
.popup-window {
  background: rgba(255, 255, 255, 0.92);
  /* почти белый, но полупрозрачный */
  backdrop-filter: blur(12px);
  /* главный эффект матового стекла */
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 24px;
  max-width: 480px;
  width: 90%;
  border-radius: 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #333;
}

/* Заголовок */
.popup-title {
  margin: 0 0 12px 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* Текст */
.popup-text {
  margin: 0 0 20px 0;
  line-height: 1.5;
  color: #555;
}

/* Кнопки */
.popup-actions {
  display: flex;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.2s;
}

.btn-primary {
  background: #000;
  color: #fff;
  flex: 1;
}

.btn-primary:hover {
  background: #222;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: transparent;
  color: #555;
  border: 1px solid #e0e0e0;
}

.btn-secondary:hover {
  border-color: #ccc;
  color: #333;
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* Кнопка закрытия */
.popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: #757575;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
}

.popup-close:hover {
  color: #000;
}

/* Класс для скрытия */
.hidden {
  display: none;
  /* используется только до первого рендера, дальше управляем через opacity/visibility */
}

.context-area {
  width: 100%;
  max-width: 600px;
  padding: 24px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  cursor: default;
}

/* Контейнер меню */
.context-menu {
  position: fixed;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  min-width: 200px;
  z-index: 9999;
  user-select: none;
  /* чтобы текст не выделялся при кликах */
}

.context-menu.hidden {
  display: none;
}

/* Пункт меню */
.menu-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: #333;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.menu-item:hover {
  background: #f5f5f5;
  color: #000;
}

.menu-icon {
  margin-right: 12px;
  flex-shrink: 0;
}

.menu-label {
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Разделитель */
.menu-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 4px 16px;
}


/* CONDITIONS */
.active {
  color: var(--accent-color);
  text-decoration: none;
  cursor: default;
}

.zoom:hover {
  cursor: zoom-in;
  /* встроенная лупа «приблизить» */
}

/*CONTENT*/
.content-wrapper {
  display: flex;
  flex: 1;
  width: 100%;
  justify-content: center;
}

.content-text {
  display: flex;
  flex-direction: column;
  width: 700px;
  gap: 10px;
}

.content-text p {
  text-align: justify;
  /* переносы слов (лучше читаемость) */
  /* hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto; */
}

.content-text ol {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-page {
  width: 100%;
  display: grid;
  gap: 0 31px;
  grid-template-columns: 3fr 2fr;
  align-items: start;
}

.home-page .slogan {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: end;
  white-space: nowrap;
  padding-bottom: 7px;
}

.home-page .logo {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
}

.home-page ul {
  grid-column: 2;
  grid-row: 2;
  font-size: 24px;
  line-height: 1.7;
  position: relative;
}

.home-page ul::before {
  content: "";
  position: absolute;
  left: -15px;
  height: calc(100vh - 100vh/3);
  min-height: 500px;
  z-index: -1;
  /* top: 0; */
  /* ровно от верха обёртки (под шапкой) */
  bottom: 0;
  /* ровно до низа обёртки (до конца списка) */
  width: 1px;
  background-color: red;
}

.contents {}

.contents-list {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 20px;
}

/* NEWS */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  position: relative;

}

.news-date {
  font-family: var(--accent-font);
  font-size: 16px;
  font-weight: bold;
}

.news-title {
  font-family: var(--accent-font);
}

.news-text {
  display: flex;
  padding-top: 5px;
  flex-direction: column;
  gap: 10px;
}

.news-item::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #e0e0e0;
}

.news-item::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #e0e0e0;
}

/*FOOTER*/
.footer {
  font-size: 12px;
  width: 100%;
  gap: 20px;
  padding: 30px 13px 13px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

}

.copyright {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.legal {
  grid-column: 3;
  justify-self: end;
  white-space: nowrap;
}