* {
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f8f9fa;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}
.container {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}
h1 {
  margin: 0;
  color: #2c3e50;
  font-size: 2.2em;
}
p {
  color: #666;
  margin-bottom: 20px;
}
input[type="text"] {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}
.settings {
  text-align: left;
  margin: 20px 0;
}
.settings label {
  display: block;
  margin: 10px 0;
  font-weight: 500;
}
.settings input, .settings select {
  margin-top: 5px;
  padding: 6px;
  width: 100%;
  border: 1px solid #eee;
  border-radius: 4px;
}
button {
  background: #2c3e50;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin: 10px 5px;
  transition: 0.2s;
}
button:hover {
  background: #1a2530;
}
.btn-secondary {
  background: #6c757d;
}
#downloadBtn:enabled {
  background: #27ae60;
}
#downloadBtn:enabled:hover {
  background: #219653;
}
.field-group {
  margin: 10px 0;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 8px;
  text-align: left;
}
.field-group input, .field-group textarea {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
}
.hero {
  text-align: center;
  margin-bottom: 30px;
}
.hero h1 {
  font-size: 2.5em;
  color: #2c3e50;
  margin: 0;
}
.hero p {
  color: #666;
  font-size: 1.1em;
}
.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}
.download-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.btn-primary {
  background: #2c3e50;
  flex: 1;
  max-width: 200px;
}
.btn-secondary {
  background: #6c757d;
  flex: 1;
  max-width: 200px;
}
.examples {
  margin-top: 30px;
  text-align: center;
  color: #777;
  font-style: italic;
}
@media (max-width: 600px) {
  .container {
    padding: 20px;
  }
  .download-buttons {
    flex-direction: column;
    align-items: center; /* Центрируем кнопки по горизонтали */
    gap: 10px;
  }
  .download-buttons button {
    width: 100%;
    max-width: 300px; /* Ограничиваем ширину кнопок для лучшего вида */
  }
}
#qrcode {
  margin: 20px auto;
  max-width: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
#qrcode svg {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.waitlist {
  margin-top: 30px;
  padding: 20px;
  background: #f1f5f9;
  border-radius: 12px;
  text-align: center;
  color: #475569;
  font-size: 14px;
}
.waitlist h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  color: #1e293b;
}
/* === Кастомные селекты === */
.custom-select {
  position: relative;
  width: 100%;
  margin: 10px 0;
}
.select-header {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  gap: 10px;
}
.select-header:hover {
  border-color: #999;
}
.select-header .arrow {
  margin-left: auto;
  font-size: 0.7em;
  color: #666;
  transition: transform 0.2s;
}
.custom-select.open .select-header .arrow {
  transform: rotate(180deg);
}
.select-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  max-height: 180px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.custom-select.open .select-options {
  display: block;
}
.select-options li {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  gap: 10px;
  transition: background 0.2s;
}
.select-options li:hover {
  background: #f5f5f5;
}
/* Иконки */
.select-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background-size: cover;
}
.text-icon { background: #000; }
.wifi-icon { background: #007bff; }
.vcard-icon { background: #28a745; }
.email-icon { background: #ffc107; }
.sms-icon { background: #fd7e14; }
.geo-icon { background: #dc3545; }
.minimal-black-icon { background: #000; }
.neon-glow-icon { background: linear-gradient(45deg, #ff00cc, #3333ff); }
.logo-glow-icon { background: #fff; border: 1px solid #ddd; }
.vintage-dot-icon { background: #F5F0E6; border: 1px solid #ddd; }
.gradient-pulse-icon { background: linear-gradient(45deg, #4F46E5, #EC4899); }
.custom-icon { background: #6c757d; }
.shape-preview {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 2px;
}
.shape-preview.square { background: #000; }
.shape-preview.rounded { background: #000; border-radius: 6px; }
.shape-preview.dots { background: #000; border-radius: 50%; }
/* Подсказки */
.tooltip {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.select-options li:hover .tooltip {
  opacity: 1;
  visibility: visible;
}