:root {
  --panel-accent: rgba(164, 93, 179, 0.88);
  --panel-dark: rgba(69, 65, 63, 0.85);
  --text-light: #fff8fb;
  --line: rgba(255, 255, 255, 0.28);
  --shadow: 0 18px 50px rgba(36, 17, 35, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text-light);
  background: url("/assets/fon/mainfon.webp") center/cover fixed no-repeat;
  overflow-x: hidden;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 24px 20px 32px;
  isolation: isolate;
}

.page-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(36, 22, 33, 0.42), rgba(36, 22, 33, 0.54)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 42%),
    radial-gradient(circle at bottom, rgba(153, 102, 204, 0.16), transparent 30%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(14px);
  z-index: -2;
  pointer-events: none;
}

.nav-wrap {
  position: sticky;
  top: 18px;
  z-index: 5;
  width: min(1180px, 100%);
  margin: 0 auto 48px;
  padding: 12px 18px;
  border-radius: 28px;
  background: var(--panel-dark);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.brand {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-decoration: none;
  color: var(--text-light);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 700;
  text-align: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--panel-accent);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease;
  font-size: 0.9rem;
  line-height: 1;
}

.nav-links a:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 0 56px;
}

.floating-gallery {
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  margin-bottom: 12px;
  z-index: 1;
  padding: 22px 0 28px;
}

.gallery-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee-left 64s linear infinite;
  padding-inline: 18px;
}

.float-card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(150px, 16vw, 220px);
  aspect-ratio: 1;
  margin: 0;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 40px rgba(28, 15, 30, 0.18);
  background: transparent;
}

.float-card:nth-child(3n) {
  transform: translateY(14px) rotate(-4deg);
}

.float-card:nth-child(3n + 1) {
  transform: translateY(-10px) rotate(3deg);
}

.float-card:nth-child(3n + 2) {
  transform: rotate(-2deg);
}

.float-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.float-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(69, 65, 63, 0.08));
  pointer-events: none;
}

.content-card {
  position: relative;
  z-index: 1;
  width: min(700px, calc(100% - 32px));
  margin: 4vh auto 0;
  padding: 12px 8px;
  background: transparent;
  color: var(--text-light);
  box-shadow: none;
  text-align: center;
}

.content-card::before {
  content: none;
}

.content-card h1 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 3.3rem);
  line-height: 1.15;
  text-shadow: 0 6px 22px rgba(23, 10, 23, 0.42);
}

.content-card p {
  margin: 0 0 16px;
  font-size: 1.16rem;
  line-height: 1.8;
  text-align: center;
  text-shadow: 0 4px 18px rgba(23, 10, 23, 0.34);
}

.content-card > p {
  font-size: clamp(1.18rem, 1.8vw, 1.34rem);
  font-weight: 600;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.note {
  margin-top: 18px;
  padding: 0;
  background: transparent;
  color: var(--text-light);
  text-align: center;
}

.note p {
  font-size: 1.14rem;
  font-weight: 400;
  line-height: 1.78;
}

.note strong {
  font-weight: 900;
  font-size: 1.18em;
}

.footer {
  width: min(1180px, 100%);
  margin: 52px auto 0;
  padding: 18px 24px;
  border-radius: 24px;
  background: var(--panel-dark);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: var(--shadow);
}

.footer p {
  margin: 0;
  color: rgba(255, 248, 251, 0.9);
  font-size: 0.95rem;
}

@keyframes marquee-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 13px));
  }
}

@media (max-width: 900px) {
  .content-card {
    margin-top: 6vh;
  }

  .gallery-track {
    animation-duration: 54s;
  }
}

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

  .page-shell::before {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .nav {
    flex-direction: column;
    gap: 12px;
  }

  .brand {
    position: static;
    transform: none;
    text-align: center;
  }

  .nav-links {
    justify-content: center;
    gap: 8px;
  }

  .nav-links a {
    padding: 10px 12px;
    font-size: 0.88rem;
  }

  .floating-gallery {
    padding: 16px 0 22px;
  }

  .gallery-track {
    gap: 16px;
    animation-duration: 42s;
    padding-inline: 12px;
  }

  .float-card {
    width: 118px;
    border-radius: 24px;
  }

  .content-card {
    width: 100%;
    margin-top: 4vh;
    padding: 10px 4px;
  }
}

.content-card > p {
  font-size: clamp(1.18rem, 1.8vw, 1.34rem);
  font-weight: 400;
  line-height: 1.8;
}

.note p {
  font-size: 1.33rem;
  font-weight: 750;
  line-height: 1.78;
}

.note strong {
  font-weight: 900;
  font-size: 1.48em;
}

.note p {
  font-weight: 400;
}

.note strong {
  font-weight: 900;
}

.floating-gallery {
  margin-bottom: 12px;
}

.content-card {
  margin-top: 4vh;
}

@media (max-width: 900px) {
  .content-card {
    margin-top: 6vh;
  }
}

@media (max-width: 640px) {
  .content-card {
    margin-top: 4vh;
  }
}

.content-card h1 {
  white-space: nowrap;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

@media (max-width: 640px) {
  .content-card h1 {
    white-space: normal;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
  }
}

.content-card h1 {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 18px;
  text-align: center;
}

.content-card h1 {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  text-align: center;
}

.hero-heading-row {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-heading {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 0 0 18px;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.15;
  text-shadow: 0 6px 22px rgba(23, 10, 23, 0.42);
}

@media (max-width: 640px) {
  .hero-heading {
    white-space: normal;
  }
}

.hero-heading-row {
  position: relative;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.hero-heading {
  width: auto;
  margin: 0 0 18px;
  text-align: center;
}

.hero-heading-row {
  position: static !important;
  left: auto !important;
  transform: none !important;
  width: 100% !important;
  display: grid !important;
  place-items: center !important;
}

.hero-heading {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 auto 18px !important;
  text-align: center !important;
}
