/* === Стили для сайта событий ===
 * Шаблон для гостевых домов. Собран в рамках hospitality-automation.
 * Mobile-first, без зависимостей.
 */

:root {
  --color-bg: #fafaf7;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-accent: #2563eb;
  --color-accent-hover: #1d4ed8;
  --color-border: #e5e5e0;
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

/* === Header === */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}
.logo {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}
.nav {
  display: flex;
  gap: 24px;
}
.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.nav a:hover, .nav a.active {
  color: var(--color-accent);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
.hero .lead {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 32px;
  opacity: 0.95;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Тематические hero */
.hero-events { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.hero-deals  { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.hero-weekend { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

/* === Sections === */
.section {
  padding: 60px 20px;
}
.section-alt {
  background: var(--color-surface);
}
.section h2 {
  font-size: 1.85rem;
  margin-bottom: 32px;
  text-align: center;
  line-height: 1.2;
}
.section h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.lead {
  font-size: 1.05rem;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.muted {
  color: var(--color-muted);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 16px;
}

/* === Grid === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--color-surface);
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: all 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.card-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}
.card-link:hover {
  text-decoration: underline;
}

/* === Packages === */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.package-card {
  background: var(--color-surface);
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 2px solid var(--color-border);
  transition: all 0.2s ease;
}
.package-card-featured {
  border-color: var(--color-accent);
  position: relative;
}
.package-card-featured::before {
  content: "Популярный";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}
.package-price {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 8px 0 16px;
}
.package-card ul, .package-card-large ul {
  list-style: none;
  padding: 0;
}
.package-card li, .package-card-large li {
  padding: 8px 0 8px 24px;
  position: relative;
}
.package-card li::before, .package-card-large li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}
.package-card-large {
  background: var(--color-surface);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  max-width: 800px;
  margin: 0 auto;
}
.package-card-large h4 {
  margin: 20px 0 12px;
}

/* === Benefits list === */
.benefits-list {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
}
.benefits-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  border-bottom: 1px solid var(--color-border);
}
.benefits-list li:last-child { border-bottom: none; }
.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}

/* === Timeline === */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}
.timeline li {
  padding: 12px 0 12px 40px;
  position: relative;
  border-left: 2px solid var(--color-border);
  margin-left: 20px;
}
.timeline li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -16px;
  top: 12px;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

/* === FAQ === */
.faq {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.faq summary {
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
}
.faq summary:hover { color: var(--color-accent); }
.faq p {
  margin-top: 8px;
  color: var(--color-muted);
}

/* === How-to === */
.how-to {
  max-width: 600px;
  margin: 0 auto 32px;
  padding-left: 20px;
}
.how-to li {
  padding: 8px 0;
}

/* === Form === */
.lead-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lead-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 500;
}
.lead-form input,
.lead-form select,
.lead-form textarea {
  padding: 10px 14px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-surface);
  transition: border-color 0.15s ease;
}
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.lead-form input.error,
.lead-form select.error,
.lead-form textarea.error {
  border-color: #dc2626;
}
.checkbox-label {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 8px !important;
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--color-muted);
}
.checkbox-label input {
  margin-top: 4px;
  flex-shrink: 0;
}

/* === Buttons === */
.btn-primary, .btn-secondary {
  display: inline-block;
  border: none;
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  text-align: center;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: white;
}
.btn-primary:hover {
  background: var(--color-accent-hover);
}
.btn-primary:disabled {
  background: var(--color-border);
  color: var(--color-muted);
  cursor: not-allowed;
}
.btn-secondary {
  background: white;
  color: var(--color-accent);
  border: 2px solid white;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* === Contacts === */
.contacts-block {
  max-width: 500px;
  margin: 32px auto 0;
  padding: 24px;
  background: var(--color-bg);
  border-radius: var(--radius);
  text-align: left;
}
.contacts-block p {
  margin: 8px 0;
}
.contacts-block a {
  color: var(--color-accent);
  text-decoration: none;
}
.contacts-block a:hover { text-decoration: underline; }

/* === Deals (hot-deals page) === */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.deal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all 0.2s ease;
}
.deal-card:hover {
  border-color: var(--color-accent);
}
.deal-discount {
  display: inline-block;
  background: var(--color-warning);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.deal-dates {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 8px 0;
}
.deal-price {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin: 4px 0;
}
.deal-old-price {
  text-decoration: line-through;
  color: var(--color-muted);
  margin-right: 8px;
}
.deal-new-price {
  font-weight: 600;
  color: var(--color-accent);
}

/* === Footer === */
.site-footer {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.7);
  padding: 24px 20px;
  text-align: center;
  font-size: 0.85rem;
}
.site-footer p { margin: 0; }

/* === Адаптив === */
@media (max-width: 768px) {
  .nav { gap: 12px; flex-wrap: wrap; }
  .nav a { font-size: 0.85rem; }
  .hero { padding: 60px 16px; }
  .hero h1 { font-size: 1.85rem; }
  .section { padding: 40px 16px; }
  .section h2 { font-size: 1.5rem; }
  .packages-grid, .grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { flex-direction: column; gap: 12px; }
  .nav { width: 100%; justify-content: center; }
}