/* Common styles for all sections */

/* Typography classes */
.text-h1 {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-h1);
  line-height: var(--line-height-tight);
  color: var(--brand-text);
}

.text-h2 {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-h2);
  line-height: var(--line-height-tight);
  color: var(--brand-text);
}

.text-h3 {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-h3);
  line-height: var(--line-height-normal);
  color: var(--color-black);
}

.text-bold-big {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-h4);
  line-height: var(--line-height-normal);
  color: var(--color-black);
}

.text-medium-big {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-h4);
  line-height: var(--line-height-normal);
  color: var(--color-black);
}

.text-bold-small {
  font-weight: var(--font-weight-bold);
  font-size: var(--font-body);
  line-height: var(--line-height-normal);
  color: var(--color-black);
}

.text-medium-small {
  font-weight: var(--font-weight-medium);
  font-size: var(--font-body);
  line-height: var(--line-height-normal);
  color: var(--color-black);
}

/* Button styles */
/* FIGMA: Кнопки закруглённые (30px), высота 70px (primary) / 60px (outline) */
.btn-primary-custom {
  background-color: var(--brand-accent);
  border: none;
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-body);
  padding: 0 40px;
  min-height: 70px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: var(--brand-accent);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-outline-custom {
  background-color: transparent;
  border: 1px solid var(--color-black);
  color: var(--color-black);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-body);
  padding: 0 40px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-outline-custom:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Image placeholders */
.img-placeholder {
  background-color: var(--color-placeholder);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
}

/* Line dividers */
.line-divider {
  border: 0;
  height: 1px;
  background-color: var(--color-black);
  margin: 40px 0;
}

/* Section backgrounds */
.bg-primary {
  background-color: var(--brand-primary);
}

.bg-secondary {
  background-color: var(--brand-secondary);
}

.bg-white {
  background-color: var(--color-white);
}

/* Utility classes */
.section-padding {
  padding: var(--spacing-section) 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: var(--spacing-section-mobile) 0;
  }

  .text-h1 {
    font-size: 36px;
  }

  .text-h2 {
    font-size: 32px;
  }

  .text-h3 {
    font-size: 28px;
  }

  .text-bold-big,
  .text-medium-big {
    font-size: 22px;
  }

  .text-bold-small,
  .text-medium-small {
    font-size: 18px;
  }

  /* Buttons responsive */
  .btn-primary-custom,
  .btn-outline-custom {
    max-width: 100%;
    padding: 0 25px;
  }
}

@media (max-width: 576px) {
  .text-h1 {
    font-size: 28px;
  }

  .text-h2 {
    font-size: 26px;
  }

  .text-h3 {
    font-size: 22px;
  }

  .text-bold-big,
  .text-medium-big {
    font-size: 18px;
  }

  .text-bold-small,
  .text-medium-small {
    font-size: 16px;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    min-height: 56px;
    font-size: 16px;
  }
}
