/* =============================================
   ОБЩИЕ КОМПОНЕНТЫ И ТИПОГРАФИКА
   ============================================= */

.title-1 {
  font-weight: 600;
  font-size: 56px;
  line-height: 64px;
  letter-spacing: 0em;
}

.title-2 {
  font-weight: 600;
  font-size: 44px;
  line-height: 52px;
  letter-spacing: 0em;
}

.title-3 {
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: 0em;
}

.title-4 {
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0em;
}

.lead-text {
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 0em;
}

.text-l {
  font-weight: 400;
  font-size: 18px;
  line-height: 30px;
  letter-spacing: 0em;
}

.text {
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  letter-spacing: 0em;
}

.text-s {
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 0em;
}

.text-button {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0em;
}

.text-menu {
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  letter-spacing: 0em;
}

.text-caption {
  font-weight: 400;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0%;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.social-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.social-icon:hover {
  opacity: 0.8;
}

/* =============================================
   КНОПКИ
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  background-color: var(--secondary);
  width: 100%;
  max-width: 387px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  padding: 15px 0;
  text-align: center;
}

.btn span {
  display: block;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent);
  width: max-content;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0em;
  color: var(--surface);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: var(--accent);
  
}

.btn:hover span {
  border-color: var(--secondary);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--secondary);
  
}

.btn--outline span {
  color: var(--secondary);
}

.btn--outline:hover {
  background: var(--secondary);
  
}

.btn--outline:hover span {
  color: var(--surface);
}

.btn--accent {
  background: var(--accent);
  padding: 10px 12px;
  border-color: var(--secondary);
  max-width: 100%;
}

.btn--accent span {
  color: var(--primary);
  width: 100%;
  padding: 10px 0;
  border-top: 1px solid var(--secondary);
  border-bottom: 1px solid var(--secondary);
}

.btn--accent:hover {
  background-color: var(--secondary);
}

.btn--accent:hover span {
  color: var(--surface);
  border-color: var(--accent);
}


/* =============================================
   ФОРМЫ
   ============================================= */

.input-wrapper {
  position: relative;
}

.input-text {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  color: var(--color-text);
  transition: border-color 0.2s ease;
  box-shadow: 0px 1px 1px 0px #00000040;

}

.input-text:focus {
  border-color: var(--accent);
}

.input-text--error {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.input-error-message {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-muted);
}

.form__error {
  margin-top: 12px;
  color: var(--color-muted);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.checkbox__input {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 1px solid var(--accent);
  cursor: pointer;
}

.checkbox__input:checked {
  background: var(--secondary);
  border-color: var(--secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.5 12L13 4.5' stroke='%23171A1D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px 24px;
}

.checkbox--error .checkbox__input {
  border-color: var(--accent);
}

/* =============================================
   ЗАГОЛОВОК СЕКЦИИ (бадж + заголовок + текст)
   ============================================= */

.section-badge {
  display: flex;
  align-items: center;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.section-badge::after {
  display: block;
  content: '';
  width: 100%;
  max-width: 227px;
  height: 1px;
  background-color: var(--accent);
  margin-left: 13px;
}

.section-title {
  margin-top: 40px;
  color: var(--color-text);
  width: 100%;
  max-width: 1000px;
}

.section-description {
  margin-top: 20px;
  width: 100%;
  max-width: 1000px;
}

/* =============================================
   ХЛЕБНЫЕ КРОШКИ
   ============================================= */

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.breadcrumbs__item:not(:last-child)::after {
  content: '/';
  margin-left: 10px;
  color: var(--color-muted);
}

.breadcrumbs__link {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
  color: var(--accent);
}

.breadcrumbs__current {
  color: var(--color-text);
}


@media (max-width: 1080px) {
  .title-1 {
    font-weight: 600;
    font-size: 34px;
    line-height: 42px;
  }

  .title-2 {
    font-weight: 600;
    font-size: 30px;
    line-height: 38px;
  }

  .title-3 {
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
  }

  .title-4 {
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
  }

  .lead-text {
    font-weight: 400;
    font-size: 17px;
    line-height: 26px;
  }

  .text-l {
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
  }

  .text {
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
  }

  .text-s {
    font-weight: 400;
    font-size: 13px;
    line-height: 20px;
  }

  .text-button {
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
  }

  .text-menu {
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
  }

  .btn span {
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    padding-bottom: 5px;
  }

  .btn {
    padding: 14.5px 0;
  }

  .btn--accent {
    padding: 7px 12px;
  }

  .section-badge::after {
    margin-left: 16px;
    max-width: 100%;
  }

  .section-title {
    margin-top: 20px;
  }

  .section-description {
    margin-top: 10px;
  }
}

