/* ==========================================================================
   Акторика — заглушка aktorika.ru, стили.
   Цвета — значения токенов приложения (static/tokens.css): здесь отдельный
   статический сайт, поэтому tokens.css не подключаем, а повторяем значения
   с теми же именами. Шрифт — Roboto, как в приложении, но локальный.
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/roboto-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/roboto-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/roboto-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/roboto-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/roboto-cyrillic-700-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/roboto-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --neutral-0: #ffffff;
  --neutral-100: #f5f7f9;   /* фон страницы приложения */
  --neutral-200: #e2e8f0;   /* рамки */
  --neutral-700: #334155;   /* вторичный текст */
  --neutral-900: #0f172a;   /* основной текст, буквы логотипа */
  --brand-100: #d6e8ff;
  --brand-500: #0b69d1;     /* фирменный синий, знак «А» */
  --brand-700: #0754a6;
  --wall: #cbceca;          /* цвет стены на левом краю рисунка */
  --font-family-base: "Roboto", Arial, sans-serif;
}

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

html, body { margin: 0; height: 100%; }

body {
  background: var(--neutral-100);
  color: var(--neutral-900);
  font-family: var(--font-family-base);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Телефон и узкие экраны: текст сверху, рисунок снизу ---------- */

.stub {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

.stub__text {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(40px, env(safe-area-inset-top)) 16px 24px;
  text-align: center;
  animation: stub-rise 700ms cubic-bezier(.2, .7, .2, 1) both;
}

.stub__logo {
  display: block;
  width: clamp(170px, 46vw, 220px);
  height: auto;
}

/* Плашка «Сайт в разработке» с синей точкой. */
.stub__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0 0;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  background: var(--neutral-0);
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.stub__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 3px var(--brand-100);
}

/* Мягкая «пульсация» точки — признак «идёт работа». */
.stub__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand-500);
  animation: stub-pulse 2.4s ease-out infinite;
}

.stub__title {
  margin: 20px 0 0;
  font-weight: 700;
  font-size: clamp(28px, 7.4vw, 34px);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--neutral-900);
}

.stub__lead {
  max-width: 34ch;
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--neutral-700);
}

/* Вторая фраза абзаца — всегда с новой строки, как в макете. */
.stub__lead-line { display: block; }

.stub__art {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  overflow: hidden;
  animation: stub-fade 1100ms ease-out 150ms both;
}

.stub__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 70%;   /* стол и окно — главное в кадре */
  display: block;
}

/* Мягкий переход от светлой панели с текстом к рисунку. */
.stub__art::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 1;
  background: linear-gradient(var(--neutral-100), rgba(245, 247, 249, 0));
  pointer-events: none;
}

/* ---------- Широкий экран: рисунок на весь экран, табличка на стене ---------- */

@media (min-width: 900px) and (orientation: landscape) {
  body { background: var(--wall); }

  .stub {
    position: relative;
    flex-direction: row;
    align-items: flex-start;   /* табличка в верхней части стены, над стулом */
    padding: clamp(32px, 9vh, 104px) 0 48px clamp(40px, 5vw, 96px);
    overflow: hidden;
  }

  .stub__art {
    position: absolute;
    inset: 0;
    min-height: 0;
  }

  .stub__art img { object-position: right center; }

  /* Вуаль сверху для телефона на широком экране не нужна. */
  .stub__art::before { display: none; }

  /* Табличка: полупрозрачная карточка с размытием фона под ней. */
  .stub__text {
    position: relative;
    z-index: 2;
    width: min(38vw, 460px);
    align-items: flex-start;
    padding: 36px 36px 40px;
    text-align: left;
    background: rgba(255, 255, 255, .78);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 24px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .18);
  }

  .stub__logo { width: 170px; }

  .stub__title { font-size: clamp(36px, 3.2vw, 46px); line-height: 1.08; }

  .stub__lead { max-width: none; font-size: 16px; }
}

/* Браузер без размытия фона — карточку делаем почти непрозрачной. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  @media (min-width: 900px) and (orientation: landscape) {
    .stub__text { background: rgba(255, 255, 255, .93); }
  }
}

@keyframes stub-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* ---------- Анимация появления ---------- */

@keyframes stub-rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes stub-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .stub__text,
  .stub__art,
  .stub__dot::after { animation: none; }
}
