/* Стиль для секции "О сервисе" */
.about-section {
  padding-top: 40px; /* Отступ сверху от шапки */
  text-align: center;
}

.about-header {
  margin-bottom: 30px;
}

.about-header h1 {
  font-size: 2em;
  color: #133670;
}

.about-header p {
  font-size: 1em;
  color: #333;
  max-width: 600px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 80px;
}
.timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.timeline-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  height: 100%;
  pointer-events: none;
}
.timeline-line svg {
  width: 60px;
  height: 100%;
}
.step {
  position: relative;
  display: flex;
  align-items: flex-start;
  z-index: 1;
}
.step.left {
  flex-direction: row;
  justify-content: flex-end;
  text-align: left;
}
.step.right {
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
}
.step.left .step-number {
  order: 0;
  margin-right: 15px;
}
.step.right .step-number {
  order: 0;
  margin-right: 15px;
}
.step-number {
  font-size: 60px;
  font-weight: 700;
  color: rgba(13, 71, 161, 0.3);
  min-width: 32px;
  text-align: center;
  line-height: 1;
  margin-top: 0;
}
.step h3 {
  font-size: 18px;
  margin: 0 0 5px;
  color: #0d47a1;
}
.step p {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  margin: 0;
}
.step-content {
  max-width: 400px;
}
@media (max-width: 768px) {
  .timeline-line {
    display: none;
  }
  .step {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left !important;
  }
  .step.left .step-content,
  .step.right .step-content {
    margin: 0;
  }
  .step-number {
    font-size: 28px;
    margin-right: 10px;
  }
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
  .why-us-items {
    flex-direction: column;
    gap: 20px;
  }

  .why-us-item {
    flex-basis: 100%;
  }
}

/* Общие стили */
.faq-section {
  padding: 30px 10px 0px;
  text-align: center;
  background-color: transparent;
}

.faq-header h2 {
  font-size: 1.2em;
  color: #133670;
  margin-bottom: 40px;
  font-weight: 700;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

/* Стили для аккордеона */
.accordion-button {
  background: linear-gradient(145deg, #ffffff, #f0f4f8);
  color: #133670;
  cursor: pointer;
  padding: 20px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 1em;
  font-weight: bold;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: background-color 0.4s ease, box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-button::after {
  content: "\25BC"; /* Добавляем стрелку вниз */
  font-size: 1.1em;
  color: #133670;
  transition: transform 0.3s ease;
}

.accordion-button.active::after {
  content: "\25B2"; /* Стрелка вверх для открытого аккордеона */
  transform: rotate(180deg);
}

.accordion-button:hover {
  background: linear-gradient(145deg, #e9edf3, #f7fafc);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  background-color: #f9fafc;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 10px;
}

.accordion-content p {
  padding: 0 0;
  font-size: 0.8em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 0px;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
  .contact-job-social {
    flex-direction: column;
    align-items: center;
  }

  .contact-info,
  .job-application,
  .social-links {
    width: 100%;
    margin-bottom: 20px;
  }

  .social-links a {
    margin: 0 15px;
  }
}
/* Стили для раздела "Правовая информация" */
.legal-section {
  text-align: center;
  margin-bottom: 30px;
}

.legal-section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #133670;
}

.legal-section p {
  font-size: 1em;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.legal-info-link {
  margin-top: 20px;
  margin-bottom: 20px; /* Добавляем отступы сверху и снизу для большего пространства */
  text-align: center;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .legal-documents {
    grid-template-columns: 1fr;
  }
  .legal-info-link .btn {
    width: 90%; /* Уменьшаем ширину кнопки для мобильных устройств */
    margin: 0 auto; /* Центрируем кнопку */
    font-size: 1em; /* Уменьшаем размер шрифта */
    padding: 10px 15px; /* Сокращаем внутренние отступы */
  }
}

/* Поля формы */
/* Основные стили для полей ввода */
.styled-form input[type="text"],
.styled-form input[type="email"],
.styled-form input[type="tel"],
.styled-form textarea,
.styled-form input[type="file"] {
  width: 100%;
  padding: 10px; /* Уменьшение padding */
  margin-bottom: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.85em; /* Унифицированный размер шрифта */
  background-color: #fafafa;
  color: #333; /* Унифицированный цвет текста */
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.styled-form textarea {
  height: 100px;
  resize: none;
  overflow-y: auto;
}

/* Фокусное состояние для полей */
.styled-form input:focus,
.styled-form textarea:focus,
.styled-form input[type="file"]:focus {
  border-color: #007bff;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

/* Мобильные стили для модального окна */
@media (max-width: 600px) {
  .modal-content {
    width: 90%;
    padding: 20px;
    max-height: 80vh;
  }

  .modal h3 {
    font-size: 1.4em;
  }

  .submit-btn {
    font-size: 1em;
  }
}
/* кнопка */
.custom-btn {
  padding: 15px 20px;
  font-size: 1em;
  color: white;
  background: linear-gradient(145deg, #4d8bf0, #133670);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.custom-btn:hover {
  background-color: #133670;
  transform: scale(1.05);
  text-decoration: none;
}
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Полупрозрачный тёмный фон */
  backdrop-filter: blur(8px); /* Эффект размытия */
  display: none; /* Скрыт по умолчанию */
  z-index: 999; /* Под модальным окном */
}

.how-it-works-new {
  padding: 40px 20px;

  position: relative;
}

.how-it-works-new h2 {
  font-size: 28px;
  color: #133670;
  margin-bottom: 50px;
  text-align: center;
}

.timeline-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.step-number {
  font-size: 40px;
  margin-right: 12px;
  color: rgba(13, 71, 161, 0.3);
}

.step h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.step p {
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .step {
    flex-direction: column !important;
    align-items: center;
    text-align: center !important;
  }

  .step-number {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .step-content h3 {
    font-size: 15px;
  }

  .step-content p {
    font-size: 12.5px;
  }

  .how-it-works-new {
    padding: 20px 15px;
  }

  .how-it-works-new h2 {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .timeline-container {
    gap: 40px;
  }
}

@media (max-width: 1000px) {
  .timeline-line {
    display: none;
  }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .faq-header h2 {
    font-size: 1.4em; /* было 2em, уменьшено на 20% */
  }

  .accordion-button {
    font-size: 0.9em; /* было 1.1em */
    padding: 20px; /* было 15px */
  }

  .accordion-button::after {
    font-size: 0.72em; /* было 0.9em */
  }

  .accordion-content p {
    font-size: 0.64em; /* было 0.8em */
  }
}
@media (max-width: 480px) {
  .about-section {
    padding-top: 30px; /* уменьшить отступ сверху */
  }

  .about-header h1 {
    font-size: 1.5em; /* уменьшено с 2em */
  }

  .about-header p {
    font-size: 0.9em; /* уменьшено с 1em */
    line-height: 1.4;
    padding: 0 10px;
  }
}
/* Правовая информация - адаптация */
.legal-section {
  text-align: center;
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0; /* Линия-разделитель сверху */
}

.legal-section h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #133670;
}

.legal-section p {
  font-size: 1em;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Адаптация для экранов до 768px */
@media (max-width: 768px) {
  .legal-section h2 {
    font-size: 1.5em; /* уменьшено */
  }

  .legal-section p {
    font-size: 0.9em;
    line-height: 1.4;
    padding: 0 10px;
  }

  .legal-info-link .custom-btn {
    width: 100%;
    font-size: 0.95em;
    padding: 10px 15px;
  }
}

/* Адаптация для узких экранов до 480px */
@media (max-width: 480px) {
  .legal-section h2 {
    font-size: 1.3em;
  }

  .legal-section p {
    font-size: 0.85em;
    line-height: 1.3;
  }

  .legal-info-link .custom-btn {
    font-size: 0.9em;
    padding: 8px 15px;
  }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .about-header h1 {
    font-size: 2em;
  }

  .about-header p {
    font-size: 1.05em;
  }

  .step h3 {
    font-size: 17px;
  }

  .step p {
    font-size: 14px;
  }

  .faq-header h2 {
    font-size: 1.3em;
  }

  .accordion-content p {
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .about-header h1 {
    font-size: 1.6em;
  }

  .about-header p {
    font-size: 1em;
  }

  .step h3 {
    font-size: 16px;
  }

  .step p {
    font-size: 13.5px;
  }

  .accordion-content p {
    font-size: 0.9em;
  }
}
/* --- ФИРМЕННЫЙ ГРАДИЕНТ ДЛЯ ГЛАВНЫХ ЗАГОЛОВКОВ --- */
.about-header h1,
h1,
h2,
.faq-header h2,
.legal-section h2 {
  font-weight: 800;
  background: linear-gradient(145deg, #4d8bf0, #133670 98%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  color: unset !important;
}
