/* ==========================================================================
   GIFS — STRICT ZERO-SCROLL SINGLE-SCREEN ARCHITECTURE (NO SCROLLING EVER)
   ========================================================================== */

/* Universal Scroll Ban: Page NEVER scrolls, not even 1px */
html, body {
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

/* Hide native vertical flow elements */
#site-header,
#top,
#vision,
#services,
#style-spectrum,
#approach,
#project,
#formats,
#brief,
.site-footer,
.initial-portal-hub,
.btn-return-hub {
  display: none !important;
}

/* ==========================================================================
   PORTAL APPLICATION STAGE (100% Fullscreen Deck of Views)
   ========================================================================== */
.stage-deck {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 100;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fbf5ea 0%, #ede3cf 60%, #dfd2bb 100%);
  user-select: none;
  -webkit-user-select: none;
}

/* Individual Fullscreen View Screen */
.deck-view {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(16px, 3vh, 32px) clamp(16px, 4vw, 40px);
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.96);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.deck-view.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  z-index: 10;
}

/* Deck Header Bar */
.deck-bar {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.deck-logo {
  font-family: var(--font-cursive, "Ballet", cursive);
  font-size: clamp(34px, 5.5vw, 52px);
  color: #24191d;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
}
.deck-badge {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(90, 60, 44, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}
.deck-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1bb76e;
}
.deck-btn-cta {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(11px, 1.1vw, 13px);
  color: #fff;
  background: var(--wine, #703b42);
  border: none;
  padding: clamp(7px, 1vh, 10px) clamp(14px, 1.8vw, 20px);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, background 0.25s ease;
}
.deck-btn-cta:hover {
  transform: scale(1.04);
  background: #52242a;
}
.deck-btn-back {
  font-family: var(--font-serif, "Prata", serif);
  font-size: 13px;
  color: #703b42;
  background: rgba(112, 59, 66, 0.08);
  border: 1px solid rgba(112, 59, 66, 0.22);
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}
.deck-btn-back:hover {
  background: #703b42;
  color: #fff;
}

/* ==========================================================================
   VIEW 0: НАЧАЛЬНЫЙ ЭКРАН (ХАБ-ВОПРОС + 4 ТАРЕЛКИ)
   ========================================================================== */
.view-hub-center {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 860px;
  margin: auto 0;
}
.view-hub-eyebrow {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(11px, 1.2vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #916b45;
  margin-bottom: clamp(6px, 1vh, 12px);
}
.view-hub-title {
  font-family: var(--font-serif, "Prata", Georgia, serif);
  font-size: clamp(32px, 5.4vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #24191d;
  font-weight: 400;
  margin: 0 0 clamp(8px, 1.2vh, 14px);
}
.view-hub-title em {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  color: #703b42;
  font-size: 1.16em;
}
.view-hub-desc {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  font-size: clamp(16px, 1.9vw, 22px);
  line-height: 1.35;
  color: rgba(36, 25, 29, 0.85);
  max-width: 620px;
  margin: 0 auto;
}

/* 4 Тарелки на главном экране */
.hub-plates-nav {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.5vw, 44px);
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}
.hub-plate-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.hub-plate-btn:hover {
  transform: translateY(-8px);
}
.hub-plate-btn:active {
  transform: scale(0.95);
}
.hub-plate-art {
  width: clamp(82px, 14vw, 155px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 14px 24px rgba(45, 24, 20, 0.16));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}
.hub-plate-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.hub-plate-btn:hover .hub-plate-art {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 22px 36px rgba(112, 59, 66, 0.28));
}
.hub-plate-label {
  margin-top: clamp(8px, 1.2vh, 14px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.hub-plate-num {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: 0.15em;
  color: #916b45;
}
.hub-plate-name {
  font-family: var(--font-serif, "Prata", Georgia, serif);
  font-size: clamp(16px, 1.65vw, 22px);
  color: #24191d;
  font-weight: 400;
  transition: color 0.3s ease;
}
.hub-plate-btn:hover .hub-plate-name {
  color: #703b42;
}
.hub-plate-hint {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(36, 25, 29, 0.7);
}

/* ==========================================================================
   VIEW 1: УСЛУГИ (ОТДЕЛ В РОДНОЙ ВЫВЕРЕННОЙ ВЁРСТКЕ)
   ========================================================================== */
.view-body-inner {
  position: relative;
  z-index: 10;
  width: min(100%, 1160px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto;
}
.view-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.view-sec-eyebrow {
  font-family: var(--font-serif, "Prata", serif);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #916b45;
  margin-bottom: 6px;
}
.view-sec-title {
  font-family: var(--font-serif, "Prata", Georgia, serif);
  font-size: clamp(28px, 4vw, 46px);
  color: #24191d;
  font-weight: 400;
  line-height: 1.15;
}
.view-sec-title em {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  color: #703b42;
}

/* Родные авторские карточки услуг (без белых заплаток, благородный стиль) */
.view-services-deck {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.5vw, 32px);
  margin: auto 0;
}
.view-service-item {
  background: rgba(255, 252, 246, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(145, 107, 69, 0.22);
  border-radius: 18px;
  padding: clamp(18px, 2.8vh, 32px) clamp(16px, 1.8vw, 26px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(220px, 34vh, 320px);
  box-shadow: 0 12px 30px rgba(45, 24, 20, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.view-service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(112, 59, 66, 0.15);
  border-color: rgba(112, 59, 66, 0.35);
}
.view-service-num {
  font-family: var(--font-serif, "Prata", serif);
  font-size: 14px;
  color: #916b45;
  letter-spacing: 0.15em;
  margin-bottom: 8px;
}
.view-service-name {
  font-family: var(--font-serif, "Prata", Georgia, serif);
  font-size: clamp(20px, 2vw, 26px);
  color: #24191d;
  font-weight: 400;
  margin-bottom: 8px;
}
.view-service-desc {
  font-size: clamp(13px, 1.1vw, 15px);
  color: rgba(36, 25, 29, 0.78);
  line-height: 1.45;
  margin-bottom: 16px;
}
.view-service-tag {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  font-size: 14px;
  color: #703b42;
}

/* ==========================================================================
   VIEW 2: АТМОСФЕРА И ДИРИЖАБЛИ (100% В ЭКРАН)
   ========================================================================== */
.view-spectrum-canvas {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 50%, #201321 0%, #0c0915 65%, #05040a 100%);
  color: #fff;
}
.spectrum-ship-obj {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.7));
}
.ship-balloon-float {
  width: clamp(140px, 20vw, 260px);
  left: 6%;
  top: 15%;
  animation: floatBalloon 12s infinite alternate ease-in-out;
}
.ship-zeppelin-float {
  width: clamp(320px, 60vw, 840px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: floatZeppelin 16s infinite alternate ease-in-out;
}
.ship-rover-float {
  width: clamp(150px, 22vw, 300px);
  right: 8%;
  bottom: 12%;
  animation: floatRover 10s infinite alternate ease-in-out;
}
.spectrum-info-block {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 780px;
  padding: 24px;
  background: radial-gradient(circle, rgba(12, 9, 21, 0.8) 0%, rgba(12, 9, 21, 0) 75%);
}
.spectrum-info-block h2 {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(34px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.12;
  color: #fbf5ea;
  margin-bottom: 14px;
}
.spectrum-info-block h2 em {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  color: #ff708a;
  text-shadow: 0 0 25px rgba(255, 112, 138, 0.5);
}
.spectrum-info-block p {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  font-size: clamp(17px, 2vw, 24px);
  color: rgba(251, 245, 234, 0.82);
  line-height: 1.4;
  margin-bottom: 24px;
}

/* ==========================================================================
   VIEW 3: КЕЙС NEODRAIN
   ========================================================================== */
.view-project-deck {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  margin: auto 0;
}
.view-project-visual {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(45, 24, 20, 0.18);
  border: 1px solid rgba(145, 107, 69, 0.25);
}
.view-project-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.view-project-details h3 {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(26px, 3.5vw, 44px);
  color: #24191d;
  font-weight: 400;
  margin-bottom: 12px;
}
.view-project-details p {
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.5;
  color: rgba(36, 25, 29, 0.8);
  margin-bottom: 20px;
}
.view-project-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}
.view-stat-box b {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(24px, 2.5vw, 32px);
  color: #703b42;
  display: block;
}
.view-stat-box span {
  font-size: 12px;
  color: rgba(36, 25, 29, 0.65);
}

/* ==========================================================================
   VIEW 4: СТАРТ / КОНТАКТЫ
   ========================================================================== */
.view-start-box {
  text-align: center;
  max-width: 680px;
  margin: auto 0;
}
.view-start-box h2 {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(34px, 5.2vw, 62px);
  color: #24191d;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 16px;
}
.view-start-box h2 em {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  color: #703b42;
}
.view-start-box p {
  font-family: var(--font-italic, "Cormorant", serif);
  font-style: italic;
  font-size: clamp(17px, 2vw, 24px);
  color: rgba(36, 25, 29, 0.85);
  margin-bottom: 32px;
}
.btn-action-primary {
  font-family: var(--font-serif, "Prata", serif);
  font-size: clamp(16px, 1.6vw, 22px);
  color: #fff;
  background: #703b42;
  border: none;
  padding: clamp(14px, 2vh, 20px) clamp(32px, 4vw, 54px);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(112, 59, 66, 0.28);
  transition: transform 0.3s ease, background 0.3s ease;
}
.btn-action-primary:hover {
  transform: scale(1.05);
  background: #52242a;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .deck-view {
    padding: 14px 16px;
  }
  .hub-plates-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
    margin: 8px auto;
  }
  .hub-plate-art {
    width: 74px;
  }
  .hub-plate-name {
    font-size: 16px;
  }
  .hub-plate-hint {
    font-size: 12px;
  }
  .view-hub-title {
    font-size: 28px;
  }
  .view-hub-desc {
    font-size: 14px;
  }
  .view-services-deck {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .view-service-item {
    min-height: auto;
    padding: 14px 16px;
  }
  .view-service-name {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .view-service-desc {
    font-size: 13px;
    margin-bottom: 6px;
  }
  .view-project-deck {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .view-project-visual {
    max-height: 180px;
  }
  .view-project-details h3 {
    font-size: 22px;
    margin-bottom: 6px;
  }
  .view-project-details p {
    font-size: 13px;
    margin-bottom: 12px;
  }
}
