:root {
  --bg-top: #f5fbff;
  --bg-mid: #d9efff;
  --bg-bottom: #b7dcff;
  --ink-strong: #102645;
  --ink-soft: #1f3f66;
  --glass-strong: rgba(255, 255, 255, 0.72);
  --shadow: 0 30px 60px rgba(11, 31, 58, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--ink-strong);
  background: linear-gradient(165deg, var(--bg-top) 0%, var(--bg-mid) 50%, var(--bg-bottom) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -15vmax;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.7), transparent 35%),
    radial-gradient(circle at 82% 72%, rgba(0, 125, 255, 0.2), transparent 40%);
}

.page {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(16px, 2.8vh, 32px);
  padding: clamp(18px, 4vw, 40px) clamp(14px, 4vw, 48px);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero h1 {
  margin: 0;
  text-align: center;
  text-wrap: balance;
  font-size: clamp(1.25rem, 1.1rem + 1.9vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.slider-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.slider {
  position: relative;
  width: min(100%, calc(78vh * 1.5));
  aspect-ratio: 3 / 2;
  height: auto;
  max-height: 78vh;
  margin: 0 auto;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: var(--shadow);
  display: grid;
  align-items: center;
  touch-action: pan-y;
}

.slides {
  display: flex;
  height: 100%;
  will-change: transform;
}

.slide {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  padding: 0;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(42px, 5vw, 56px);
  height: clamp(42px, 5vw, 56px);
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: clamp(1.25rem, 1.1rem + 1vw, 1.8rem);
  line-height: 1;
  color: #0a2747;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(12, 34, 62, 0.17);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  z-index: 3;
}

.nav-btn:hover {
  transform: translateY(calc(-50% - 2px)) scale(1.02);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 30px rgba(12, 34, 62, 0.2);
}

.nav-btn:active {
  transform: translateY(-50%) scale(0.98);
}

.nav-btn:focus-visible {
  outline: 3px solid rgba(0, 89, 255, 0.45);
  outline-offset: 3px;
}

.nav-prev {
  left: clamp(8px, 1.2vw, 16px);
}

.nav-next {
  right: clamp(8px, 1.2vw, 16px);
}

.contact {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(0.96rem, 0.9rem + 0.45vw, 1.12rem);
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(31, 63, 102, 0.35);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}

.contact a:hover,
.contact a:focus-visible {
  color: #0d56a8;
  border-color: #0d56a8;
  outline: none;
}

@media (max-width: 760px) {
  .slider {
    width: 100%;
    max-height: 70vh;
  }

  .nav-btn {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slides,
  .nav-btn,
  .contact a {
    transition: none;
  }
}
