:root {
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-brd: rgba(255, 255, 255, 0.18);
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: #0b0b0c;
  font-family: "Cormorant Garamond", serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.5vw, 24px);
  padding: clamp(16px, 3vw, 40px);
  text-align: center;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero::before {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://plus.unsplash.com/premium_photo-1681841695231-d674aa32f65b?q=80&w=2043&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-size: cover;
  background-position:
    calc(50% + var(--shift-x, 0px))
    calc(50% + var(--shift-y, 0px));
  filter: contrast(1.05) brightness(0.9) saturate(1.06) blur(4px);
  transform: scale(1.02);
  animation: slowPan 24s ease-in-out infinite alternate;
}

@keyframes slowPan {
  from { transform: scale(1.02); }
  to { transform: scale(1.06); }
}

.content {
  max-width: min(92vw, 1080px);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 800ms ease, transform 800ms ease;
  transition-delay: 50ms;
}

.page-ready .content {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.logo {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: clamp(48px, 12vw, 144px);
  line-height: 1;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.38), 0 1px 2px rgba(0, 0, 0, 0.6);
  animation: glow 6s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 2px 20px rgba(0,0,0,0.18); }
  50% { text-shadow: 0 4px 28px rgba(0,0,0,0.28); }
}

.tagline {
  margin: clamp(8px, 1.2vw, 12px) 0 0 0;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.2px;
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(10px, 2.2vw, 20px);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: clamp(18px, 1.9vw, 22px);
  color: #fff;
  text-decoration: none;
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 240ms ease, transform 240ms ease, box-shadow 240ms ease, color 240ms ease;
  opacity: 0;
  transform: translateY(10px);
}

.page-ready .contacts .contact-link {
  opacity: 1;
  transform: translateY(0);
}

.contacts .contact-link:nth-child(1) {
  transition-delay: 140ms;
}

.contacts .contact-link:nth-child(2) {
  transition-delay: 240ms;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.contact-link:active {
  transform: translateY(0);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.contact-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.intro {
  margin: 30px auto;
  padding: clamp(16px, 3vw, 28px);
  max-width: min(92vw, 1000px);
  background: var(--glass-bg);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.page-ready .intro {
  opacity: 1;
  transform: translateY(0);
}

.intro-title {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  color: #fff;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: 0.2px;
}

.intro p {
  margin: 8px 0 0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.6;
}

.intro h3 {
  margin: 18px 0 6px;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 24px);
  color: #fff;
}

.intro ul {
  margin: 8px 0 0 1.2em;
  padding: 0;
  display: grid;
  gap: 6px;
}

.separator {
  height: 1px;
  margin: clamp(12px, 2vw, 20px) 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  opacity: 0.7;
}

.gallery {
  margin-top: clamp(12px, 2.2vw, 18px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(8px, 1.6vw, 14px);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--glass-brd);
  filter: saturate(1.05) contrast(1.02);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: scale(0.98);
  transition: transform 300ms ease, opacity 700ms ease;
}

.page-ready .gallery img {
  opacity: 1;
}

.gallery img:hover {
  transform: scale(1.02);
}

.intro-title {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.intro h2,
.intro h3 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.intro ul {
  gap: 8px;
}

.intro ul li::marker {
  color: rgba(255, 255, 255, 0.8);
}

.intro .cta-title {
  margin-top: 12px;
  font-weight: 600;
  color: #fff;
  font-size: clamp(18px, 2.4vw, 26px);
}

.intro .cta-sub {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.98);
}

@media (max-width: 420px) {
  .contact-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
