/* Museo Cyrl — 300 (Light) */
@font-face {
  font-family: 'Museo Cyrl';
  font-style: normal;
  font-weight: 300;
  src: url('/assets/fonts/Museo-Cyrl-300.woff2') format('woff2');
  font-display: swap;
}

/* Museo Cyrl — 500 (Regular / Medium) */
@font-face {
  font-family: 'Museo Cyrl';
  font-style: normal;
  font-weight: 500;
  src: url('/assets/fonts/Museo-Cyrl-500.woff2') format('woff2');
  font-display: swap;
}

/* Museo Cyrl — 700 (Bold) */
@font-face {
  font-family: 'Museo Cyrl';
  font-style: normal;
  font-weight: 700;
  src: url('/assets/fonts/Museo-Cyrl-700.woff2') format('woff2');
  font-display: swap;
}

/* Основной стиль */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Museo Cyrl', sans-serif;
  font-weight: 300; /* по умолчанию — Light */
  background-color: #f5f5f5;
  background-image: url('/assets/img/pattern.svg');
  background-repeat: repeat;
  background-size: 120px 120px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.form-container {
  background: #FFFFFF; /* или #F9F7F2 */
  /* backdrop-filter: blur(4px); — убрать */
  border: 1px solid #eee;
  box-shadow: 0 8px 32px rgba(44, 42, 108, 0.08); /* тень в тон бренду */
  border-radius: 16px;
  padding: 32px;
  width: 100%;
  max-width: 500px;
}

.preview-container img {
	width: 100%;       /* ← растягиваем на ширину контейнера */
  height: auto;      /* ← сохраняем пропорции */
  /* max-height: 250px; /* ← ограничение по высоте (по желанию) */
  object-fit: contain; /* ← гарантирует, что всё изображение видно */
  border: 1px solid #eee;
  border-radius: 8px;
  display: none;
}

form h1 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 700; /* Bold */
  color: #2C2A6C;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500; /* Medium */
  color: #333;
}

.form-group input,
.form-group select,
.file-upload,
button {
  font-family: 'Museo Cyrl', sans-serif;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 300; /* Light для полей ввода */
}

.file-upload {
  display: inline-block;
  padding: 12px 24px;
  background: #2C2A6C;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500; /* Medium для кнопки выбора */
}

.file-upload:hover {
	background: #1E1C50;
}

button {
  width: 100%;
  padding: 14px;
  background: #2C2A6C;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700; /* Bold для основной кнопки */
  cursor: pointer;
  transition: background 0.2s;
}

button:hover {
	background: #1E1C50; /* чуть темнее */
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.message {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
}
.message.success { background: #d4edda; color: #155724; }
.message.error { background: #f8d7da; color: #721c24; }