/* ===== Fonts ===== */
@font-face {
  font-family: 'SignPainter';
  src: url('fonts/SignPainter.ttc') format('collection');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Euclid Circular B';
  src: url('fonts/EuclidCircularB-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Euclid Circular B';
  src: url('fonts/EuclidCircularB-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Euclid Circular B';
  src: url('fonts/EuclidCircularB-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

body {
  font-family: 'Euclid Circular B', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000000;
  color: #fff;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -40px;
  background: url('images/XXXL.webp') center/cover no-repeat;
  filter: blur(30px) brightness(0.3);
  z-index: -1;
}

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

/* ===== Hero Section ===== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Slideshow */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transform: scale(1);
  will-change: transform, opacity;
  transition: opacity 2s ease-in-out;
}

.hero__slide--active {
  opacity: 1;
  animation: kenBurns 12s linear forwards;
}

.hero__slide--fading {
  opacity: 0;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.18);
  }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgb(0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 65%, rgb(0, 0, 0) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* ===== Content ===== */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
  max-width: 1221px;
  padding: 0 16px;
}

/* ===== Phone (desktop only) ===== */
.hero__phone {
  font-family: 'Euclid Circular B', sans-serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5;
  color: #fff;
  white-space: nowrap;
  z-index: 2;
  cursor: pointer;
  user-select: none;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__phone-number,
.hero__phone-copied {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero__phone-number {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
}

.hero__phone-copied {
  display: none;
  opacity: 0;
  color: #fd0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero__phone.copied .hero__phone-copied {
  display: inline-block;
  opacity: 1;
}

.hero__phone.copied .hero__phone-number {
  opacity: 0;
  transform: translateY(-8px);
  position: absolute;
}

/* ===== Address Button ===== */
.hero__address {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid #fd0;
  border-radius: 24px;
  color: #fd0;
  font-family: 'Euclid Circular B', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  z-index: 2;
  transition: background 0.3s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.hero__address:hover {
  background: rgba(255, 221, 0, 0.1);
  transform: scale(1.05);
}

.hero__address:active {
  transform: scale(0.95);
  opacity: 0.7;
}

.hero__address-icon {
  width: 20px;
  height: 24px;
  flex-shrink: 0;
}

/* Desktop: in content flow */
.hero__address--desktop {
  display: inline-flex;
}

/* Mobile: hidden on desktop */
.hero__address--mobile {
  display: none;
}

/* ===== Title ===== */
.hero__title {
  font-family: 'SignPainter', cursive;
  font-size: 150px;
  font-weight: normal;
  line-height: 0.86;
  color: #fff;
  white-space: nowrap;
}

.hero__title .accent {
  color: #fd0;
}

/* ===== Description ===== */
.hero__description {
  font-family: 'Euclid Circular B', sans-serif;
  font-weight: 300;
  font-size: 24px;
  line-height: 1.5;
  color: #fff;
  max-width: 1221px;
}

/* ===== More link ===== */
.hero__more {
  font-family: 'Euclid Circular B', sans-serif;
  font-weight: 500;
  font-size: inherit;
  line-height: inherit;
  color: #fd0;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  text-underline-offset: 4px;
  transition: opacity 0.3s ease;
}

.hero__more:hover {
  opacity: 0.8;
}

/* Mobile-only separate "Подробнее" link — hidden on desktop */
.hero__more--mobile {
  display: none;
}

/* ===== Booking Section ===== */
.hero__booking {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero__booking-label {
  font-family: 'Euclid Circular B', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.5;
  color: #fd0;
  text-align: center;
}

/* ===== Buttons ===== */
.hero__buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 32px;
  height: 76px;
  width: 344px;
  border-radius: 52px;
  font-family: 'Euclid Circular B', sans-serif;
  font-weight: 500;
  font-size: 28.5px;
  line-height: 1.5;
  color: #000;
  white-space: nowrap;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
}

.btn--book {
  background: #fd0;
  border: 1px solid #fd0;
}

.btn--book:hover {
  transform: scale(1.05);
}

.btn--book:active {
  transform: scale(0.95);
  opacity: 0.7;
}

.btn__icon {
  width: 42px;
  height: 30px;
  flex-shrink: 0;
}

/* Phone call button — hidden on desktop */
.btn--phone-call {
  display: none;
}

/* ===== Animations ===== */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay via CSS custom property --delay */
.animate-in { transition-delay: calc(var(--delay, 0) * 0.15s); }

/* ===== Responsive — Mobile ===== */
@media (max-width: 768px) {
  .hero__content {
    gap: 24px;
    justify-content: center;
    width: 328px;
    max-width: 328px;
    padding: 0;
  }

  /* Hide desktop elements */
  .hero__phone--desktop {
    display: none;
  }

  .hero__address--desktop {
    display: none;
  }

  /* Hide inline "Подробнее..." on mobile (it's separate) */
  .hero__description .hero__more--desktop-inline {
    display: none;
  }

  /* Show mobile elements */
  .hero__address--mobile {
    display: inline-flex;
    width: 328px;
    height: 54px;
    border-radius: 33px;
    font-size: 16px;
  }

  /* Description + Подробнее wrapper */
  .hero__more--mobile {
    display: inline-block;
    font-size: 16px;
    line-height: 1.5;
    margin-top: -8px;
  }

  /* Title */
  .hero__title {
    font-size: 62px;
    white-space: nowrap;
    line-height: 0.86;
  }

  /* Description */
  .hero__description {
    font-size: 16px;
  }

  /* Booking section */
  .hero__booking {
    padding-top: 44px;
    gap: 0;
    width: 328px;
  }

  .hero__booking-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
  }

  .hero__buttons {
    flex-direction: column;
    gap: 16px;
  }

  .btn {
    height: 64px;
    width: 328px;
    padding: 0 24px;
    font-size: 21px;
    border-radius: 38px;
    gap: 9px;
    border-width: 0.735px;
  }

  .btn__icon {
    width: 31px;
    height: 22px;
  }

  /* Show phone call button on mobile */
  .btn--phone-call {
    display: inline-flex;
  }
}

@media (max-width: 360px) {
  .hero__content {
    width: calc(100% - 32px);
    max-width: calc(100% - 32px);
  }

  .hero__address--mobile {
    width: 100%;
  }

  .hero__booking {
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
