:root {
  --mp-primary: #7b3cff;
  --mp-primary-dark: #5b2ccc;
  --mp-accent: #ffb347;
  --mp-bg: #f5f3ff;
  --mp-bg-soft: #f7f7fb;
  --mp-text: #111827;
  --mp-muted: #6b7280;
  --mp-border: #e5e7eb;
}

/* Базовая типографика – минимум 17px */
html {
  font-size: 17px;
}

body {
  font-family: "Poppins", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mp-text);
  background-color: var(--mp-bg-soft);
}

/* Выравниваем small, чтобы не уходить сильно ниже 17px */
small,
.small {
  font-size: 1rem;
}

/* Topbar */
.mp-topbar {
  background: #020617;
  color: #e5e7eb;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
}

.mp-topbar a {
  color: #e5e7eb;
  text-decoration: none;
}

.mp-topbar a:hover {
  text-decoration: underline;
}

.mp-topbar i {
  margin-right: 0.35rem;
}

/* Header / Navbar */
.mp-header {
  background: #ffffff;
}

.navbar {
  background: transparent;
}

.navbar-brand {
  font-weight: 600;
}

.mp-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #ffb347, var(--mp-primary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
}

.mp-logo-title {
  display: block;
  font-weight: 700;
  font-size: 1.15rem;
}

.mp-logo-subtitle {
  display: block;
  font-size: 0.95rem;
  color: var(--mp-muted);
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: var(--mp-primary-dark) !important;
}

.mp-cta-btn {
  border-radius: 999px;
}

/* Buttons */
.btn-primary {
  background: var(--mp-primary);
  border-color: var(--mp-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--mp-primary-dark);
  border-color: var(--mp-primary-dark);
}

.btn-outline-primary {
  color: var(--mp-primary);
  border-color: var(--mp-primary);
}

.btn-outline-primary:hover {
  color: #ffffff;
  background: var(--mp-primary);
  border-color: var(--mp-primary);
}

/* Hero */
.mp-hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(120% 150% at 0% 0%, #ede9fe 0, transparent 50%),
    radial-gradient(120% 150% at 100% 0%, #fef3c7 0, transparent 50%),
    linear-gradient(180deg, #020617 0%, #0b1120 100%);
  color: #f9fafb;
}

.mp-hero-content h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.mp-hero-text {
  max-width: 34rem;
  color: #e5e7eb;
}

.mp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.mp-badge i {
  color: var(--mp-accent);
}

.mp-hero-btn {
  border-radius: 999px;
  padding-inline: 1.6rem;
}

.mp-hero-btn-alt {
  border-radius: 999px;
  border-color: rgba(248, 250, 252, 0.7);
  color: #e5e7eb;
}

.mp-hero-btn-alt:hover {
  background: #e5e7eb;
  color: #020617;
}

.mp-hero-meta {
  font-size: 0.95rem;
}

.mp-meta-label {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}

.mp-hero-meta p {
  margin-bottom: 0;
}

/* Hero image */
.mp-hero-image-wrapper {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.mp-hero-image {
  border-radius: 1.5rem;
  object-fit: cover;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.8);
}

.mp-hero-card {
  position: absolute;
  right: 10%;
  bottom: -10%;
  background: #020617;
  border-radius: 1.1rem;
  padding: 0.9rem 1rem;
  color: #e5e7eb;
  max-width: 260px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.7);
  font-size: 0.95rem;
}

.mp-hero-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
}

/* Section generic */
.mp-section {
  padding: 4rem 0;
  background: #ffffff;
}

.mp-section-light {
  background: var(--mp-bg-soft);
}

.mp-section-header {
  margin-bottom: 2rem;
}

.mp-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
}

.mp-section-header p {
  max-width: 40rem;
  margin-inline: auto;
  color: var(--mp-muted);
}

/* Badges soft */
.mp-badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  background: rgba(123, 60, 255, 0.08);
  color: var(--mp-primary-dark);
}

.mp-badge-soft i {
  color: var(--mp-primary-dark);
}

/* Icon cards */
.mp-icon-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--mp-border);
  height: 100%;
}

.mp-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(123, 60, 255, 0.08);
  color: var(--mp-primary-dark);
  margin-bottom: 0.7rem;
}

/* Image panel */
.mp-image-panel-inner {
  display: flex;
}

.mp-stat-card {
  flex: 1;
  background: #111827;
  color: #f9fafb;
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}

.mp-stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
}

.mp-stat-label {
  display: block;
  font-size: 0.95rem;
  color: #e5e7eb;
}

.mp-footnote {
  font-size: 0.95rem;
  color: var(--mp-muted);
}

/* Program cards */
.mp-program-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.7rem 1.5rem;
  border: 1px solid var(--mp-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mp-program-card-highlight {
  border-color: rgba(123, 60, 255, 0.4);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.08);
  position: relative;
}

.mp-program-icon {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--mp-primary), var(--mp-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.mp-program-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

.mp-program-card p {
  color: var(--mp-muted);
}

.mp-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.mp-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.mp-list i {
  color: var(--mp-primary-dark);
  margin-top: 0.2rem;
}

.mp-tag {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(148, 163, 184, 0.15);
  color: var(--mp-muted);
}

.mp-tag-accent {
  background: rgba(123, 60, 255, 0.12);
  color: var(--mp-primary-dark);
}

/* Target cards */
.mp-target-card {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--mp-border);
  height: 100%;
}

.mp-target-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.mp-target-card p {
  color: var(--mp-muted);
}

/* Events */
.mp-event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mp-event-item {
  display: flex;
  gap: 1rem;
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid var(--mp-border);
  padding: 0.9rem 1.1rem;
}

.mp-event-date {
  width: 60px;
  border-radius: 0.9rem;
  background: #020617;
  color: #f9fafb;
  text-align: center;
  padding: 0.4rem 0.2rem;
}

.mp-event-day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.mp-event-month {
  display: block;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mp-event-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.mp-event-body p {
  margin-bottom: 0.4rem;
  color: var(--mp-muted);
}

.mp-event-meta {
  font-size: 0.95rem;
  color: var(--mp-muted);
}

.mp-event-meta i {
  margin-right: 0.35rem;
}

/* Gallery */
.mp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.mp-gallery-grid img:nth-child(1) {
  grid-column: 1 / 3;
}

/* Testimonials */
.mp-testimonial-card {
  background: #020617;
  color: #e5e7eb;
  border-radius: 1.4rem;
  padding: 1.5rem 1.4rem;
  height: 100%;
}

.mp-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
}

.mp-testimonial-role {
  font-size: 0.95rem;
  color: #9ca3af;
}

.mp-stars {
  margin-top: 0.4rem;
  color: #fbbf24;
}

/* Forms & Contact */
.mp-form .form-control,
.mp-form .form-select {
  border-radius: 0.8rem;
  border-color: var(--mp-border);
  padding: 0.55rem 0.9rem;
}

.mp-form .form-control:focus,
.mp-form .form-select:focus {
  border-color: var(--mp-primary);
  box-shadow: 0 0 0 0.1rem rgba(123, 60, 255, 0.25);
}

.mp-contact-card {
  background: #020617;
  color: #e5e7eb;
  border-radius: 1.4rem;
  padding: 1.6rem 1.5rem;
}

.mp-contact-card a {
  color: #e5e7eb;
  text-decoration: underline;
}

.mp-contact-card a:hover {
  text-decoration: none;
}

.mp-contact-meta p {
  font-size: 0.98rem;
  color: #cbd5f5;
}

.mp-contact-meta i {
  margin-right: 0.35rem;
}

.mp-social-links span {
  font-size: 0.98rem;
}

.mp-social-links a {
  font-size: 1.2rem;
  color: #e5e7eb;
}

.mp-social-links a:hover {
  color: var(--mp-accent);
}

/* Footer */
.mp-footer {
  background: #020617;
  color: #e5e7eb;
  padding: 2.8rem 0 1.7rem;
}

.mp-footer h4 {
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.mp-footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.mp-footer-brand p {
  margin-top: 0.5rem;
  color: #9ca3af;
}

.mp-footer-links {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.mp-footer-links li {
  margin-bottom: 0.3rem;
}

.mp-footer-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.98rem;
}

.mp-footer-links a:hover {
  color: var(--mp-accent);
}

.mp-footer-small {
  font-size: 0.96rem;
  color: #9ca3af;
}

/* Cookie banner */
.mp-cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 0.6rem;
  z-index: 9999;
  background: transparent;
}

.mp-cookie-inner {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1.2rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
  padding: 1rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.mp-cookie-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.mp-cookie-text p {
  margin-bottom: 0;
  font-size: 0.98rem;
  color: var(--mp-muted);
}

.mp-cookie-text a {
  color: var(--mp-primary-dark);
  text-decoration: underline;
}

.mp-cookie-actions {
  margin-left: auto;
}

.mp-cookie-banner.mp-cookie-hidden {
  display: none;
}

/* Popup after forms */
.mp-form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.mp-form-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.mp-form-popup {
  background: #ffffff;
  border-radius: 1.4rem;
  padding: 1.8rem 1.7rem;
  max-width: 420px;
  width: 100%;
  position: relative;
  text-align: center;
}

.mp-form-popup-icon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  margin: 0 auto 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-size: 1.6rem;
}

.mp-form-popup h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.mp-form-popup p {
  font-size: 0.98rem;
  color: var(--mp-muted);
}

.mp-form-popup-close {
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  border: none;
  background: transparent;
  color: #4b5563;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .mp-hero {
    padding-top: 3rem;
  }
  .mp-hero-card {
    position: static;
    margin-top: 1rem;
  }
}

@media (max-width: 767.98px) {
  .mp-topbar {
    text-align: center;
  }

  .mp-cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .mp-cookie-actions {
    width: 100%;
  }

  .mp-cookie-actions .btn {
    width: 100%;
  }
}
