/* MERK VISUALS — сайт. Цвета и размеры меняются в :root */
:root {
  --bg: #080808;
  --bg-alt: #0e0e0e;
  --surface: #141414;
  --line: #242424;
  --line-strong: #3a3a3a;
  --text: #f5f5f5;
  --muted: #9b9b9b;
  --accent: #ff6700;
  --accent-hover: #ff7f26;
  --radius: 14px;
  --container: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: clamp(32px, 4.5vw, 52px); }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.container--narrow { --container: 820px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 16px/1 var(--font); cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: #0a0a0a; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }

.eyebrow {
  font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

/* ---------- focus brackets (brand motif) ---------- */
.focusable { position: relative; }
.focusable::after, .focus-word::after {
  --c: var(--accent); --l: 22px; --w: 3px;
  content: ""; position: absolute; pointer-events: none;
  inset: -10px;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) var(--w),
    linear-gradient(var(--c) 0 0) top left / var(--w) var(--l),
    linear-gradient(var(--c) 0 0) top right / var(--l) var(--w),
    linear-gradient(var(--c) 0 0) top right / var(--w) var(--l),
    linear-gradient(var(--c) 0 0) bottom left / var(--l) var(--w),
    linear-gradient(var(--c) 0 0) bottom left / var(--w) var(--l),
    linear-gradient(var(--c) 0 0) bottom right / var(--l) var(--w),
    linear-gradient(var(--c) 0 0) bottom right / var(--w) var(--l);
  background-repeat: no-repeat;
  opacity: 0;
  transition: inset .35s var(--ease), opacity .2s;
}
@media (hover: hover) {
  .focusable:hover::after { inset: -4px; opacity: 1; }
}

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(8, 8, 8, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { color: var(--text); flex-shrink: 0; }
.logo svg { height: 26px; width: auto; }
.logo--sm svg { height: 20px; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--text); }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang button {
  height: 30px; min-width: 38px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer;
  font: 500 12px/1 var(--mono); letter-spacing: .06em; transition: color .2s, background-color .2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: #0a0a0a; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
  padding: 120px 0 96px;
}
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.hero__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(8,8,8,.55) 0%, rgba(8,8,8,.35) 45%, var(--bg) 100%); }
.af-grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64'%3E%3Crect x='26' y='26' width='12' height='12' fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.5'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 20%, transparent 75%);
}
.hero__content { position: relative; }
.hero__title { font-size: clamp(44px, 8.4vw, 112px); line-height: 1; letter-spacing: -0.04em; max-width: 11ch; }
.focus-word { position: relative; display: inline-block; }
.focus-word::after { --l: clamp(16px, 2.4vw, 34px); --w: clamp(3px, .35vw, 5px); inset: -.04em -.14em -.02em; opacity: 1; animation: lock 1.1s var(--ease) .3s both; }
@keyframes lock {
  0%   { inset: -.6em -1em; opacity: 0; --c: #fff; }
  55%  { inset: -.04em -.14em -.02em; opacity: 1; --c: #fff; }
  70%  { --c: #fff; }
  100% { inset: -.04em -.14em -.02em; opacity: 1; --c: var(--accent); }
}
.hero__lead { margin-top: 28px; max-width: 34em; font-size: clamp(17px, 1.6vw, 20px); color: #c9c9c9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hud { position: absolute; inset: 88px 24px 28px; pointer-events: none; font: 500 12px/1 var(--mono); letter-spacing: .1em; color: rgba(255,255,255,.6); }
.hud > span { position: absolute; display: flex; align-items: center; gap: 8px; }
.hud__tl { top: 0; left: 0; color: var(--text); }
.hud__tr { top: 0; right: 0; font-variant-numeric: tabular-nums; }
.hud__bl { bottom: 0; left: 0; }
.hud__br { bottom: 0; right: 0; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 56px; }
.section__head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section__sub { margin-top: 18px; color: var(--muted); max-width: 36em; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: 15px; color: #cfcfcf; }
.ticks li { display: flex; gap: 12px; }
.ticks li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 8px; border: 1.5px solid var(--accent); }

/* services */
/* 5 cards: 3 + 2 on desktop, 2 columns on tablet, 1 on phone */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.services .service { grid-column: span 2; }
.services .service:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1000px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services .service, .services .service:nth-child(n+4) { grid-column: auto; }
  .services .service:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
}
.service { display: flex; flex-direction: column; transition: border-color .3s; }
.service:hover { border-color: var(--line-strong); }
.service__num { font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 40px; }
.service h3 + p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.price { margin-top: auto; padding-top: 28px; font-weight: 700; font-size: 20px; }
.price__note { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--accent); }

/* works */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  font: 500 14px/1 var(--font); cursor: pointer; transition: all .2s;
}
.chip:hover { color: var(--text); }
.chip.is-active { background: var(--text); border-color: var(--text); color: #0a0a0a; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.work {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 16 / 10; border-radius: var(--radius); background: var(--surface); color: var(--text); text-align: left;
  font: inherit;
}
.work.is-hidden { display: none; }
.work__media { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #111 center / cover no-repeat; }
.work__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .6s var(--ease); }
.work:hover .work__media img { transform: scale(1.04); }
.work__media--empty { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect x='19' y='19' width='10' height='10' fill='none' stroke='%23ffffff' stroke-opacity='.12' stroke-width='1.5'/%3E%3C/svg%3E"); background-size: auto; }
.work__info { position: absolute; inset: auto 0 0; padding: 20px 22px; border-radius: 0 0 var(--radius) var(--radius); background: linear-gradient(transparent, rgba(0,0,0,.8)); }
.work__cat { font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.work__title { margin-top: 8px; font-weight: 600; font-size: 18px; }
.work__play {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background-color .2s;
}
.work:hover .work__play { background: var(--accent); }
.work__play svg { width: 14px; margin-left: 2px; fill: currentColor; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan .ticks { margin-bottom: 32px; }
.plan .btn { margin-top: auto; }
.plan__for { margin-top: 8px; color: var(--muted); font-size: 15px; }
.plan__price { margin-top: 24px; font-size: 36px; font-weight: 700; letter-spacing: -0.02em; }
.plan--featured { border-color: var(--accent); }
.plans__note { margin-top: 28px; font-size: 14px; color: var(--muted); text-align: center; }
.badge { position: absolute; top: -13px; left: 32px; background: var(--accent); color: #0a0a0a; font: 600 12px/1 var(--font); padding: 7px 12px; border-radius: 999px; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: s; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.step__n { position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--accent); font-size: 0; }
.step h3::before { content: "0" counter(s); counter-increment: s; display: block; font: 500 13px/1 var(--mono); color: var(--muted); margin-bottom: 18px; }
.step p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.step__t { display: inline-block; margin-top: 16px; font: 500 13px/1 var(--mono); color: var(--accent); }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-weight: 600; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 300; color: var(--accent); transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact__links { display: grid; gap: 4px; margin-top: 40px; }
.contact__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 500;
  transition: color .2s, padding .3s var(--ease);
}
.contact__link::after { content: "→"; color: var(--accent); }
.contact__link:hover { color: var(--accent); padding-left: 8px; }
.form { display: grid; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--line-strong); color: var(--text);
  font: 400 16px/1.4 var(--font); transition: border-color .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form [aria-invalid="true"] { border-color: #ff4d4d; }
.form__error { color: #ff6b6b; font-size: 14px; min-height: 0; }
.form__error:empty { display: none; }
.form__note { font-size: 13px; color: var(--muted); text-align: center; }

/* footer */
.footer { padding: 40px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }
.footer__legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 12.5px; line-height: 1.6; color: #7a7a7a; }
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* mobile menu */
.menu-toggle {
  display: none; position: relative; width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; cursor: pointer;
}
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 23px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

/* player */
.player { width: min(100% - 32px, 1100px); padding: 0; border: 0; background: transparent; overflow: visible; }
.player::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.player__frame { aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; }
.player--vertical { width: min(100% - 32px, calc((100vh - 120px) * 9 / 16)); }
.player--vertical .player__frame { aspect-ratio: 9 / 16; }
.player__frame iframe, .player__frame video, .player__frame img { width: 100%; height: 100%; border: 0; object-fit: contain; }
.player__close { position: absolute; top: -52px; right: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-size: 16px; cursor: pointer; }

/* mobile sticky CTA */
.mobile-cta { display: none; }

@media (max-width: 900px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .header__row { gap: 12px; }
  .menu-toggle { display: block; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 0; margin: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    padding: 4px 16px 20px; background: rgba(8, 8, 8, .97); border-bottom: 1px solid var(--line);
  }
  .nav.is-open a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 19px; font-weight: 500; color: var(--text); }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .card { padding: 26px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header__cta { display: none; }
  .hud { inset: 84px 16px 20px; font-size: 11px; }
  .hud .hud__bl, .hud .hud__br { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .works { grid-template-columns: 1fr; }
  .mobile-cta {
    display: flex; position: fixed; z-index: 40;
    left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
    transition: transform .3s var(--ease), opacity .3s;
  }
  .mobile-cta.is-hidden { transform: translateY(150%); opacity: 0; }
  .footer { padding-bottom: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
