/* Мини-портфолио: светлая бумага, чёрные заголовки, у каждой работы свой акцент */
:root {
  --paper: #F3F0E8;
  --ink: #141414;
  --muted: #5d5a54;
  --line: rgba(20, 20, 20, .12);
  --radius: 18px;
  --pad: clamp(20px, 5vw, 64px);
  --head: "Unbounded", "Arial Black", sans-serif;
  --body: "Onest", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2D5BFF; outline-offset: 3px; border-radius: 6px; }

.progress { position: fixed; top: 0; left: 0; z-index: 60; color: var(--ink); }

/* Шапка */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.top__name { font: 700 15px/1 var(--head); text-decoration: none; letter-spacing: -.01em; }
.top__name span { margin: 0 .35em; opacity: .35; }
.top__wa {
  font: 600 14px/1 var(--body); text-decoration: none;
  padding: 10px 16px; border-radius: 999px;
  background: #25D366; color: #08260f;
}

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 16px/1 var(--body); text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: #333; }
.btn--line { border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); color: var(--on, #fff); }
.btn--accent:hover { filter: brightness(.92); }
.btn--wa { background: #25D366; color: #08260f; font-size: 18px; min-height: 60px; padding: 0 32px; }

/* Первый экран */
.hero {
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--pad) 48px;
  max-width: 1280px; margin: 0 auto;
}
.eyebrow {
  margin: 0 0 22px; font: 600 13px/1 var(--body);
  text-transform: uppercase; letter-spacing: .14em; color: var(--muted);
}
.hero__title {
  margin: 0; max-width: 15ch;
  font: 800 clamp(34px, 7.4vw, 92px)/1.02 var(--head);
  letter-spacing: -.035em;
}
.hero__lead { max-width: 560px; margin: 26px 0 0; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Бегущая строка */
.ticker {
  --marquee-gap: 0px;
  overflow: hidden; white-space: nowrap;
  border-block: 1px solid var(--line);
  padding: 18px 0;
  font: 700 clamp(18px, 2.6vw, 30px)/1 var(--head); letter-spacing: -.02em;
}
.ticker__track { display: inline-flex; }
.ticker__track span { padding-right: 1.1em; }
.ticker__track span::after { content: "✦"; margin-left: 1.1em; font-size: .6em; vertical-align: middle; opacity: .4; }

/* Работы */
.works { max-width: 1280px; margin: 0 auto; padding: 40px var(--pad) 20px; }
.work {
  display: grid; gap: 34px;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.work:last-child { border-bottom: 0; }
.work__meta { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; }
.work__num { font: 700 14px/1 var(--head); padding: 7px 9px; border-radius: 8px; background: var(--accent); color: var(--on, #fff); }
.tag {
  font: 600 12.5px/1 var(--body); padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.tag--live { border-color: transparent; background: var(--ink); color: var(--paper); }
.tag--live::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px;
  border-radius: 50%; background: #3BE07A; vertical-align: 1px;
}
.work__title { margin: 0; font: 700 clamp(26px, 4vw, 46px)/1.14 var(--head); letter-spacing: -.03em; }
.work__desc { margin: 18px 0 0; max-width: 560px; color: #36332e; }
.facts { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 520px; }
.facts li { border-top: 2px solid var(--accent); padding-top: 12px; }
.facts b { display: block; font: 800 clamp(26px, 3.4vw, 38px)/1 var(--head); letter-spacing: -.03em; }
.facts span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.work__note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Скриншоты: компьютер + телефон поверх */
.work__media { position: relative; padding: 0 0 12% 0; }
.shot {
  margin: 0; width: 88%;
  border-radius: var(--radius); overflow: hidden;
  background: #ddd8cc;
  box-shadow: 0 30px 60px -30px rgba(20, 20, 20, .35);
  outline: 1px solid var(--line);
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.phone-wrap { position: absolute; right: 0; bottom: 0; width: 31%; }
.phone {
  width: 100%; aspect-ratio: 375 / 812; object-fit: cover; object-position: top;
  border-radius: 22px; border: 5px solid var(--ink); background: var(--ink);
  box-shadow: 0 24px 40px -18px rgba(20, 20, 20, .5);
}

/* Манифест */
.manifest { max-width: 1280px; margin: 0 auto; padding: 80px var(--pad) 110px; }
.manifest__text { margin: 0; max-width: 22ch; font: 700 clamp(28px, 4.6vw, 60px)/1.12 var(--head); letter-spacing: -.03em; }

/* Контакты */
.contact { padding: 110px var(--pad) 120px; text-align: center; transition: none; }
.contact__title { margin: 0 auto; max-width: 18ch; font: 800 clamp(30px, 5.6vw, 72px)/1.05 var(--head); letter-spacing: -.035em; }
.contact__lead { max-width: 520px; margin: 22px auto 0; font-size: 18px; opacity: .75; }
.contact__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 36px; }
.contact__phone { font: 700 20px/1 var(--head); text-decoration: none; letter-spacing: -.01em; }
.contact__phone:hover { text-decoration: underline; }

.foot {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 26px var(--pad) calc(26px + env(safe-area-inset-bottom));
  font-size: 14px; opacity: .7;
}
.foot a { text-decoration: none; }

/* Десктоп: текст и скриншоты в две колонки, через одну меняются местами */
@media (min-width: 900px) {
  .work { grid-template-columns: 5fr 7fr; align-items: center; gap: 64px; padding: 90px 0; }
  .work:nth-child(even) .work__text { order: 2; }
  .work__media { padding-bottom: 8%; }
  .phone-wrap { width: 26%; }
}

@media (max-width: 420px) {
  .btn { width: 100%; justify-content: center; }
  .hero__actions .btn { width: 100%; }
  .top__wa { padding: 9px 14px; }
  .phone { border-width: 3px; border-radius: 14px; }
}
