* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f2f5f9;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  line-height: 1.5;
  color: #1e293b;
  padding: 24px 16px;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  padding: 32px 36px 40px;
}

.course-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 8px;
  margin-bottom: 20px;
  color: #0b2b4a;
  letter-spacing: -0.01em;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.badge {
  background: #eef3fc;
  color: #1e4a7a;
  padding: 8px 20px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid #cdddec;
}

.badge.accent {
  background: #B74D3F;
  color: white;
  border: none;
}

.block {
  margin-bottom: 36px;
}

.block-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 16px;
}

.block-header h2 {
  font-size: 1.7rem;
  font-weight: 650;
  color: #0f2b42;
  letter-spacing: -0.01em;
}

.block-header .sub {
  margin-left: 16px;
  color: #5e7180;
  font-weight: 400;
}

.block-content {
  background: #fafcff;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px solid #e2eaf3;
}

.description-text {
  font-size: 1.05rem;
  color: #1f3a4e;
  margin-bottom: 12px;
}

.small-note {
  color: #4b6376;
  font-size: 0.9rem;
  margin-top: 12px;
  border-top: 1px dashed #cbd6e3;
  padding-top: 16px;
}

.list-icon {
  list-style: none;
  margin-top: 6px;
}

.list-icon li {
  padding: 6px 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 1.05rem;
}

.list-icon li::before {
  content: "▹";
  color: #B74D3F;
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 1;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 20px;
}

.info-card {
  background: #fafcff;
  border-radius: 20px;
  border: 1px solid #e2eaf3;
  padding: 20px 24px;
}

.info-card h3 {
  font-size: 1.4rem;
  font-weight: 650;
  margin-bottom: 16px;
  color: #13324b;
}

/* Стиль для блока с вариантами обучения */
.sessions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 12px;
}

.session-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px;
  border: 1.5px solid #e2eaf3;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.session-date {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0b2b4a;
  line-height: 1.2;
  margin-bottom: 8px;
}

.session-period {
  color: #5e7180;
  font-weight: 500;
  margin-bottom: 18px;
  font-size: 1rem;
}

/* Квадратный блок для QR — ровно 280×280 */
.qr-placeholder {
  background: #f0f4fa;
  border-radius: 14px;
  padding: 0;
  text-align: center;
  margin: 16px auto;
  border: 1px dashed #b6c8da;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 280px;
}

.qr-placeholder img {
  width: 250px;
  height: 250px;
  object-fit: contain;
  border-radius: 8px;
}

.btn-session {
  background: #B74D3F;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(183, 77, 63, 0.15);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: 8px;
  width: 100%;
}

.instructor-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.instructor-item {
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.instructor-item:last-child {
  border-bottom: none;
}

.instructor-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0b2b4a;
  display: block;
  margin-bottom: 6px;
}

.instructor-desc {
  color: #2c4c6e;
  font-size: 0.98rem;
  line-height: 1.5;
}

.email-link, .tel-link {
  color: #B74D3F;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px dashed #B74D3F;
}

.contact-line {
  margin-top: 12px;
  padding: 8px 0;
}

.btn-apply-wrapper {
  margin-top: 28px;
  text-align: right;
}

.btn-primary {
  background: #B74D3F;
  color: white;
  border: none;
  padding: 14px 34px;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(183, 77, 63, 0.2);
  text-decoration: none;
  display: inline-block;
}

@media (max-width: 700px) {
  .page { padding: 24px 20px; }
  .course-title { font-size: 1.8rem; }
  .two-columns { grid-template-columns: 1fr; gap: 18px; }
  .sessions-grid { grid-template-columns: 1fr; }
  .badge-row .badge { font-size: 0.9rem; padding: 6px 16px; }
  .qr-placeholder {
    width: 170px;
    height: 170px;
  }
  .qr-placeholder img {
    width: 150px;
    height: 150px;
  }
}