:root {
  --site-graphite: #111215;
  --site-bronze: #6E4A2E;
  --site-accent: #C99451;
  --color-amber-300: #D9AC72;
  --color-amber-400: var(--site-accent);
  --color-amber-500: var(--site-bronze);
}
/* ==========================================================================
   MOSCOW MANAGEMENT — собственные стили.
   Основные утилитарные классы лежат в tailwind.css (сгенерирован из разметки).
   ========================================================================== */

html {
  background-color: var(--site-graphite);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--site-graphite);
  background-image:
    radial-gradient(ellipse min(74vw, 64rem) 22rem at 83% 22rem, color-mix(in srgb, var(--site-bronze) 54%, transparent), transparent),
    radial-gradient(ellipse min(66vw, 56rem) 24rem at 8% 62rem, color-mix(in srgb, var(--site-bronze) 44%, transparent), transparent),
    radial-gradient(ellipse min(58vw, 50rem) 18rem at 90% 100rem, color-mix(in srgb, var(--site-bronze) 40%, transparent), transparent);
  background-size: 100% 118rem;
  background-repeat: repeat-y;
  color: #f4f4f5;
}

/* Декоративный шрифт заголовков и логотипа */
.font-serif-luxury {
  font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Тёмный скроллбар */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #09090b;
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3f3f46;
}

/* Плавное появление модалок и уведомлений */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
  animation: fadeIn 0.25s ease-out both;
}

/* Интро уже показывали — скрываем сразу, без вспышки (см. скрипт в header.php) */
html.intro-seen #intro-screen {
  display: none;
}

/* Блокировка прокрутки страницы, пока открыта модалка */
body.modal-open {
  overflow: hidden;
}

.model-gallery {
  touch-action: pan-y;
}

.gallery-nav {
  top: 50% !important;
  display: flex !important;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 999px;
  box-sizing: border-box;
  font-size: 0;
  line-height: 1;
  transform: translateY(-50%) !important;
}

.gallery-nav span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .gallery-nav {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
  }

  .gallery-nav span {
    font-size: 28px;
  }
}

.booking-choice {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.58);
  padding: 10px 12px;
  color: #a1a1aa;
  text-align: left;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.booking-choice:hover,
.booking-choice.is-active {
  border-color: var(--site-accent);
  background: rgb(201 148 81 / 10%);
  color: #fff;
}

.booking-choice strong {
  color: var(--site-accent);
  font-weight: 700;
  white-space: nowrap;
}

.booking-choice em {
  display: block;
  margin-top: 3px;
  color: var(--site-accent);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.discount-old-price {
  display: inline-block;
  margin-right: 6px;
  color: #71717a;
  font-size: 0.82em;
  font-weight: 500;
  text-decoration: line-through;
}

.discount-current-price {
  color: var(--site-accent);
  font-weight: 700;
}

.booking-messenger-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.72);
  padding: 12px 14px;
  color: #f4f4f5;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.booking-messenger-link:hover {
  border-color: var(--site-accent);
  background: var(--site-accent);
  color: #09090b;
}

@media (max-width: 639px) {
    .hero-actions {
        justify-content: center;
    }

    .hero-copy {
        text-align: center;
    }
}

.mobile-header-telegram {
    width: 40px;
    height: 40px;
}

body > header {
  background-color: rgb(17 18 21 / 95%);
  background-image:
    radial-gradient(ellipse 88% 230% at 88% 100%, color-mix(in srgb, var(--site-bronze) 42%, transparent), transparent 80%),
    linear-gradient(90deg, color-mix(in srgb, var(--site-bronze) 13%, transparent), transparent 58%);
}

body > header > .h-18 {
  height: calc(var(--spacing) * 18 - 15px);
  padding-top: 1px;
}

#intro-screen,
#mobile-menu,
footer {
  background-color: var(--site-graphite);
}

.home-hero {
  isolation: isolate;
  min-height: 33rem;
  margin-block-end: 0;
}

.home-hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  overflow: hidden;
  pointer-events: none;
}

.home-hero-photo img {
  position: absolute;
  top: -10%;
  left: -5%;
  width: 110%;
  max-width: none;
  height: 120%;
  object-fit: cover;
  object-position: 54% 43%;
}

.home-hero-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, var(--site-graphite), rgb(17 18 21 / 82%) 18%, transparent 75%),
    linear-gradient(0deg, var(--site-graphite), transparent 39%);
}

@media (min-width: 768px) {
  @supports (mask-composite: intersect) {
    .home-hero-photo {
      mask-image:
        linear-gradient(90deg, transparent, rgb(0 0 0 / 16%) 16%, rgb(0 0 0 / 66%) 34%, #000 54%, #000 94%, transparent),
        linear-gradient(0deg, transparent, rgb(0 0 0 / 65%) 14%, #000 30%);
      mask-composite: intersect;
    }

    .home-hero-photo::after {
      display: none;
    }
  }
}


@media (max-width: 767px) {
  .home-hero {
    min-height: 0;
    padding-top: clamp(13rem, 52vw, 24rem);
  }

  .home-hero-photo {
    inset: 0 0 auto;
    width: 100%;
    height: clamp(23rem, 88vw, 34rem);
  }

  .home-hero-photo img {
    object-position: 54% 38%;
  }

  .home-hero-photo::after {
    background: linear-gradient(0deg, var(--site-graphite) 4%, rgb(17 18 21 / 88%) 24%, transparent 68%);
  }
}

@media (max-width: 639px) {
  .home-hero .hero-copy {
    color: #f4f4f5;
  }
}

.model-card-age {
  font-size: 1.12em;
}

[data-catalog-card] {
  --card-border-glow: color-mix(in srgb, var(--site-accent) 54%, transparent);
  --card-shadow-glow: color-mix(in srgb, var(--site-accent) 15%, transparent);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  [data-catalog-card]:hover {
    border-color: var(--card-border-glow);
    box-shadow: 0 0 0 1px var(--card-border-glow), 0 0 16px var(--card-shadow-glow);
  }
}

@media (max-width: 767px) and (hover: none) {
  [data-catalog-card].is-in-view {
    border-color: var(--card-border-glow);
    box-shadow: 0 0 0 1px var(--card-border-glow), 0 0 16px var(--card-shadow-glow);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-catalog-card] {
    transition: none;
  }
}

@media (min-width: 768px) {
  .home-hero {
    padding-top: clamp(2.5rem, 4vw, 3.5rem);
  }

  .home-hero-content {
    max-width: min(62%, 46rem);
  }
}

@media (max-width: 767px) {
  .home-hero-label {
    position: relative;
    top: 6px;
  }
}

.other-models-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem clamp(0.5rem, 2vw, 1.25rem);
  padding-top: 1.5rem;
}

.other-models-divider {
  grid-column: 1 / -1;
  grid-row: 2;
  height: 1px;
  background: rgb(63 63 70 / 75%);
}

#other-models-title {
  margin: 0;
  font-size: clamp(1.625rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.profile-photo-open {
  cursor: zoom-in;
}

.profile-photo-open:focus-visible {
  outline: 2px solid var(--site-accent);
  outline-offset: -3px;
}

.profile-photo-modal {
  padding: 1rem;
  background: rgb(0 0 0 / 90%);
}

.profile-photo-stage {
  position: relative;
  width: min(100%, 66rem);
  height: 84vh;
  height: 84dvh;
}

.profile-photo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.profile-photo-close,
.profile-photo-prev,
.profile-photo-next {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgb(63 63 70 / 70%);
  border-radius: 50%;
  background: rgb(0 0 0 / 60%);
  color: #f4f4f5;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease;
}

:is(.profile-photo-close, .profile-photo-prev, .profile-photo-next):is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--color-amber-300) 70%, transparent);
  color: var(--color-amber-300);
}

@media (max-width: 639px) {
  .profile-photo-close,
  .profile-photo-prev,
  .profile-photo-next {
    width: 36px;
    height: 36px;
  }
}

.profile-photo-close {
  top: 0;
  right: 0;
}

.profile-photo-prev,
.profile-photo-next {
  top: 50%;
  transform: translateY(-50%);
}

.profile-photo-prev { left: 0; }
.profile-photo-next { right: 0; }

@media (width < 768px) {
  .other-models-grid > [data-catalog-card]:nth-child(n+4) {
    display: none;
  }
}

@media (min-width: 1024px) {
  .other-models-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-hero + #models .model-catalog-heading {
  padding-top: 15px;
  padding-bottom: 1px;
}

.home-hero + #models .model-catalog-heading > div {
  transform: translateY(10px);
}

:is(.home-telegram-channel, .header-telegram-button, .model-telegram-button) {
  border-color: var(--site-bronze);
  background-color: var(--site-graphite);
  background-image: linear-gradient(115deg, var(--site-graphite) 8%, #39281e 37%, var(--site-bronze) 52%, #39281e 67%, var(--site-graphite) 92%);
  background-size: 240% 100%;
  animation: telegram-channel-gradient 6s ease-in-out infinite alternate;
}

:is(.home-telegram-channel, .header-telegram-button, .model-telegram-button):hover,
:is(.home-telegram-channel, .header-telegram-button, .model-telegram-button):focus-visible {
  border-color: var(--site-accent);
}

@keyframes telegram-channel-gradient {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.home-telegram-channel, .header-telegram-button, .model-telegram-button) {
    animation: none;
    background-position: 50% 50%;
  }
}

.floating-telegram {
  position: fixed;
  right: calc(1rem + env(safe-area-inset-right, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  background-color: #229ED9;
  background-image: linear-gradient(125deg, #1689BF 10%, #229ED9 40%, #45B8E9 55%, #229ED9 70%, #1689BF 90%);
  background-size: 240% 100%;
  animation: telegram-channel-gradient 6s ease-in-out infinite alternate;
  color: #fff;
  box-shadow: 0 0 18px rgb(69 184 233 / 65%), 0 4px 14px rgb(0 0 0 / 35%);
}

.floating-telegram:hover {
  box-shadow: 0 0 26px rgb(69 184 233 / 85%), 0 4px 16px rgb(0 0 0 / 40%);
}

@media (prefers-reduced-motion: reduce) {
  .floating-telegram {
    animation: none;
    background-position: 50% 50%;
  }
}

.floating-telegram:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
