@font-face {
  font-family: "Futura PT";
  src: url("/fonts/futura-pt-book.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Futura PT";
  src: url("/fonts/futura-pt-demi.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Futura PT";
  src: url("/fonts/futura-pt-bold.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}
:root { --btn-h: 60px; --paper: #eeeee9; --muted: #a4a4a3; --line: #777775; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Futura PT", "Segoe UI", Arial, sans-serif; background: #0f0f11; color: var(--paper); font-weight: 400; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: .2em; text-decoration-color: var(--line); }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; }
html.lock, body.lock { overflow: hidden; }
a:focus-visible, button:focus-visible { outline: 1px dotted var(--paper); outline-offset: 5px; }
::selection { background: var(--paper); color: #17171a; }
.hero { padding: 28px 22px 0; max-width: 1280px; margin: 0 auto; }
.note { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: end; margin-bottom: 26px; }
.note-main { font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.intro-line { display: block; font-size: 16px; line-height: 1.3; letter-spacing: 0; color: var(--muted); margin-bottom: 8px; }
.name { display: block; font-size: clamp(80px, 24vw, 110px); line-height: .86; }
.note-sub { font-size: clamp(16px, 4.5vw, 19px); line-height: 1.22; color: var(--muted); padding-bottom: 3px; }
.intro-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 24px; margin-top: 28px; font-size: 16px; color: var(--muted); }
.photo { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.works, .partners, .workflow, .connections { max-width: 1280px; margin: 0 auto; padding: 38px 22px; scroll-margin-top: 20px; }
.works-title { max-width: 940px; font-size: clamp(27px, 6.8vw, 32px); line-height: 1.45; font-weight: 400; letter-spacing: -.015em; color: var(--muted); }
.filters { display: inline; }
.service-link, .service-link:hover { color: var(--muted); text-decoration-color: var(--paper); text-decoration-style: solid; text-decoration-thickness: 1px; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.service-link.on, .service-link.on:hover { color: var(--paper); text-decoration-color: var(--muted); text-decoration-style: dotted; }
.results-line { display: flex; align-items: center; gap: 22px; min-height: 24px; margin-top: 24px; font-size: 15px; color: var(--muted); }
.works-sub, .reset-filters { font-size: inherit; }
.grid { margin-top: 22px; display: grid; gap: 26px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work { min-width: 0; text-decoration: none; }
.thumb { aspect-ratio: 808 / 632; background: #17171a; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.wt { display: block; margin-top: 10px; font-weight: 400; font-size: 18px; line-height: 1.22; overflow-wrap: anywhere; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: var(--line); }
.work:hover .wt { text-decoration-color: currentColor; }
.wy { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.partners { padding-top: 42px; padding-bottom: 44px; }
.section-title { font-size: 30px; line-height: 1.2; font-weight: 400; letter-spacing: -.015em; }
.partner-list { list-style: none; margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.partner-list li { padding: 18px 0; border-top: 1px solid #303033; font-size: 19px; line-height: 1.25; color: var(--muted); }
.step-list { list-style: none; margin-top: 28px; counter-reset: step; }
.step-list li { counter-increment: step; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 18px; padding: 22px 0; border-top: 1px solid #303033; }
.step-list li::before { content: counter(step, decimal-leading-zero); font-size: 15px; line-height: 30px; color: var(--muted); }
.step-list h3 { font-size: 24px; font-weight: 400; line-height: 1.25; }
.step-list p { margin-top: 8px; max-width: 48ch; font-size: 18px; line-height: 1.4; color: var(--muted); }
.connections { display: grid; gap: 42px; padding-top: 42px; padding-bottom: 64px; }
.connections section { min-width: 0; scroll-margin-top: 28px; border-top: 1px solid #303033; padding-top: 24px; }
.connection-note { margin-top: 14px; font-size: 18px; line-height: 1.4; color: var(--muted); }
.connection-links { list-style: none; margin-top: 14px; }
.contact-item { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; max-width: 100%; font-size: 22px; line-height: 1.4; overflow-wrap: anywhere; }
.contact-marker { flex: 0 0 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.contact-copy { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; min-width: 0; }
.contact-detail { white-space: nowrap; }
.end { max-width: 1280px; margin: 0 auto; padding: 18px 22px 38px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 16px; }
.copy { color: var(--muted); }
  /* ── Реверс: флип-карточка текущего экрана ────────────── */
  /* При свайпе делается «снимок» экрана (клон страницы, обрезанный по
     вьюпорту) и крутится ОН — слой размером с экран, поэтому оборот
     лёгкий даже на слабых телефонах; на обороте карточки — фото.
     Настоящая страница в это время скрыта и стоит под блокировкой.
     Кнопка «Это в TG» — слой поверх поворота: центр полосы под
     фото-квадратом +33% высоты, подъём 60% => y=684 на 390×844. */
  html { overflow-x: hidden; overflow-x: clip; }   /* карточка в повороте шире экрана */
  .flipwrap {
    position: fixed; inset: 0;
    z-index: 40;
    perspective: 1400px;
    visibility: hidden;
  }
  .flipwrap.on { visibility: visible; }
  .flipcard {
    position: absolute; inset: 0;
    transform-style: preserve-3d;
    pointer-events: none;
    will-change: transform;
    transition: transform .65s cubic-bezier(.4, .1, .2, 1);
  }
  .flipcard.no-anim { transition: none !important; }
  .flip-face {
    position: absolute; inset: 0;
    overflow: hidden;
    background: #0f0f11;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
  }
  .flip-back { transform: rotateY(180deg); filter: grayscale(1); }
  .flip-back img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .flip-snap { position: absolute; top: 0; left: 0; width: 100%; }
  .action {
    position: absolute;
    left: 0; right: 0;
    top: calc(75vh + 25vw + (0.33 - 0.5) * var(--btn-h) - 0.60 * var(--btn-h));
    top: calc(75dvh + 25vw + (0.33 - 0.5) * var(--btn-h) - 0.60 * var(--btn-h));
    display: flex; justify-content: center;
    z-index: 5;
    opacity: 0; pointer-events: none;
    transition: opacity .45s ease;
  }
  .action.visible { opacity: 1; pointer-events: auto; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: var(--btn-h);
    padding: 0 38px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .06em;
    text-decoration: none;
    background: #17171a;
    color: #f4f4f2;
    box-shadow: 0 4px 22px rgba(0, 0, 0, .45);
    transition: transform .15s ease;
  }
  .btn:active { transform: scale(.985); }
  .btn .inner {
    display: inline-flex; align-items: center; gap: 10px;
  }



@media (min-width: 768px) {
  .hero { padding: 48px 32px 0; display: grid; grid-template-columns: 1fr min(38vw, 440px); align-items: center; gap: 72px; }
  .note { margin-bottom: 0; }
  .name { font-size: clamp(100px, 11vw, 154px); }
  .note-sub { font-size: 20px; padding-bottom: 6px; }
  .intro-nav { margin-top: 40px; }
  .works, .partners, .workflow, .connections { padding-left: 32px; padding-right: 32px; }
  .works { padding-top: 58px; }
  .works-title { font-size: clamp(32px, 3.2vw, 42px); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; margin-top: 28px; }
  .wt { font-size: 22px; }
  .partners { padding-top: 60px; padding-bottom: 64px; }
  .section-title { font-size: 38px; }
  .partner-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .partner-list li { font-size: 22px; padding: 22px 0; }
  .workflow { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-top: 48px; padding-bottom: 64px; }
  .step-list { margin-top: 0; }
  .step-list li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 24px; padding: 26px 0; }
  .step-list h3 { font-size: 28px; }
  .step-list p { font-size: 20px; }
  .connections { grid-template-columns: 1fr 1fr; gap: 48px; padding-bottom: 80px; }
  .end { padding-left: 32px; padding-right: 32px; }
}
@media (min-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.btn .label { text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: .2em; }
[hidden] { display: none !important; }
