* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #57596a 0%, #dae2ef 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.header h1 {
  font-size: 2.5rem;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.age-restriction {
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-link {
  color: white;
  text-decoration: none;
}

.header-link:hover {
  color: #e9ecef;
}

.header p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.content {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.section {
  margin-bottom: 30px;
}

.section h2 {
  color: #4a5568;
  margin-bottom: 15px;
  font-size: 1.5rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.button {
  background: #c42942;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin: 5px;
}

.button:hover {
  background: #a02235;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.button:active {
  transform: translateY(0);
}

.data-display {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin-top: 20px;
  min-height: 100px;
}

.loading {
  text-align: center;
  color: #667eea;
  font-style: italic;
}

.error {
  color: #e53e3e;
  background: #fed7d7;
  border: 1px solid #feb2b2;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}

.success {
  color: #38a169;
  background: #c6f6d5;
  border: 1px solid #9ae6b4;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #4a5568;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="number"] {
  -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-outer-spin-button,
.form-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .content {
    padding: 20px;
  }

  .form-group input,
  .form-group select {
    font-size: 16px; /* Предотвращает зум на iOS */
  }
}

/* Стили для отображения выбранных значений */
.selected-info {
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  font-weight: 500;
  color: #495057;
  min-height: 20px;
}

/* Стили для футера */
.footer {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 30px;
  margin: 40px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.footer-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.footer-contact {
  text-align: center;
  color: #6c757d;
}

.phone-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.phone-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Стили для контента страниц */
.page-content {
  line-height: 1.6;
  color: #333;
}

.page-content p {
  margin-bottom: 15px;
}

.page-content h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.page-content h4 {
  color: #495057;
  margin-top: 20px;
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.external-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.external-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.page-content ol {
  margin: 15px 0;
  padding-left: 20px;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.page-content strong {
  font-weight: 600;
  color: #333;
}

.download-link {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  margin: 10px 0;
}

.download-link:hover {
  background-color: #0056b3;
  color: white;
  text-decoration: none;
}

/* Стили для многошаговой формы */
.form-step {
  margin-bottom: 20px;
}

.form-step h3 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.3rem;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 10px;
}

.step-buttons {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  margin-top: 20px;
}

.step-buttons .button {
  flex: 1;
  max-width: 200px;
}

/* Стили для шага подтверждения */
.confirmation-data {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.data-section {
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  border-left: 4px solid #c42942;
}

.data-section h4 {
  color: #333;
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.data-section p {
  color: #555;
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Стили для кнопки "Назад" */
.back-button {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.back-link {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.9);
  color: #000;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.back-link:hover {
  background-color: #007bff;
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .footer-links {
    gap: 15px;
  }

  .footer-link {
    font-size: 14px;
  }

  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .header h1 {
    font-size: 2rem;
  }

  .age-restriction {
    font-size: 1rem;
    padding: 6px 12px;
  }
}
