.exchange-banner {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 3rem 2rem;
  width: 100%;
  background-image: url("../images/phy/exchange-banner.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  aspect-ratio: 2883 / 1024;
  position: relative;
  box-sizing: border-box;
  min-height: 300px;
  transition: background-position 0.3s ease;
}

/* Контейнер кнопки */
.exchange-banner-content {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-right: 3rem;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Кнопка */
.exchange-banner-button {
  color: white;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-weight: 500;
  user-select: none;
  margin-right: 300px; /* изначальный сдвиг */
  margin-bottom: 40px;
  white-space: nowrap;
  max-width: 100%;
}


/* Большие экраны — сдвигаем кнопку левее (меньше margin-right) */
@media (min-width: 1440px) {
  .exchange-banner-button {
    margin-right: 250px;
  }
}

/* Средние экраны — промежуточный сдвиг */
@media (min-width: 1025px) and (max-width: 1439px) {
  .exchange-banner-button {
    margin-right: 120px;
  }
}

/* Мобильные и планшеты (до 768px) */
@media (max-width: 768px) {
  .exchange-banner {
    padding: 2rem 1rem;
    aspect-ratio: auto;
    min-height: 250px;
    background-position: left center; /* смещаем фон влево */
  }

  /* Белый полупрозрачный фон справа */
  .exchange-banner::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    z-index: 1;
    transition: background 0.3s ease;
  }

  .exchange-banner-content {
    justify-content: center;
    padding-right: 0;
  }

  .exchange-banner-button {
    margin-right: 0;
    width: 90%;
    max-width: 320px;
    font-size: 14px;
    padding: 12px 18px;
    margin-bottom: 20px;
    white-space: normal;
    text-align: center;
  }
}

/* Очень маленькие экраны (до 400px) */
@media (max-width: 400px) {
  .exchange-banner-button {
    max-width: 100%;
    font-size: 13px;
    padding: 10px 14px;
  }

  .exchange-banner::after {
    width: 60%;
  }
}




/* Модальное окно */
.exchange-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  overflow-y: auto;
  padding: 2rem;
  box-sizing: border-box;
}

.exchange-modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 30px 40px;
  border-radius: 10px;
  max-width: 550px;
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.exchange-modal-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.exchange-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  font-weight: 700;
  color: #888;
  cursor: pointer;
  user-select: none;
}

.exchange-modal-close:hover {
  color: #000;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Адаптив */
@media (max-width: 600px) {
  .exchange-banner {
    padding: 2rem 1rem;
    aspect-ratio: auto;
    height: 200px;
  }

  .exchange-banner-button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .exchange-modal-content {
    width: 100%;
    margin: 10% auto;
    padding: 20px;
  }
}

/* 					Список представленных услуг				*/
.exchange-introdaction-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
}

.exchange-introdaction-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111;
}

.exchange-introdaction-text {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.exchange-introdaction-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exchange-introdaction-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #2c2c2c;
}

.exchange-introdaction-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  color: #008060;
  flex-shrink: 0;
}
/* 					Таблица с тарифами			*/

.exchange-tarrifs-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.exchange-tarrifs-block {
  margin-bottom: 3rem;
}

.exchange-tarrifs-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #0d0d0d;
}

.exchange-tarrifs-address {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.exchange-tarrifs-address a {
  color: #008060;
  text-decoration: none;
}

.exchange-tarrifs-address a:hover {
  text-decoration: underline;
}

.exchange-tarrifs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.exchange-tarrifs-table thead {
  background-color: #f9f9f9;
}

.exchange-tarrifs-table th,
.exchange-tarrifs-table td {
  padding: 0.75rem 1rem;
  border: 1px solid #e0e0e0;
  text-align: left;
}

.exchange-tarrifs-table th {
  font-weight: 600;
  color: #333;
}

.exchange-tarrifs-note {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.4;
  border-top: 1px solid #eaeaea;
  padding-top: 1rem;
  margin-top: 2rem;
}
/* 					Ссылки на документы			*/
.deposits-file-links {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
}

.deposits-file-links-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1f1f1f;
}

.deposits-file-links-button {
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  display: inline-block;
  text-align: left;
}

.deposits-file-links-button:hover,
.deposits-file-links-button:focus {
  border-bottom-color: #dc3545;
  color: #dc3545;
}

