/* LOOPRIX — современный минималистичный лендинг */
/* Шрифты с своего домена: без Google Fonts (в РФ Chrome/Яндекс часто зависают на fonts.googleapis.com). */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/outfit-400.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/outfit-500.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/outfit-600.woff2") format("woff2");
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/outfit-700.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/syne-600.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/syne-700.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/syne-800.woff2") format("woff2");
}

:root {
  --bg: #f4f7f9;
  --bg-soft: #e8eef2;
  --surface: rgba(255, 255, 255, 0.72);
  --ink: #0c1419;
  --ink-soft: #3d4f5c;
  --muted: #6b7f8c;
  --accent: #0d9f8f;
  --accent-deep: #087a6e;
  --accent-glow: rgba(13, 159, 143, 0.35);
  --line: rgba(12, 20, 25, 0.08);
  --radius: 20px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(12, 20, 25, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== Анимированный фон ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.bg__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, rgba(13, 159, 143, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 95% 15%, rgba(45, 120, 180, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(13, 159, 143, 0.1), transparent 55%),
    linear-gradient(180deg, #f7fafb 0%, #eef3f6 50%, #f4f7f9 100%);
  animation: gradient-shift 18s ease-in-out infinite alternate;
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: orb-float 14s var(--ease) infinite;
}

.bg__orb--1 {
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  background: #7ad4c8;
  top: 8%;
  left: -8%;
  animation-duration: 16s;
}

.bg__orb--2 {
  width: min(36vw, 360px);
  height: min(36vw, 360px);
  background: #9ec5e0;
  top: 45%;
  right: -6%;
  animation-duration: 20s;
  animation-delay: -4s;
}

.bg__orb--3 {
  width: min(28vw, 280px);
  height: min(28vw, 280px);
  background: #b8e0d4;
  bottom: 5%;
  left: 35%;
  animation-duration: 22s;
  animation-delay: -8s;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 20, 25, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 20, 25, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black, transparent 75%);
  animation: grid-drift 40s linear infinite;
}

.bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

@keyframes gradient-shift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.06) translate(-1%, 1%); }
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, -6%) scale(1.08); }
  66% { transform: translate(-5%, 3%) scale(0.95); }
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 64px 64px; }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(16px);
  background: rgba(244, 247, 249, 0.65);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 247, 249, 0.88);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.logo--sm {
  font-size: 0.95rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.nav__cta {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  font-weight: 500;
  transition: transform 0.25s var(--ease), background 0.25s;
}

.nav__cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav a:not(.nav__cta) {
    display: none;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.98rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 30px rgba(12, 20, 25, 0.18);
}

.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px var(--accent-glow);
}

.btn--ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  transform: translateY(-2px);
}

/* ===== Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.32s; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: calc(100svh - 72px);
  padding: clamp(2rem, 6vw, 5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 8vw, 6rem);
}

.hero__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(120deg, var(--ink) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  max-width: 16ch;
}

.hero__lead {
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 38ch;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero-nodes {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
}

.hero-nodes__core,
.hero-nodes__node {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.hero-nodes__core {
  inset: 38% 38%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 12px rgba(13, 159, 143, 0.12), 0 20px 50px rgba(12, 20, 25, 0.25);
  animation: core-pulse 4s ease-in-out infinite;
  z-index: 2;
}

.hero-nodes__node {
  width: 64px;
  height: 64px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  box-shadow: var(--shadow);
  animation: node-bob 5s var(--ease) infinite;
}

.hero-nodes__node--a { top: 8%; left: 6%; animation-delay: 0s; }
.hero-nodes__node--b { top: 12%; right: 8%; animation-delay: -1.2s; }
.hero-nodes__node--c { bottom: 12%; left: 10%; animation-delay: -2.4s; }
.hero-nodes__node--d { bottom: 14%; right: 10%; animation-delay: -3.1s; }

.hero-nodes__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-nodes__lines path {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  opacity: 0.45;
  animation: dash-flow 8s linear infinite;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 0 12px rgba(13, 159, 143, 0.12), 0 20px 50px rgba(12, 20, 25, 0.25); }
  50% { box-shadow: 0 0 0 22px rgba(13, 159, 143, 0.18), 0 24px 60px rgba(12, 20, 25, 0.28); }
}

@keyframes node-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes dash-flow {
  to { stroke-dashoffset: -80; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
  }

  .hero__title {
    max-width: none;
  }

  .hero__visual {
    order: -1;
  }

  .hero-nodes {
    width: min(100%, 280px);
  }
}

/* ===== Sections ===== */
.section {
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1120px;
  margin: 0 auto;
}

.section__head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  max-width: 36rem;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.75rem;
}

.section__head h2,
.contact__panel h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__lead {
  margin-top: 0.85rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ===== About ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.5rem;
}

.about__text {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.about__badge {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding: 1.35rem 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
}

.about__badge-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--accent-deep);
}

.about__badge-label {
  color: var(--muted);
}

@media (max-width: 720px) {
  .about__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Featured covers (яркие обложки) ===== */
.featured {
  max-width: 1180px;
}

.featured__list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.cover {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  transition: transform 0.45s var(--ease), box-shadow 0.45s;
}

.cover:hover {
  transform: translateY(-8px) scale(1.01);
}

.cover__glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  opacity: 0.85;
  animation: cover-glow 10s ease-in-out infinite alternate;
  pointer-events: none;
}

.cover__shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    transparent 35%,
    rgba(255, 255, 255, 0.14) 48%,
    transparent 62%
  );
  background-size: 220% 100%;
  animation: cover-shine 7s ease-in-out infinite;
  pointer-events: none;
}

.cover__body {
  position: relative;
  z-index: 2;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cover__visual {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.cover__badge {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.cover__title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.cover__subtitle {
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.9;
  margin-bottom: 0.85rem;
}

.cover__desc {
  opacity: 0.82;
  max-width: 40ch;
  margin-bottom: 1.25rem;
  font-size: 0.98rem;
}

.cover__features {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.cover__features li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  opacity: 0.92;
}

.cover__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.cover__cta {
  align-self: flex-start;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.cover__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.cover__mock {
  width: min(100%, 280px);
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  padding: 1rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.25);
  animation: mock-float 5.5s var(--ease) infinite;
}

.cover__mock-row {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.28);
  margin-bottom: 0.55rem;
}

.cover__mock-row--short { width: 55%; }
.cover__mock-row--mid { width: 78%; }
.cover__mock-bar {
  margin-top: 1rem;
  height: 42%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.04em;
}

/* Темы обложек */
.cover--facebook {
  background: linear-gradient(135deg, #0a2a6b 0%, #1b4fbf 45%, #4a8dff 100%);
  box-shadow: 0 30px 80px rgba(27, 79, 191, 0.4);
}

.cover--facebook .cover__glow {
  background:
    radial-gradient(circle at 20% 20%, rgba(120, 180, 255, 0.55), transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(70, 120, 255, 0.45), transparent 40%);
}

.cover--sport {
  background: linear-gradient(135deg, #06241f 0%, #0b6b58 42%, #1fd1a5 100%);
  box-shadow: 0 30px 80px rgba(11, 107, 88, 0.4);
}

.cover--sport .cover__glow {
  background:
    radial-gradient(circle at 15% 80%, rgba(80, 255, 200, 0.4), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(40, 200, 160, 0.5), transparent 40%);
}

.cover--hospitality {
  background: linear-gradient(135deg, #1a120c 0%, #5c2e12 40%, #e08a2e 100%);
  box-shadow: 0 30px 80px rgba(224, 138, 46, 0.35);
}

.cover--hospitality .cover__glow {
  background:
    radial-gradient(circle at 25% 30%, rgba(255, 190, 100, 0.45), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255, 140, 60, 0.4), transparent 40%);
}

@keyframes cover-glow {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, -2%) scale(1.08); }
}

@keyframes cover-shine {
  0%, 100% { background-position: 120% 0; }
  50% { background-position: -20% 0; }
}

@keyframes mock-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

@media (max-width: 860px) {
  .cover {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .cover__visual {
    order: -1;
    padding-bottom: 0;
  }

  .cover__mock {
    width: min(100%, 240px);
  }
}

/* ===== Integrations list ===== */
.integrations__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.api-card {
  position: relative;
  padding: 1.45rem 1.4rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s;
}

.api-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #4db8d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.api-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 159, 143, 0.35);
  box-shadow: 0 24px 60px rgba(12, 20, 25, 0.1);
}

.api-card:hover::before {
  transform: scaleX(1);
}

.api-card__tagline {
  font-size: 0.82rem;
  color: var(--accent-deep);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.api-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
}

.api-card__apis {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.api-item__name {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.api-item__desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.api-item__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.chip {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  background: rgba(13, 159, 143, 0.1);
  color: var(--accent-deep);
}

.api-item__note {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.integrations__custom {
  margin-top: 2rem;
  text-align: center;
  color: var(--ink-soft);
}

.integrations__custom a {
  color: var(--accent-deep);
  font-weight: 600;
  border-bottom: 1px solid rgba(8, 122, 110, 0.35);
}

.integrations__custom a:hover {
  border-bottom-color: var(--accent-deep);
}

@media (max-width: 720px) {
  .integrations__list {
    grid-template-columns: 1fr;
  }
}

/* ===== Contact ===== */
.contact {
  max-width: 1120px;
}

.contact__panel {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: calc(var(--radius) + 8px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.8), rgba(232, 242, 240, 0.65));
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.contact__panel p {
  color: var(--ink-soft);
  margin: 0.85rem auto 1.5rem;
  max-width: 40ch;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
}

/* ===== Footer ===== */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.footer__meta a:hover {
  color: var(--accent-deep);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
