:root

/* CSS Infinite Slider for Client Logos */
.client-slider {
  overflow: hidden;
  padding: 2rem 0;
}
.slider-container {
  width: 100%;
}
.slider-track {
  display: flex;
  width: max-content;
  animation: scroll-logos 90s linear infinite;
}
.slide {
  flex: 0 0 auto;
  width: 200px;
  margin-right: 2rem;
}
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50%)); }
}

:root {
  --primary-color: #1a4789;
  --secondary-color: #e63946;
  --text-color: #333;
  --light-bg: #f8f9fa;
  --border-radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: white;
}

.site-logo {
  text-align: center;
  padding: 1rem;
  background-color: white;
}

.site-logo img {
  max-width: 200px;
  height: auto;
}

.hero {
  background-color: var(--primary-color);
  color: white;
  padding: 4rem 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: var(--light-bg);
}

.stat-card {
  text-align: center;
}

.stat-card h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.ad-section {
  padding: 4rem 2rem;
}

.ad-section:nth-child(even) {
  background-color: var(--light-bg);
}

.ad-block {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: start;
  gap: 4rem;
}

.banner-positions {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 3rem;
  margin: 2rem 0;
}

.position-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.position-item {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.position-header {
  padding: 1rem;
  cursor: pointer;
  background: var(--light-bg);
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

.position-header:hover {
  background: #e9ecef;
}

.position-item.active .position-header {
  background: var(--primary-color);
  color: white;
}

.position-item.unavailable.active .position-header {
  background: #e0e0e0;
  color: #333;
}

.position-item h3 {
  margin: 0;
  font-size: 1.1rem;
}

.position-content {
  display: none;
  padding: 1rem;
}

.position-item.active .position-content {
  display: block;
}

.dimension-option {
  border-bottom: 1px solid #eee;
  padding: 0.75rem 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.dimension-option:hover {
  background-color: var(--light-bg);
}

.dimension-option.active {
  /* background-color: #e9ecef; */
}

.dimension-option:last-child {
  border-bottom: none;
}

.dimension-option h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.price-info {
  font-size: 0.9rem;
  color: var(--text-color);
}

.price-info p {
  margin: 0.25rem 0;
}

.price-info .original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  display: block;
}

.price-info .discount-price {
  color: var(--secondary-color);
  font-size: 1.1rem;
  font-weight: bold;
  display: block;
}

/* New pricing layouts */
.price-cpm { /* Закуп по импресии */
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.price-cpm .price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.price-cpm h3 {
  margin: 0;
  font-size: 1rem;
}

.price-cpm .original-price {
  margin: 0;
  display: inline;
  color: #111; /* strong black when no discount */
  font-weight: 700;
  font-size: 0.95rem;
}

.price-cpm .discount-price {
  display: block; /* next line */
  margin-top: 0.15rem;
  color: var(--secondary-color);
  font-size: 1.05rem;
  font-weight: 700;
}

/* Apply strikethrough only when a discount exists */
.price-cpm.has-discount .original-price {
  text-decoration: line-through;
  color: #999; /* gray when discounted */
  font-weight: 400;
}

.price-fixed { /* Фиксен закуп */
  font-size: 0.9rem;
  color: var(--text-color);
}

.preview-container {
  position: sticky;
  top: 2rem;
}

.preview-container img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.preview-note {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
}

.position-item.unavailable {
  opacity: 0.5;
  pointer-events: auto;
}

.position-item.unavailable .position-header {
  cursor: pointer;
  background: #f1f1f1;
}

.position-item.unavailable h3::after {
  content: " (Зафатено)";
  font-size: 0.9em;
  color: #999;
}

.ad-block:not(:last-child) {
  margin-bottom: 4rem;
}

.ad-content {
  flex: 1;
}

.ad-image {
  flex: 1;
  max-width: 500px;
}

.ad-image img {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius);
}

.ad-content h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
}

.ad-content ul {
  list-style: none;
  margin: 1.5rem 0;
}

.ad-content ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.ad-content ul li::before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.cta-button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.cta-button:hover {
  background-color: #d62c3a;
}

.contact {
  background-color: var(--light-bg);
  padding: 4rem 2rem;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  display: grid;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  width: 100%;
}

.contact-form textarea {
  height: 150px;
}

footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 2rem;
}

.social-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin: 1.5rem 0;
  font-size: 1.2rem;
  color: var(--primary-color);
  font-weight: bold;
}

.social-packages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.package-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.package-card:hover {
  transform: translateY(-5px);
}

.package-card.featured {
  border: 2px solid var(--secondary-color);
  position: relative;
}

.package-card.featured::before {
  content: "Најпопуларно";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
}

.package-card h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.package-card p {
  color: #666;
  margin-bottom: 1rem;
}

.package-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
}

.package-card ul li {
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
  position: relative;
}

.package-card ul li::before {
  content: "✓";
  color: var(--primary-color);
  position: absolute;
  left: 0;
}

.package-price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin: 1rem 0;
}

.package-price .original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.package-price .discount-price {
  color: var(--secondary-color);
  font-size: 1.4rem;
}

.package-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.package-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.client-slider {
  padding: 2rem 0;
  background: white;
  overflow: hidden;
  position: relative;
}

.slider-container {
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: none;
}

.slide {
  flex: 0 0 200px;
  margin: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.slide img:hover {
  filter: grayscale(0%);
}
.ad-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: stretch; /* истa висина */
}
.ad-card {
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); /* лесен сенчест ефект */
  transition: box-shadow 0.2s ease-in-out;
}
.ad-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); /* мал ефект при hover */
}
.ad-card h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
  line-height: 1.3;
}
.ad-card p, .ad-card li {
  margin: 8px 0;
  line-height: 1.6;
}
.ad-card ul {
  padding-left: 1.2rem;
  margin: 8px 0;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .ad-block {
    flex-direction: column;
    gap: 2rem;
  }
  
  .ad-image {
    order: -1;
    max-width: 100%;
  }
  
  .stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .banner-positions {
    grid-template-columns: 1fr;
  }
  
  .preview-container {
    position: static;
    margin-top: 2rem;
  }

  .social-stats {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .social-packages {
    grid-template-columns: 1fr;
  }
  
  .explainer-content {
    order: 2;
  }
  
  .explainer-image {
    order: 1;
  }
  
  .price-cards {
    grid-template-columns: 1fr;
  }
  
  .simple-explanation {
    font-size: 1.2rem;
  }

  .ad-wrap { grid-template-columns: 1fr; }
}