/* Сброс */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  text-align: center;
  overflow-x: hidden;
  padding-top: 60px; /* отступ под меню */
}

/* Лента */
.block {
  max-width: 480px;
  width: 100%;
  margin: 0 auto 20px auto;
  padding: 15px;
}

/* Карточка */
.card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  background: #fff;
}

/* Картинка */
.card-img-wrapper {
  position: relative;
}

.card-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Метка автора */
.author-tag {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  white-space: nowrap;
}

/* Заголовок на картинке */
.card-title {
  position: absolute;
  bottom: 10px;
  left: 5%;
  right: 5%;
  background: #338a19;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
}

/* Контент */
.card-content {
  padding: 12px;
}

.card-content h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.card-content p {
  font-size: 15px;
  line-height: 1.5;
}

/* Список */
.card-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.card-content li {
  font-size: 15px;
  padding: 5px 0;
}

/* Кнопка */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #c9423a;
  color: #fff;
  font-weight: bold;
  padding: 18px 12px;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 15px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.btn:hover {
  background: #a83630;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

/* 🔹 Мобильная адаптация */
@media (max-width: 500px) {
  .card-title {
    font-size: 14px;
    padding: 5px;
  }

  .btn {
    font-size: 14px;
    padding: 15px 10px;
  }
}

/* 📱 Меню */
.site-header {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.nav ul {
  margin: 0;
  padding: 10px 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav li {
  flex: 1;
  text-align: center;
}

.nav li.left {
  text-align: left;
}

.nav li.right {
  text-align: right;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  color: #c9423a;
  padding: 6px 10px;
  border-radius: 6px;
  transition: 0.3s;
}

.nav a:hover {
  background: #c9423a;
  color: #fff;
}

/* Название курса в центре меню */
.nav .center {
  font-size: 16px;
  font-weight: 900;
  color: #333;
  letter-spacing: 1px;
}

/* 📩 Контактная форма */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form label {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
}

form input,
form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #0077ff;
  box-shadow: 0 0 6px rgba(0,119,255,0.3);
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form button {
  align-self: flex-start;
}

/* Дополнительная обёртка для формы */
.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #0077ff;
  box-shadow: 0 0 6px rgba(0,119,255,0.25);
  outline: none;
}

/* 🏷️ Флажок */
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: orange;
  color: black;
  font-size: 14px;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* 📱 Скриншоты */
.screenshots {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  padding: 10px 0;
}
.screenshots img {
  height: 300px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.screenshots img:hover {
  transform: scale(1.05);
}

/* 🔍 Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}
.modal img {
  max-height: 90%;
  max-width: 90%;
  border-radius: 10px;
}
.modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* 🎥 Видео */
.video {
  margin: 20px 0;
  text-align: center;
}
.video iframe {
  width: 100%;
  max-width: 600px;
  height: 340px;
  border-radius: 10px;
}

/* ⬇️ Кнопка скачать демо */
.btn-demo {
  background: #28a745;
}
.btn-demo:hover {
  background: #218838;
}

/* 💲 Цена */
.price-section {
  text-align: center;
}
.price-box {
  display: inline-block;
  background: #1877f2; /* синий фон */
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
}
.price-box .old-price {
  text-decoration: line-through;
  color: rgba(255,255,255,0.7);
  margin-right: 10px;
  font-size: 20px;
}
.price-box .new-price {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
}
