:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  --navy: #0f1c2e;
  --accent: #2f7ac1;
  --soft-gray: #f5f6f8;
}

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

body {
  background: var(--soft-gray);
  color: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #ffffff;
  border-bottom: 1px solid #e2e6ea;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

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

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.divider {
  width: 60%;
  height: 1px;
  background: #e2e6ea;
  margin: 0.4rem 0;
}

nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

nav a.active,
nav a:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.locations-stage {
  position: relative;
  background: radial-gradient(circle at top, #eaf2fb 0%, #d9e2f1 40%, #c9d5ea 100%);
  overflow: hidden;
}

.locations-stage::before {
  content: "";
  position: absolute;
  inset: 10% 15%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  border-radius: 50%;
  filter: blur(10px);
  z-index: 0;
}

.locations-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  width: min(1100px, 100%);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(15, 28, 46, 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.locations-list h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 0.75rem;
}

.locations-list p {
  color: #4a5a70;
  margin-bottom: 1.75rem;
}

.locations-list ul {
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.location-trigger {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  border: 1px solid #d3dbe7;
  background: #f8fafc;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.location-address {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: #50647d;
  margin-top: 0.35rem;
}

.location-trigger:hover,
.location-trigger:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 10px 18px rgba(47, 122, 193, 0.18);
  transform: translateY(-1px);
  outline: none;
}

.location-trigger.is-active {
  background: #1a2b44;
  color: #ffffff;
  border-color: #1a2b44;
  box-shadow: 0 12px 20px rgba(15, 28, 46, 0.28);
}

.location-trigger.is-active .location-address {
  color: rgba(255, 255, 255, 0.78);
}

.locations-map {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.locations-map__label {
  font-weight: 600;
  color: #344156;
}

.locations-map__frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #d3dbe7;
  min-height: 360px;
  background: #f2f4f8;
}

.locations-map__frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 360px;
}

.apply-stage {
  background: radial-gradient(circle at top, #eef3f9 0%, #dde6f2 45%, #cbd7ea 100%);
}

.apply-card {
  background: #ffffff;
  width: min(820px, 100%);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 28, 46, 0.1);
  display: grid;
  gap: 1.5rem;
}

.apply-card h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.apply-card p {
  color: #4a5a70;
}

.apply-form {
  display: grid;
  gap: 1rem;
}

.apply-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  color: #2d3b4f;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #d1d9e6;
  font: inherit;
  background: #f8fafc;
  color: var(--navy);
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 122, 193, 0.18);
}

.apply-form button {
  justify-self: start;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.apply-form button:hover,
.apply-form button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 18px rgba(47, 122, 193, 0.25);
  outline: none;
}

.about-stage {
  background: radial-gradient(circle at top, #eef3f7 0%, #dfe6f0 45%, #cfd8e6 100%);
}

.about-card {
  background: #ffffff;
  width: min(980px, 100%);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 24px;
  box-shadow: 0 22px 50px rgba(15, 28, 46, 0.1);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.about-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.about-text p {
  color: #4a5a70;
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-photo {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
}

.about-photo img {
  width: min(320px, 100%);
  border-radius: 20px;
  border: 1px solid #d1d9e6;
  box-shadow: 0 16px 30px rgba(15, 28, 46, 0.12);
  background: #f5f7fb;
}

.about-photo figcaption {
  font-weight: 600;
  color: #344156;
}

.home-stage {
  position: relative;
  overflow: hidden;
  background: #101827;
}

.bg-rotator {
  position: absolute;
  inset: 0;
  z-index: 0;
  filter: blur(7px);
  transform: scale(1.05);
  opacity: 0.85;
}

.bg-rotator__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: bg-fade 25s linear infinite;
  will-change: opacity;
}

.bg-rotator__image:nth-child(1) {
  background-image: url("images/ls1.png");
  animation-delay: 0s;
}

.bg-rotator__image:nth-child(2) {
  background-image: url("images/ls2.png");
  animation-delay: 5s;
}

.bg-rotator__image:nth-child(3) {
  background-image: url("images/ss3.png");
  animation-delay: 10s;
}

.bg-rotator__image:nth-child(4) {
  background-image: url("images/ss4.png");
  animation-delay: 15s;
}

.bg-rotator__image:nth-child(5) {
  background-image: url("images/rdb.jpg");
  animation-delay: 20s;
}

.hero {
  background: #ffffff;
  max-width: 900px;
  padding: 3rem;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(15, 28, 46, 0.08);
  text-align: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
  opacity: 0;
  animation: hero-from-top 0.9s ease-out forwards;
}

.hero-line {
  font-size: 1.1rem;
  color: #3a4a5e;
  opacity: 0;
}

.hero-line--zoom {
  animation: hero-zoom-in 0.95s ease-out 0.2s forwards;
}

.hero-line--up {
  animation: hero-from-bottom 0.9s ease-out 0.4s forwards;
}

@keyframes hero-from-top {
  0% {
    opacity: 0;
    transform: translateY(-22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-zoom-in {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-from-bottom {
  0% {
    opacity: 0;
    transform: translateY(22px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title,
  .hero-line {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .bg-rotator__image {
    animation: none;
    opacity: 0;
  }

  .bg-rotator__image:nth-child(1) {
    opacity: 1;
  }
}

@keyframes bg-fade {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  26% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

footer {
  background: #ffffff;
  border-top: 1px solid #e2e6ea;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.95rem;
  color: #5a6778;
}

@media (max-width: 900px) {
  .locations-card {
    grid-template-columns: 1fr;
  }

  .about-card {
    grid-template-columns: 1fr;
  }

  .locations-map__frame {
    min-height: 280px;
  }

  .locations-map__frame iframe {
    min-height: 280px;
  }
}
