body {
  font-family: Arial, sans-serif;
  background: #254f39;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* убираем горизонтальный скролл */
}


.table-container {
  display: flex;
  justify-content: center; /* центрирование таблицы */
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

table {
  border-collapse: separate;
  border-spacing: 10px 10px; /* отступы между ячейками */
  max-width: 500px;
  width: 100%;
  font-size: 24px;
	table-layout: fixed;
}

th {
  background: #254f39;
  color: #fff;
  padding: 15px;
  font-size: 20px;
  border-radius: 5px;
}

td {
  padding: 15px;
  text-align: center;
}

/* Покупка и Продажа — белый фон с синим бордером */
td:first-child,
td:last-child {
  background: #fff;
  color: #000;
  font-weight: bold;
  border: 3px solid #C6E27C; /* Светлый оливково-зелёный контур */
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
td.currency {
  text-decoration: underline; /* подчёркивание */
}
/* Валюта по центру */
td:nth-child(2) {
  background: #254f39;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
}

.currency-name {
  font-size: 14px;
  color: #ddd;   /* серый, можно другой */
  display: block;
  margin-top: 5px;
}
/* Подсветка изменений */
.up { color: #0f0 !important; }
.down { color: #f00 !important; }

#updated {
  margin-top: 20px;
  color: #fff;
  font-size: 12px;
}
.working-hours {
  background: #C6E27C;
  color: black;
  padding: 1px 20px;
  margin-top: 30px;
  max-width: 50%;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

.working-hours h2 {
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
}

#open-status.open {
  color: #27A05C; /* зелёный */
  font-weight: bold;
}
#open-status.closed {
  color: #f00; /* красный */
  font-weight: bold;
}

.working-hours ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.working-hours li {
  display: flex;
  justify-content: space-between; /* дни слева, часы справа */
  margin: 5px 0;
  font-size: 18x;
	
}
.address {
  margin-top: 30px;
  background: #C6E27C;
  color: #000;
  padding: 1px 20px;
  text-align: left;
  border-radius: 8px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.address h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.address a {
  color: #1a4d8f;
  font-weight: bold;
  text-decoration: underline;
}

.social {
  margin-top: 30px;
  background: #C6E27C;
  color: #000;
  padding: 1px 20px;
  text-align: left;
  border-radius: 8px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.social h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.social p {
  display: flex;
  align-items: center;
  gap: 8px; /* расстояние между иконкой и текстом */
  margin: 8px 0;
}

.social a {
  color: #1a4d8f;
  font-weight: bold;
  text-decoration: underline;
}

.social .icon {
  width: 30px;  
  height: 30px;
  object-fit: contain;
}
.contact {
  margin-top: 30px;
  background: #C6E27C;
  color: #000;
  padding: 10px 20px 1px;
  text-align: left;
  border-radius: 8px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.contact h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: black;
font-weight: bold;
}
.contact a {
  color: #1a4d8f;
  text-decoration: none;
  font-weight: bold;
}

.contact a:hover {
  text-decoration: underline;
}
.about {
  margin-top: 30px;
  background: #C6E27C;
  color: #000;
  padding: 1px 20px;
  text-align: left;
  border-radius: 8px;
    max-width: 80%;
  margin-left: auto;
  margin-right: auto;
	 text-align: center; /* Заголовок и текст по центру */
}

.about h3 {
  margin-bottom: 18px;
	 font-size: 18px;

}
.about p {
  font-size: 12px;   /* уменьшенный шрифт описания */
  line-height: 1.6;
  margin: 5px 0;
	/* text-align: left ; /* Заголовок и текст по центру */
}

/* модалка */

body.modal-open {
  overflow: hidden;
	height: 100vh; 
	 position: fixed;
}

.modal {
   position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.modal-content {
   width: 90%;
  max-width: 400px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content input {
  width: 80%;
  padding: 8px;
  margin: 10px 0;
  border-radius: 8px;
  border: none;
}

.modal-content button {
  padding: 10px 15px;
  margin-top: 10px;
  border: none;
  border-radius: 8px;
  background: #4CAF50;
  color: white;
  cursor: pointer;
}

.modal-content button:hover {
  background: #45a049;
}

.modal .close {
  position: absolute;
  right: 10px; top: 5px;
  font-size: 22px;
  cursor: pointer;
}

#rates-body td .inner {
  cursor: pointer;
  transition: 0.2s;
}

#rates-body td .inner:hover {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
}
.rate-cell {
  cursor: pointer;
  color: #007bff;
}
.rate-cell:hover {
  text-decoration: underline;
}

.video-block {
  margin-top: 30px;
  background: #C6E27C;
  color: #000;
  padding: 1px 20px;
  border-radius: 8px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
  text-align: center; /* центрируем содержимое */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.video-block button {
  background: #1c5a43;   /* зелёный в стиле сайта */
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  margin: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.video-block button:hover {
  background: #157a55;
  transform: scale(1.05);
}

.video-block button:active {
  background: #0f523b;
  transform: scale(0.97);
}

.A8PRO {
  color: #000;
  text-align: left;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
	font-size: 12px;
}
.A8PRO .a8-link {
  color: inherit;             /* цвет как у текста */
  text-decoration: none;      /* убрать подчёркивание */
  font-weight: 600;
  transition: color 0.3s;
}

.A8PRO .a8-link:hover {
  color: white;             /* красивый цвет при наведении */
}

.full-logo {
  width: 100%;
  background: #254f39;
  display: flex;
  justify-content: center; /* центр по горизонтали */
  align-items: center;     /* центр по вертикали внутри блока */
  padding: 20px 0;         /* высота баннера */
  box-sizing: border-box;
}

.full-logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  margin: 0;
}


@media (max-width: 1000px) {
  table  { font-size: 18px; width: 100%;  max-width: 95%;}
  th, td { padding: 8px; }
  header { font-size: 22px; padding: 10px; width: 100%;  }
  header .logo {
    height: 80px; /* уменьшаем логотип */
  }
  .working-hours li { font-size: 16px }
  .social p { font-size: 16px; padding: 10px 0px;}
}

@media (max-width: 768px){ 
  .working-hours li { font-size: 14px }
}
@supports (-webkit-touch-callout: none) {
  .modal {
    height: -webkit-fill-available;
  }
}

