/* ── шрифт заголовка (локальный, без внешних запросов) ── */
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("media/fonts/oswald-600-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("media/fonts/oswald-600-lat.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 {
  --bg: #0a0a0b;
  --fg: #f2f2f3;
  --muted: #8a8a90;
  --line: #1d1d21;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ── шапка ─────────────────────────── */
.head {
  padding: 28px 0 8px;
}

.head .wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  font-family: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .02em;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, .28),
    1px 1px 0 rgba(0, 0, 0, .8),
    0 6px 14px rgba(0, 0, 0, .65);
}

.role {
  font-size: 13.5px;
  color: #9c9ca4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

/* ── вступление ────────────────────── */
.intro {
  padding-top: 56px;
  padding-bottom: 40px;
}

h1 {
  margin: 0 0 18px;
  font-family: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  font-size: clamp(38px, 7.8vw, 78px);
  line-height: .98;
  letter-spacing: .004em;
  font-weight: 600;
  /* объём: светлая кромка сверху-слева, тёмная снизу-справа + мягкая тень */
  color: #f7f7fa;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, .7),
    1px 1px 0 rgba(0, 0, 0, .95),
    0 2px 0 rgba(0, 0, 0, .45),
    0 18px 36px rgba(0, 0, 0, 1);
}

.lead {
  margin: 0;
  max-width: 48ch;
  color: #b4b4bd;
  font-size: clamp(16px, 2.1vw, 18px);
  line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .65);
}

/* ── работы ────────────────────────── */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  padding-bottom: 18px;
}

.card {
  margin: 0 0 34px;
}

.card h2 {
  margin: 14px 0 2px;
  font-family: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #f2f2f5;
  text-shadow:
    -1px -1px 0 rgba(255, 255, 255, .18),
    1px 1px 0 rgba(0, 0, 0, .75),
    0 8px 16px rgba(0, 0, 0, .6);
}

.card .meta {
  margin: 0;
  font-size: 13.5px;
  color: #9c9ca4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #131316;
  border: 1px solid var(--line);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.card--v .frame { aspect-ratio: 9 / 16; }
.card--h .frame { aspect-ratio: 1280 / 624; }

.vid {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #131316;
}

/* кнопка «играть» по центру */
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(10, 10, 12, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: opacity .25s ease, transform .25s ease;
}

.play span {
  width: 0;
  height: 0;
  border-left: 13px solid #fff;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  margin-left: 4px;
}

.is-playing .play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.9);
  pointer-events: none;
}

.frame:hover .play { transform: translate(-50%, -50%) scale(1.05); }

/* кнопка звука */
.sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(10, 10, 12, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  opacity: .85;
}

.sound .slash { display: none; }
.sound.is-off .wave { display: none; }
.sound.is-off .slash { display: inline; }

/* ── блоки ─────────────────────────── */
.about, .contact {
  padding-top: 24px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line);
}

.about h2, .contact h2 {
  margin: 0 0 10px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #a6a6ae;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

.about p, .contact p {
  margin: 0 0 18px;
  max-width: 56ch;
  color: #d4d4da;
  font-size: 17px;
  line-height: 1.65;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
}

/* ── контакты ──────────────────────── */
.contact { padding-bottom: 48px; }

.links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--fg);
  color: #0a0a0b;
  text-decoration: none;
  font-family: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .03em;
  border: 1px solid var(--fg);
  transition: opacity .2s ease, transform .2s ease;
}

.btn:hover { opacity: .85; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: #2a2a30;
}

/* ── подвал ────────────────────────── */
.foot {
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  color: #6a6a72;
  font-size: 13px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}

/* ── появление ─────────────────────── */
/* без JS карточки видны сразу: класс .js ставится в <head> */
.js .card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}

.js .card.is-in {
  opacity: 1;
  transform: none;
}

.js .card:nth-of-type(2) { transition-delay: .08s; }
.js .card:nth-of-type(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  .js .card { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 420px) {
  .play { width: 54px; height: 54px; }
  .sound { width: 32px; height: 32px; }
  .works { grid-template-columns: 1fr; }
}
