/* ==========================================================================
   Ivan Tebekin — портфолио
   Шрифты: Onest (гротеск) + Playfair Display Italic (акценты), локально
   ========================================================================== */

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00BF, U+00D7, U+2010-2027, U+2030-203A, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-rub-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-cyrillic-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00AB, U+00B7, U+00BB, U+2013-2014, U+2019, U+201C-201D, U+2026;
}

:root {
  --sky: #6F9FE6;
  --sky-light: #A9C8F2;
  --sky-deep: #4F7FD1;
  --night: #0D1A33;
  --orange: #F2703A;
  --parchment: #F8F3F0;
  --white: #fff;

  --ink-2: rgba(13, 26, 51, .68);
  --ink-3: rgba(13, 26, 51, .5);
  --line: rgba(13, 26, 51, .12);
  --line-strong: rgba(13, 26, 51, .2);

  --font-sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 64px;

  --r-sm: 14px;
  --r: 22px;
  --r-lg: 32px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --glow-sky:
    radial-gradient(70% 60% at 80% 2%, rgba(169, 200, 242, 1) 0%, rgba(169, 200, 242, 0) 70%),
    radial-gradient(60% 60% at 0% 64%, rgba(79, 127, 209, .8) 0%, rgba(79, 127, 209, 0) 72%),
    radial-gradient(45% 45% at 100% 72%, rgba(79, 127, 209, .42) 0%, rgba(79, 127, 209, 0) 70%),
    #6F9FE6;
}

@media (min-width: 900px) {
  :root { --header-h: 76px; }
}

/* ---------- База ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--night);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
svg { flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; }

a, button { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--night);
  outline-offset: 3px;
}

::selection { background: var(--night); color: var(--parchment); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--night);
  color: #fff;
  transform: translateY(-160%);
  transition: transform .25s var(--ease-out);
}
.skip-link:focus { transform: none; }

.top-sentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 24px;
  pointer-events: none;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}

.dot { color: var(--orange); }

/* ---------- Кнопки ---------- */

.btn {
  --h: 56px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  user-select: none;
  transition: transform .4s var(--ease-out);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 16px 30px -14px var(--btn-shadow, rgba(13, 26, 51, .6));
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.btn--orange { background: var(--orange); color: var(--night); --btn-shadow: rgba(242, 112, 58, .85); }
.btn--night { background: var(--night); color: #fff; --btn-shadow: rgba(13, 26, 51, .7); }
.btn--sm { --h: 42px; padding: 0 16px; gap: 8px; font-size: 14.5px; }
.btn--lg { --h: 64px; padding: 0 32px; font-size: 18px; }
.btn--block { width: 100%; }

.btn__icon { width: 20px; height: 20px; transition: transform .4s var(--ease-out); }
.btn--sm .btn__icon { width: 18px; height: 18px; }

@media (hover: hover) {
  .btn:hover { transform: translate3d(0, -2px, 0); }
  .btn:hover::after { opacity: 1; }
  .btn:hover .btn__icon--down { transform: translate3d(0, 3px, 0); }
  .btn:hover .btn__icon--out { transform: translate3d(2px, -2px, 0); }
}
.btn:active { transform: scale(.97); transition-duration: .12s; }

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  transition: transform .4s var(--ease-out);
}
.icon-btn svg { width: 22px; height: 22px; }
@media (hover: hover) {
  .icon-btn:hover { transform: translate3d(0, -3px, 0) rotate(-6deg); }
}
.icon-btn:active { transform: scale(.92); transition-duration: .12s; }

/* ---------- Шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-right: var(--sbw, 0px);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.header.is-scrolled::before,
.menu-open .header::before { opacity: 1; }

.header__inner {
  position: relative;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.nav { display: none; }
.nav__list { display: flex; gap: 2px; }
.nav__link {
  position: relative;
  display: inline-flex;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
@media (hover: hover) {
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
}

.burger {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: 50%;
}
.burger__line {
  position: absolute;
  left: 11px;
  right: 11px;
  top: 50%;
  height: 1.8px;
  margin-top: -.9px;
  border-radius: 2px;
  background: var(--night);
  transition: transform .45s var(--ease-out);
}
.burger__line:nth-child(1) { transform: translate3d(0, -4px, 0); }
.burger__line:nth-child(2) { transform: translate3d(0, 4px, 0); }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { transform: rotate(-45deg); }
.burger:active { transform: scale(.92); }

@media (min-width: 900px) {
  .logo { font-size: 19px; }
  .nav { display: block; }
  .burger { display: none; }
}

/* Мобильное меню */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: calc(var(--header-h) + 16px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  overflow-y: auto;
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  transition: opacity .35s var(--ease), transform .5s var(--ease-out);
}
.mmenu[hidden] { display: none; }
.mmenu.is-open { opacity: 1; transform: none; }

.mmenu__list li {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .4s var(--ease), transform .55s var(--ease-out);
}
.mmenu.is-open .mmenu__list li { opacity: 1; transform: none; }
.mmenu.is-open .mmenu__list li:nth-child(1) { transition-delay: .06s; }
.mmenu.is-open .mmenu__list li:nth-child(2) { transition-delay: .1s; }
.mmenu.is-open .mmenu__list li:nth-child(3) { transition-delay: .14s; }
.mmenu.is-open .mmenu__list li:nth-child(4) { transition-delay: .18s; }
.mmenu.is-open .mmenu__list li:nth-child(5) { transition-delay: .22s; }

.mmenu__list a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.mmenu__list span {
  min-width: 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.mmenu__note { margin-bottom: 12px; font-size: 14px; color: var(--ink-2); }
.mmenu__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mmenu__btns .btn { padding: 0 16px; }

/* ---------- 2. Первый экран ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 104px));
  padding-bottom: clamp(150px, 20vh, 240px);
}
@media (min-width: 1000px) {
  .hero { min-height: min(94svh, 980px); }
  @supports not (height: 1svh) {
    .hero { min-height: min(94vh, 980px); }
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glow-sky);
}
/* плавный переход из синего в белый */
.hero__bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .03) 14%,
    rgba(255, 255, 255, .12) 30%,
    rgba(255, 255, 255, .28) 45%,
    rgba(255, 255, 255, .5) 60%,
    rgba(255, 255, 255, .74) 75%,
    rgba(255, 255, 255, .92) 88%,
    #fff 100%);
}

.hero__dove {
  position: absolute;
  top: 26%;
  right: -46vw;
  width: 128vw;
  opacity: .75;
}
.dove {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: url(#dove-fade);
  transform-origin: 42% 58%;
  animation: dove-breathe 12s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes dove-breathe {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(-1.4%, -2.6%, 0) rotate(-1.8deg) scale(1.03); }
}

@media (min-width: 640px) {
  .hero__dove { top: 22%; right: -12vw; width: 74vw; }
}
@media (min-width: 1000px) {
  .hero__dove { top: 50%; right: -2vw; width: min(52vw, 800px); margin-top: calc(min(52vw, 800px) * -0.36); opacity: 1; }
}
@media (min-width: 1600px) {
  .hero__dove { right: calc((100vw - 1500px) / 2); }
}

.hero__inner { position: relative; }

.hero__kicker {
  margin-bottom: clamp(18px, 2.6vw, 30px);
  color: rgba(13, 26, 51, .78);
}
.hero__kicker span { color: var(--night); }

.hero__title {
  max-width: 12em;
  font-size: clamp(2.5rem, .95rem + 6.4vw, 7rem);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -0.048em;
}
.hero__line { display: block; }
.hero__accent {
  padding-right: .05em;
  color: var(--parchment);
  font-size: 1.04em;
  letter-spacing: -0.025em;
}

.hero__lead {
  max-width: 34ch;
  margin-top: clamp(20px, 2.6vw, 30px);
  font-size: clamp(18px, 1.1rem + .3vw, 22px);
  line-height: 1.45;
  color: rgba(13, 26, 51, .82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 3.4vw, 40px);
}

.hero__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 44px);
}
.hero__social-label {
  margin-right: 6px;
  font-size: 14px;
  color: rgba(13, 26, 51, .74);
}

@media (max-width: 420px) {
  .hero__actions .btn { flex: 1 1 auto; padding: 0 18px; font-size: 16px; }
  .hero__social-label { max-width: 11ch; line-height: 1.3; }
}

/* Появление первого экрана */
.js .hero__kicker,
.js .hero__line,
.js .hero__lead,
.js .hero__actions,
.js .hero__social {
  animation: rise 1s var(--ease-out) both;
}
.js .hero__kicker { animation-delay: .05s; }
.js .hero__line:nth-child(1) { animation-delay: .12s; }
.js .hero__line:nth-child(2) { animation-delay: .2s; }
.js .hero__lead { animation-delay: .3s; }
.js .hero__actions { animation-delay: .38s; }
.js .hero__social { animation-delay: .46s; }

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 26px, 0); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 3. Бегущая строка ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  padding-block: clamp(18px, 2.4vw, 28px);
  border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 52s linear infinite;
  will-change: transform;
}
.marquee__list { display: flex; flex-shrink: 0; align-items: center; }
.marquee__list li {
  display: flex;
  align-items: center;
  font-size: clamp(26px, 3.4vw, 50px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.marquee__list li.serif { font-weight: 400; letter-spacing: -0.01em; }
.marquee__list li::after {
  content: "";
  flex: none;
  width: .2em;
  height: .2em;
  margin-inline: .75em;
  border-radius: 50%;
  background: var(--orange);
}
@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
@keyframes marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 4. Цифры ---------- */

.stats { padding-top: clamp(40px, 6vw, 80px); }
.stats__grid { display: grid; gap: 10px; }

.stat {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--parchment);
  transition: transform .5s var(--ease-out);
}
.stat__value {
  display: flex;
  align-items: baseline;
  gap: .14em;
  font-size: clamp(46px, 5.6vw, 84px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.stat__small {
  margin-right: .1em;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
}
.stat__value .serif { font-size: .56em; letter-spacing: -0.02em; }
.stat__unit { font-size: .58em; letter-spacing: -0.02em; }
.stat__label {
  max-width: 13ch;
  font-size: 15px;
  line-height: 1.35;
  text-align: right;
  color: var(--ink-2);
}

@media (hover: hover) {
  .stat:hover { transform: translate3d(0, -4px, 0); }
}

@media (min-width: 720px) {
  .stats__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .stat {
    min-height: clamp(180px, 18vw, 230px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: clamp(22px, 2.4vw, 32px);
  }
  .stat__label { text-align: left; font-size: 16px; }
}

/* ---------- 5. Оглавление ---------- */

.toc { padding-top: clamp(56px, 8vw, 110px); }
.toc__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.toc__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.toc__list { display: flex; flex-wrap: wrap; gap: 10px; }

.pill {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 20px 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: clamp(17px, .9rem + .7vw, 28px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  transition: transform .4s var(--ease-out);
}
.pill::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border: 1px solid var(--orange);
  border-radius: inherit;
  background: rgba(242, 112, 58, .07);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.pill__num {
  padding-top: .15em;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) {
  .pill:hover { transform: translate3d(0, -2px, 0); }
  .pill:hover::before { opacity: 1; }
}
.pill:active { transform: scale(.97); transition-duration: .12s; }

@media (min-width: 900px) {
  .toc__inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .pill { padding: 12px 24px 13px 20px; }
}

/* ---------- Заголовки разделов ---------- */

.section { padding-block: clamp(84px, 11vw, 156px); }

.section-head { margin-bottom: clamp(36px, 5vw, 68px); }
.section-head__rule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(24px, 3.4vw, 44px);
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--ink-2);
}
.section-head__rule .kicker { color: var(--night); }

.h2 {
  font-size: clamp(2.7rem, 1.3rem + 5.2vw, 6.2rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.047em;
}
.h2 .serif { font-size: 1.04em; letter-spacing: -0.025em; }

/* ---------- 6. Работы ---------- */

.works { padding-top: clamp(64px, 8vw, 112px); }
.works__list { display: grid; gap: clamp(18px, 2.6vw, 32px); }

.work__card {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 10px 10px 22px;
  border-radius: var(--r-lg);
  background: var(--parchment);
  cursor: pointer;
  transition: transform .55s var(--ease-out);
}
.work__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 34px 60px -38px rgba(13, 26, 51, .45);
  opacity: 0;
  transition: opacity .5s var(--ease);
}

.work__stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3.15;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(90% 80% at 90% 0%, rgba(169, 200, 242, 1) 0%, rgba(169, 200, 242, 0) 62%),
    radial-gradient(70% 70% at 0% 100%, rgba(79, 127, 209, .6) 0%, rgba(79, 127, 209, 0) 70%),
    var(--sky);
  text-align: left;
  cursor: pointer;
}
.work__stage:focus-visible { outline-offset: 4px; }

.work__chip {
  position: absolute;
  left: 6%;
  top: 5%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--night);
  transition: transform .45s var(--ease-out);
}
.work__pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}
.work__pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .6; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

.mock-browser {
  position: absolute;
  left: 6%;
  top: 16%;
  width: 82%;
  overflow: hidden;
  border-radius: clamp(8px, 1vw, 12px);
  background: #fff;
  box-shadow: 0 30px 60px -26px rgba(13, 26, 51, .55), 0 0 0 1px rgba(13, 26, 51, .06);
  transition: transform .7s var(--ease-out);
}
.mock-browser__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: clamp(20px, 2.3vw, 30px);
  padding: 0 clamp(8px, 1vw, 12px);
  background: #F5F7FA;
  border-bottom: 1px solid rgba(13, 26, 51, .07);
}
.mock-browser__dots {
  width: 7px;
  height: 7px;
  margin-right: 22px;
  border-radius: 50%;
  background: #D2D9E3;
  box-shadow: 11px 0 0 #D2D9E3, 22px 0 0 #D2D9E3;
}
.mock-browser__url {
  flex: 1;
  min-width: 0;
  margin-right: 30px;
  padding: 1px 10px;
  overflow: hidden;
  border: 1px solid rgba(13, 26, 51, .07);
  border-radius: 999px;
  background: #fff;
  font-size: clamp(9px, .85vw, 12px);
  line-height: 1.5;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}
.mock-browser img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  background: #1a1f29;
}

.mock-phone {
  position: absolute;
  right: 5%;
  bottom: 6%;
  width: 22%;
  aspect-ratio: 9 / 19.4;
  overflow: hidden;
  border: clamp(3px, .45vw, 6px) solid var(--night);
  border-radius: clamp(14px, 2.2vw, 28px);
  background: var(--night);
  box-shadow: 0 30px 50px -18px rgba(13, 26, 51, .6);
  transition: transform .7s var(--ease-out);
}
.mock-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: clamp(10px, 1.7vw, 22px);
}

.work__body {
  display: flex;
  flex-direction: column;
  padding: 4px 12px 0;
}
.work__meta {
  display: flex;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.work__meta span + span::before {
  content: "·";
  margin-inline: 8px;
  color: var(--ink-3);
}
.work__title {
  margin-top: 12px;
  font-size: clamp(34px, 1.4rem + 2.4vw, 56px);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.045em;
}
.work__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(22px, 3vw, 36px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.work__facts dt {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-3);
}
.work__facts dd {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.4;
}
.work__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: clamp(26px, 3vw, 40px);
}
.work__index {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
  .work__card:hover { transform: translate3d(0, -4px, 0); }
  .work__card:hover::after { opacity: 1; }
  .work__card:hover .mock-browser { transform: translate3d(0, -6px, 0); }
  .work__card:hover .mock-phone { transform: translate3d(0, -14px, 0) rotate(-1.5deg); }
  .work__card:hover .work__chip { transform: translate3d(0, -2px, 0); }
}
.work__card:active { transform: scale(.995); transition-duration: .2s; }

@media (max-width: 999px) {
  .mock-browser { top: 21%; }
  .work__chip { top: 5.5%; }
}

@media (min-width: 1000px) {
  .work__card {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: clamp(32px, 3.6vw, 56px);
    padding: 14px clamp(28px, 3vw, 44px) 14px 14px;
  }
  .work:nth-child(even) .work__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    padding: 14px 14px 14px clamp(28px, 3vw, 44px);
  }
  .work:nth-child(even) .work__stage { order: 2; }
  .work__body { padding: 22px 0 18px; }
}

/* ---------- 7. Цены ---------- */

.prices { padding-top: 0; }
.prices__grid { display: grid; gap: 14px; }
.prices__grid > li { display: flex; }

.price {
  position: relative;
  isolation: isolate;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform .5s var(--ease-out);
}
.price::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 30px 60px -36px rgba(13, 26, 51, .4);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.price--featured {
  border-color: transparent;
  background:
    radial-gradient(90% 70% at 92% 0%, rgba(169, 200, 242, 1) 0%, rgba(169, 200, 242, 0) 65%),
    radial-gradient(80% 60% at 0% 100%, rgba(79, 127, 209, .75) 0%, rgba(79, 127, 209, 0) 70%),
    var(--sky);
}
.price__badge {
  position: absolute;
  top: clamp(22px, 2.4vw, 32px);
  right: clamp(22px, 2.4vw, 32px);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--parchment);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
.price__name {
  padding-right: 112px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.price:not(.price--featured) .price__name { padding-right: 0; }
.price__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: clamp(24px, 3vw, 36px);
  font-size: clamp(42px, 1.8rem + 1.6vw, 58px);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.price__from {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
}
.price__rub { font-weight: 500; letter-spacing: -0.02em; }
.price__time {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--parchment);
  font-size: 14.5px;
  font-weight: 500;
}
.price__time svg { width: 18px; height: 18px; }
.price__list {
  display: grid;
  gap: 12px;
  margin: 26px 0 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.price__list li {
  display: flex;
  gap: 10px;
  font-size: 16px;
  line-height: 1.4;
}
.price__list svg {
  width: 22px;
  height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--parchment);
}
.price .btn { margin-top: auto; }

.price--featured .price__from { color: rgba(13, 26, 51, .78); }
.price--featured .price__time,
.price--featured .price__list svg { background: rgba(255, 255, 255, .42); }
.price--featured .price__list { border-color: rgba(13, 26, 51, .16); }

@media (hover: hover) {
  .price:hover { transform: translate3d(0, -6px, 0); }
  .price:hover::after { opacity: 1; }
}

@media (min-width: 900px) {
  .prices__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* ---------- 8. Этапы ---------- */

.steps { padding-inline: clamp(8px, 1.2vw, 18px); }
.steps__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(76px, 10vw, 140px);
  border-radius: clamp(28px, 4vw, 48px);
  background: var(--glow-sky);
}
.steps__glow {
  position: absolute;
  inset: auto -10% -40% 30%;
  z-index: -1;
  height: 80%;
  background: radial-gradient(closest-side, rgba(169, 200, 242, .7), rgba(169, 200, 242, 0));
}

.section-head--on-blue .section-head__rule {
  border-color: rgba(13, 26, 51, .22);
  color: rgba(13, 26, 51, .74);
}
.section-head--on-blue .serif { color: var(--parchment); }

.steps__list { display: grid; }
.step {
  display: grid;
  grid-template-columns: 72px 1fr;
  column-gap: 12px;
  padding-block: 22px;
  border-top: 1px solid rgba(13, 26, 51, .18);
}
.step:last-child { border-bottom: 1px solid rgba(13, 26, 51, .18); }
.step__num {
  grid-row: span 2;
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: .9;
  color: var(--parchment);
}
.step__line { display: none; }
.step__title {
  font-size: clamp(24px, 1.2rem + 1vw, 32px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.step__text {
  margin-top: 8px;
  color: rgba(13, 26, 51, .76);
}

@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
  .step {
    display: block;
    padding: 0;
    border: 0;
  }
  .step:last-child { border: 0; }
  .step__line {
    position: relative;
    display: block;
    height: 1px;
    margin: 26px -14px 28px 0;
    background: rgba(13, 26, 51, .28);
  }
  .step__line::before {
    content: "";
    position: absolute;
    left: 0;
    top: -4px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--night);
  }
  .step__line svg {
    position: absolute;
    right: 0;
    top: -10px;
    width: 20px;
    height: 20px;
    color: var(--night);
  }
  .step__line--end { margin-right: 0; }
  .step__line--end::after {
    content: "";
    position: absolute;
    right: 0;
    top: -5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--orange);
  }
}

/* ---------- 9. Преимущества ---------- */

.perks__grid { display: grid; }
.perk {
  padding-block: 28px;
  border-top: 1px solid var(--line);
}
.perk__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--parchment);
  transition: transform .5s var(--ease-out);
}
.perk__icon svg { width: 25px; height: 25px; }
.perk__title {
  margin-top: 22px;
  font-size: clamp(21px, 1.2rem + .4vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.perk__text { margin-top: 8px; color: var(--ink-2); }

@media (hover: hover) {
  .perk:hover .perk__icon { transform: translate3d(0, -4px, 0) rotate(-8deg); }
}

@media (min-width: 900px) {
  .perks__grid { grid-template-columns: repeat(3, 1fr); }
  .perk {
    padding: 6px 36px 10px;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .perk:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- 10. Обо мне ---------- */

.about { padding-top: 0; }
.about__grid { display: grid; gap: 32px; }
.about__mark { display: none; }
.about__title { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5.6rem); }
.about__text {
  max-width: 40ch;
  margin-top: clamp(22px, 3vw, 34px);
  font-size: clamp(18px, 1.05rem + .35vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
}
.about__sign {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(26px, 3vw, 40px);
  font-size: clamp(24px, 1.2rem + .8vw, 32px);
}
.about__sign::before {
  content: "";
  width: 44px;
  height: 1px;
  background: currentColor;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }
  .about__mark {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1.1;
    overflow: hidden;
    border-radius: var(--r-lg);
    background: var(--glow-sky);
  }
  .about__dove { width: 86%; margin-left: 4%; animation-duration: 14s; }
}

/* ---------- 11. Контакты + 12. Подвал ---------- */

.finale {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-top: clamp(180px, 22vw, 300px);
}
.finale__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 50% at 90% 96%, rgba(79, 127, 209, .9) 0%, rgba(79, 127, 209, 0) 70%),
    radial-gradient(60% 50% at 8% 70%, rgba(169, 200, 242, .9) 0%, rgba(169, 200, 242, 0) 70%),
    var(--sky);
}
/* переход из белого в синий — зеркально первому экрану */
.finale__bg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(260px, 30vw, 420px);
  background: linear-gradient(0deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .03) 14%,
    rgba(255, 255, 255, .12) 30%,
    rgba(255, 255, 255, .28) 45%,
    rgba(255, 255, 255, .5) 60%,
    rgba(255, 255, 255, .74) 75%,
    rgba(255, 255, 255, .92) 88%,
    #fff 100%);
}
.finale__dove {
  position: absolute;
  right: -40vw;
  bottom: 18%;
  width: 110vw;
  opacity: .7;
}
.finale__dove .dove { animation-duration: 14s; animation-delay: -5s; }
@media (min-width: 900px) {
  .finale__dove { right: -4vw; bottom: 14%; width: min(52vw, 760px); opacity: 1; }
}

.contact { padding-bottom: clamp(80px, 11vw, 150px); }
.contact .section-head__rule { border-color: rgba(13, 26, 51, .22); color: rgba(13, 26, 51, .74); }
.contact__title {
  max-width: 11em;
  font-size: clamp(2.8rem, 1.1rem + 6.6vw, 7.4rem);
  font-weight: 640;
  line-height: .98;
  letter-spacing: -0.048em;
}
.contact__title .serif {
  font-size: 1.04em;
  letter-spacing: -0.025em;
  color: var(--parchment);
}
.contact__lead {
  max-width: 44ch;
  margin-top: clamp(20px, 2.6vw, 30px);
  font-size: clamp(18px, 1.05rem + .35vw, 22px);
  color: rgba(13, 26, 51, .8);
}
.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(28px, 3.6vw, 44px);
}
.contact__actions .btn__icon { width: 22px; height: 22px; }
@media (max-width: 480px) {
  .contact__actions .btn { flex: 1 1 140px; padding: 0 18px; }
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 26px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(13, 26, 51, .2);
  font-size: 15px;
}
.footer__copy { font-weight: 500; }
.footer__links { display: flex; gap: 24px; }
.footer__links a {
  position: relative;
  font-weight: 500;
}
.footer__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
@media (hover: hover) {
  .footer__links a:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------- 13. Плавающая кнопка ---------- */

.fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(.9);
  transform-origin: 100% 100%;
  transition: opacity .35s var(--ease), transform .55s var(--ease-out);
}
.fab.is-visible { opacity: 1; transform: none; }
.fab.is-visible .fab__btn { pointer-events: auto; }

.fab__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--night);
  color: #fff;
  box-shadow: 0 16px 34px -12px rgba(13, 26, 51, .6);
  transition: transform .4s var(--ease-out);
}
.fab__ico {
  position: absolute;
  width: 26px;
  height: 26px;
  transition: opacity .25s var(--ease), transform .45s var(--ease-out);
}
.fab__ico--close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.fab.is-open .fab__ico--chat { opacity: 0; transform: rotate(90deg) scale(.6); }
.fab.is-open .fab__ico--close { opacity: 1; transform: none; }

.fab__label {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  margin-top: -18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--night);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(8px, 0, 0);
  transition: opacity .3s var(--ease), transform .45s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .fab__btn:hover { transform: translate3d(0, -3px, 0); }
  .fab:not(.is-open) .fab__btn:hover .fab__label { opacity: 1; transform: none; }
}
.fab__btn:active { transform: scale(.92); transition-duration: .12s; }

.fab__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.fab__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px 0 16px;
  border-radius: 999px;
  background: var(--night);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 14px 30px -14px rgba(13, 26, 51, .7);
  opacity: 0;
  transform: translate3d(0, 14px, 0) scale(.94);
  transform-origin: 100% 100%;
  transition: opacity .25s var(--ease), transform .45s var(--ease-out);
}
.fab__item svg { width: 21px; height: 21px; }
.fab.is-open .fab__item { opacity: 1; transform: none; pointer-events: auto; }
.fab.is-open .fab__item:nth-child(1) { transition-delay: .06s; }
@media (hover: hover) {
  .fab.is-open .fab__item:hover { transform: translate3d(-3px, 0, 0); }
}
.fab__item:active { transform: scale(.96); }

@media (min-width: 900px) {
  .fab { right: 28px; bottom: 28px; }
  .fab__btn { width: 64px; height: 64px; }
}

/* ---------- Модальное окно предпросмотра ---------- */

.is-locked { overflow: hidden; }
.is-locked body { padding-right: var(--sbw, 0px); }

.pv {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.pv[hidden] { display: none; }

.pv__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 26, 51, .62);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.pv__window {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  opacity: 0;
  transform: translate3d(0, 32px, 0) scale(.985);
  transition: opacity .35s var(--ease), transform .55s var(--ease-out);
}
.pv.is-open .pv__overlay { opacity: 1; }
.pv.is-open .pv__window { opacity: 1; transform: none; }

.pv__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 12px 12px 18px;
  border-bottom: 1px solid var(--line);
}
.pv__info { order: 1; flex: 1 1 0; min-width: 0; }
.pv__close { order: 2; }
.pv__devices { order: 3; flex: 1 1 auto; }
.pv__full { order: 4; }

.pv__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.pv__url {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
}

.pv__devices {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border-radius: 999px;
  background: #EDF1F7;
}
.pv__devices button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink-2);
}
.pv__devices button[aria-checked="true"] { color: var(--night); font-weight: 600; }
.pv__devices button svg { display: none; width: 18px; height: 18px; }
.pv__devices button:active { transform: scale(.96); }
.pv__indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 10px -3px rgba(13, 26, 51, .25);
  transform: translate3d(calc(var(--i, 0) * 100%), 0, 0);
  transition: transform .5s var(--ease-out);
}

.pv__full { --h: 44px; padding: 0 13px; }
.pv__full-text { display: none; }

.pv__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #EDF1F7;
  transition: transform .45s var(--ease-out);
}
.pv__close svg { width: 20px; height: 20px; }
@media (hover: hover) {
  .pv__close:hover { transform: rotate(90deg); }
}
.pv__close:active { transform: scale(.9); }

.pv__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  background: #E8EEF7;
}
.pv__frame {
  --frame-r: 12px;
  position: relative;
  flex: none;
  width: 100%;
  height: 100%;
}
.pv__frame[data-device="tablet"] { --frame-r: 22px; }
.pv__frame[data-device="phone"] { --frame-r: 30px; }

.pv__shell {
  position: absolute;
  inset: 0;
  border-radius: var(--frame-r);
  background: #fff;
  box-shadow: 0 34px 70px -34px rgba(13, 26, 51, .5), 0 0 0 1px rgba(13, 26, 51, .08);
  transform-origin: 50% 50%;
  transition: transform .6s var(--ease-out);
}
.pv__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--frame-r);
  clip-path: inset(0 round var(--frame-r));
  background: #fff;
  transition: opacity .35s var(--ease) .3s;
}
.pv__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.pv__viewport iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  background: #fff;
  transform-origin: 0 0;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.pv.is-loaded .pv__viewport iframe { opacity: 1; }

.pv__loader {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  background: var(--night);
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transform: translate3d(-50%, 0, 0);
  transition: opacity .3s var(--ease);
}
.pv.is-loaded .pv__loader,
.pv.is-failed .pv__loader { opacity: 0; pointer-events: none; }
.pv__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pv__fallback {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 50px -20px rgba(13, 26, 51, .45);
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
}
.pv__fallback[hidden] { display: none; }

@media (min-width: 640px) {
  .pv__devices button { padding: 0 14px; font-size: 14.5px; }
  .pv__devices button svg { display: block; }
}

@media (min-width: 900px) {
  .pv { padding: clamp(12px, 2vw, 28px); }
  .pv__window {
    max-width: 1560px;
    border-radius: 24px;
  }
  .pv__bar { flex-wrap: nowrap; padding: 12px 12px 12px 24px; }
  .pv__info { order: 1; }
  .pv__devices { order: 2; flex: 0 0 auto; }
  .pv__full { order: 3; }
  .pv__close { order: 4; }
  .pv__full { padding: 0 16px; }
  .pv__full-text { display: inline; }
  .pv__stage { padding: 24px; }
}

/* ---------- Появление при прокрутке ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Без анимаций ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .dove { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: auto; animation: none; }
  .marquee__list { flex-shrink: 1; flex-wrap: wrap; justify-content: center; row-gap: 8px; padding-inline: var(--gutter); }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__list li:last-child::after { display: none; }
  .work__pulse::after { display: none; }
}
