/* Загальні стилі */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #111;
}

/* Шапка */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: #00cc44; /* зелений */
  color: #fff;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  width: 80px;
  margin-right: 10px;
}

header nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
}

header nav .btn {
  padding: 8px 15px;
  border: 2px solid #fff;
  border-radius: 6px;
}

/* Головний блок */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px;
  background: #00e65c;
  color: #fff;
}

.hero-text {
  max-width: 50%;
}

.hero-text h2 {
  font-size: 36px;
}

.hero-text p {
  font-size: 18px;
  margin: 15px 0;
}

.btn-main {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.hero-img img {
  width: 400px;
}

/* Turbo Переваги */
.advantages {
  padding: 50px;
  text-align: center;
  background: #fff;
}

.advantages h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: #f0f0f0;
  padding: 20px;
  border-radius: 12px;
}









/* Курси */
.rates-section {
  padding: 50px;
  text-align: center;
  background: #f9f9f9;
}

.rates {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.rate-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  width: 250px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.rate-card h3 {
  margin-bottom: 10px;
}

.rate-card p {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
}

.up {
  color: green;
  font-weight: bold;
}
.down {
  color: red;
  font-weight: bold;
}

.rate-card canvas {
  max-width: 100%;
  height: 80px;
}

canvas {
  max-width: 100%;
}









/* Футер */
footer {
  background: #00cc44;
  color: #fff;
  text-align: center;
  padding: 15px;
}






/* Сторінка обміну */
.exchange {
  max-width: 600px;
  margin: 50px auto;
  padding: 30px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.exchange h1 {
  margin-bottom: 30px;
  color: #0a7a3e;
}

.exchange-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.exchange-form label {
  text-align: left;
  font-weight: bold;
  color: #333;
}

.exchange-form input {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.exchange-form input:focus {
  border-color: #0a7a3e;
  outline: none;
}

.exchange-form .btn {
  background: #0a7a3e;
  color: white;
  font-size: 18px;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.exchange-form .btn:hover {
  background: #0d9a50;
}

/* Шапка */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
  background: #0a7a3e;
  color: white;
}

.header nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
}

.header nav a.active {
  font-weight: bold;
  text-decoration: underline;
}

/* Підвал */
.footer {
  margin-top: 50px;
  text-align: center;
  padding: 20px;
  background: #0a7a3e;
}




/* Сторінка підтвердження */
.success {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.success .card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.success h1 {
  color: #0a7a3e;
  margin-bottom: 20px;
}

.success p {
  font-size: 18px;
  margin-bottom: 30px;
}


/* Вікно з реквізитами */
.payment-box {
  background: #f9f9f9;
  padding: 25px;
  border: 2px dashed #0a7a3e;
  border-radius: 12px;
  margin: 30px 0;
  text-align: center;
}

.payment-box h2 {
  color: #0a7a3e;
  margin-bottom: 15px;
}

.card-number {
  font-size: 22px;
  font-weight: bold;
  background: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
}

.card-number button {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.hint {
  font-size: 14px;
  color: #666;
}


.success .btn {
  background: #0a7a3e;
  color: white;
  padding: 12px 25px;
  margin: 5px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  display: inline-block;
}

.success .btn.secondary {
  background: #555;
}

.success .btn:hover {
  opacity: 0.9;
}




/* 📱 Адаптивність */
@media (max-width: 1024px) {
  .hero-text {
    max-width: 100%;
    text-align: center;
  }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-img img {
    width: 80%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    flex-direction: column;
  }

  .hero-text h2 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .cards {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .rate-card {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  header .logo img {
    width: 50px;
  }
  .hero-text h2 {
    font-size: 22px;
  }
  .hero-text p {
    font-size: 14px;
  }
  .btn-main {
    padding: 10px 16px;
    font-size: 14px;
  }
}