:root {
  --bg: #f9f5f1;
  --bg-soft: #f2ece6;
  --card: #fffdfb;
  --text: #3f3a37;
  --muted: #6e6864;
  --accent: #b283a7;
  --accent-soft: #ead9e5;
  --border: #e7ddd6;
  --success: #2f7d56;
  --danger: #a34545;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #f6f0eb 100%);
  line-height: 1.6;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  padding: 3.5rem 0 2rem;
}

.hero__badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #6b4761;
  font-weight: 700;
  font-size: 0.85rem;
}

.hero__title {
  margin: 0.9rem 0 0.8rem;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  line-height: 1.2;
}

.hero__meta {
  margin: 0;
  color: var(--muted);
}

.section {
  margin: 1.2rem 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.35rem;
  box-shadow: 0 8px 24px rgba(111, 90, 76, 0.08);
}

h2 {
  margin-top: 0;
}

ul {
  padding-left: 1.2rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-weight: 500;
}

.image-block img {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  max-height: 460px;
}

.instructors {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.instructors article {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
}

.instructors h3 {
  margin: 0 0 0.35rem;
}

.pricing__grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1rem;
}

.tariff {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem;
  background: #fff;
}

.tariff--highlight {
  border-color: #c89fbe;
  background: #fbf4f8;
}

.price {
  font-size: 1.5rem;
  margin: 0.5rem 0;
  font-weight: 800;
  color: #6d4562;
}

.btn-primary {
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1.05rem;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.modal__content {
  position: relative;
  width: min(520px, calc(100% - 1.5rem));
  background: #fffaf6;
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.2rem;
  z-index: 2;
}

.modal__close {
  position: absolute;
  right: 0.75rem;
  top: 0.45rem;
  border: none;
  background: transparent;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

form {
  display: grid;
  gap: 0.55rem;
}

label {
  font-weight: 600;
}

input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  font-size: 1rem;
}

.form-message {
  min-height: 1.5rem;
  margin-top: 0.7rem;
  font-weight: 600;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--danger);
}
