:root {
  --paper: #f3f2ee;
  --ink: #0d0f14;
  --mute: #5c5f68;
  --line: #d9d7d0;
  --blue: #2c55ff;
  --night: #0b0d13;
  --night-2: #151925;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(243, 242, 238, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; text-decoration: none; }
.logo__dim { font-weight: 400; color: var(--mute); margin-left: 1px; }
.logo__mark { width: 18px; height: 18px; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); position: relative; }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--mute); }
.nav a:hover { color: var(--ink); }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; font: 600 12px/1 inherit; font-family: inherit; color: var(--mute); padding: 7px 9px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--ink); white-space: nowrap; }
.btn:hover { background: var(--blue); border-color: var(--blue); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { color: var(--paper); }
.btn--line { height: 38px; padding: 0 16px; background: transparent; color: var(--ink); font-size: 14px; }
.btn--line:hover { color: #fff; }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { color: #fff; }

/* hero */
.hero { position: relative; padding-top: 110px; padding-bottom: 120px; overflow: hidden; }
.eyebrow { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); margin-bottom: 26px; }
.eyebrow--inv { color: #8d93a6; }
.hero__title { font-size: clamp(44px, 7.4vw, 104px); line-height: .98; letter-spacing: -0.045em; max-width: 11.5em; position: relative; z-index: 1; }
.hero__row { display: flex; gap: 48px; align-items: flex-end; justify-content: space-between; margin-top: 56px; position: relative; z-index: 1; }
.hero__lead { max-width: 560px; color: var(--mute); font-size: 19px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.prism { position: absolute; right: -60px; top: 60px; width: 420px; height: 300px; transform: rotate(-14deg); opacity: .9; pointer-events: none; }
.prism span { display: block; height: 14px; margin: 0 0 10px auto; border-radius: 999px; }
.prism span:nth-child(1) { width: 100%; background: #ff5a4f; }
.prism span:nth-child(2) { width: 88%; background: #ffb341; }
.prism span:nth-child(3) { width: 76%; background: #2fd38b; }
.prism span:nth-child(4) { width: 64%; background: var(--blue); }
.prism span:nth-child(5) { width: 52%; background: #8b5cff; }

/* sections */
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 32px; margin-bottom: 40px; border-top: 1px solid var(--ink); padding-top: 22px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 48px); }
.sec-head p { color: var(--mute); max-width: 420px; font-size: 15px; }
.sec-head--inv { border-color: #3a3f4f; }

.work { padding-bottom: 120px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { display: block; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: #1a1d28; transition: transform .5s ease; }
.card:hover img { transform: scale(1.015); }
.card__meta { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font-size: 15px; }
.card__title { font-weight: 600; }
.card__type { color: var(--mute); text-align: right; }

.services { background: var(--night); color: #e9ebf2; padding: 110px 0 120px; }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.cols h3 { font-size: 20px; margin-bottom: 14px; }
.cols p { color: #a3a9bb; font-size: 15px; }

.process { padding-top: 110px; padding-bottom: 120px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; }
.steps li { border-top: 1px solid var(--line); padding-top: 18px; }
.steps__n { display: block; font-size: 13px; color: var(--blue); font-weight: 700; margin-bottom: 26px; }
.steps h3 { font-size: 19px; margin-bottom: 10px; }
.steps p { color: var(--mute); font-size: 15px; }

.portal { background: var(--night-2); color: #eceef5; padding: 100px 0; }
.portal__in { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
.portal h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 18px; }
.portal p { color: #a7adc0; max-width: 560px; margin-bottom: 30px; }
.portal__list { list-style: none; margin: 0; padding: 0; }
.portal__list li { padding: 16px 0; border-bottom: 1px solid #2c3243; font-size: 16px; }
.portal__list li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 14px; vertical-align: middle; }

.contact { padding-top: 120px; padding-bottom: 130px; }
.contact h2 { font-size: clamp(38px, 6vw, 76px); letter-spacing: -0.04em; }
.contact__lead { color: var(--mute); max-width: 620px; margin: 22px 0 34px; font-size: 19px; }
.contact__mail { font-size: clamp(22px, 3vw, 34px); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.contact__mail:hover { color: var(--blue); }

.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; color: var(--mute); }
.foot__in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* video dialog */
.player { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 100%; }
.player::backdrop { background: rgba(6, 7, 11, .88); }
.player__box { position: relative; padding-top: 50px; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; }
.player__cap { color: #c9cdd9; font-size: 14px; margin-top: 12px; }
.player__close { position: absolute; right: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #555b6c; background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }

/* inner pages */
.page { padding-top: 90px; padding-bottom: 120px; max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.04em; margin-bottom: 28px; }
.page h2 { font-size: 22px; margin: 40px 0 12px; }
.page p, .page li { color: #3d4049; }
.page p + p { margin-top: 14px; }
.status-list { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--line); }
.status-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ok { color: #138a4b; font-weight: 600; }
.ok::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #1fb866; margin-right: 10px; vertical-align: middle; }
.status-banner { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: #e3f4ea; border-radius: 8px; color: #0f5e35; font-weight: 600; }

@media (max-width: 1000px) {
  .nav { display: none; }
  .cols { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .portal__in { grid-template-columns: 1fr; gap: 36px; }
  .prism { width: 300px; right: -120px; opacity: .5; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .top__in { gap: 12px; height: 60px; }
  .top__right { gap: 10px; }
  .top .btn--line { display: none; }
  .hero { padding-top: 64px; padding-bottom: 80px; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 32px; }
  .hero__lead { font-size: 17px; }
  .prism { top: 10px; right: -170px; opacity: .35; }
  .grid, .cols, .steps { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; gap: 10px; }
  .card__meta { flex-direction: column; gap: 2px; }
  .card__type { text-align: left; }
  .services, .process, .contact { padding-top: 72px; padding-bottom: 80px; }
  .portal { padding: 72px 0; }
}
.page__note { margin-top: 30px; color: var(--mute); font-size: 15px; }

/* v4: фильмы целиком, тестовые материалы */
a.card { text-decoration: none; }
.band { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-top: 44px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.band:hover { border-color: var(--ink); background: #fff; }
.band__k { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.band__t { color: var(--mute); font-size: 16px; }
.band__a { font-size: 22px; }

.film { padding-top: 44px; padding-bottom: 110px; }
.back { display: inline-block; color: var(--mute); text-decoration: none; font-size: 15px; margin-bottom: 26px; }
.back:hover { color: var(--ink); }
.film__head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.film__head h1 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.045em; line-height: 1; }
.film__type { color: var(--mute); font-size: 16px; }
.film__player video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; }
.film__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 0 0; font-size: 14px; color: var(--mute); }
.qsel { display: flex; gap: 6px; }
.qsel button { border: 1px solid var(--line); background: transparent; color: var(--mute); font: 600 13px/1 inherit; font-family: inherit; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.qsel button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.qsel__auto { font-weight: 600; color: var(--ink); }
.film__about { max-width: 720px; font-size: 21px; line-height: 1.5; margin-top: 46px; }
.film__note { max-width: 720px; color: var(--mute); font-size: 15px; margin-top: 18px; }
.film__next { display: flex; flex-direction: column; gap: 6px; margin-top: 70px; padding-top: 22px; border-top: 1px solid var(--ink); text-decoration: none; color: var(--mute); font-size: 14px; }
.film__next b { color: var(--ink); font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.03em; }
.film__next:hover b { color: var(--blue); }

.tmp { padding-top: 80px; padding-bottom: 120px; }
.tmp__head { max-width: 780px; margin-bottom: 56px; }
.tmp__head h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.045em; margin-bottom: 22px; }
.tmp__lead { color: var(--mute); font-size: 19px; }
.tm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 46px 34px; }
.tm video { width: 100%; aspect-ratio: 16 / 9; background: #111; border-radius: 6px; }
.tm h2 { font-size: 22px; margin: 18px 0 8px; }
.tm__code { color: var(--blue); font-size: 15px; font-weight: 700; letter-spacing: .04em; margin-right: 6px; }
.tm p { color: var(--mute); font-size: 15px; }
.tm__spec { list-style: none; padding: 0; margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tm__spec li { font-size: 12.5px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: #3d4049; }
.tm__dl { height: 42px; font-size: 14px; }
.tm__prev { display: inline-block; margin-left: 14px; font-size: 14px; color: var(--mute); }
.tm-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 90px; padding-top: 28px; border-top: 1px solid var(--ink); }
.tm-extra h2 { font-size: 26px; margin-bottom: 12px; }
.tm-extra p { color: var(--mute); font-size: 15px; margin-bottom: 18px; }
.tmp__terms { font-size: 13.5px !important; }
.link { color: var(--blue); font-weight: 600; }

@media (max-width: 1000px) {
  .tm-grid, .tm-extra { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .band { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 18px; }
  .band__t { grid-column: 1 / -1; grid-row: 2; font-size: 15px; }
  .film { padding-top: 28px; }
  .film__about { font-size: 18px; margin-top: 32px; }
  .tmp { padding-top: 48px; }
  .tm__prev { display: block; margin: 12px 0 0; }
}
