/* styles.css */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(135deg, #fff7e6 0%, #ffe0ec 100%);
  color: #2d1a05;
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.circus-header {
  background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
  box-shadow: 0 4px 16px rgba(255, 179, 71, 0.15);
  padding: 30px 0 10px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.circus-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px #ffb34777;
}

.circus-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #d72660;
  letter-spacing: 2px;
}

.circus-accent {
  color: #ff7f50;
  text-shadow: 1px 2px 0 #fff, 2px 4px 8px #d7266033;
}

.main-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin-top: 18px;
}

.main-nav a {
  text-decoration: none;
  color: #2d1a05;
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.2s;
  position: relative;
}

.main-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: #d72660;
  transition: width 0.3s;
  border-radius: 2px;
  margin-top: 2px;
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a:hover {
  color: #d72660;
}

.container {
  width: 1200px;

}

.circus-section {
  padding: 60px 0 40px 0;
  position: relative;
}

.circus-section h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  color: #d72660;
  margin-bottom: 24px;
  text-align: center;
  letter-spacing: 1px;
}

.about-section p {
  font-size: 1.2rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  color: #4e2e0e;
}

.shows-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
}

.show-card {
  background: #fffbe6;
  border-radius: 18px;
  box-shadow: 0 4px 24px #ffb34733;
  padding: 24px 18px 18px 18px;
  width: 220px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}

.show-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px #d7266022;
}

.show-card h3 {
  font-size: 1.2rem;
  color: #d72660;
  margin-bottom: 6px;
  font-family: 'Montserrat', sans-serif;
}

.show-card p {
  color: #ff7f50;
  font-weight: 700;
}

.show-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 8px 32px #d7266033;
}

.tickets-section .ticket-form {
  max-width: 620px;
  margin: 0 auto;
  background: #fffbe6;
  border-radius: 16px;
  box-shadow: 0 2px 16px #ffb34722;
  padding: 32px 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ticket-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-form label {
  font-weight: 500;
  color: #d72660;
}

.ticket-form input,
.ticket-form select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ffb347;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

.ticket-form input:focus,
.ticket-form select:focus {
  border: 1.5px solid #d72660;
}

.circus-btn {
  background: linear-gradient(90deg, #d72660 0%, #ff7f50 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  border-radius: 10px;
  padding: 12px 0;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px #d7266022;
  transition: background 0.2s, transform 0.2s;
}

.circus-btn:active {
  transform: scale(0.97);
}

.circus-btn:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
}

.flag-section .flag-form {
  max-width: 620px;
  margin: 0 auto;
  background: #fffbe6;
  border-radius: 16px;
  box-shadow: 0 2px 16px #ffb34722;
  padding: 28px 24px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.flag-form label {
  color: #d72660;
  font-weight: 500;
}

.flag-form input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ffb347;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

.flag-form input:focus {
  border: 1.5px solid #d72660;
}

.flag-success {
  color: #1bbf4c;
  background: #eaffea;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.flag-fail {
  color: #d72660;
  background: #ffeaea;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  margin-top: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.contact-section .contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  color: #4e2e0e;
}

.circus-footer {
  background: linear-gradient(90deg, #ffb347 0%, #ffcc33 100%);
  color: #d72660;
  text-align: center;
  padding: 18px 0 10px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  box-shadow: 0 -2px 8px #ffb34733;
}

/* Адаптивность */
@media (max-width: 900px) {
  .shows-list {
    flex-direction: column;
    align-items: center;
  }
  .main-nav ul {
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .circus-header h1 {
    font-size: 1.5rem;
  }
  .circus-logo {
    width: 44px;
    height: 44px;
  }
  .shows-list {
    gap: 18px;
  }
  .show-card {
    width: 90vw;
    max-width: 320px;
    padding: 14px 8px 10px 8px;
  }
  .circus-section {
    padding: 32px 0 18px 0;
  }
  .tickets-section .ticket-form,
  .flag-section .flag-form {
    padding: 16px 8px 10px 8px;
  }
}