:root {
  --primary-color: #0e76bc;
  --primary-dark: #085890;
  --primary-light: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #f39c12;
  --accent-dark: #e67e22;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --bg-light: #f5f7fa;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

.promotions-section {
  padding: 60px 0 80px;
  background-color: white;
}

.section-title {
  font-size: 36px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.promo-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition);
}

.promo-card:hover .promo-image {
  transform: scale(1.05);
}

.promo-content {
  padding: 25px;
}

.promo-title {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
  min-height: 48px;
  transition: var(--transition);
}

.promo-card:hover .promo-title {
  color: var(--primary-dark);
}

.promo-period {
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.promo-period:before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23f39c12" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

.promo-description {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 76px;
}

.promo-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
}

.promo-link .arrow {
  margin-left: 5px;
  transition: var(--transition);
}

.promo-link:hover {
  color: var(--primary-dark);
}

.promo-link:hover .arrow {
  transform: translateX(5px);
}

.promo-label {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: white;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: bold;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Специфические стили для разных типов лейблов */
.promo-label:empty {
  display: none;
}

.promo-card .promo-label:contains('HOT') {
  background-color: #e74c3c;
}

.promo-card .promo-label:contains('NEW') {
  background-color: #2ecc71;
}

.promo-card .promo-label:contains('SALE') {
  background-color: #9b59b6;
}

.promo-card .promo-label:contains('-') {
  background-color: #e74c3c;
}

/* Дополнительная информация о акциях */
.promotions-info {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
}

.promotions-info h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 22px;
}

.promotions-info ul {
  margin-bottom: 25px;
  padding-left: 20px;
}

.promotions-info li {
  margin-bottom: 10px;
  color: var(--text-light);
  position: relative;
}

.promotions-info li:before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: -15px;
}

.contact-cta {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.contact-cta p {
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--secondary-color);
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.contact-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.contact-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(14, 118, 188, 0.2);
}

.contact-btn:active {
  transform: translateY(0);
}

/* Детальная страница акции */
.promo-detail {
  max-width: 1000px;
  margin: 50px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

.detail-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.detail-title {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.detail-description {
  margin-bottom: 30px;
  line-height: 1.7;
  color: var(--text-color);
}

.detail-description p {
  margin-bottom: 15px;
}

.detail-period {
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 25px;
  color: var(--text-color);
}

.detail-period:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23f39c12" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="4" width="18" height="18" rx="2" ry="2"></rect><line x1="16" y1="2" x2="16" y2="6"></line><line x1="8" y1="2" x2="8" y2="6"></line><line x1="3" y1="10" x2="21" y2="10"></line></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

.back-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  margin-bottom: 25px;
  transition: var(--transition);
  font-weight: 500;
}

.back-button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(14, 118, 188, 0.2);
}

.promo-form {
  background-color: var(--bg-light);
  padding: 25px;
  border-radius: 8px;
  margin-top: 30px;
}

.promo-form h3 {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

/* Адаптивная верстка */
@media (max-width: 1200px) {
  .promotions-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 992px) {
  .promotions-section {
    padding: 50px 0;
  }
  
  .section-title {
    font-size: 30px;
    margin-bottom: 40px;
  }
  
  .promo-title {
    font-size: 18px;
  }
  
  .detail-title {
    font-size: 24px;
  }
  
  .promo-detail {
    margin: 30px 15px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .promotions-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto 30px;
  }
  
  .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  
  .promo-title {
    min-height: auto;
  }
  
  .promo-image {
    height: 180px;
  }
  
  .contact-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .promotions-info h3 {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .promotions-section {
    padding: 40px 0;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .promo-content {
    padding: 20px;
  }
  
  .promotions-info {
    padding: 20px;
  }
  
  .detail-title {
    font-size: 20px;
  }
  
  .back-button {
    padding: 8px 15px;
    font-size: 14px;
  }
}