:root {
  --uni-primary: #7f0008;
  --uni-secondary: #5f0006;
  --uni-text: #1f1f1f;
  --uni-muted: #6b6b6b;
  --uni-soft: #f6f6f6;
  --uni-border: #e8e8e8;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-soft: 0 10px 24px rgba(27, 27, 27, 0.045);
  --transition-fast: 0.2s ease;
  --action-btn-width: 220px;
  --border-soft: #efefef;
}

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

body {
  font-family: Arial, sans-serif;
  color: var(--uni-text);
  background: #fff;
  line-height: 1.45;
}

.container {
  width: min(1160px, 92%);
  margin: 0 auto;
}

.header {
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
}

.brand-title {
  font-size: 1.22rem;
  color: var(--uni-primary);
  font-weight: 800;
  line-height: 1.05;
}

.brand-sub {
  font-size: 0.85rem;
  color: #656565;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn {
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.btn-outline {
  border-color: #d9b7b9;
  color: var(--uni-primary);
  background: #fff;
}

.btn-outline:hover {
  background: #fff5f6;
}

.btn-primary {
  background: var(--uni-primary);
  color: #fff;
  border-color: var(--uni-primary);
}

.btn-primary:hover {
  background: var(--uni-secondary);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  line-height: 1;
  font-size: 1rem;
  flex-shrink: 0;
}

.icon-soft {
  color: rgba(255, 255, 255, 0.9);
}

.social-link .icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--uni-primary);
  font-size: 0.88rem;
  margin-right: 8px;
}

.hero {
  padding: 34px 0 22px;
  background: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: #fdf2f2;
  border: 1px solid #f1d4d6;
  color: #9a2128;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.68rem, 2.75vw, 2.72rem);
  line-height: 1.18;
  margin-bottom: 15px;
  max-width: 19ch;
}

.hero h1 span {
  display: block;
  margin-top: 4px;
  color: var(--uni-primary);
}

.hero p {
  color: var(--uni-muted);
  max-width: 59ch;
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.hero-links {
  display: flex;
  gap: 11px;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 10px;
}

.hero-links > .btn {
  width: var(--action-btn-width);
}

.hero-uni-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: var(--action-btn-width);
}

.hero-uni-group > .btn {
  width: 100%;
}

.forgot {
  color: var(--uni-primary);
  font-size: 0.91rem;
  font-weight: 700;
  text-decoration: underline;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #e3e3e3;
  min-height: 380px;
  aspect-ratio: 4 / 3;
  background: #f4f4f4;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.floating-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(127, 0, 8, 0.92);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 0.95rem;
}

.floating-note strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 3px;
}

.note-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stats {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-top: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 18px 0;
}

.stat-item {
  text-align: center;
  border-right: 1px solid #f0f0f0;
  padding: 4px 12px;
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item strong {
  display: block;
  color: var(--uni-primary);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-item span {
  color: #777;
  font-size: 0.88rem;
}

.faq {
  background: #fafafa;
  padding: 44px 0 52px;
  margin-top: 4px;
}

.faq h2 {
  text-align: center;
  color: var(--uni-primary);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  margin-bottom: 18px;
}

.faq h2 .icon {
  font-size: 1.2em;
  margin-right: 10px;
  transform: translateY(1px);
}

.faq-panel {
  max-width: 940px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0;
  overflow: hidden;
}

.faq-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 0;
  background: linear-gradient(180deg, #fcfcfc 0%, #f8f8f8 100%);
  border-bottom: 1px solid var(--border-soft);
  padding: 10px 10px 0;
}

.faq-tab {
  border: 1px solid #ececec;
  border-bottom: 0;
  background: #f7f7f7;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  padding: 10px 18px;
  font-weight: 700;
  color: #747474;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: -1px;
}

.faq-tab:hover {
  background: #fbfbfb;
  color: #575757;
}

.faq-tab.active {
  background: #fff;
  border-color: #efefef;
  color: var(--uni-primary);
  box-shadow: 0 -1px 0 #fff inset;
}

.faq-list {
  display: none;
  gap: 8px;
  padding: 12px;
  background: #fff;
}

.faq-list.active {
  display: grid;
}

.faq-item {
  border: 1px solid #f2f2f2;
  border-left: 4px solid #f1e5e6;
  border-radius: var(--radius-md);
  background: #fdfdfd;
  overflow: hidden;
}

.faq-item.open {
  border-left-color: var(--uni-primary);
  background: #fff;
}

.faq-question {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 15px 16px;
  font-weight: 700;
  cursor: pointer;
  color: #2c2c2c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-question span {
  font-size: 1.08rem;
  color: var(--uni-primary);
}

.faq-answer {
  display: none;
  padding: 0 16px 14px;
  color: #666;
  font-size: 0.95rem;
}

.faq-item.open .faq-answer {
  display: block;
}

.footer {
  background: var(--uni-primary);
  color: #fff;
  padding: 30px 0 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 20px;
  margin-bottom: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer h3 {
  font-size: 1.23rem;
  margin-bottom: 4px;
}

.footer p,
.footer li {
  font-size: 0.94rem;
  color: #f1dcdc;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.footer a {
  color: #fff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.social-link {
  display: inline-flex;
  align-items: center;
}

.footer-bottom p {
  margin: 2px 0;
  color: #f7e5e5;
  font-size: 0.9rem;
}

.footer-bottom a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 90;
}

.modal-overlay.show {
  display: flex;
}

.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #ececec;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-head {
  padding: 18px 18px 10px;
  border-bottom: 1px solid #f2f2f2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.modal-head h4 {
  color: var(--uni-primary);
  font-size: 1.1rem;
}

.modal-close {
  border: 0;
  background: transparent;
  color: #555;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.modal-body {
  padding: 16px 18px 20px;
}

.modal-help {
  font-size: 0.94rem;
  color: #666;
  margin-bottom: 14px;
}

.modal-error {
  margin-bottom: 12px;
  border: 1px solid #f2b8b8;
  background: #fff1f1;
  color: #8a1f1f;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.93rem;
}

.field {
  margin-bottom: 11px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #2b2b2b;
}

.field input {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  font-size: 0.95rem;
}

.field input:focus {
  outline: 2px solid #e7c6c8;
  border-color: var(--uni-primary);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.modal-actions-stack {
  flex-direction: column;
  align-items: stretch;
}

.modal-actions-stack .btn {
  width: 100%;
  justify-content: center;
}

.modal-footer-hint {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  line-height: 1.45;
}

.modal-inline-link {
  color: var(--uni-primary);
  font-weight: 700;
}

.modal-register-callout {
  margin-top: 18px;
  padding: 16px 14px 17px;
  background: linear-gradient(180deg, #fffbfb 0%, #fdf5f5 100%);
  border: 1px solid #e8c9cc;
  border-radius: var(--radius-md);
  text-align: center;
}

.modal-register-callout-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--uni-primary);
  margin-bottom: 8px;
  line-height: 1.25;
}

.modal-register-callout-text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.45;
  margin-bottom: 14px;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.modal-register-cta {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-size: 0.96rem;
  border-width: 2px;
  box-shadow: 0 1px 0 rgba(127, 0, 8, 0.06);
}

.modal-register-cta:hover {
  background: #fff0f1;
  border-color: var(--uni-primary);
}

@media (max-width: 980px) {
  .hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-wrap {
    min-height: 300px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }
}

