@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


/* Общие стили */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

body {
  background-color: #121212;
  color: white;
  padding: 20px;
  padding-bottom: 80px; /* Отступ под кнопку */
}

/* Шапка */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}

.header .back-arrow {
  font-size: 24px;
  color: white;
}

.header h1 {
  font-size: 20px;
  font-weight: 600;
}

/* Табы (для экранов с выбором) */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 15px;
  background-color: #2d2d2d;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.tab.active {
  background-color: #1e1e1e;
  font-weight: bold;
}

a{
    text-decoration: none;
    color: #fff;
}
/* Блок суммы */
.amount-block {
  margin-bottom: 20px;
}

.amount-block h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.amount-block p {
  font-size: 14px;
  color: #aaa;
  line-height: 1.4;
}

/* Детализация платежа */
.payment-details {
  background-color: #1e1e1e;
  padding: 15px;
  border-radius: 12px;
  margin-top: 20px;
}

.payment-details h3 {
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.payment-details :nth-child(2){
    padding-bottom: 10px;
}

.payment-details h3:first-child{
    padding-top: 0;
}

.payment-item {
  display: flex;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid #333;
}

.payment-item:last-child {
  border-bottom: none;
}

.payment-item span:first-child {
  color: #aaa;
}

.payment-item span:last-child {
  color: #4caf50;
  font-weight: bold;
}

/* Кнопка внизу */
.footer-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #2ecc71;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.footer-button:hover {
  background-color: #27ae60;
}

/* Для главного экрана — круговой таймер */
.timer-circle {
  width: 150px;
  height: 150px;
  border: 8px solid #ff6b00;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
}

.timer-circle span {
  font-size: 32px;
  font-weight: bold;
}

.timer-circle small {
  font-size: 14px;
  color: #aaa;
  text-align: center;
  margin-top: 5px;
}

/* Карточки на главном экране */
.card {
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  font-size: 16px;
  margin-bottom: 10px;
}

.card-amount {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
}

.card-icon {
  font-size: 24px;
  margin-right: 10px;
}

.card-icon.orange {
  color: #ff6b00;
}

.card-icon.green {
  color: #4caf50;
}

.card-icon.arrow {
  color: #aaa;
  font-size: 18px;
}

/* Иконки */
.icon-warning {
  color: #ff6b00;
  font-size: 24px;
  margin-right: 10px;
}

.icon-bag {
  color: #4caf50;
  font-size: 24px;
  margin-right: 10px;
}

.icon-card {
  color: #4caf50;
  font-size: 24px;
  margin-right: 10px;
}

/* Ссылка в карточке */
.card-link {
  color: #4caf50;
  font-size: 14px;
  text-decoration: none;
  margin-top: 10px;
  display: block;
}

/* Второй уровень детализации (если нужно раскрыть) */
.details-expanded {
  display: none;
}

.details-expanded.show {
  display: block;
}

/* Для адаптивности */
@media (max-width: 480px) {
  .header h1 {
    font-size: 18px;
  }
  .amount-block h2 {
    font-size: 20px;
  }
  .timer-circle {
    width: 120px;
    height: 120px;
  }
  .timer-circle span {
    font-size: 24px;
  }
}