/* === СБРОС И ШРИФТ === */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif !important;
}

/* === КОНТЕЙНЕР КАК В HEADER === */
:root {
  --general_width: 1680px;
}

@media screen and (max-width: 1920px) {
  :root {
    --general_width: 1200px;
  }
}

/* === ШРИФТ И КОНТЕЙНЕР === */
.main-content {
  padding-top: 130px !important;
  padding: 40px 0;
  background: #fff;
  width: 100%;
}

/* КОНТЕЙНЕР С ВЫРАВНИВАНИЕМ КАК В HEADER */
.container {
  max-width: var(--general_width);
  width: 100%;
  margin: 40px auto;
  padding: 0 0;
  box-sizing: border-box;
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.breadcrumb {
  font-size: 16px;
  color: #000000;
  margin-bottom: 50px;
  font-family: 'Roboto', Arial, sans-serif;
}
.breadcrumb a {
  color: #000000;
  text-decoration: none;
  text-decoration: underline;
}

/* === ЗАГОЛОВОК === */
.page-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'Roboto', Arial, sans-serif;
}

/* === ТЕКСТ === */
.intro-text {
  margin-bottom: 30px;
  line-height: 1.6;
  font-family: 'Roboto', Arial, sans-serif;
}

/* === ФОРМА — ОГРАНИЧИВАЕМ ШИРИНУ === */
.guarantee-form {
  max-width: 600px; /* как на /service */
  width: 100%;
  margin: 0;
}

/* === ПОЛЯ ФОРМЫ === */
.form-group {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 30px 12px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
  font-family: 'Roboto', Arial, sans-serif;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0056b3;
}

/* === ЗВЁЗДОЧКИ === */
.required-star {
  color: #e74c3c;
  font-weight: bold;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 10;
}

/* === ПОДСКАЗКИ === */
.hint {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
  font-family: 'Roboto', Arial, sans-serif;
}

/* === ЗАГРУЗКА ФАЙЛОВ === */
.upload-section {
  border: 2px dashed #ccc;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  text-align: center;
  position: relative;
  font-family: 'Roboto', Arial, sans-serif;
  max-width: 600px;
}
.upload-label {
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  font-family: 'Roboto', Arial, sans-serif;
}
.upload-hint {
  font-size: 12px;
  color: #666;
  margin: 10px 0;
  font-family: 'Roboto', Arial, sans-serif;
}

/* === СОГЛАСИЯ === */
.consent-group {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  font-family: 'Roboto', Arial, sans-serif;
  max-width: 600px;
}
.consent-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 4px;
  flex-shrink: 0;
}
.consent-group label {
  color: #000;
  font-size: 14px;
  font-family: 'Roboto', Arial, sans-serif;
}
.consent-group a {
  color: #0056b3;
  text-decoration: none;
}
.consent-group a:hover {
  text-decoration: underline;
}

/* === КНОПКИ ЗАГРУЗКИ === */
.container-btn {
  display: flex;
  flex-direction: column;
  align-items: center; /* Центрируем кнопки */
  gap: 8px;
  margin-top: 10px;
  max-width: 600px;
}
.btn-upload,
.btn-download {
  width: 200px; /* Фиксированная ширина */
  padding: 8px 12px;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  color: white;
  background: #19233A;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
  min-height: 32px;
  line-height: 1.2;
  font-family: 'Roboto', Arial, sans-serif;
}
.btn-upload:hover,
.btn-download:hover {
  background: #0f1522;
}

/* === КНОПКА ОТПРАВКИ === */
.submit-button-wrapper {
  text-align: left;
  margin-top: 30px;
  max-width: 600px;
}
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  transition: all 0.3s ease;
  width: auto;
  min-width: 150px;
  display: inline-block;
}
.btn-outline {
  background: #fff;
  color: #19233A;
  border: 1px solid #19233A;
  cursor: pointer;
  opacity: 0.6;
}
.btn-primary {
  background: #19233A;
  color: #fff;
  border: 1px solid #19233A;
  cursor: pointer;
  opacity: 1;
}

/* === ОСТАЛЬНОЕ === */
.upload-file-info {
  margin-top: 10px;
  font-size: 13px;
  min-height: 1.4em;
}
.upload-file-info .filename {
  color: #27ae60;
  font-weight: 500;
}
.upload-file-info .remove-file {
  margin-left: 10px;
  color: #e74c3c;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  text-decoration: underline;
  padding: 0;
}
.field-error {
  border-color: #e74c3c !important;
}

/* === СООБЩЕНИЕ ОБ ОШИБКЕ === */
.form-error-message {
  color: #e74c3c;
  font-size: 14px;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 1.5em;
  margin-bottom: 12px;
  display: none;
  max-width: 600px;
}

.form-error-message.show {
  display: block;
}

/* Для совместимости с Tilda-стилями */
.t-seed .path_link {
  color: #333;
  text-decoration: none;
}
.t-seed .path_link:hover {
  text-decoration: underline;
}
.t-seed span {
  color: #666;
}

/* === АДАПТИВНОСТЬ === */
@media screen and (max-width: 1920px) {
  :root {
    --general_width: 1200px;
  }
  
  .main-content {
    padding-top: 100px !important;
  }
  
  .container {
    max-width: var(--general_width);
  }
}

@media screen and (max-width: 1240px) {
  .container {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media screen and (max-width: 980px) {
  .main-content {
    padding-top: 80px !important;
  }
  
  .breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
  }
  
  .page-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .intro-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  
  .btn-upload,
  .btn-download {
    min-width: 180px;
  }
}

@media screen and (max-width: 768px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
  }
  
  .page-title {
    font-size: 18px;
  }
  
  .intro-text {
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  .upload-section {
    padding: 15px;
  }
  
  .btn-upload,
  .btn-download {
    min-width: 150px;
    font-size: 11px;
    padding: 6px 10px;
  }
  
  .container-btn {
    gap: 5px;
  }
  
  .submit-button-wrapper {
    margin-top: 20px;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
    min-width: 120px;
  }
  
  .consent-group label {
    font-size: 12px;
  }
}

@media screen and (max-width: 480px) {
  .main-content {
    padding-top: 70px !important;
  }
  
  .breadcrumb {
    font-size: 12px;
    margin-bottom: 15px;
  }
  
  .page-title {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .intro-text {
    font-size: 12px;
  }
  
  .upload-label {
    font-size: 14px;
  }
  
  .upload-hint {
    font-size: 11px;
  }
  
  .btn-upload,
  .btn-download {
    width: 100%;
    min-width: auto;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 10px 25px 10px 10px;
    font-size: 14px;
  }
}