/* =========================
   AquaLoop Pools — Global Styles
   ========================= */

@font-face {
  font-family: "AquaLoopDisplay";
  src: url("../fonts/Quicksand-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AquaLoopText";
  src: url("../fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "AquaLoopText";
  src: url("../fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --alp-color-bg: #02101b;
  --alp-color-bg-soft: #041a26;
  --alp-color-surface: #062432;
  --alp-color-surface-soft: #0a3144;
  --alp-color-accent-soft: #7ff0ff;
  --alp-color-accent-deep: #2ad0ff;
  --alp-color-sand: #f6f0e8;
  --alp-color-text-main: #f7fcff;
  --alp-color-text-muted: #c3d7e4;
  --alp-color-border-soft: rgba(127, 240, 255, 0.32);

  --alp-radius-lg: 32px;
  --alp-radius-md: 24px;
  --alp-radius-pill: 999px;

  --alp-shadow-soft: 0 20px 52px rgba(0, 0, 0, 0.85);

  --alp-duration-fast: 160ms;
  --alp-duration-normal: 260ms;
  --alp-duration-slow: 420ms;

  --alp-ease-out: cubic-bezier(0.18, 0.72, 0.24, 1);
  --alp-ease-soft: cubic-bezier(0.19, 0.56, 0.24, 0.96);

  --alp-header-height: 64px;
}

/* RESET BASICS */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "AquaLoopText", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--alp-color-text-main);
  background: radial-gradient(circle at top, #06334a 0, #02101b 52%, #00070c 100%);
  -webkit-font-smoothing: antialiased;
}

/* Ensure images never exceed 350px width */
img {
  width: 100%;
  max-width: 350px;
  height: auto;
  display: block;
  border-radius: 18px;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--alp-color-accent-soft);
  outline-offset: 3px;
}

button {
  font-family: inherit;
}

/* Layout helpers */

.alp-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.alp-body {
  background: radial-gradient(circle at top, #06334a 0, #02101b 52%, #00070c 100%);
  color: var(--alp-color-text-main);
}

/* Skip link */

.alp-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  z-index: 1000;
}

.alp-skip-link:focus-visible {
  left: 16px;
}

/* Sections */

.alp-main {
  padding-top: calc(var(--alp-header-height) + 16px);
}

.alp-section {
  padding: 52px 0 0;
}

/* Typography */

.alp-kicker {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--alp-color-accent-soft);
  margin: 0 0 4px;
}

.alp-section-title {
  font-family: "AquaLoopDisplay", system-ui, sans-serif;
  font-size: 24px;
  margin: 0 0 10px;
}

.alp-section-lead {
  font-size: 14px;
  color: var(--alp-color-text-muted);
  max-width: 520px;
  margin: 0 0 16px;
}

/* =========================
   NAV / HEADER
   ========================= */

/* ЕДИНЫЙ ХЕДДЕР ДЛЯ ВСЕХ СТРАНИЦ */

.alp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: radial-gradient(circle at top, rgba(1, 32, 52, 0.96), rgba(0, 8, 16, 0.98));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(0, 40, 64, 0.9);
}

.alp-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.alp-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.alp-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #7ff0ff, #2ad0ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #001019;
  box-shadow: 0 0 18px rgba(127, 240, 255, 0.9);
}

.alp-logo-mark--small {
  width: 26px;
  height: 26px;
  font-size: 12px;
}

.alp-logo-text {
  font-family: "AquaLoopDisplay", system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.alp-logo-text--accent {
  color: var(--alp-color-accent-soft);
}

/* NAV */

.alp-nav {
  display: flex;
  align-items: center;
}

.alp-nav-list {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.alp-nav-link {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 6px;
  text-decoration: none;
  color: var(--alp-color-text-muted);
  transition:
    color var(--alp-duration-fast) var(--alp-ease-out),
    transform var(--alp-duration-fast) var(--alp-ease-out),
    opacity var(--alp-duration-fast) var(--alp-ease-out);
}

.alp-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--alp-color-accent-soft), transparent);
  transform-origin: left;
  transform: scaleX(0);
  opacity: 0;
  transition:
    transform var(--alp-duration-fast) var(--alp-ease-out),
    opacity var(--alp-duration-fast) var(--alp-ease-out);
}

.alp-nav-link:hover {
  color: var(--alp-color-sand);
}

.alp-nav-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* если захочешь подсветить активную страницу */
.alp-nav-link--active {
  color: var(--alp-color-sand);
}

.alp-nav-link--active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* burger */

.alp-burger {
  display: none;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 999px;
  display: none; /* включим только на мобилке */
  align-items: center;
  gap: 6px;
}

.alp-burger-line {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--alp-color-sand);
  transition:
    transform var(--alp-duration-fast) var(--alp-ease-out),
    opacity var(--alp-duration-fast) var(--alp-ease-out);
}

.alp-burger-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* glow под хеддером */

.alp-header-glow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -26px;
  height: 26px;
  background: radial-gradient(circle at top, rgba(127, 240, 255, 0.22), transparent 70%);
  pointer-events: none;
}

/* HEADER ADAPTIVE — новая схема: класс .alp-header--nav-open */

@media (max-width: 768px) {
  .alp-nav-list {
    position: fixed;
    inset-inline: 16px;
    top: calc(var(--alp-header-height) + 10px);
    padding: 16px 18px;
    border-radius: 24px;
    background: radial-gradient(circle at top, #062432, #01060a 75%);
    box-shadow: var(--alp-shadow-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    transform-origin: top;
    transform: scaleY(0.8);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity var(--alp-duration-normal) var(--alp-ease-soft),
      transform var(--alp-duration-normal) var(--alp-ease-soft);
  }

  .alp-header--nav-open .alp-nav-list {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .alp-burger {
    display: inline-flex;
  }

  .alp-nav {
    position: static;
    display: flex;
  }
}

/* =========================
   HERO / HOME SHARED ELEMENTS
   ========================= */

.alp-hero {
  padding-top: 72px;
}

.alp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 26px;
  align-items: center;
}

.alp-hero-title {
  font-family: "AquaLoopDisplay", system-ui, sans-serif;
  font-size: 32px;
  line-height: 1.18;
  margin: 8px 0 10px;
}

.alp-hero-lead {
  font-size: 14px;
  color: var(--alp-color-sand);
  margin: 0 0 14px;
}

.alp-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.alp-hero-pill {
  padding: 5px 11px;
  border-radius: var(--alp-radius-pill);
  border: 1px solid rgba(127, 240, 255, 0.46);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.alp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.alp-btn-primary,
.alp-btn-ghost {
  border-radius: var(--alp-radius-pill);
  padding: 8px 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--alp-duration-fast) var(--alp-ease-out),
    color var(--alp-duration-fast) var(--alp-ease-out),
    box-shadow var(--alp-duration-fast) var(--alp-ease-out),
    transform var(--alp-duration-fast) var(--alp-ease-out);
}

.alp-btn-primary {
  background: linear-gradient(120deg, var(--alp-color-accent-soft), var(--alp-color-accent-deep));
  color: #001019;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.85);
}

.alp-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.95);
}

.alp-btn-ghost {
  background: transparent;
  border-color: rgba(127, 240, 255, 0.36);
  color: var(--alp-color-sand);
}

.alp-btn-ghost:hover {
  background: rgba(2, 20, 32, 0.95);
}

/* Hero gallery */

.alp-hero-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.alp-hero-photo {
  padding: 10px;
  border-radius: 26px;
  background: linear-gradient(140deg, rgba(6, 40, 61, 0.96), rgba(1, 8, 16, 0.98));
  box-shadow: var(--alp-shadow-soft);
}

.alp-hero-photo img {
  max-height: 220px;
  object-fit: cover;
}

.alp-hero-caption {
  margin-top: 4px;
  font-size: 11px;
  color: var(--alp-color-text-muted);
}

/* Generic cards / lists */

.alp-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alp-chip {
  padding: 4px 10px;
  border-radius: var(--alp-radius-pill);
  border: 1px solid rgba(127, 240, 255, 0.3);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* IntersectionObserver class */

.alp-animated {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms var(--alp-ease-soft),
    transform 420ms var(--alp-ease-soft);
}

.alp-animated--visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FOOTER
   ========================= */

.alp-footer {
  margin-top: 72px;
  background: radial-gradient(circle at top left, #062232, #01060a 56%);
  border-top: 1px solid rgba(0, 40, 64, 0.9);
}

.alp-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 40px;
  padding: 40px 20px 24px;
}

.alp-footer-brand {
  max-width: 420px;
}

.alp-footer-title {
  font-family: "AquaLoopDisplay", system-ui, sans-serif;
  font-size: 20px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.alp-footer-text {
  color: var(--alp-color-text-muted);
  font-size: 14px;
}

.alp-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.alp-footer-heading {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 8px;
}

.alp-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--alp-color-text-muted);
}

.alp-footer-list li + li {
  margin-top: 4px;
}

.alp-footer-bottom {
  border-top: 1px solid rgba(0, 40, 64, 0.9);
  padding: 10px 0 12px;
  background: rgba(0, 4, 8, 0.9);
}

.alp-footer-bottom-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.alp-footer-copy {
  font-size: 12px;
  color: var(--alp-color-text-muted);
}

.alp-footer-links {
  display: flex;
  gap: 12px;
}

.alp-footer-link {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--alp-color-text-muted);
}

.alp-footer-link:hover {
  color: var(--alp-color-sand);
}

/* =========================
   ADAPTIVE GLOBAL
   ========================= */

@media (max-width: 1024px) {
  .alp-hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  }
}

@media (max-width: 880px) {
  .alp-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .alp-hero-gallery {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .alp-shell {
    padding-inline: 14px;
  }

  .alp-hero-inner {
    gap: 18px;
  }

  .alp-hero-title {
    font-size: 26px;
  }

  .alp-footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .alp-footer-inner {
    padding-inline: 20px;
  }

  .alp-footer-bottom-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}
