:root {
  --bg: #070b0e;
  --bg-soft: #0c1418;
  --glass: rgba(10, 22, 28, 0.72);
  --glass-2: rgba(255, 255, 255, 0.045);
  --cyan: #00e0c8;
  --cyan-2: #14c9b8;
  --lime: #c6ea4a;
  --lime-2: #9fd63a;
  --text: #f4f7f8;
  --muted: #9aa7ad;
  --line: rgba(255, 255, 255, 0.12);
  --glow: 0 0 40px rgba(0, 224, 200, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 8% 0%, rgba(0, 224, 200, 0.16), transparent 55%),
    radial-gradient(800px 420px at 100% 100%, rgba(198, 234, 74, 0.1), transparent 50%),
    #070b0e url("../images/hero-bg.jpg") center / cover no-repeat;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 14, 0.55) 0%, rgba(7, 11, 14, 0.82) 55%, rgba(7, 11, 14, 0.92) 100%);
}

.page-wrap {
  position: relative;
  min-height: 100vh;
  padding: 28px 18px 70px;
}

.corner-text {
  position: absolute;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 700;
}

.corner-text span {
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 6px;
  background: var(--lime);
  border-radius: 99px;
}

.corner-tl {
  top: 22px;
  left: 28px;
  letter-spacing: 0.22em;
}

.corner-tr {
  top: 22px;
  right: 28px;
  letter-spacing: 0.08em;
  text-transform: none;
  font-size: 15px;
}

.corner-tr span,
.corner-br span {
  margin-inline-start: auto;
}

.corner-bl {
  bottom: 24px;
  left: 28px;
}

.corner-br {
  bottom: 24px;
  right: 28px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 14px;
}

.brand {
  text-align: center;
  margin: 10px auto 8px;
}

.brand-logo {
  width: 240px;
  max-width: 68vw;
  height: auto;
  display: inline-block;
  object-fit: contain;
  filter:
    drop-shadow(0 0 14px rgba(18, 214, 199, 0.45))
    drop-shadow(0 0 22px rgba(198, 234, 74, 0.18));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover {
  transform: translateY(-2px) scale(1.03);
  filter:
    drop-shadow(0 0 18px rgba(18, 214, 199, 0.65))
    drop-shadow(0 0 28px rgba(198, 234, 74, 0.28));
}

.hero-kicker {
  margin: 18px auto 6px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.hero-title {
  max-width: 920px;
  margin: 0 auto 10px;
  text-align: center;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.55;
}

.hero-title span {
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-program {
  max-width: 920px;
  margin: 0 auto 16px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-notes {
  max-width: 920px;
  margin: 0 auto 22px;
  display: grid;
  gap: 10px;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(0, 224, 200, 0.07);
  border: 1px solid rgba(0, 224, 200, 0.28);
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
}

.hero-note i {
  color: var(--cyan);
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.hero-note.is-academy {
  background: rgba(198, 234, 74, 0.08);
  border-color: rgba(198, 234, 74, 0.38);
}

.hero-note.is-academy i {
  color: var(--lime);
}

.hero-note.is-date {
  background: rgba(88, 166, 255, 0.08);
  border-color: rgba(88, 166, 255, 0.35);
}

.hero-note.is-date i {
  color: #7eb6ff;
}

.hero-note.is-award {
  background: rgba(198, 234, 74, 0.07);
  border-color: rgba(198, 234, 74, 0.3);
}

.hero-note.is-award i {
  color: var(--lime);
}

.hero-note.is-warning {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 138, 138, 0.5);
  color: #ffb4b4;
}

.hero-note.is-warning i {
  color: #ff8a8a;
}

.layout {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 120px;
  gap: 8px;
  align-items: start;
}

.side {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  min-height: 640px;
}

.side-left {
  padding-top: 40px;
}

.side-right {
  padding-top: 70px;
}

.float-img {
  display: block;
  user-select: none;
  pointer-events: none;
}

.cube {
  width: 118px;
  animation: floaty 5.5s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(0, 224, 200, 0.28));
}

.laptop {
  width: 150px;
  animation: floaty 6.4s ease-in-out infinite reverse;
  filter: drop-shadow(0 16px 28px rgba(0, 224, 200, 0.22));
}

.plant {
  width: 92px;
  margin-top: auto;
  mix-blend-mode: lighten;
  animation: floaty 7s ease-in-out infinite;
}

.v-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  letter-spacing: 0.28em;
  font-weight: 800;
  color: #dce7ea;
}

.v-label::after {
  content: "";
  display: block;
  width: 3px;
  height: 48px;
  margin: 10px auto 0;
  background: var(--lime);
  border-radius: 99px;
}

.tech-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tech-badge {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45));
  animation: floaty 4.8s ease-in-out infinite;
}

.tech-badge:nth-child(2) { animation-delay: 0.4s; }
.tech-badge:nth-child(3) { animation-delay: 0.8s; }
.tech-badge:nth-child(4) { animation-delay: 1.2s; }

.glass-card {
  background: var(--glass);
  border: 1px solid rgba(0, 224, 200, 0.42);
  border-radius: var(--radius);
  box-shadow: var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 28px 30px 32px;
}

.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.form-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.form-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: rgba(0, 224, 200, 0.08);
  border: 1px solid rgba(0, 224, 200, 0.25);
  font-size: 24px;
  flex-shrink: 0;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  color: #eef6f7;
}

.field-label i {
  color: var(--cyan);
  font-size: 16px;
}

.form-control,
.form-select,
.phone-box {
  background: var(--glass-2) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  border-radius: 12px !important;
  min-height: 52px;
  box-shadow: none !important;
}

.form-control::placeholder {
  color: #7f8d93;
}

input[type="date"].form-control {
  color-scheme: dark;
}

.form-control:focus,
.form-select:focus,
.phone-box:focus-within {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 224, 200, 0.18) !important;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2300e0c8' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-left: 38px;
}

.form-select option {
  background: #10181c;
  color: #fff;
}

textarea.form-control {
  min-height: 110px;
  resize: vertical;
  padding-top: 14px;
}

.phone-box {
  display: flex;
  align-items: stretch;
  overflow: visible;
  position: relative;
}

.country-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 108px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-inline-end: 1px solid var(--line);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.flag {
  font-size: 18px;
  line-height: 1;
}

.phone-box input {
  flex: 1;
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  min-height: 50px;
  padding: 0 14px;
  color: #fff;
}

.country-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 20;
  background: #10191e;
  border: 1px solid rgba(0, 224, 200, 0.28);
  border-radius: 14px;
  max-height: 280px;
  overflow: auto;
  display: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.country-menu.open {
  display: block;
}

.country-search {
  position: sticky;
  top: 0;
  background: #10191e;
  padding: 10px;
}

.country-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  background: transparent;
  border: 0;
  color: #fff;
  text-align: right;
}

.country-item:hover,
.country-item.active {
  background: rgba(0, 224, 200, 0.1);
}

.search-select {
  position: relative;
}

.search-select-btn {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  background: var(--glass-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  text-align: right;
}

.search-select-btn span {
  flex: 1;
  color: #eef6f7;
  background: none;
  opacity: 1;
  min-height: 0;
}

.search-select-btn .is-empty {
  color: #9aa8ae;
  font-weight: 600;
}

.search-select-btn i {
  color: var(--cyan);
}

.search-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 20;
  background: #10191e;
  border: 1px solid rgba(0, 224, 200, 0.28);
  border-radius: 14px;
  max-height: 280px;
  overflow: auto;
  display: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.search-select-menu.open {
  display: block;
}

.search-select-group {
  padding: 10px 14px 4px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.choice,
.commit-grid .choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 10px 12px;
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--glass-2);
  color: #dce7ea;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.choice input:checked + span,
.choice:hover span {
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(0, 224, 200, 0.25), 0 8px 24px rgba(0, 224, 200, 0.12);
  background: rgba(0, 224, 200, 0.08);
}

.commit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 12px;
}

.submit-btn {
  width: 100%;
  border: 0;
  min-height: 58px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 20px;
  color: #081015;
  background: linear-gradient(90deg, #12d6c7 0%, #c6ea4a 100%);
  box-shadow: 0 10px 30px rgba(18, 214, 199, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  color: #081015;
}

.invalid .form-control,
.invalid .form-select,
.invalid .phone-box,
.invalid-group {
  border-color: #ff6b6b !important;
}

.error-text {
  display: none;
  color: #ff8a8a;
  font-size: 12px;
  margin-top: 6px;
}

.invalid .error-text,
.invalid-group + .error-text.show {
  display: block;
}

.eligibility-alert {
  display: none;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  padding: 18px 18px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(32, 16, 12, 0.9), rgba(16, 12, 10, 0.78));
  border: 1px solid rgba(255, 168, 76, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #f6e7d4;
}

.eligibility-alert.is-visible {
  display: flex;
}

.eligibility-alert.is-review {
  border-color: rgba(255, 196, 90, 0.5);
}

.eligibility-alert__ico {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 168, 76, 0.14);
  color: #ffb35c;
  font-size: 20px;
}

.eligibility-alert__body {
  min-width: 0;
}

.eligibility-alert__body p {
  margin: 0;
  line-height: 1.85;
}

.eligibility-alert__body p + p {
  margin-top: 8px;
  color: #e8c9a8;
}

.eligibility-alert__emphasis {
  color: #ffd27a;
  font-weight: 800;
}

.eligibility-alert--field {
  width: 100%;
  margin: 10px 0 0;
  padding: 12px 14px;
  font-size: 13.5px;
  border-radius: 16px;
  box-shadow: 0 0 22px rgba(255, 140, 70, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.eligibility-alert--field .eligibility-alert__ico {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  font-size: 17px;
}

.eligibility-alert__rejected {
  color: #ffb4a2;
  font-weight: 800;
}

.eligibility-alert--field .eligibility-alert__action {
  margin-top: 6px;
  color: #ffd27a;
  font-weight: 800;
}

@media (max-width: 768px) {
  .eligibility-alert--field {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

.inline-success {
  background: #10181c;
  color: #fff;
  border: 1px solid rgba(0, 224, 200, 0.35);
  border-radius: 20px;
  text-align: center;
  padding: 22px 16px 18px;
  margin-bottom: 22px;
}

.inline-success h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.inline-success p {
  margin: 0;
  color: var(--muted);
}

.modal-content.success-box {
  background: #10181c;
  color: #fff;
  border: 1px solid rgba(0, 224, 200, 0.35);
  border-radius: 20px;
  text-align: center;
  padding: 18px 10px 8px;
}

.success-ico {
  width: 74px;
  height: 74px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #12d6c7, #c6ea4a);
  color: #081015;
  font-size: 34px;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .v-label {
    writing-mode: horizontal-tb;
    transform: none;
  }

  .v-label::after {
    display: none;
  }

  .tech-rail {
    flex-direction: row;
  }

  .corner-text {
    display: none;
  }
}

@media (max-width: 768px) {
  .page-wrap {
    padding: 16px 12px 40px;
  }

  .glass-card {
    padding: 20px 16px 24px;
  }

  .track-grid,
  .commit-grid {
    grid-template-columns: 1fr;
  }

  .form-head h2 {
    font-size: 22px;
  }

  .brand-logo {
    width: 168px;
  }

  .cube,
  .laptop,
  .plant,
  .tech-badge {
    width: 64px;
    height: auto;
  }
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-bottom: 40px;
}

.error-card {
  width: min(560px, 100%);
  margin: 28px auto 0;
  text-align: center;
}

.error-code {
  margin: 0 0 8px;
  font-size: clamp(72px, 16vw, 120px);
  line-height: 0.9;
  font-weight: 800;
  background: linear-gradient(90deg, #12d6c7 0%, #c6ea4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-card h1 {
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 800;
}

.error-copy {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.error-card .submit-btn {
  text-decoration: none;
}

.closed-registration-card {
  text-align: center;
  padding: 36px 28px 40px;
}

.closed-registration__ico {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(90deg, #12d6c7 0%, #c6ea4a 100%);
  color: #081015;
  font-size: 32px;
  box-shadow: 0 12px 30px rgba(18, 214, 199, 0.28);
}

.closed-registration-card h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  line-height: 1.5;
}

.closed-registration__message,
.closed-registration__note,
.closed-registration__flash,
.closed-registration__lead,
.closed-registration__motivate {
  margin: 0 auto;
  max-width: 40rem;
  line-height: 1.9;
}

.closed-registration__lead {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.closed-registration__message {
  color: var(--text);
  font-size: 16px;
}

.closed-registration__subhead {
  margin: 26px 0 12px;
  font-size: 18px;
  font-weight: 800;
}

.closed-specialties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  text-align: right;
}

.closed-specialties li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(0, 224, 200, 0.07);
  border: 1px solid rgba(0, 224, 200, 0.28);
  box-shadow: 0 0 18px rgba(0, 224, 200, 0.08);
}

.closed-specialties i {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 224, 200, 0.12);
  color: var(--cyan);
  font-size: 16px;
}

.closed-specialties span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.closed-specialties strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.closed-specialties small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.closed-registration__motivate {
  margin-bottom: 8px;
  color: var(--lime);
  font-size: 17px;
  font-weight: 800;
}

.closed-registration__note {
  color: var(--muted);
  font-size: 15px;
}

.closed-registration__cta {
  margin: 22px auto 0;
  max-width: 40rem;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.7;
  color: #081015;
  background: linear-gradient(90deg, #12d6c7 0%, #c6ea4a 100%);
  box-shadow: 0 10px 30px rgba(18, 214, 199, 0.28);
}

.closed-registration__flash {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 176, 96, 0.1);
  border: 1px solid rgba(255, 196, 120, 0.4);
  color: #ffd7a1;
  font-weight: 700;
}

@media (max-width: 640px) {
  .closed-specialties {
    grid-template-columns: 1fr;
  }
}

body.terms-locked {
  overflow: hidden;
}

body.terms-locked .page-wrap {
  pointer-events: none;
  user-select: none;
}

html.terms-already-accepted body {
  overflow: auto;
}

html.terms-already-accepted .terms-modal {
  display: none;
}

html.terms-already-accepted .page-wrap {
  pointer-events: auto;
  user-select: auto;
}

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.terms-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.terms-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 10, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.terms-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(100dvh - 36px, 100%);
  display: flex;
}

.terms-modal__panel {
  width: 100%;
  max-height: min(100dvh - 36px, 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid rgba(0, 224, 200, 0.42);
  border-radius: 28px;
  box-shadow: var(--glow), 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: scale(0.96);
  transition: transform 0.22s ease;
}

.terms-modal.is-open .terms-modal__panel {
  transform: scale(1);
}

.terms-modal__head {
  flex-shrink: 0;
  padding: 22px 22px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terms-modal__head h2 {
  margin: 0;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  line-height: 1.55;
  color: var(--text);
}

.terms-modal__body {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 22px;
  display: grid;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}

.terms-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(0, 224, 200, 0.07);
  border: 1px solid rgba(0, 224, 200, 0.28);
}

.terms-item__ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 224, 200, 0.12);
  color: var(--cyan);
  font-size: 20px;
}

.terms-item__copy {
  min-width: 0;
}

.terms-item__copy p {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.85;
}

.terms-item__copy p + p {
  margin-top: 8px;
}

.terms-item__label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.terms-item__copy .terms-date {
  margin: 4px 0 0;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  line-height: 1.4;
  background: linear-gradient(90deg, #12d6c7 0%, #c6ea4a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.terms-item.is-academy {
  background: rgba(198, 234, 74, 0.07);
  border-color: rgba(198, 234, 74, 0.3);
}

.terms-item.is-academy .terms-item__ico {
  background: rgba(198, 234, 74, 0.14);
  color: var(--lime);
}

.terms-item.is-date {
  background: rgba(88, 166, 255, 0.08);
  border-color: rgba(88, 166, 255, 0.35);
}

.terms-item.is-date .terms-item__ico {
  background: rgba(88, 166, 255, 0.14);
  color: #7eb6ff;
}

.terms-item.is-growth .terms-item__ico {
  color: var(--cyan);
}

.terms-item.is-award {
  background: rgba(198, 234, 74, 0.07);
  border-color: rgba(198, 234, 74, 0.3);
}

.terms-item.is-award .terms-item__ico {
  background: rgba(198, 234, 74, 0.14);
  color: var(--lime);
}

.terms-highlight {
  font-weight: 800;
  color: var(--lime);
}

.terms-item.is-warning {
  background: rgba(255, 176, 96, 0.08);
  border-color: rgba(255, 196, 120, 0.42);
}

.terms-item.is-warning .terms-item__ico {
  background: rgba(255, 176, 96, 0.14);
  color: #ffc878;
}

.terms-emphasis {
  font-weight: 800;
  color: #ffd7a1;
}

.terms-modal__actions {
  flex-shrink: 0;
  padding: 14px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  min-height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 700;
}

.terms-check input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--cyan);
}

.terms-accept-btn:disabled,
.terms-accept-btn:disabled:hover {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.45) brightness(0.8);
  box-shadow: none;
}

@media (max-width: 430px) {
  .terms-modal {
    padding: 10px;
    align-items: stretch;
  }

  .terms-modal__dialog,
  .terms-modal__panel {
    max-height: calc(100dvh - 20px);
  }

  .terms-modal__head {
    padding: 18px 16px 10px;
  }

  .terms-modal__body {
    padding: 12px 16px;
  }

  .terms-modal__actions {
    padding: 12px 16px 16px;
  }

  .terms-accept-btn {
    width: 100%;
  }
}

@media (max-width: 390px) {
  .terms-item {
    padding: 12px;
    gap: 10px;
  }

  .terms-item__ico {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .terms-item__copy p,
  .terms-check {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .terms-modal {
    padding: 8px;
  }

  .terms-modal__head h2 {
    font-size: 18px;
  }

  .terms-date {
    font-size: 20px;
  }
}
