@charset "UTF-8";

/* ==========================================================================
   Odri — оформление, взятое у самого приложения.

   Цвета из Theme.swift: свет #F2C078, янтарь #C97B27, кора #2A2119,
   полутьма #34291F → #241C16 → #16110E, ядро света #FFF4E0.
   Заголовки — антиква: в приложении serif'ом набраны только название
   и имя питомца, больше нигде.

   Страница целиком уходит в тёплый полумрак — в отличие от остальных,
   где меняется только акцент. Odri про свет в темноте, и светлая
   подложка убила бы главный приём.
   ========================================================================== */

body.stage-warm {
  --bg: #241c16;
  --surface: #2a2119;
  --ink: #fff4e0;
  --ink-2: rgba(255, 244, 224, 0.62);
  --ink-3: rgba(255, 244, 224, 0.38);
  --line: rgba(242, 192, 120, 0.16);
  --line-soft: rgba(242, 192, 120, 0.09);
  --accent: #f2c078;
  --accent-ink: #241c16;
  --sheen-band: rgba(255, 244, 224, 0.5);
  --mark-1: #fff4e0;
  --mark-2: rgba(255, 244, 224, 0.45);

  background-color: #241c16;
  background-image: radial-gradient(
    1400px 800px at 50% -20%,
    #34291f 0%,
    #241c16 45%,
    #16110e 100%
  );
  color-scheme: dark;
}

/* Тема системы этой странице не указ: приложение живёт в полумраке. */
body.stage-warm .theme-toggle {
  display: none;
}

body.stage-warm .p-name,
body.stage-warm .p-tag,
body.stage-warm .feat h3,
body.stage-warm .how__step h3 {
  font-family: "Serif", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.stage-warm .p-name {
  font-size: clamp(2.6rem, 8vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

body.stage-warm .p-tag {
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.72rem);
  line-height: 1.28;
  max-width: 22ch;
}

body.stage-warm .feats__grid,
body.stage-warm .legend {
  background: var(--line-soft);
  border-color: var(--line-soft);
}

body.stage-warm .feat {
  background: rgba(52, 41, 31, 0.55);
}

body.stage-warm .feat:hover {
  background: rgba(242, 192, 120, 0.07);
}

/* --- сцена: три собаки в трёх пятнах света ------------------------------
   Сигнатура приложения, перенесённая на страницу. Свет без поверхности
   читается как пятно грязи, поэтому у каждой фигуры своё пятно, а под
   всеми — общая линия пола: они стоят в одной комнате, а не висят.

   Сцена намеренно неподвижна. Постоянное движение на странице отвлекает
   от текста и быстро надоедает; живость показываем только там, где её
   ищут — под курсором.
   ---------------------------------------------------------------------- */

body.stage-warm .p-hero {
  padding-bottom: 0;
}

.stage {
  padding: clamp(1rem, 3vh, 2rem) 0 clamp(1.5rem, 4vh, 2.5rem);
}

.stage__floor {
  position: relative;
  display: grid;
  /* Колонки неравные: лежачая поза втрое шире сидячих, и в равной
     колонке она упиралась бы в ширину, а не в высоту. */
  grid-template-columns: 0.9fr 1fr 1.3fr;
  /* stretch обязателен: при align-items:end высота ячейки определяется
     содержимым, и проценты у картинки становятся не от чего считать —
     собаки вырастают до натуральных 760 px и вылезают за сцену. */
  align-items: stretch;
  gap: clamp(0.5rem, 3vw, 2.5rem);
  height: clamp(240px, 32vw, 400px);
}

.pet {
  position: relative;
  margin: 0;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pet__img {
  position: relative;
  z-index: 1;
  height: var(--h);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: 50% 100%;
  transform-origin: 50% 100%;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Тёплая контактная тень: свет всегда сверху. */
  filter: drop-shadow(0 14px 18px rgba(22, 17, 14, 0.55));
}

/* Отклик на курсор: подошла ближе, свет под ней разгорелся. */
.pet:hover .pet__img {
  transform: scale(1.05);
}

.pet__light {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: 96%;
  aspect-ratio: 3.2 / 1;
  transform: translateX(-50%) scale(1);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(16px);
  opacity: 0.85;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    filter 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Ядро почти белое: тёплый градиент без светлой середины на тёмном
     выглядит бурым, а не светящимся. */
  background: radial-gradient(
    ellipse at center,
    rgba(255, 244, 224, 0.42) 0%,
    rgba(242, 192, 120, 0.22) 36%,
    rgba(242, 192, 120, 0.07) 64%,
    rgba(242, 192, 120, 0) 100%
  );
}

.pet:hover .pet__light {
  opacity: 1;
  transform: translateX(-50%) scale(1.12);
  filter: blur(13px);
}

@media (max-width: 620px) {
  .stage__floor {
    height: clamp(170px, 42vw, 240px);
    gap: 0.4rem;
  }
}

/* --- как это работает ---------------------------------------------------- */

.how {
  padding: clamp(3rem, 8vh, 5rem) 0;
  border-top: 1px solid var(--line-soft);
}

.how__intro {
  margin-top: 0.7rem;
  color: var(--ink-2);
  max-width: 44ch;
}

.how__list {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
}

@media (min-width: 780px) {
  .how__list { grid-template-columns: repeat(3, 1fr); }
}

.how__step {
  background: rgba(52, 41, 31, 0.55);
  padding: 1.75rem 1.6rem;
}

.how__n {
  display: block;
  color: var(--accent);
  font-size: 0.7rem;
  margin-bottom: 0.9rem;
}

.how__step h3 {
  font-size: 1.12rem;
  margin-bottom: 0.55rem;
}

.how__step p {
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.55;
}

/* --- плитка на главной: свет разгорается при наведении ------------------ */

.spark--glow {
  border-radius: inherit;
  overflow: hidden;
}

.spark--glow i {
  position: absolute;
  left: 50%;
  bottom: 14%;
  width: 74%;
  aspect-ratio: 3 / 1;
  transform: translateX(-50%) scale(0.7);
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 244, 224, 0.65) 0%,
    rgba(242, 192, 120, 0.3) 40%,
    rgba(242, 192, 120, 0) 100%
  );
  transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.app:hover .spark--glow i,
.app:focus-visible .spark--glow i {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .stage__light { animation: none; }
}
