/* =========================================================
   L.G Betenatan School — Clean pink & light-gray UI
   Palette aligned with admin dashboard / school uniform
   ========================================================= */

:root {
  --primary: #E94F87;
  --primary-dark: #D43D74;
  --primary-soft: #F5D0E0;
  --primary-softer: #EED4E3;
  --dark: #221C28;
  --text: #1E1A28;
  --muted: #453F52;
  --bg: #E4DFEB;
  --bg-soft: #DDD7E6;
  --surface: #F4F0F7;
  --white: #FFFBFE;
  --border: #B9B1C6;
  --purple: #4E4760;
  --shadow-sm: 0 1px 3px rgba(42, 34, 47, 0.07);
  --shadow-md: 0 8px 24px rgba(42, 34, 47, 0.1);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --nav-h: 70px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --container: 1080px;
  --font-display: "Lexend", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-bg-strong: rgba(255, 255, 255, 0.84);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-highlight: rgba(255, 255, 255, 0.75);
  --glass-shadow: 0 10px 40px rgba(42, 34, 47, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --glass-blur: 22px;
  --glass-saturate: 180%;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + var(--safe-top) + 40px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 40% at 10% 0%, rgba(233, 79, 135, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 35% at 90% 20%, rgba(104, 98, 127, 0.12), transparent 50%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

body.modal-open,
body.menu-open {
  overflow: hidden;
  touch-action: none;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 500;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  font-family: var(--font-display);
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: calc(0.75rem + var(--safe-top));
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* iOS liquid-glass surface */
.glass,
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur));
  backdrop-filter: saturate(var(--glass-saturate)) blur(var(--glass-blur));
  position: relative;
  isolation: isolate;
}

.glass::before,
.glass-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    155deg,
    var(--glass-highlight) 0%,
    transparent 38%,
    transparent 62%,
    rgba(233, 79, 135, 0.08) 100%
  );
  opacity: 0.55;
  z-index: 0;
}

.glass > *,
.glass-panel > * {
  position: relative;
  z-index: 1;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .glass-panel,
  .navbar__inner,
  .focus,
  .about__values li,
  .contact-form,
  .modal__panel,
  .toast {
    background: rgba(247, 242, 246, 0.94) !important;
  }
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(100% - 2rem - var(--safe-left) - var(--safe-right), var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(3.25rem, 6vw, 4.75rem) 0;
}

.section__header {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.section__header p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 36rem;
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.55rem, 2.6vw, 1.9rem);
  margin-bottom: 0.65rem;
}

h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 650;
}

p {
  color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn,
.nav__link,
.footer__btn,
.hamburger,
.modal__close,
.text-btn,
.forgot,
.brand {
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn:focus-visible,
.nav__link:focus-visible,
.footer__btn:focus-visible,
.hamburger:focus-visible,
.modal__close:focus-visible,
.text-btn:focus-visible,
.forgot:focus-visible,
.brand:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(180deg, #F06292 0%, var(--primary) 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 22px rgba(233, 79, 135, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--primary:hover {
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 700;
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.btn--outline:hover {
  border-color: rgba(233, 79, 135, 0.55);
  color: var(--primary-dark);
  background: rgba(252, 234, 241, 0.9);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  font-weight: 650;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  color: var(--primary-dark);
  background: rgba(245, 208, 224, 0.75);
  border-color: rgba(233, 79, 135, 0.35);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  font-weight: 700;
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 8px 24px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
}

.btn--sm {
  padding: 0.5rem 0.95rem;
  font-size: 0.8125rem;
}

.btn--lg {
  padding: 0.8rem 1.35rem;
  font-size: 0.925rem;
}

.btn--block {
  width: 100%;
}

.text-btn {
  color: var(--primary-dark);
  font-weight: 700;
  padding: 0;
}

.text-btn:hover {
  text-decoration: underline;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: calc(0.75rem + var(--safe-top)) 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 1rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 252, 254, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 32px rgba(42, 34, 47, 0.14);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.navbar.is-scrolled .navbar__inner {
  background: rgba(255, 252, 254, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 14px 36px rgba(42, 34, 47, 0.16);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand__logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary-soft);
  padding: 0;
  box-sizing: border-box;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
}

.brand__sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--purple);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav__link {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  border-radius: 999px;
  transition: color 0.15s, background 0.15s, box-shadow 0.15s;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 14px rgba(233, 79, 135, 0.1);
}

.nav__actions {
  display: none;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.navbar__login-mobile {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.18s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + var(--safe-top) + 2.5rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
  background: var(--dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  /* Scale past edges so blur doesn't show transparent corners */
  transform: scale(1.02);
  filter: blur(1px) contrast(1.04) saturate(1.08) brightness(1.03);
  image-rendering: auto;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 50% 42%, rgba(42, 34, 47, 0.12) 0%, rgba(42, 34, 47, 0.38) 100%),
    linear-gradient(180deg, rgba(42, 34, 47, 0.22) 0%, rgba(42, 34, 47, 0.28) 50%, rgba(42, 34, 47, 0.52) 100%),
    linear-gradient(120deg, rgba(233, 79, 135, 0.1) 0%, transparent 55%);
  pointer-events: none;
}

/* Trust strip — below hero */
.trust {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 3.5vw, 2.25rem) 0;
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.trust__bar {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0.35rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.trust__item {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.1rem 0.85rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
}

.trust__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22%;
  right: 0;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(42, 34, 47, 0.16),
    transparent
  );
}

.trust__item strong {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.trust__item span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 40rem;
  width: 100%;
  padding: 0.5rem 0.25rem;
}

.hero__logo {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.15rem;
  object-fit: cover;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  display: block;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.hero__title {
  font-size: clamp(2.35rem, 6vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 0.9rem;
  color: #fff;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 8px 28px rgba(0, 0, 0, 0.5);
}

.hero__lead {
  font-size: clamp(1.05rem, 2.2vw, 1.15rem);
  max-width: 34rem;
  margin: 0 auto 1.85rem;
  line-height: 1.7;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ---------- About ---------- */
.about {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--primary-softer) 100%);
  border-block: 1px solid var(--border);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.about__copy p + p {
  margin-top: 0.85rem;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about__copy p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
}

.about__values li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
}

.about__values h3 {
  color: var(--text);
}

.about__values p {
  color: var(--muted);
}

.about__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.about__values p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Academics ---------- */
.academics {
  background: linear-gradient(180deg, var(--bg) 0%, #D8D1E4 100%);
}

.academics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.focus {
  padding: 1.4rem 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  border-top: 3px solid var(--primary);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  backdrop-filter: saturate(170%) blur(18px);
}

.focus p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ---------- Steps / School life ---------- */
.life {
  background: var(--primary-softer);
  border-block: 1px solid #F0D5E2;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: var(--border);
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 0.5rem;
}

.step__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 0 5px rgba(233, 79, 135, 0.12);
}

.step p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

.step h3 {
  color: var(--text);
}

/* ---------- Location ---------- */
.location {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--primary-softer) 100%);
  border-block: 1px solid var(--border);
}

.location__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  align-items: stretch;
}

.location__copy > p {
  font-size: 1rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
  line-height: 1.65;
}

.location__details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.location__details li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--primary);
}

.location__details strong {
  display: block;
  color: var(--text);
  font-size: 0.8rem;
  margin-bottom: 0.1rem;
}

.location__details span {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
}

.location__details a {
  color: var(--primary-dark);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.location__details a:hover {
  color: var(--primary);
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.location__map {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.location__map iframe {
  width: 100%;
  flex: 1;
  min-height: 320px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.location__map-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.location__map-note a {
  color: var(--primary-dark);
  font-weight: 700;
}

.location__map-note a:hover {
  text-decoration: underline;
}

/* ---------- Contact ---------- */
.cta {
  padding: clamp(3.25rem, 6vw, 4.5rem) 0;
  background: linear-gradient(160deg, var(--primary-softer) 0%, var(--bg) 45%, var(--bg-soft) 100%);
}

.cta__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: start;
}

.cta h2 {
  margin-bottom: 0.55rem;
}

.cta__copy > p {
  margin-bottom: 1.15rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.cta__info {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cta__info li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 550;
}

.cta__info svg {
  color: var(--primary-dark);
  flex-shrink: 0;
}

.cta__info a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta__info a:hover {
  color: var(--primary-dark);
}

.btn--telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  background: linear-gradient(180deg, #3aadea 0%, #229ED9 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(34, 158, 217, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--telegram:hover {
  background: linear-gradient(180deg, #229ED9 0%, #1a8bc0 100%);
  color: #fff;
}

.btn--telegram .icon-telegram {
  flex-shrink: 0;
}

.btn--telegram-footer {
  margin-top: 0.25rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
  box-shadow: none;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.footer__contact .btn--telegram:hover {
  color: #fff;
}

.cta__portals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
}

.field {
  margin-bottom: 0.9rem;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 650;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  resize: vertical;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 44px;
  font-size: 1rem;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6B6478;
  opacity: 1;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(233, 79, 135, 0.12);
}

.field input.is-invalid,
.field textarea.is-invalid {
  border-color: #E05A5A;
  background: #FFF8F8;
}

.field__error {
  display: block;
  min-height: 1em;
  font-size: 0.8rem;
  color: #B42318;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.88);
  padding-top: 3rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 2rem;
}

.footer .brand__name {
  color: var(--white);
}

.footer .brand__sub {
  color: rgba(255, 255, 255, 0.72);
}

.footer .brand__logo {
  background: var(--surface);
  border-color: rgba(233, 79, 135, 0.35);
}

.footer .brand--footer {
  pointer-events: none;
}

.footer__brand p {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 260px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__col h4 {
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 0.85rem;
  font-weight: 700;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer__col a,
.footer__btn {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  text-align: left;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  transition: color 0.15s;
}

.footer__col a:hover,
.footer__btn:hover {
  color: #FFB3D0;
}

.footer__contact li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.footer__contact a {
  color: rgba(255, 255, 255, 0.88);
}

.footer__contact a:hover {
  color: #FFB3D0;
}


.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1rem 0;
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

.footer__credits a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__credits a:hover {
  color: #6ec1eb;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: calc(var(--nav-h) + var(--safe-top) + 28px);
  right: max(12px, var(--safe-right));
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(400px, calc(100vw - 24px - var(--safe-left) - var(--safe-right)));
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  animation: slideIn 0.25s var(--ease);
}

.toast[hidden] {
  display: none !important;
}

.toast__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}

.toast__message {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Login Modal ---------- */
.modal[hidden] {
  display: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 34, 47, 0.4);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
}

.modal__panel {
  position: relative;
  width: min(100%, 400px);
  background: rgba(255, 252, 254, 0.94);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--glass-shadow), 0 24px 60px rgba(42, 34, 47, 0.22);
  -webkit-backdrop-filter: saturate(190%) blur(28px);
  backdrop-filter: saturate(190%) blur(28px);
  animation: slideUp 0.25s var(--ease);
  max-height: min(92vh, 92dvh, 680px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: var(--text);
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.modal__close:hover {
  background: var(--bg);
  color: var(--text);
}

.login-view__header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.login-view__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
}

.login-view__header h2 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.login-view__header p {
  font-size: 0.9rem;
  color: var(--muted);
}

.login-form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
  font-size: 0.8125rem;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  cursor: pointer;
  font-weight: 550;
}

.checkbox input {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
}

.forgot {
  color: var(--primary-dark);
  font-weight: 700;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
}

.forgot:hover {
  text-decoration: underline;
}

.login-switch {
  text-align: center;
  margin-top: 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.login-view[hidden] {
  display: none !important;
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay { transition-delay: 0.08s; }
.reveal--delay-2 { transition-delay: 0.16s; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive / cross-device ---------- */
.hero__bg picture,
.hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

iframe {
  border: 0;
}

.modal,
.toast,
.navbar,
.nav {
  max-width: 100vw;
}

@media (max-width: 1100px) {
  .nav__list {
    gap: 0;
  }

  .nav__link {
    padding: 0.4rem 0.5rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 960px) {
  .trust__bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.15rem;
  }

  .trust__item:nth-child(1)::after,
  .trust__item:nth-child(2)::after,
  .trust__item:nth-child(3)::after {
    display: none;
  }

  .about__grid,
  .location__grid,
  .cta__grid,
  .academics__grid,
  .steps,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }

  .location__map iframe {
    min-height: 280px;
  }

  .navbar__login-desktop {
    display: none;
  }

  .navbar__login-mobile {
    display: inline-flex;
  }

  .hamburger {
    display: flex;
  }

  .navbar__inner {
    border-radius: 22px;
  }

  .nav {
    position: fixed;
    top: calc(var(--nav-h) + var(--safe-top) + 1.6rem);
    left: max(1rem, var(--safe-left));
    right: max(1rem, var(--safe-right));
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 22px;
    padding: 0.85rem 1rem calc(1.1rem + var(--safe-bottom));
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s var(--ease), opacity 0.2s, visibility 0.2s;
    box-shadow: var(--glass-shadow);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    max-height: calc(100dvh - var(--nav-h) - var(--safe-top) - 2rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 110;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav.is-open .nav__list,
  .nav__list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav__link {
    padding: 0.7rem 0.8rem;
  }

  .nav__actions {
    display: flex;
    flex-direction: column;
    margin-top: 0.65rem;
    gap: 0.45rem;
  }

  .nav__actions .btn {
    width: 100%;
  }

  .step {
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.1rem 0.9rem;
  }

  .step__num {
    grid-row: span 2;
    margin: 0;
  }

  .hero {
    min-height: 100svh;
    padding-left: var(--safe-left);
    padding-right: var(--safe-right);
  }

  .hero__cta {
    width: 100%;
  }

  .hero__cta .btn {
    flex: 1 1 12rem;
  }

  .hero__photo {
    filter: blur(0.8px) contrast(1.04) saturate(1.08) brightness(1.03);
    transform: scale(1.03);
  }

  .login-form__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal__panel {
    width: min(100%, calc(100vw - 1.5rem));
    margin: 0.75rem;
  }
}

@media (max-width: 768px) {
  .hero__cta .btn {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .brand__sub {
    display: none;
  }

  .brand__name {
    font-size: 0.9rem;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .toast {
    left: max(12px, var(--safe-left));
    right: max(12px, var(--safe-right));
    max-width: none;
  }

  .section {
    padding: clamp(2.5rem, 8vw, 3.5rem) 0;
  }
}

@media (max-width: 480px) {
  .hero__logo { width: 80px; height: 80px; }
  .hero__title { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .hero__cta { flex-direction: column; }
  .trust__item {
    padding: 0.95rem 0.55rem;
  }

  .trust__item strong {
    font-size: 1.05rem;
    white-space: normal;
  }

  .trust__item span {
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .navbar__login-mobile {
    padding-inline: 0.7rem;
    font-size: 0.75rem;
  }

  .trust__bar {
    grid-template-columns: 1fr;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + var(--safe-top) + 1.25rem);
    padding-bottom: 1.5rem;
  }

  .hero__logo {
    width: 64px;
    height: 64px;
    margin-bottom: 0.75rem;
  }

  .hero__eyebrow {
    margin-bottom: 0.45rem;
  }

  .hero__lead {
    margin-bottom: 1rem;
  }
}

@media (min-width: 1440px) {
  :root {
    --container: 1180px;
  }
}

@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .nav__link { min-height: 44px; display: flex; align-items: center; }
  .hamburger { min-width: 44px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .toast,
  .modal__panel {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .hero__photo {
    transform: none;
    filter: none;
  }
}
