/* =========================================================
       ОСНОВНИ НАСТРОЙКИ
       ========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  /* font-family: Arial, sans-serif; */
  line-height: 1.5;
  color: #222;
  background: #fff;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: auto;
}

section {
  padding: 30px 0;
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin-bottom: 20px;
}

h1 {
  font-size: 48px;
}

h2 {
  font-size: 36px;
  margin-bottom: 40px;
}

h3 {
  font-size: 24px;
}

p {
  margin-bottom: 20px;
}

/* =========================================================
       HERO SECTION
       ========================================================= */

.hero {
  background: #f5f7fa;
  text-align: center;
  padding: 30px 0;
}

.hero-subtitle {
  max-width: 900px;
  margin: 20px auto 50px;
  font-size: 20px;
  color: #555;
}

/* Лента с лога */
.logo-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 60px;
}

.logo-item {
  background: #fff;
  align-content: center;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #ddd;

  /* Сиво по подразбиране */
  filter: grayscale(100%);

  transition: all 0.3s ease;
}

/* При hover се оцветяват */
.logo-item:hover {
  filter: grayscale(0%);
  transform: translateY(-4px);
}

/* Counters */
.hero-counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.counter-box {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #eee;
}

.counter-number {
  font-size: 42px;
  font-weight: bold;
  color: #c40000;
}

/* =========================================================
       SECTION: КОИ СМЕ НИЕ
       ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

/* Корпоративна схема */
.company-structure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.company-card {
  width: 100%;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
  text-align: center;
}

.arrow {
  font-size: 42px;
  color: #c40000;
}

/* =========================================================
       CERTIFICATES
       ========================================================= */

.certificate-item {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  margin-bottom: 30px;
  align-items: start;
}

/* Thumbnail */
.certificate-thumb img {
  border: 1px solid #ddd;
  border-radius: 10px;
  transition: 0.3s;
}

.certificate-thumb img:hover {
  transform: scale(1.02);
}

.certificate-meta {
  margin-top: 20px;
}

.certificate-meta li {
  margin-bottom: 10px;
}

/* =========================================================
       PARTNERS
       ========================================================= */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.partner-card {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 30px;
  background: #fff;
}

.etira-logo {
  max-height: 80px;
  width: auto;
  display: flex;
  margin-bottom: 20px;
}

.partner-card p {
  width: 100%;
  display: block;
  line-height: 1.7;
}

/* =========================================================
       B2B SECTION
       ========================================================= */

.b2b-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.benefit-card {
  display: flex;
  gap: 20px;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background: #fafafa;
  transition: 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  border-color: #05ae24;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.benefit-icon {
  min-width: 50px;
  height: 50px;
  border-radius: 20%;
  background: #05ae24;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
}

.b2b-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  margin-bottom: 60px;
}

.b2b-table th,
.b2b-table td {
  border: 1px solid #ddd;
  padding: 18px;
  text-align: left;
}

.b2b-table th {
  background: #f5f5f5;
}

/* Streaming Steps */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  gap: 20px;
  margin-top: 40px;
}

.step-box {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: #fafafa;
  transition: 0.3s ease;
}

.step-box:hover {
  transform: translateY(-4px);
  border-color: #05ae24;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* .step-box {
      border: 1px solid #ddd;
      border-radius: 12px;
      padding: 20px;
      text-align: center;
      background: #fafafa;
    } */

.step-number {
  width: 50px;
  height: 50px;
  margin: auto auto 15px;
  border-radius: 50%;
  background: #c40000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* =========================================================
       CTA SECTION
       ========================================================= */

.cta-section {
  background: #111;
  color: #fff;
  text-align: center;
}

.cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Центриране на бутона */
.form-submit {
  text-align: center;
  margin-top: 30px;
}

.btn {
  padding: 16px 28px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.cta-section .btn.ts-btn-primary {
  background-color: #c40000;
  border: 2px solid #c40000;
  color: #ffffff;
}

.cta-section .btn.ts-btn-primary:hover,
.cta-section .btn.ts-btn-primary:focus {
  background-color: #900000;
  border-color: #900000;
  color: #ffffff;
  text-decoration: none;
}

.cta-section .btn.ts-btn-primary:active {
  background-color: #780000;
  border-color: #780000;
  color: #ffffff;
}

.cta-section .btn.ts-btn-secondary {
  background-color: #6c757d;
  border: 2px solid #ffffff;
  color: #ffffff;
}

.cta-section .btn.ts-btn-secondary:hover,
.cta-section .btn.ts-btn-secondary:focus {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #111111;
  text-decoration: none;
}

/* =========================================================
       B2B FORM
       ========================================================= */

.b2b-form {
  max-width: 700px;
  margin: 60px auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* =========================================================
       RESPONSIVE
       ========================================================= */

@media(max-width: 992px) {

  .logo-bar,
  .hero-counters,
  .partners-grid,
  .steps-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .b2b-benefits {
    grid-template-columns: 1fr;
  }

  .certificate-item {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }
}