:root {
  --bg-main: #f7f3f0;
  --bg-alt: #eef2f6;
  --bg-card: #fff9f4;
  --text-main: #3d3a39;
  --text-soft: #66605d;
  --accent: #c97f7f;
  --accent-hover: #b66f6f;
  --border: #e7ddd6;
  --shadow: 0 8px 20px rgba(72, 61, 56, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

html {
  scroll-behavior: smooth;
}

.hero {
  background: linear-gradient(135deg, #f6deda 0%, #e5eff8 100%);
  padding: 70px 0 60px;
}

.hero-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 22px;
}

.hero-jump a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 127, 127, 0.45);
}

.hero-jump a:hover {
  border-bottom-color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 20px;
  align-items: center;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
  margin-top: 0;
}

.cta-after-image .btn-primary {
  margin-top: 0;
}

.sticky-cta .btn-primary {
  margin-top: 0;
}

.hero-note {
  margin: 14px 0 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.hero-value {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.45;
}

.card-teaser {
  margin: 0 0 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #8b5348;
}

.section-next {
  margin: 22px 0 0;
  text-align: center;
}

.section-next a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 127, 127, 0.45);
}

.section-next a:hover {
  border-bottom-color: var(--accent);
}

.pricing-intro {
  max-width: 720px;
  margin: 0 0 12px;
  color: var(--text-soft);
}

.pricing-trust {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: #5a6a78;
  font-weight: 600;
}

.pricing-table-wrap {
  overflow-x: auto;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.pricing .compare-table {
  min-width: 520px;
  margin-top: 0;
  background: #fffefc;
}

.pricing .compare-table th,
.pricing .compare-table td {
  text-align: center;
  vertical-align: middle;
  font-size: 0.95rem;
}

.pricing .compare-table th:first-child,
.pricing .compare-table td:first-child {
  text-align: left;
  min-width: 200px;
  font-weight: 500;
}

.pricing .compare-table .col-featured {
  background: rgba(201, 127, 127, 0.1);
  font-weight: 600;
}

.pricing .compare-table thead .col-featured {
  background: rgba(201, 127, 127, 0.2);
}

.pricing .check {
  color: #2f7e56;
  font-weight: 700;
}

.pricing-cards {
  margin-top: 24px;
}

.card--featured {
  position: relative;
  border: 2px solid var(--accent);
  box-shadow: 0 10px 28px rgba(201, 127, 127, 0.2);
}

.badge-recommended {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 8px;
}

.pricing-cta-row {
  margin-top: 22px;
  max-width: 520px;
}

.pricing-cta-row .btn-primary {
  margin-top: 0;
}

.pricing-cta-hint {
  margin: 10px 0 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.4;
}

.pricing-quick-form {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-width: 640px;
}

.pricing-quick-label {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.pricing-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pricing-quick-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.pricing-quick-btn {
  flex-shrink: 0;
  margin-top: 0;
}

.pricing-quick-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  min-height: 1.2em;
}

.pricing-quick-note.success {
  color: #2d6a4f;
}

.pricing-quick-note.error {
  color: #9d2d2d;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#injuries .card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#injuries .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(72, 61, 56, 0.14);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 13px 22px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(201, 127, 127, 0.12);
}

.cta-after-image {
  background: linear-gradient(180deg, #fdf8f5 0%, #e8f0f8 100%);
  border-block: 1px solid var(--border);
}

.cta-after-image-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: center;
  justify-content: space-between;
}

.cta-after-image-title {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin: 0 0 8px;
}

.cta-after-image-text {
  margin: 0;
  max-width: 560px;
  color: var(--text-soft);
}

.cta-after-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(255, 254, 252, 0.97);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(45, 38, 36, 0.12);
}

.sticky-cta.is-visible {
  display: flex;
}

.sticky-cta-text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-main);
}

.btn-compact {
  padding: 10px 20px;
  font-size: 0.95rem;
  margin-top: 0;
}

body.has-sticky-cta {
  padding-bottom: 72px;
}

h1, h2, h3 {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-soft);
  max-width: 750px;
}

.event-meta {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
}

.event-meta p {
  margin: 7px 0;
}

.section {
  padding: 54px 0;
}

.section-alt {
  background: var(--bg-alt);
}

ul {
  padding-left: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card,
.instructor {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.image-section {
  padding-top: 30px;
  padding-bottom: 20px;
}

.highlight-image {
  width: 100%;
  max-height: 470px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.instructors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.pricing .price {
  font-size: 1.8rem;
  color: #9d4f4f;
  font-weight: 700;
  margin: 8px 0;
}

.btn-primary {
  margin-top: 28px;
  border: 0;
  border-radius: 10px;
  padding: 13px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 18, 17, 0.45);
  padding: 16px;
}

.modal.is-open {
  display: flex;
}

.modal-content {
  position: relative;
  width: min(460px, 100%);
  background: #fffefc;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 18px 35px rgba(35, 27, 24, 0.2);
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #8f7b73;
  cursor: pointer;
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-weight: 600;
}

input {
  border: 1px solid #d8ccc4;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.98rem;
}

input:focus {
  outline: 2px solid #f0b3b3;
  border-color: #d79a9a;
}

.form-message {
  min-height: 1.5em;
  margin: 12px 0 0;
  font-weight: 600;
}

.form-message.error {
  color: #ac3535;
}

.form-message.success {
  color: #2f7e56;
}

.admin-container {
  width: min(1100px, 94%);
  margin: 36px auto;
}

.admin-card {
  background: #fffaf6;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  background: #fff;
}

th, td {
  border: 1px solid #e7ddd6;
  padding: 10px 12px;
  text-align: left;
}

th {
  background: #f4e6df;
}

.password-error {
  color: #ac3535;
  font-weight: 600;
  margin-top: 8px;
}
