:root {
  --bg: #0b0b0a;
  --bg-2: #141413;
  --fg: #f2f0eb;
  --muted: #8b8984;
  --line: rgba(242, 240, 235, 0.12);
  --accent: #ff3b1f;
  --pad: clamp(16px, 4vw, 56px);
  --radius: 4px;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.label { color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
h2 { font-size: clamp(36px, 5.5vw, 76px); font-weight: 600; letter-spacing: -0.035em; line-height: 0.95; }
h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
section { padding: clamp(72px, 10vw, 140px) var(--pad); scroll-margin-top: 40px; }

.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border: 1px solid var(--line); border-radius: 999px;
  font-weight: 500; font-size: 16px; transition: background .2s, border-color .2s, color .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--fg); }
.btn-primary { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; }
.play-ico { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* Шапка */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad); transition: background .3s, backdrop-filter .3s;
}
.top.scrolled { background: rgba(11, 11, 10, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { font-weight: 600; letter-spacing: -0.01em; font-size: 17px; }
.nav { display: flex; gap: 32px; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.top .btn { background: rgba(11,11,10,.35); backdrop-filter: blur(6px); }

/* Первый экран */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-top: 120px; padding-bottom: 96px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11,11,10,.55) 0%, rgba(11,11,10,0) 30%, rgba(11,11,10,.2) 55%, rgba(11,11,10,.92) 100%),
  linear-gradient(90deg, rgba(11,11,10,.6) 0%, rgba(11,11,10,0) 60%); }
.hero-inner { position: relative; max-width: 1100px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.hero-title { font-size: clamp(56px, 12vw, 190px); font-weight: 700; letter-spacing: -0.055em; line-height: 0.86; margin-left: -0.04em; }
.hero-lead { max-width: 560px; margin-top: 28px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(242,240,235,.85); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-foot { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; display: flex; justify-content: space-between; color: rgba(242,240,235,.6); }
.tc { color: var(--fg); font-variant-numeric: tabular-nums; }

/* Клиенты */

/* Работы */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); transition: all .2s; }
.filter:hover { color: var(--fg); border-color: rgba(242,240,235,.4); }
.filter[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.filter sup { font-family: var(--mono); font-size: 10px; margin-left: 4px; opacity: .6; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 48px 20px; }
.card { grid-column: span 2; cursor: pointer; animation: rise .5s both; }
.card.big { grid-column: span 3; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); border-radius: var(--radius); }
.card-media img, .card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.card-media video { opacity: 0; }
.card.playing .card-media video { opacity: 1; }
.card:hover .card-media img, .card:hover .card-media video { transform: scale(1.035); }
.card-dur { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; background: rgba(11,11,10,.7); border-radius: 3px; backdrop-filter: blur(4px); }
.card-play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(242,240,235,.92); opacity: 0; transform: scale(.8); transition: all .25s; }
.card-play::after { content: ''; position: absolute; left: 26px; top: 21px; border-left: 16px solid var(--bg); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.card:hover .card-play { opacity: 1; transform: scale(1); }
.card-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 14px; }
.card-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.card.big .card-title { font-size: 24px; }
.card-type { color: var(--muted); white-space: nowrap; }

/* Обо мне */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; border-top: 1px solid var(--line); }
.about-photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .6s; }
.about-photo:hover img { filter: grayscale(0) contrast(1); }
.about-text h2 { font-size: clamp(32px, 4vw, 56px); margin-bottom: 32px; }
.about-text p { color: rgba(242,240,235,.78); max-width: 620px; margin-bottom: 16px; font-size: 18px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.facts span { color: var(--muted); font-size: 14px; }

/* Услуги */
.services { border-top: 1px solid var(--line); }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service-list li { padding: 32px 32px 40px 0; border-bottom: 1px solid var(--line); }
.service-list li:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.service-list .num { color: var(--accent); display: block; margin-bottom: 40px; }
.service-list p { color: var(--muted); margin-top: 10px; max-width: 340px; }


/* Контакты */
.contact { border-top: 1px solid var(--line); padding-bottom: clamp(80px, 10vw, 140px); }
.contact-title { font-size: clamp(48px, 9vw, 150px); letter-spacing: -0.05em; line-height: 0.9; }
.contact-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; }
.contact-big { display: block; padding: 28px 0; border-top: 1px solid var(--line); font-size: clamp(20px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; transition: color .2s; word-break: break-word; }
.contact-big span { display: block; color: var(--muted); margin-bottom: 10px; font-weight: 400; }
.contact-big:hover { color: var(--accent); }
.foot { display: flex; justify-content: space-between; padding: 24px var(--pad); color: var(--muted); border-top: 1px solid var(--line); }

/* Плеер */
.player { position: fixed; inset: 0; z-index: 100; background: #050505; display: flex; align-items: center; justify-content: center; padding: 64px var(--pad) 24px; animation: fade .25s; overflow-y: auto; }
.player[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.player-close { position: fixed; top: 16px; right: var(--pad); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); font-size: 16px; z-index: 2; }
.player-close:hover { border-color: var(--fg); }
.player-stage { width: min(100%, calc((100svh - 220px) * 16 / 9), 1600px); }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player-frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player-frame:fullscreen { border-radius: 0; aspect-ratio: auto; }
.player-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); background: #000; }
.player-big-play { position: absolute; left: 50%; top: 50%; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: rgba(242,240,235,.92); transition: transform .2s, opacity .2s; }
.player-big-play::after { content: ''; position: absolute; left: 35px; top: 28px; border-left: 24px solid var(--bg); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.player-big-play:hover { transform: scale(1.06); }
.player.is-playing .player-big-play { opacity: 0; pointer-events: none; }

.controls {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 14px;
  padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.75)); transition: opacity .3s;
}
.player.idle.is-playing .controls { opacity: 0; }
.player.idle.is-playing .player-frame { cursor: none; }
.ctl { width: 32px; height: 32px; display: grid; place-items: center; flex: none; opacity: .9; }
.ctl:hover { opacity: 1; }
.time { color: rgba(242,240,235,.85); white-space: nowrap; font-variant-numeric: tabular-nums; }
.scrub { position: relative; flex: 1; height: 18px; cursor: pointer; display: flex; align-items: center; }
.scrub::before, .scrub-buf, .scrub-fill { content: ''; position: absolute; left: 0; height: 3px; border-radius: 2px; transition: height .15s; }
.scrub::before { right: 0; background: rgba(242,240,235,.2); }
.scrub-buf { background: rgba(242,240,235,.35); width: 0; }
.scrub-fill { background: var(--accent); width: 0; }
.scrub-fill::after { content: ''; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .15s; }
.scrub:hover::before, .scrub:hover .scrub-buf, .scrub:hover .scrub-fill { height: 5px; }
.scrub:hover .scrub-fill::after { transform: scale(1); }
.scrub-tip { position: absolute; bottom: 22px; padding: 4px 6px; background: rgba(0,0,0,.85); border-radius: 3px; transform: translateX(-50%); opacity: 0; pointer-events: none; transition: opacity .15s; }
.scrub:hover .scrub-tip { opacity: 1; }
.vol { width: 80px; accent-color: var(--fg); }

/* Иконки плеера */
.ico-play { width: 0; height: 0; border-left: 13px solid var(--fg); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.player.is-playing .ico-play { width: 12px; height: 15px; border: 0; margin: 0; border-left: 4px solid var(--fg); border-right: 4px solid var(--fg); }
.ico-vol { position: relative; width: 8px; height: 8px; background: var(--fg); margin-right: 8px; }
.ico-vol::before { content: ''; position: absolute; left: 2px; top: -5px; border-right: 9px solid var(--fg); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.ico-vol::after { content: ''; position: absolute; left: 13px; top: -3px; width: 6px; height: 14px; border: 2px solid var(--fg); border-left: 0; border-radius: 0 10px 10px 0; }
.player.is-muted .ico-vol::after { content: '×'; border: 0; width: auto; height: auto; top: -10px; left: 13px; color: var(--fg); font-size: 18px; }
.ico-fs { width: 16px; height: 16px; background:
  linear-gradient(var(--fg), var(--fg)) top left / 6px 2px no-repeat, linear-gradient(var(--fg), var(--fg)) top left / 2px 6px no-repeat,
  linear-gradient(var(--fg), var(--fg)) top right / 6px 2px no-repeat, linear-gradient(var(--fg), var(--fg)) top right / 2px 6px no-repeat,
  linear-gradient(var(--fg), var(--fg)) bottom left / 6px 2px no-repeat, linear-gradient(var(--fg), var(--fg)) bottom left / 2px 6px no-repeat,
  linear-gradient(var(--fg), var(--fg)) bottom right / 6px 2px no-repeat, linear-gradient(var(--fg), var(--fg)) bottom right / 2px 6px no-repeat; }

.player-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 20px; }
.player-info h3 { font-size: clamp(20px, 2.2vw, 28px); }
#pText { color: var(--muted); margin-top: 6px; max-width: 720px; }
.player-role { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.player-role .mono { color: var(--accent); }
.player-meta { color: var(--muted); margin-bottom: 8px; }
.player-nav { display: flex; gap: 8px; flex: none; }

/* Адаптив */
@media (max-width: 1100px) {
  .card, .card.big { grid-column: span 3; }
  .service-list { grid-template-columns: repeat(2, 1fr); }
  .service-list li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .service-list li:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 420px; }
  .contact-links { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; gap: 36px; }
  .card, .card.big { grid-column: auto; }
  .card.big .card-title { font-size: 20px; }
  .service-list { grid-template-columns: 1fr; }
  .service-list li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .service-list .num { margin-bottom: 16px; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .hero { padding-bottom: 80px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-foot span:first-child { display: none; }
  .brand { font-size: 15px; }
  .vol, .time { display: none; }
  .player { padding: 64px 0 16px; align-items: flex-start; }
  .player-frame { border-radius: 0; }
  .player-info { flex-direction: column; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
