/* Обёртка: синий фон страницы */
.expertise-page {
  background-color: #3b5bb1;
  min-height: 100vh;
  padding: 40px 20px;
}

/* Блок на синем фоне #3b5bb1 — без белой подложки, оранжевая обводка */
.expertise-block {
  --accent-primary: #2C5390;
  --accent-primary-hover: #234773;
  --accent-secondary: #FAC921;
  --accent-secondary-hover: #e8b81d;
  --accent-orange: #e67a3d;
  --accent-orange-hover: #d96a30;
  --bg-page: #3b5bb1;
  --text-on-blue: #ffffff;
  --text-on-blue-soft: rgba(255, 255, 255, 0.92);
  --text-on-blue-muted: rgba(255, 255, 255, 0.82);
  --radius: 12px;
  --radius-sm: 8px;
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.expertise-block {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px;
  font-family: var(--font-base);
  background: transparent;
  border: 2px solid var(--accent-orange);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(230, 122, 61, 0.2);
  line-height: 1.6;
  color: var(--text-on-blue);
}

.expertise-block__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--text-on-blue);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.expertise-block__intro {
  margin: 0 0 20px 0;
  color: var(--text-on-blue-soft);
  font-size: 1rem;
}

.expertise-block__section {
  margin-bottom: 24px;
}

.expertise-block__section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-on-blue);
  margin: 0 0 12px 0;
}

.expertise-block__text {
  margin: 0 0 16px 0;
  color: var(--text-on-blue-muted);
  font-size: 0.95rem;
}

.expertise-block__text:last-child {
  margin-bottom: 0;
}

.expertise-block__note {
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-left: 4px solid var(--accent-orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.9rem;
  color: var(--text-on-blue-muted);
}

/* Кнопки */
.expertise-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.expertise-block__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.expertise-block__btn:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

.expertise-block__btn--primary {
  background: var(--accent-orange);
  color: #fff;
}

.expertise-block__btn--primary:hover:not(:disabled) {
  background: var(--accent-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(230, 122, 61, 0.4);
}

.expertise-block__btn--secondary {
  background: var(--accent-secondary);
  color: #1a1a1a;
}

.expertise-block__btn--secondary:hover:not(:disabled) {
  background: var(--accent-secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.expertise-block__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Форма загрузки */
.expertise-block__form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.expertise-block__form-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text-on-blue);
}

.expertise-block__file-group {
  margin-bottom: 16px;
}

.expertise-block__file-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-blue-soft);
  margin-bottom: 6px;
}

.expertise-block__file-label span {
  color: var(--text-on-blue-muted);
  font-weight: 400;
  font-size: 0.85rem;
}

.expertise-block__file-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.expertise-block__file-input:hover,
.expertise-block__file-input:focus {
  border-color: var(--accent-orange);
  background: #fff;
  outline: none;
}

.expertise-block__file-input::file-selector-button {
  padding: 6px 14px;
  margin-right: 12px;
  background: #e8ecf1;
  border: 1px solid #d1d8e0;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  color: #1a1a1a;
}

.expertise-block__submit-wrap {
  margin-top: 20px;
}

/* Сообщения после отправки */
.expertise-block__message {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin-top: 20px;
  font-size: 0.95rem;
  display: none;
}

.expertise-block__message.show {
  display: block;
}

.expertise-block__message--success {
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #fff;
}

.expertise-block__message--error {
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fff;
}

@media (max-width: 600px) {
  .expertise-block {
    padding: 20px;
  }
  .expertise-block__actions {
    flex-direction: column;
  }
  .expertise-block__btn {
    width: 100%;
  }
}
