@font-face {
  font-family: "Akzidenz-Grotesk Pro";
  src: local("Akzidenz-Grotesk Pro Light"), url("../fonts/akzidenz-grotesk-pro-300.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Akzidenz-Grotesk Pro";
  src: local("Akzidenz-Grotesk Pro"), url("../fonts/akzidenz-grotesk-pro-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Akzidenz-Grotesk Pro";
  src: local("Akzidenz-Grotesk Pro Med"), url("../fonts/akzidenz-grotesk-pro-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Akzidenz-Grotesk Pro";
  src: local("Akzidenz-Grotesk Pro Bold"), url("../fonts/akzidenz-grotesk-pro-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --paper:   #F4F2ED;
  --paper-2: #ECE9E2;
  --paper-3: #E2DED5;
  --white:   #FBFAF7;
  --ink:     #101215;
  --ink-2:   #2B2F36;
  --ink-3:   #5B6069;
  --mute:    #85888E;
  --line:    rgba(16, 18, 21, .14);
  --line-2:  rgba(16, 18, 21, .3);
  --accent:  #1F4AC1;
  --on-accent: #fff;
  --err:     #B3362B;
  --day:     #F4F2ED;
  --night:   #101215;
  --scene-night: #101215;
  --scene-night-fg: #F4F2ED;

  --f-display: "Akzidenz-Grotesk Pro", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Akzidenz-Grotesk Pro", "Helvetica Neue", Arial, sans-serif;

  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --wrap: 1280px;
  --gut: clamp(20px, 4vw, 48px);
  --header-h: 84px;
}

[data-theme="dark"] {
  --paper:   #111316;
  --paper-2: #171A1E;
  --paper-3: #1F2328;
  --white:   #1A1D21;
  --ink:     #ECE9E2;
  --ink-2:   #C9C5BC;
  --ink-3:   #979AA0;
  --mute:    #7A7E85;
  --line:    rgba(236, 233, 226, .13);
  --line-2:  rgba(236, 233, 226, .3);
  --accent:  #8EA8FF;
  --on-accent: #0B0C0E;
  --err:     #F2A196;
  --scene-night: #050607;
  --scene-night-fg: #ECE9E2;
  color-scheme: dark;
}
.section--ink, .auth__side, .cookie { --paper: var(--day); --ink: var(--night); --accent: #9DB4FF; --on-accent: #0B0C0E; }
[data-theme="dark"] .section--ink, [data-theme="dark"] .auth__side, [data-theme="dark"] .cookie { --night: #08090B; }
[data-theme="dark"] .section--ink { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
[data-theme="dark"] picture:not(.auth__logo) img, [data-theme="dark"] img.brand__logo { filter: invert(.91); }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: block; }
picture > img { width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-size: 14px; color: var(--ink-3); }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 0;
  font: 500 15px/1 var(--f-body);
  cursor: pointer;
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link {
  color: inherit; text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 4px; text-decoration-color: var(--line-2);
  transition: text-decoration-color .3s, color .3s;
}
.link:hover { text-decoration-color: currentColor; }

.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 55%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(16, 18, 21, .35);
}
.menu-open .header.is-scrolled { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height .5s var(--ease-out); }
.header.is-scrolled .header__in { height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 56px; transition: width .5s var(--ease-out); }
.header.is-scrolled .brand__logo { width: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font: 700 19px/1 var(--f-display); letter-spacing: .04em; }
.brand__sub { margin-top: 4px; font-size: 13px; color: var(--ink-3); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav__list a { font-size: 15px; color: var(--ink-2); padding: 4px 0; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.nav__list a:hover, .nav__list a.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 14px; }

.burger {
  display: none; position: relative; z-index: 60;
  width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 0;
  background: transparent; cursor: pointer;
}
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease-out), top .4s var(--ease-out); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 40; background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--gut) 48px;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease-out), visibility 0s .4s;
}
.menu-open .mmenu { opacity: 1; visibility: visible; transition: opacity .4s var(--ease-out); }
.mmenu ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mmenu li { border-bottom: 1px solid var(--line); }
.mmenu a { display: block; padding: 16px 0; font: 500 28px/1.2 var(--f-display); }
.menu-open { overflow: hidden; }

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; padding-top: var(--header-h);
}
.hero__grid {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
  padding-top: 32px; padding-bottom: 48px;
}
.hero__title { margin: 0; font: 500 clamp(38px, 4.6vw, 76px)/1.04 var(--f-display); letter-spacing: -.025em; }
.hero__lead { max-width: 440px; margin: 28px 0 36px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--ink-2); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.hero__tel { font-size: 15px; color: var(--ink-3); line-height: 1.4; }
.hero__tel a { display: block; color: var(--ink); font-size: 18px; font-weight: 500; }
.hero__tel a:hover { color: var(--accent); }

.dial { position: relative; width: min(100%, 560px); aspect-ratio: 1; }
.dial__logo { position: absolute; left: 50%; top: 50%; width: 74%; transform: translate(-50%, -49%); }
.dial__logo img { width: 100%; user-select: none; -webkit-user-drag: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__bar { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 12px 32px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); }
.hero__bar b { font-weight: 500; color: var(--ink); }
.hero__bar a:hover { color: var(--accent); }

.section { padding: clamp(80px, 10vw, 136px) 0; }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }

.split { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.4fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.split > .h2 { position: sticky; top: 100px; }
.h2 { margin: 0; font: 500 clamp(30px, 3.4vw, 48px)/1.08 var(--f-display); letter-spacing: -.02em; }
.h2 small { display: block; margin-top: 12px; font: 400 15px/1.5 var(--f-body); letter-spacing: 0; color: var(--ink-3); }
.section--ink .h2 small { color: rgba(244, 242, 237, .6); }

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
.about__photo { margin: 0; }
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-3); }
.about__photo figcaption { margin-top: 10px; font-size: 14px; color: var(--mute); }
.about__text p { margin: 0 0 16px; font-size: 18px; color: var(--ink-2); }
.about__text p:first-child { font-size: clamp(20px, 1.7vw, 23px); line-height: 1.45; color: var(--ink); }

.facts { margin: 40px 0 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.facts dt { color: var(--ink-3); font-size: 16px; }
.facts dd { margin: 0; font-weight: 500; font-size: 18px; font-variant-numeric: tabular-nums; text-align: right; }

.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.news__item a { display: grid; grid-template-columns: 120px minmax(0, 1fr) 160px; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.news__item a:hover { background: color-mix(in srgb, var(--white) 70%, transparent); }
.news__item a:hover .news__title { color: var(--accent); }
.news__date { font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 3px; }
.news__title { margin: 0 0 8px; font: 500 21px/1.3 var(--f-display); transition: color .3s; }
.news__text { margin: 0; color: var(--ink-3); font-size: 16px; }
.news__img { width: 160px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-3); }
.empty { display: flex; align-items: center; gap: 12px; padding: 32px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); color: var(--ink-3); }
.empty svg { width: 22px; height: 22px; flex: none; }

.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.person__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-3); }
.person__role { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.person__name { margin: 4px 0 10px; font: 500 20px/1.3 var(--f-display); }
.person__text { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.person__tel { display: inline-block; margin-top: 14px; font-size: 15px; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.person__tel:hover { color: var(--accent); border-color: var(--accent); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 24px); }
.gallery__item { margin: 0; cursor: zoom-in; }
.gallery__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-3); transition: opacity .3s; }
.gallery__item:hover img { opacity: .88; }
.gallery__item figcaption { margin-top: 10px; font-size: 15px; color: var(--ink-2); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 6vh 6vw;
  background: rgba(16, 18, 21, .94);
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-out);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox figure { margin: 0; max-width: 1200px; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; }
.lightbox figcaption { margin-top: 14px; color: rgba(255, 255, 255, .75); text-align: center; font-size: 15px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox__close:hover { background: rgba(255, 255, 255, .1); }
.lightbox__close svg { width: 18px; height: 18px; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(40px, 6vw, 96px); }
.contact__list { margin: 0; border-top: 1px solid rgba(244, 242, 237, .5); }
.contact__list div { padding: 16px 0; border-bottom: 1px solid rgba(244, 242, 237, .16); }
.contact__list dt { font-size: 14px; color: rgba(244, 242, 237, .55); margin-bottom: 2px; }
.contact__list dd { margin: 0; font-size: 19px; }
.contact__list a:hover { color: #9DB4FF; }
.socials { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 24px; font-size: 15px; }
.socials a { border-bottom: 1px solid rgba(244, 242, 237, .3); transition: border-color .3s; }
.socials a:hover { border-color: var(--paper); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; color: rgba(244, 242, 237, .65); }
.field label i { font-style: normal; color: rgba(244, 242, 237, .4); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid rgba(244, 242, 237, .28); border-radius: 0;
  background: rgba(255, 255, 255, .04); color: var(--paper); font-size: 17px; outline: none; resize: vertical;
  transition: border-color .3s, background-color .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--paper); background: rgba(255, 255, 255, .07); }
.field textarea { min-height: 120px; line-height: 1.5; }
.field input:-webkit-autofill { -webkit-text-fill-color: var(--paper); transition: background-color 9999s; }
.form__foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 6px; }
.form__note { margin: 0; max-width: 440px; color: rgba(244, 242, 237, .5); font-size: 14px; line-height: 1.5; }
.form__alert { grid-column: 1 / -1; font-size: 15px; display: none; padding: 12px 14px; border-left: 2px solid currentColor; }
.form__alert.is-shown { display: block; }
.form__alert.ok { color: #9BD5AE; }
.form__alert.err { color: #F2A196; }
.spin { width: 16px; height: 16px; border: 1.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-loading .spin { display: block; }

.check { grid-column: 1 / -1; position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; line-height: 1.5; color: rgba(244, 242, 237, .8); }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.check__box { flex: none; width: 20px; height: 20px; margin-top: 2px; border: 1px solid rgba(244, 242, 237, .5); display: grid; place-items: center; color: var(--ink); transition: background-color .2s, border-color .2s; }
.check__box svg { width: 13px; height: 13px; opacity: 0; }
.check input:checked + .check__box { background: var(--paper); border-color: var(--paper); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid #9DB4FF; outline-offset: 3px; }
.check input:user-invalid + .check__box { border-color: #F2A196; }
.check a, .form__note a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(244, 242, 237, .4); text-underline-offset: 3px; }
.check a:hover, .form__note a:hover { text-decoration-color: var(--paper); }

.footer { --paper: var(--day); --ink: var(--night); --line: rgba(244, 242, 237, .14); --line-2: rgba(244, 242, 237, .3); --ink-3: rgba(244, 242, 237, .55);
  position: relative; background: var(--night); color: var(--day); padding: clamp(64px, 8vw, 112px) 0 32px; border-top: 1px solid rgba(244, 242, 237, .12); overflow: hidden; }
[data-theme="dark"] .footer { --night: #08090B; }
.footer__label { margin: 0 0 8px; font-size: 16px; color: rgba(244, 242, 237, .6); }
.fstage { --px: 8px; position: relative; margin-bottom: clamp(48px, 6vw, 72px); border-bottom: 2px solid rgba(244, 242, 237, .5); }
.fstage__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px calc(var(--px) * 20); min-height: calc(var(--px) * 22); padding-top: 28px; }
.fstage__item { position: relative; display: grid; gap: 10px; color: var(--day); }
.fstage__item small { font-size: 14px; color: rgba(244, 242, 237, .5); }
.fstage__item span {
  display: block; width: max-content; max-width: 100%; line-height: 1; margin-bottom: calc(var(--px) * 5.5 - .5em); overflow-wrap: anywhere;
  background: linear-gradient(#F5B83D, #F5B83D) 0 100% / 0 3px no-repeat; padding-bottom: 6px;
  transition: background-size .5s var(--ease-out), color .3s;
}
.fstage__item--phone span { font: 500 clamp(36px, 5.6vw, 88px)/1 var(--f-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; padding-bottom: 8px; }
.fstage__item--mail span { font: 400 clamp(20px, 2vw, 28px)/1 var(--f-body); }
.fstage__item:hover span, .fstage__item.is-pointed span { background-size: 100% 3px; color: #FFE3A3; }
.fstage__item.is-pointed small { color: #F5B83D; }
.fstage .sema { z-index: 2; }
.fstage .sema__say { font-size: 15px; }
@media (max-width: 900px) {
  .fstage { --px: 6px; }
  .fstage__row { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 22px; padding-right: calc(var(--px) * 18 + 8px); min-height: 0; }
  .fstage__item--phone span { margin-bottom: 0; }
}
@media (max-width: 620px) {
  .fstage { --px: 5px; }
  .fstage__item--phone span { font-size: clamp(30px, 9vw, 40px); }
  .fstage__item--mail span { font-size: 18px; }
}
.footer__bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px clamp(28px, 4vw, 64px); align-items: start; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid rgba(244, 242, 237, .14); }
.footer__legal { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(244, 242, 237, .55); max-width: 520px; }
.footer__legal b { display: block; font-weight: 500; color: var(--day); font-size: 15px; margin-bottom: 4px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.footer__links a { color: rgba(244, 242, 237, .8); border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; }
.footer__links a:hover { color: #fff; border-color: rgba(244, 242, 237, .5); }
.footer__copy { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; margin: 8px 0 0; font-size: 13.5px; color: rgba(244, 242, 237, .4); }
@media (max-width: 1000px) {
  .footer__bottom { grid-template-columns: 1fr 1fr; }
  .footer__legal { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .footer__bottom { grid-template-columns: 1fr; }
}

.article { padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(80px, 10vw, 136px); }
.article__in { max-width: 760px; margin: 0 auto; }
.article__back { display: inline-block; margin-bottom: 40px; font-size: 15px; color: var(--ink-3); }
.article__meta { color: var(--ink-3); margin-bottom: 14px; font-size: 15px; }
.article__title { margin: 0 0 36px; font: 500 clamp(32px, 4.4vw, 54px)/1.08 var(--f-display); letter-spacing: -.02em; }
.article__img { margin: 0 0 40px; }
.article__img img { width: 100%; }
.article__body { font-size: clamp(18px, 1.3vw, 19px); line-height: 1.75; color: var(--ink-2); white-space: pre-wrap; margin: 0; }
.article__foot { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; color: var(--ink-3); }

.cookie {
  position: fixed; z-index: 90; left: 16px; bottom: 16px;
  width: min(calc(100% - 32px), 560px);
  display: flex; align-items: center; gap: 20px; padding: 16px 16px 16px 20px;
  background: var(--ink); color: rgba(244, 242, 237, .85);
  transform: translateY(calc(100% + 24px)); transition: transform .6s var(--ease-out);
}
.cookie.is-shown { transform: none; }
.cookie p { margin: 0; font-size: 14px; line-height: 1.5; }
.cookie a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.cookie .btn { flex: none; height: 42px; padding: 0 18px; font-size: 14px; }

.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; border-bottom: 1px solid var(--line); }
.legal { max-width: 820px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); }
.legal h1 { font: 500 clamp(30px, 4vw, 48px)/1.1 var(--f-display); letter-spacing: -.02em; margin: 0 0 12px; }
.legal__meta { color: var(--ink-3); }
.legal h2 { font: 500 21px/1.3 var(--f-display); margin: 48px 0 16px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.legal h2 span { margin-right: 8px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16.5px; line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .op { margin: 32px 0 0; padding: 18px 20px; border: 1.5px solid var(--ink); }
.legal .op p { margin: 0 0 4px; font-size: 15.5px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); line-height: 1.55; }
.legal th { width: 32%; font-weight: 500; color: var(--ink); }

.admin-body { min-height: 100vh; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth__side { background: var(--ink); color: var(--paper); padding: 40px clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; }
.auth__side .brand__sub { color: rgba(244, 242, 237, .55); }
.auth__logo { width: min(66%, 340px); margin: 40px auto; filter: invert(1) hue-rotate(180deg); }
.auth__side p { color: rgba(244, 242, 237, .55); margin: 0; font-size: 14px; }
.auth__main { display: grid; place-items: center; padding: 40px var(--gut); }
.auth__form { width: 100%; max-width: 380px; }
.auth__form h1 { font: 500 34px/1.1 var(--f-display); margin: 0 0 8px; }
.auth__form > p { color: var(--ink-3); margin: 0 0 32px; }

.afield { position: relative; margin-bottom: 20px; }
.afield label { display: block; margin-bottom: 8px; }
.afield input, .afield textarea {
  width: 100%; padding: 13px 14px; background: var(--white); border: 1px solid var(--line-2); border-radius: 0;
  font-size: 16px; outline: none; resize: vertical; transition: border-color .3s;
}
.afield input:focus, .afield textarea:focus { border-color: var(--ink); }
.afield .eye { position: absolute; right: 4px; bottom: 4px; width: 42px; height: 42px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.afield .eye:hover { color: var(--ink); }
.afield .eye svg { width: 18px; height: 18px; }
.alert-err { margin-bottom: 24px; padding: 12px 14px; border-left: 2px solid var(--err); background: rgba(179, 54, 43, .07); color: var(--err); font-size: 15px; }
.caps { margin-top: 8px; color: #9A6B00; font-size: 13px; }

.dash { max-width: 1080px; margin: 0 auto; padding: 0 var(--gut); }
.dash__top { display: flex; align-items: center; justify-content: space-between; height: 84px; border-bottom: 1px solid var(--line); }
.dash__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); padding: 48px 0 88px; align-items: start; }
.dash h1, .dash h2 { font: 500 26px/1.15 var(--f-display); margin: 0 0 28px; }
.drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--line-2); background: var(--white); cursor: pointer; transition: border-color .3s; }
.drop:hover { border-color: var(--ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.drop span { color: var(--ink-3); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.list li { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list .mono { color: var(--mute); }
.list .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list a.t:hover { color: var(--accent); }
.del { border: 1px solid transparent; background: transparent; color: var(--err); cursor: pointer; padding: 6px 12px; font-size: 14px; }
.del:hover { border-color: rgba(179, 54, 43, .4); }

@media (max-width: 1080px) {
  .nav__list { gap: 18px; }
  .team, .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 20px; padding-top: 16px; }
  .hero__visual { order: -1; }
  .dial { width: min(80vw, 420px); }
  .split { grid-template-columns: 1fr; }
  .split > .h2 { position: static; }
        }
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav { display: none; }
  .burger { display: block; }
  .brand__logo { width: 46px; }
  .hero__bar { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .about, .contact { grid-template-columns: 1fr; }
  .news__item a { grid-template-columns: 1fr; gap: 6px; }
  .news__img { width: 100%; max-width: 360px; grid-row: 1; }
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .dash__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .brand__sub { display: none; }
  .team, .gallery { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero__bar { grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 14px; }
  .hero__cta .btn { width: 100%; }
              .cookie { flex-direction: column; align-items: stretch; gap: 12px; }
  .legal th, .legal td { display: block; width: 100%; padding: 4px 0; border: 0; }
  .legal tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
}
.dash__actions { display: flex; align-items: center; gap: 28px; }
.dash__actions form { margin: 0; }
.link--btn { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.leads { padding: 0 0 88px; }
.leads__wrap { overflow-x: auto; border-top: 1px solid var(--ink); }
.leads__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.leads__table th { text-align: left; font-weight: 500; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.leads__table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.leads__date { color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.leads__msg { min-width: 240px; max-width: 420px; white-space: pre-line; overflow-wrap: anywhere; }
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.services li { display: grid; grid-template-columns: calc(var(--px) * 44) minmax(0, 1fr); gap: 20px clamp(24px, 3vw, 44px); align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); --px: 5px; }
.svc__cv { display: block; width: calc(var(--px) * 44); height: calc(var(--px) * 26); image-rendering: pixelated; }
.svc__text { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); gap: 8px 28px; align-items: baseline; }
.services h3 { margin: 0; font: 500 20px/1.3 var(--f-display); }
.services p { margin: 0; color: var(--ink-3); font-size: 16.5px; line-height: 1.55; }
@media (max-width: 620px) {
  .services li { grid-template-columns: 1fr; gap: 12px; padding: 20px 0; --px: 4px; }
  .svc__text { grid-template-columns: 1fr; gap: 6px; }
}
.about--single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.boss { margin: 0; border-top: 1px solid var(--ink); }
.boss div { display: grid; grid-template-columns: minmax(140px, .6fr) minmax(0, 1.4fr) auto; gap: 8px 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.boss dt { color: var(--ink-3); font-size: 16px; }
.boss dd { margin: 0; }
.boss__name { font: 500 clamp(22px, 2vw, 28px)/1.2 var(--f-display); }
@media (max-width: 620px) { .boss div { grid-template-columns: 1fr; } }

.theme-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px 0 12px;
  border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer;
  font: 400 14px/1 var(--f-body); transition: border-color .3s, background-color .3s;
}
.theme-btn:hover { border-color: var(--ink); }
.theme-btn svg { width: 18px; height: 18px; flex: none; transition: transform .9s cubic-bezier(.65, 0, .25, 1); }
.theme-btn .sun { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.theme-btn .half { fill: currentColor; }
[data-theme="dark"] .theme-btn svg { transform: rotate(180deg); }
.header .theme-btn { margin-left: -12px; }

.sema-track { --px: 5px; position: absolute; left: var(--gut); right: var(--gut); bottom: 100%; height: calc(var(--px) * 21); pointer-events: none; z-index: 5; }
.sema {
  position: absolute; left: 0; bottom: calc(var(--px) * -3); width: calc(var(--px) * 18); height: calc(var(--px) * 24);
  padding: 0; border: 0; background: none; cursor: pointer; pointer-events: auto;
  transform: translate(var(--x, 0px), var(--y, 0px)); will-change: transform; z-index: 2; -webkit-tap-highlight-color: transparent;
}
.sema:focus-visible { outline: 2px dashed var(--accent); outline-offset: 2px; }
.sema__cv { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.sema__say {
  position: absolute; left: 50%; bottom: calc(100% - var(--px) * 3); width: max-content; max-width: min(300px, 70vw);
  padding: 10px 14px; background: var(--paper); color: var(--ink); font-size: 14.5px; line-height: 1.4; text-align: left;
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink);
  transform: translate(calc(-50% + var(--shift, 0px)), 6px); opacity: 0; transition: opacity .25s, transform .25s var(--ease-out); pointer-events: none;
}
.sema__say:empty { display: none; }
.sema__say::after {
  content: ""; position: absolute; left: calc(50% - 6px - var(--shift, 0px)); top: calc(100% + 3px); width: 12px; height: 9px; background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 100% 34%, 67% 34%, 67% 67%, 34% 67%, 34% 100%, 0 100%);
}
.sema__say.is-on { opacity: 1; transform: translate(calc(-50% + var(--shift, 0px)), 0); transition: opacity .25s, transform .12s linear; }
.sema__say b { font-weight: 500; }

.sema-chat {
  position: absolute; bottom: calc(var(--px) * 22 + 14px); left: 0; z-index: 6; width: min(380px, calc(100vw - 2 * var(--gut)));
  display: flex; flex-direction: column; max-height: min(460px, 62vh);
  background: var(--paper); color: var(--ink); pointer-events: auto;
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink), 10px 10px 0 rgba(16, 18, 21, .14);
  opacity: 0; transform: translateY(10px) scale(.98); transform-origin: 50% 100%;
  transition: opacity .22s, transform .3s var(--ease-out);
}
.sema-chat.is-on { opacity: 1; transform: none; }
.sema-chat__head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-bottom: 3px solid var(--ink); }
.sema-chat__ava { --px: 2px; width: 36px; height: 48px; margin: -6px 0 -8px; image-rendering: pixelated; }
.sema-chat__head div { flex: 1; display: grid; line-height: 1.2; }
.sema-chat__head b { font-weight: 500; font-size: 16px; }
.sema-chat__head span { font-size: 13px; color: var(--ink-3); }
.sema-chat__x { width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; }
.sema-chat__x:hover { background: var(--paper-3); }
.sema-chat__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; }
.sema-chat__log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; display: grid; gap: 10px; align-content: start; scrollbar-width: thin; }
.sema-chat__msg { max-width: 88%; padding: 9px 12px; font-size: 14.5px; line-height: 1.5; }
.sema-chat__msg.is-bot { justify-self: start; background: var(--paper-2); box-shadow: inset 3px 0 0 #F5B83D; }
.sema-chat__msg.is-me { justify-self: end; background: var(--ink); color: var(--paper); }
.sema-chat__act { display: inline-block; margin: 8px 12px 0 0; font-weight: 500; border-bottom: 2px solid #F5B83D; }
.sema-chat__act:hover { color: var(--accent); }
.sema-chat__dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.sema-chat__dots i { width: 6px; height: 6px; background: var(--ink-3); animation: sema-dot .9s steps(1) infinite; }
.sema-chat__dots i:nth-child(2) { animation-delay: .15s; }
.sema-chat__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sema-dot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.sema-chat__opts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; border-top: 1px solid var(--line); }
.sema-chat__opts button {
  padding: 7px 11px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink);
  font: 400 13.5px/1.2 var(--f-body); cursor: pointer; transition: background-color .15s, color .15s, transform .15s;
}
.sema-chat__opts button:hover, .sema-chat__opts button:focus-visible { background: var(--ink); color: var(--paper); outline: none; }
.sema-chat__opts button:active { transform: translateY(2px); }
@media (max-width: 900px) { .sema-track { --px: 4px; } }
@media (max-width: 620px) {
  .sema-chat { position: fixed; left: 12px !important; right: 12px; bottom: 12px; width: auto; max-height: 70vh; z-index: 95; }
}

.e404 { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.e404__main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(32px, 6vw, 96px); padding-top: calc(var(--header-h) + 32px); padding-bottom: 64px; }
.e404__code { margin: 0 0 18px; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.e404 h1 { margin: 0; font: 500 clamp(40px, 5vw, 76px)/1.03 var(--f-display); letter-spacing: -.025em; }
.e404__lead { max-width: 480px; margin: 24px 0 32px; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.e404__lead code { font: inherit; padding: 1px 6px; background: var(--paper-3); color: var(--ink); overflow-wrap: anywhere; }
.e404__cta { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.e404__status { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-3); min-height: 1.6em; }
.e404__status b { color: var(--ink); font-weight: 500; }
.e404.is-on .e404__status b { color: #2E9B5B; }

.board { position: relative; justify-self: center; width: min(100%, 560px); padding-bottom: 20px; }
.board__lamp { position: relative; width: 74px; margin: 0 auto 18px; }
.board__lamp svg { width: 100%; overflow: visible; }
.board__lamp .wire, .board__lamp .bulb, .board__lamp .base { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.board__lamp .glass { fill: var(--paper); transition: fill .4s; }
.board__lamp .glow { fill: #F5B83D; opacity: 0; transition: opacity .5s; }
.e404.is-on .board__lamp .glass { fill: #F5B83D; }
.e404.is-on .board__lamp .glow { opacity: .28; }
.board__box { position: relative; border: 2px solid var(--ink); background: var(--paper-2); padding: 22px 26px 26px; }
.board__box::before { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 14px; transform: translateY(-50%); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); opacity: .5; }
.board__head { position: relative; display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.board__row { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cb { display: grid; justify-items: center; gap: 12px; }
.cb__label { font: 700 clamp(48px, 7vw, 84px)/1 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cb__face { position: relative; width: 100%; max-width: 104px; aspect-ratio: 1 / 1.9; background: var(--paper); border: 2px solid var(--ink); display: grid; place-items: center; }
.cb__slot { position: relative; width: 38%; height: 52%; border: 2px solid var(--ink); background: var(--paper-3); }
.cb__lever {
  position: absolute; left: -2px; right: -2px; height: 46%; top: -2px;
  background: var(--ink); border: 0; padding: 0; cursor: default;
  transition: top .35s cubic-bezier(.3, 1.6, .5, 1);
}
.cb.is-off .cb__lever { top: calc(54% + 2px); cursor: pointer; }
.cb.is-off .cb__lever:hover { background: var(--accent); }
.cb__dot { position: absolute; top: 9%; left: 50%; width: 10px; height: 10px; margin-left: -5px; background: #2E9B5B; }
.cb.is-off .cb__dot { background: #D2412F; }
.cb__mark { position: absolute; bottom: 8%; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--ink-3); }
.cb.is-off .cb__face { animation: cb-shake 4s ease-in-out infinite 1.5s; }
@keyframes cb-shake { 0%, 88%, 100% { transform: none; } 90% { transform: translateX(-2px); } 92% { transform: translateX(2px); } 94% { transform: translateX(-1px); } }
.board__spark { position: absolute; width: 22px; height: 22px; pointer-events: none; opacity: 0; }
.board__spark path { fill: none; stroke: #F5B83D; stroke-width: 2; stroke-linecap: round; }
.e404:not(.is-on) .board__spark { animation: spark 3.2s steps(1) infinite 1s; }
@keyframes spark { 0%, 84%, 100% { opacity: 0; } 86%, 90% { opacity: 1; } 88% { opacity: .2; } }
.board .sema-spot { --px: 5px; position: absolute; right: 22px; bottom: calc(100% - 13px); width: calc(var(--px) * 18); height: calc(var(--px) * 24); }
.board .sema-spot .sema { transform: none; bottom: 0; }
.board .sema-spot .sema__say { left: auto; right: 0; transform: translate(0, 6px); }
.board .sema-spot .sema__say.is-on { transform: none; }
.board .sema-spot .sema__say::after { left: auto; right: 26px; }

@media (max-width: 1000px) {
  .e404__main { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 64px); }
  .board { order: -1; width: min(100%, 420px); }
}

.doc-progress { position: fixed; z-index: 60; left: 0; top: 0; height: 3px; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.doc-top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 55%, transparent); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); box-shadow: 0 1px 0 var(--line); }
.doc-top__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 72px; }
.doc-top__act { display: flex; align-items: center; gap: 12px; }
.doc-top .brand__logo { width: 46px; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 88px); align-items: start; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(72px, 9vw, 120px); }
.doc__cover { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; padding-bottom: 32px; border-bottom: 2px solid var(--ink); }
.doc__kind { margin: 0 0 14px; font-size: 15px; color: var(--ink-3); }
.doc__cover h1 { margin: 0; max-width: 820px; font: 500 clamp(34px, 4.6vw, 64px)/1.04 var(--f-display); letter-spacing: -.025em; }
.doc__meta { margin: 0; display: grid; grid-template-columns: auto auto; border: 1.5px solid var(--ink); font-size: 14px; }
.doc__meta div { padding: 8px 14px; border-bottom: 1px solid var(--ink); }
.doc__meta div:nth-child(odd) { border-right: 1px solid var(--ink); }
.doc__meta div:nth-last-child(-n+2) { border-bottom: 0; }
.doc__meta dt { font-size: 12px; color: var(--ink-3); }
.doc__meta dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc .legal { max-width: 760px; margin: 0; padding: 0 0 0 clamp(0px, 5vw, 64px); }
.doc .legal > h1, .doc .legal > .legal__meta { display: none; }
.doc .legal h2 { position: relative; margin: 56px 0 18px; padding-top: 22px; border-top: 1px solid var(--line); font: 500 24px/1.25 var(--f-display); scroll-margin-top: 96px; }
.doc .legal h2 span { position: absolute; left: -64px; top: 24px; width: 48px; text-align: right; font-size: 15px; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.doc .legal p, .doc .legal li { font-size: 17px; line-height: 1.75; }
.doc .legal .op { margin: 0 0 8px; padding: 0; border: 1.5px solid var(--ink); display: grid; }
.doc .legal .op p { margin: 0; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.doc .legal .op p:last-child { border-bottom: 0; }
.doc .legal .op p:first-child { background: var(--paper-2); }
.doc .legal table { margin: 12px 0 22px; border-top: 1.5px solid var(--ink); }
.doc .legal th { width: 30%; font-size: 14.5px; color: var(--ink-3); font-weight: 400; }
.doc .legal td { color: var(--ink); }
.doc__toc { position: sticky; top: 104px; font-size: 14.5px; }
.doc__toc p { margin: 0 0 12px; color: var(--ink-3); font-size: 13px; }
.doc__toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc__toc a { position: relative; display: block; padding: 7px 0 7px 16px; color: var(--ink-3); line-height: 1.35; transition: color .3s; }
.doc__toc a::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--ink); transform: scaleY(0); transition: transform .35s var(--ease-out); }
.doc__toc a:hover { color: var(--ink); }
.doc__toc a.is-active { color: var(--ink); }
.doc__toc a.is-active::before { transform: none; }
.doc__side-act { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14.5px; }
.doc__side-act a { color: var(--ink-2); border-bottom: 1px solid var(--line-2); justify-self: start; }
.doc__side-act a:hover { color: var(--accent); border-color: var(--accent); }
.doc__print { justify-self: start; height: 40px; padding: 0 16px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; font: inherit; font-size: 14px; }
.doc__print:hover { border-color: var(--ink); }
.doc__next { grid-column: 1; margin-top: 64px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 26px; border: 1.5px solid var(--ink); transition: background-color .3s, color .3s; }
.doc__next:hover { background: var(--ink); color: var(--paper); }
.doc__next small { display: block; font-size: 13px; opacity: .65; margin-bottom: 4px; }
.doc__next b { font: 500 21px/1.25 var(--f-display); }
.doc__next svg { width: 28px; height: 28px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; }
@media (max-width: 1000px) {
  .doc { grid-template-columns: 1fr; }
  .doc__cover { grid-template-columns: 1fr; }
  .doc__toc { position: static; order: -1; grid-row: 2; }
  .doc .legal h2 span { position: static; display: inline; margin-right: 10px; }
  .doc-top .brand__sub { display: none; }
}
@media (max-width: 620px) {
  .doc__meta { grid-template-columns: 1fr 1fr; }
  .doc__meta dd { white-space: normal; }
  .doc-top .theme-btn span { display: none; }
}
@media print {
  .doc-top, .doc-progress, .doc__toc, .doc__next, .cookie { display: none !important; }
  .doc { display: block; padding: 0; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .doc .legal h2 span { position: static; margin-right: 8px; }
  .doc .legal a { color: #000; }
}
.hero__foot { position: relative; }
.auth__main { position: relative; }
.auth__theme { position: absolute; top: 24px; right: var(--gut); }
@media (max-width: 620px) { .header .theme-btn { padding: 0; width: 44px; justify-content: center; margin-left: auto; } .header .theme-btn span { display: none; } .header__in { gap: 12px; } }
@media (max-width: 620px) {
  .form__foot .btn { width: 100%; }
  .form__foot { flex-direction: column-reverse; align-items: stretch; }
  .sema__say { font-size: 14px; max-width: calc(100vw - 24px); }
}
.mmenu__foot { display: grid; gap: 16px; margin-top: 32px; }
.mmenu__tel { font: 500 26px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.sema-prop { position: absolute; left: 0; bottom: 0; width: calc(var(--px) * 14); height: calc(var(--px) * 20); image-rendering: pixelated; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 1; }
.sema-prop.is-on { opacity: 1; }
@media (max-width: 1100px) and (min-width: 621px) { .svc__text { grid-template-columns: 1fr; gap: 6px; } }

@font-face { font-family: "Semal8"; src: url("../fonts/semal8.woff") format("woff"); font-display: swap; }
.sema-fx { position: absolute; left: 0; pointer-events: none; image-rendering: pixelated; image-rendering: crisp-edges; }
.sema-fx--back { z-index: 1; }
.sema-fx--front { z-index: 3; }
.sema.is-clip .sema__cv { clip-path: inset(0 0 calc(var(--px) * 3) 0); }
.sema-tag {
  position: absolute; z-index: 4; transform: translate(-50%, 6px); opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 3px 8px; background: var(--paper); color: var(--ink); font: 500 13px/1.2 var(--f-body);
  box-shadow: 0 -2px 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 2px 0 0 var(--ink);
  transition: opacity .2s, transform .3s var(--ease-out);
}
.sema-tag.is-on { opacity: 1; transform: translate(-50%, 0); }
.sema-tag.is-big { font-size: 18px; letter-spacing: .04em; background: #F5B83D; color: #101215; }
.sema__ask { display: flex; gap: 8px; margin-top: 8px; }
.sema__ask span { padding: 6px 12px; background: var(--ink); color: var(--paper); font-weight: 500; cursor: pointer; }
.sema__ask span:hover, .sema__ask span:focus-visible { background: #F5B83D; color: #101215; outline: none; }
.sema.is-ask .sema__say { pointer-events: auto; }
.sema-hand, .sema-hand * { cursor: pointer !important; }
.sema-arena { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; pointer-events: auto; touch-action: none; -webkit-user-select: none; user-select: none; }
.sema-arena--keeper { cursor: none; }
.sema-arena--run { cursor: pointer; }
.sema-hud {
  position: absolute; z-index: 7; pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; max-width: min(420px, 100%);
  padding: 8px 8px 8px 14px; background: var(--paper); color: var(--ink); font-size: 14px;
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink), 6px 6px 0 rgba(16, 18, 21, .25);
}
.sema-hud--right { right: 3px; }
.sema-hud--left { left: 3px; }
.sema-hud b { font-weight: 500; font-variant-numeric: tabular-nums; }
.sema-hud__score { font-size: 17px; }
.sema-hud__hint { flex-basis: 100%; order: 3; color: var(--ink-3); font-size: 12.5px; }
.sema-hud__x { margin-left: auto; width: 32px; height: 32px; border: 0; background: var(--ink); color: var(--paper); font-size: 20px; line-height: 1; cursor: pointer; }
.sema-hud__x:hover { background: #D2412F; color: #fff; }
.sema-fireworks { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 90; pointer-events: none; image-rendering: pixelated; }

.form__send { position: relative; display: inline-flex; margin-top: 60px; }
.form-sema { --px: 3px; position: absolute; right: 14px; bottom: calc(100% - var(--px) * 3); width: calc(var(--px) * 18); height: calc(var(--px) * 24); pointer-events: none; }
.form-sema .sema { pointer-events: none; bottom: 0; transform: none; }
.form-sema .sema__say { left: auto; right: -6px; transform: translate(0, 6px); font-size: 14px; max-width: min(260px, 70vw); }
.form-sema .sema__say.is-on { transform: none; }
.form-sema .sema__say::after { left: auto; right: 24px; }
@media (max-width: 620px) { .form__send { display: flex; } .form__send .btn { width: 100%; } }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.stat {
  --c: #F5B83D; --t: #101215; --sub: rgba(16, 18, 21, .62);
  position: relative; overflow: hidden; display: grid; align-content: start; gap: 10px; padding: 22px 24px 24px;
  background: var(--c); color: var(--t); box-shadow: 6px 6px 0 var(--ink);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.stat:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.stat--year { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: end; gap: 6px 36px; }
.stat--crew { --c: #1F4AC1; --t: #FFFFFF; --sub: rgba(255, 255, 255, .7); }
.stat--dirs { --c: #D2412F; --t: #FFFFFF; --sub: rgba(255, 255, 255, .72); }
.stat__label { font-size: 15px; color: var(--sub); }
.stat--year .stat__label { grid-column: 1 / -1; }
.stat__num { display: flex; align-items: flex-start; font: 500 clamp(64px, 8.4vw, 132px)/.9 var(--f-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.stat__num em { font-style: normal; font-size: .5em; line-height: 1; margin-left: .06em; transform: scale(0); transform-origin: 0 100%; transition: transform .5s cubic-bezier(.34, 1.8, .5, 1) 1.5s; }
.stat.is-go .stat__num em { transform: none; }
.odo { display: inline-block; height: .9em; overflow: hidden; }
.odo > span { display: grid; transform: translateY(0); transition: transform 1.6s cubic-bezier(.2, .9, .2, 1); transition-delay: calc(var(--i) * 140ms); }
.odo i { font-style: normal; height: .9em; line-height: .9; }
.stat.is-go .odo > span { transform: translateY(calc(var(--n) * -.9em)); }
.stat__years { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 6px; align-self: end; padding-bottom: .6em; }
.stat__years span { position: relative; display: grid; gap: 6px; font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat__years span::before { content: ""; height: 14px; background: rgba(16, 18, 21, .14); box-shadow: inset 0 0 0 2px rgba(16, 18, 21, .2); }
.stat__years span::after { content: ""; position: absolute; left: 0; top: 0; height: 14px; width: 100%; background: #101215; transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-out); transition-delay: calc(.9s + var(--i) * 180ms); }
.stat.is-go .stat__years span::after { transform: none; }
.stat__years span.is-now::after { animation: stat-blink 1s steps(1) infinite calc(1.4s + var(--i) * 180ms); }
@keyframes stat-blink { 50% { opacity: .35; } }
.stat__since { grid-column: 1 / -1; font-size: 16px; font-weight: 500; }
.stat__cells { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 6px; }
.stat__cells li { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: 14px; font-weight: 500; background: rgba(0, 0, 0, .16); transform: translateX(-8px); opacity: .45; transition: transform .4s var(--ease-out), opacity .4s; }
.stat__cells li::before { content: ""; width: 12px; height: 12px; background: rgba(255, 255, 255, .25); flex: none; transition: background-color .2s, box-shadow .2s; }
.stat__cells li.is-on { transform: none; opacity: 1; }
.stat__cells li.is-on::before { background: #FFE3A3; box-shadow: 0 0 0 3px rgba(255, 227, 163, .3), 0 0 14px #FFE3A3; }
.stat__bolt { position: absolute; right: 18px; top: 16px; width: 30px; height: 40px; fill: #FFE3A3; opacity: 0; transform: scale(.4) rotate(-12deg); transition: opacity .3s, transform .5s cubic-bezier(.34, 1.8, .5, 1); }
.stat.is-full .stat__bolt { opacity: 1; transform: none; animation: stat-zap 2.4s steps(1) infinite 1s; }
@keyframes stat-zap { 0%, 100% { opacity: 1; } 8% { opacity: .2; } 12% { opacity: 1; } 16% { opacity: .4; } 20% { opacity: 1; } }
.stat::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 8px 8px; mask-image: linear-gradient(135deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(135deg, transparent 40%, #000); }
.stat--year::after { background-image: linear-gradient(rgba(16, 18, 21, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 18, 21, .07) 1px, transparent 1px); }
[data-theme="dark"] .stat { box-shadow: 6px 6px 0 #000; }
[data-theme="dark"] .stat:hover { box-shadow: 9px 9px 0 #000; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat--year { grid-template-columns: 1fr; }
  .stat__years { padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .odo > span, .stat__years span::after, .stat__cells li, .stat__num em { transition: none; }
}

html.is-8bit body, html.is-8bit body *:not(canvas):not(svg):not(path):not(circle) {
  font-family: "Semal8", ui-monospace, monospace !important; font-weight: 400 !important; text-transform: uppercase; letter-spacing: .02em !important;
  -webkit-font-smoothing: none;
}
html.is-8bit .hero__title { font-size: clamp(26px, 3.2vw, 52px); line-height: 1.25; }
html.is-8bit .stat__num { font-size: clamp(48px, 6vw, 96px); }
html.is-8bit img { image-rendering: pixelated; }
html.is-8bit .btn, html.is-8bit .field input, html.is-8bit .field textarea { box-shadow: 4px 4px 0 var(--ink); }
html.is-8bit body::after {
  content: ""; position: fixed; inset: 0; z-index: 89; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 4px);
}
html.is-8bit .sema-hud { background: #101215; color: #9AD0A8; box-shadow: 0 -3px 0 #9AD0A8, 0 3px 0 #9AD0A8, -3px 0 0 #9AD0A8, 3px 0 0 #9AD0A8; }
html.is-8bit .sema-hud__hint { color: #F5B83D; }
html.is-8bit .sema-hud__x { background: #9AD0A8; color: #101215; }
.fstage .sema-chat { position: fixed; left: auto !important; right: max(16px, var(--gut)); bottom: 16px; width: min(400px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 32px)); max-height: min(560px, calc(100dvh - 32px)); z-index: 95; }
@media (max-width: 620px) { .fstage .sema-chat { left: 12px !important; right: 12px; bottom: 12px; width: auto; max-height: 75dvh; } }
.fstage .sema-chat { --paper: #F4F2ED; --paper-2: #E6E2D9; --paper-3: #DCD7CC; --ink: #101215; --ink-2: #2B2F36; --ink-3: #5B6069; --line: rgba(16, 18, 21, .14); --accent: #1F4AC1; }
.hero__title + .hero__cta { margin-top: clamp(28px, 3vw, 40px); }
.hero__bar, .hero__bar[aria-hidden] { display: block; padding: 0 0 clamp(20px, 3vw, 36px); }
html.is-8bit body :is(h1, h2, h3, p, a, span, li, dt, dd, label, small, b, button, time):not(.sema):not(.sema *):not(.sema-hud *):not(.sema-chat *):not(.sema-tag):not(.odo):not(.odo *) {
  animation: bit-jit .24s steps(2, end) infinite; animation-delay: calc(var(--bj, 0) * -70ms);
  text-shadow: 2px 0 rgba(255, 42, 109, .75), -2px 0 rgba(5, 217, 232, .75);
}
html.is-8bit body :is(h1, h2, h3) { animation-name: bit-jit-big; animation-duration: .5s; }
html.is-8bit body :is(p, li, dd, a):nth-child(3n) { --bj: 1; }
html.is-8bit body :is(p, li, dd, a):nth-child(3n + 1) { --bj: 2; }
html.is-8bit body :is(span, b, small):nth-child(2n) { --bj: 3; }
html.is-8bit .bit-glitch { display: inline-block; transform: translate(var(--gx, 2px), var(--gy, -1px)) skewX(-8deg); color: #F5B83D !important; }
@keyframes bit-jit { 0% { transform: translate(0, 0); } 50% { transform: translate(1px, -1px); } 100% { transform: translate(-1px, 1px); } }
@keyframes bit-jit-big {
  0%, 100% { transform: none; filter: none; }
  20% { transform: translate(-2px, 1px) skewX(4deg); }
  40% { transform: translate(3px, -1px); filter: hue-rotate(90deg); }
  60% { transform: translate(-1px, 2px) skewX(-6deg); }
  80% { transform: translate(2px, 0); clip-path: inset(10% 0 30% 0); }
}
@media (prefers-reduced-motion: reduce) { html.is-8bit body * { animation: none !important; } }
html.is-8bit .nav a, html.is-8bit .h2, html.is-8bit .footer a, html.is-8bit .mmenu a { white-space: nowrap; }
html.is-8bit .nav a { font-size: 12px; }
html.is-8bit .h2 { font-size: clamp(22px, 2.4vw, 34px); }
html.is-8bit .nav { gap: 20px; }
html.is-8bit .odo, html.is-8bit .odo i { height: 1em; line-height: 1; }
html.is-8bit .stat.is-go .odo > span { transform: translateY(calc(var(--n) * -1em)); }
html { overflow-x: hidden; overflow-x: clip; }
body { overflow-x: clip; }
.header { width: 100%; max-width: 100vw; }
.form-sema .sema__say.is-on, .board .sema-spot .sema__say.is-on { transform: translateX(var(--shift, 0px)); }
.cookie { bottom: max(16px, env(safe-area-inset-bottom)); max-width: calc(100vw - 32px); touch-action: manipulation; }
.cookie__ok { position: relative; z-index: 1; touch-action: manipulation; }
@media (max-width: 620px) {
  .cookie { left: 12px; right: 12px; width: auto; max-width: none; bottom: max(12px, env(safe-area-inset-bottom)); padding: 14px; }
  .cookie .btn { height: 48px; }
  .sema__say { max-width: calc(100vw - 24px); }
}

.quiz { position: relative; margin-top: 40px; padding: 20px 20px 22px; background: rgba(244, 242, 237, .04); box-shadow: inset 0 0 0 1px rgba(244, 242, 237, .16); }
.quiz::before, .quiz::after { content: ""; position: absolute; width: 10px; height: 10px; background: #F5B83D; }
.quiz::before { left: -1px; top: -1px; }
.quiz::after { right: -1px; bottom: -1px; }
.quiz__head { display: flex; align-items: center; gap: 14px; }
.quiz__ava { --px: 3px; flex: none; width: 54px; height: 72px; margin: -14px -4px -10px -6px; image-rendering: pixelated; }
.quiz__head b { display: block; font: 500 18px/1.2 var(--f-display); }
.quiz__head span { font-size: 14px; color: rgba(244, 242, 237, .55); }
.quiz__steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 16px; padding: 0; }
.quiz__steps li { height: 6px; background: rgba(244, 242, 237, .14); transition: background-color .3s, box-shadow .3s; }
.quiz__steps li.is-on { background: #F5B83D; box-shadow: 0 0 12px rgba(245, 184, 61, .45); }
.quiz__q { min-height: 1.3em; margin: 0 0 14px; font: 500 clamp(18px, 1.6vw, 21px)/1.3 var(--f-display); }
.quiz__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz__chip {
  padding: 9px 14px; border: 2px solid rgba(244, 242, 237, .38); background: transparent; color: inherit;
  font: 400 14.5px/1.2 var(--f-body); cursor: pointer; touch-action: manipulation;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.quiz__chip:hover, .quiz__chip:focus-visible { outline: none; background: #F5B83D; border-color: #F5B83D; color: #101215; transform: translate(-2px, -2px); box-shadow: 3px 3px 0 rgba(244, 242, 237, .45); }
.quiz__chip:active { transform: none; box-shadow: none; }
.quiz__chip--own { border-style: dashed; }
.quiz__chip--go { background: #F5B83D; border-color: #F5B83D; color: #101215; font-weight: 500; }
.quiz__chip--mini { margin-left: auto; padding: 3px 8px; border-width: 1px; font-size: 12px; }
.quiz__own { display: flex; gap: 8px; margin-top: 12px; }
.quiz__own[hidden] { display: none; }
.quiz__own input { flex: 1; min-width: 0; height: 44px; padding: 0 2px; border: 0; border-bottom: 2px solid #F5B83D; background: transparent; color: inherit; font: 400 16px/1.2 var(--f-body); outline: none; }
.quiz__own input::placeholder { color: rgba(244, 242, 237, .4); }
.quiz__ok { padding: 0 16px; border: 0; background: #F5B83D; color: #101215; font: 500 14.5px/1 var(--f-body); cursor: pointer; }
.quiz__done { display: grid; gap: 0; margin: 16px 0 0; }
.quiz__done:empty { display: none; }
.quiz__done div { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(244, 242, 237, .12); font-size: 14px; }
.quiz__done dt { flex: none; width: 104px; color: rgba(244, 242, 237, .5); }
.quiz__done dd { margin: 0; }

.ach-toast {
  position: fixed; z-index: 96; left: 50%; top: calc(var(--header-h) + 12px); display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 24px);
  padding: 10px 18px 10px 12px; background: #101215; color: #F4F2ED; box-shadow: 0 0 0 3px #F5B83D, 8px 8px 0 3px rgba(0, 0, 0, .3);
  opacity: 0; transform: translate(-50%, -16px); transition: opacity .3s, transform .45s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none;
}
.ach-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ach-toast small { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #F5B83D; }
.ach-toast b { display: block; font: 500 17px/1.2 var(--f-display); }
.ach-toast em { display: block; font-style: normal; font-size: 13px; color: rgba(244, 242, 237, .7); }
.ach-toast__ico canvas { width: 28px; height: 44px; animation: ach-pop .6s steps(3) 2; }
@keyframes ach-pop { 50% { transform: translateY(-4px) rotate(-6deg); } }
.ach-medal { display: block; image-rendering: pixelated; }
.ach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 12px; }
.ach-grid__it { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.3; color: var(--ink-3); opacity: .6; }
.ach-grid__it.is-got { opacity: 1; }
.ach-grid__it b { display: block; font-size: 13px; color: var(--ink); }
.ach-grid canvas { flex: none; width: 21px; height: 33px; }

.doc-sema { --px: 4px; position: relative; height: calc(var(--px) * 24); margin-top: 28px; }
.doc-sema .sema { bottom: 0; transform: none; }
.doc-sema .sema__say, .doc-end__sema .sema__say { left: 0; transform: translate(0, 6px); }
.doc-sema .sema__say.is-on, .doc-end__sema .sema__say.is-on { transform: translateX(var(--shift, 0px)); }
.doc-sema .sema__say::after, .doc-end__sema .sema__say::after { left: 26px; }
.doc-end { display: flex; align-items: flex-end; gap: 28px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc-end__sema { --px: 4px; position: relative; flex: none; width: calc(var(--px) * 18); height: calc(var(--px) * 24); }
.doc-end__sema .sema { bottom: 0; transform: none; }
.doc-stamp {
  display: grid; place-content: center; gap: 2px; width: 136px; height: 136px; border-radius: 50%; margin-bottom: 8px;
  border: 5px double #D2412F; color: #D2412F; text-align: center; font: 500 11px/1.3 var(--f-display); letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: rotate(-14deg) scale(2.2);
}
.doc-stamp b { font-size: 17px; letter-spacing: .04em; }
.doc-end.is-stamped .doc-stamp { animation: doc-stamp .45s cubic-bezier(.3, 1.6, .5, 1) forwards; }
@keyframes doc-stamp { 0% { opacity: 0; transform: rotate(-14deg) scale(2.2); } 60% { opacity: .95; transform: rotate(-14deg) scale(.9); } 100% { opacity: .88; transform: rotate(-14deg) scale(1); } }
@media (max-width: 1000px) { .doc-sema { display: none; } }
@media (prefers-reduced-motion: reduce) { .doc-end .doc-stamp { opacity: .88; transform: rotate(-14deg); animation: none; } }
@media print { .doc-sema, .doc-end__sema { display: none; } }
.sema-chat[hidden] { display: none !important; }
.sema-chat:not(.is-on) { pointer-events: none; }
.sema-track { view-transition-name: sema-hero; }
.fstage .sema { view-transition-name: sema-foot; }
.form-sema { view-transition-name: sema-form; }
.doc-sema { view-transition-name: sema-doc; }
.doc-end__sema { view-transition-name: sema-doc-end; }
.board .sema-spot { view-transition-name: sema-404; }
.quiz__ava { view-transition-name: sema-quiz; }
.services li:nth-child(1) .svc__cv { view-transition-name: svc-1; }
.services li:nth-child(2) .svc__cv { view-transition-name: svc-2; }
.services li:nth-child(3) .svc__cv { view-transition-name: svc-3; }
.services li:nth-child(4) .svc__cv { view-transition-name: svc-4; }
.services li:nth-child(5) .svc__cv { view-transition-name: svc-5; }
::view-transition-old(sema-hero),
::view-transition-old(sema-foot),
::view-transition-old(sema-form),
::view-transition-old(sema-doc),
::view-transition-old(sema-doc-end),
::view-transition-old(sema-404),
::view-transition-old(sema-quiz),
::view-transition-old(stat-crew),
::view-transition-old(svc-1),
::view-transition-old(svc-2),
::view-transition-old(svc-3),
::view-transition-old(svc-4),
::view-transition-old(svc-5) { display: none; }
::view-transition-group(*) { animation-duration: 0s; }
::view-transition-new(*) { animation: none; }
.stat__title { margin: 0; font: 500 clamp(24px, 2.6vw, 38px)/1.08 var(--f-display); letter-spacing: -.02em; }
.crew-stage { --px: 5px; position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; min-height: calc(var(--px) * 24); margin-top: 6px; border-bottom: 3px solid rgba(255, 255, 255, .55); }
.crew-stage .sema { position: relative; left: auto; bottom: calc(var(--px) * -3); flex: none; width: calc(var(--px) * 18); height: calc(var(--px) * 24); order: 2; pointer-events: none; }
.crew-stage .sema__say { display: none; }
@media (max-width: 620px) {
  .crew-stage { --px: 4px; }
}
.stat--crew { min-width: 0; }
.stat--crew > * { min-width: 0; max-width: 100%; }
.stat__title { overflow-wrap: anywhere; hyphens: auto; }
.crew-stage { padding-right: calc(var(--px) * 2); }
@media (max-width: 620px) {
  .stat__title { font-size: clamp(20px, 6.4vw, 26px); }
  .crew-stage { gap: 8px; padding-right: 14px; }
}

.crew-stage { overflow: hidden; min-height: calc(var(--px) * 26); padding-right: 0; }
.crew-stage .sema { position: absolute; right: 12px; bottom: 0; left: auto; z-index: 2; }
.crew-desk { position: absolute; right: 0; bottom: 0; z-index: 3; width: calc(var(--px) * 18 + 76px); height: calc(var(--px) * 9); background: #7B4B22; box-shadow: inset 0 5px 0 #A9733C, inset 0 -5px 0 #5E3716, 0 0 0 2px #101215; }
.crew-paper { position: absolute; left: 14px; top: -14px; width: 24px; height: 16px; background: #F4F2ED; box-shadow: 0 0 0 2px #101215, inset 0 6px 0 #F4F2ED, inset 0 8px 0 #8A8F98; transform: scale(0); transform-origin: 50% 100%; }
.crew-paper.is-on { transform: scale(1); }
.crew-man { position: absolute; left: 0; bottom: 0; z-index: 1; image-rendering: pixelated; will-change: transform; }
.crew-man.is-sad { filter: saturate(.4) brightness(.85); }
.crew-stamp { position: absolute; left: 10px; top: 4px; z-index: 4; padding: 3px 9px; font: 600 15px/1.2 var(--f-display); background: #fff; opacity: 0; transform: rotate(-7deg) scale(1.6); }
.crew-stamp.is-on { opacity: 1; transform: rotate(-7deg) scale(1); transition: transform .18s steps(3), opacity .1s; }
.crew-stamp.is-no { color: #D2412F; box-shadow: 0 0 0 3px #D2412F; }
.crew-stamp.is-ok { color: #1E8A4C; box-shadow: 0 0 0 3px #1E8A4C; }
@media (max-width: 620px) { .crew-desk { width: calc(var(--px) * 18 + 50px); } .crew-stage .sema { right: 8px; } }
.stat__title { font-size: clamp(18px, 2vw, 32px); overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 620px) { .stat__title { font-size: clamp(20px, 6vw, 26px); } }

.stat--crew .stat__title { font-size: clamp(15px, 1.5vw, 21px); line-height: 1.15; letter-spacing: -.01em; }
.crew-stage { min-height: calc(var(--px) * 26 + 34px); padding-top: 34px; }
.crew-stamp { top: 6px; left: 12px; padding: 2px 8px; font-size: 13px; transform: rotate(-5deg) scale(1.25); }
.crew-stamp.is-on { transform: rotate(-5deg) scale(1); }
.crew-man { transform-origin: 50% 50%; }
@media (max-width: 620px) { .stat--crew .stat__title { font-size: clamp(15px, 4.6vw, 19px); } }
.egame-open { overflow: hidden; }
.egame { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 14px; background: rgba(16, 18, 21, .82); }
.egame__panel { width: min(440px, 100%); max-height: calc(100dvh - 28px); overflow: auto; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 8px 8px 0 var(--ink); display: grid; grid-template-rows: auto auto 1fr; }
.egame__bar { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.egame__sema { --px: 2px; width: 36px; height: 48px; image-rendering: pixelated; background: #1F4AC1; }
.egame__head { display: grid; gap: 2px; min-width: 0; }
.egame__head b { font: 600 16px/1.1 var(--f-display); }
.egame__hint { font-size: 12px; line-height: 1.3; opacity: .75; }
.egame__score { font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.egame__x { width: 36px; height: 36px; font-size: 24px; line-height: 1; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.egame__say { min-height: 36px; padding: 8px 14px; font-size: 14px; border-bottom: 1px solid rgba(128, 128, 128, .35); }
.egame__body { padding: 16px; display: grid; justify-items: center; gap: 12px; }
.egame__end { display: grid; gap: 6px; text-align: center; padding: 28px 8px; }
.egame__end b { font: 600 22px/1.1 var(--f-display); }
.egame__btn { padding: 10px 22px; font: 600 15px var(--f-display); border: 2px solid var(--ink); background: #F5B83D; color: #101215; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); }
.wires { position: relative; width: 100%; max-width: 360px; padding: 0 34px; }
.wires__grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; padding: 3px; background: rgba(128, 128, 128, .22); }
.wires__t { aspect-ratio: 1; padding: 0; border: 0; background: var(--paper); cursor: pointer; }
.wires__t svg { display: block; width: 100%; height: 100%; pointer-events: none; }
.wires__t:hover { background: rgba(245, 184, 61, .18); }
.wires__bat, .wires__lamp { position: absolute; display: grid; place-items: center; width: 30px; height: calc(100% / var(--n)); top: calc(100% / var(--n) * var(--r)); }
.wires__bat { left: 0; }
.wires__lamp { right: 0; }
.wires__bat i { width: 20px; height: 28px; background: #2E9B5B; box-shadow: 0 0 0 2px var(--ink); }
.wires__lamp i { width: 20px; height: 20px; border-radius: 50%; background: #5A5F68; box-shadow: 0 0 0 2px var(--ink); }
.wires__lamp.is-on i { background: #FFD84A; box-shadow: 0 0 0 2px var(--ink), 0 0 18px 6px rgba(255, 216, 74, .85); }
.brk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 340px; }
.brk__b { position: relative; display: grid; justify-items: center; gap: 4px; padding: 10px 4px 8px; background: #3A3F47; border: 2px solid var(--ink); cursor: pointer; color: #fff; }
.brk__lamp { width: 12px; height: 12px; border-radius: 50%; background: #2E9B5B; box-shadow: 0 0 0 2px var(--ink); }
.brk__sw { width: 22px; height: 38px; background: #F4F2ED; box-shadow: 0 0 0 2px var(--ink), inset 0 14px 0 #B9BEC6; }
.brk__n { font-size: 12px; font-weight: 600; }
.brk__b.is-over { background: #6A2A22; animation: brk-blink .3s steps(2) infinite; }
.brk__b.is-over .brk__lamp { background: #FF4B3A; }
.brk__b.is-trip .brk__sw { box-shadow: 0 0 0 2px var(--ink), inset 0 -14px 0 #B9BEC6; background: #8A8F98; }
.brk__b.is-trip { background: #101215; }
@keyframes brk-blink { 50% { filter: brightness(1.5); } }
.brk__time { width: 100%; max-width: 340px; height: 8px; background: rgba(128, 128, 128, .3); }
.brk__time i { display: block; height: 100%; background: #F5B83D; }
.simon { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(300px, 100%); }
.simon__l { aspect-ratio: 1; border: 2px solid var(--ink); background: color-mix(in srgb, var(--c) 38%, #1c1f24); cursor: pointer; }
.simon__l.is-lit { background: var(--c); box-shadow: 0 0 22px 4px var(--c); }
.catch { width: min(100%, 300px); aspect-ratio: 3 / 4; image-rendering: pixelated; background: #20242B; box-shadow: 0 0 0 2px var(--ink); touch-action: none; cursor: none; }
@media (prefers-reduced-motion: reduce) { .brk__b.is-over { animation: none; } }

.egame__bar { grid-template-columns: auto 1fr auto; }
.egame__score { text-align: left; font-weight: 500; opacity: .85; }
.egame__hint { padding: 8px 14px 0; font-size: 13px; line-height: 1.35; opacity: .8; }
.egame__panel { grid-template-rows: auto auto auto 1fr; }

.catch.jump { cursor: default; background: #F4F2ED; }

.egame--big .egame__panel { width: min(640px, 100%); }
.egame--big .egame__body { padding: 8px 12px 14px; }
.egame--big .egame__say { min-height: 0; padding: 6px 14px; font-size: 13px; }
.egame--big .egame__hint { padding-top: 6px; }
.egame--big .catch.jump { width: min(100%, calc((100dvh - 250px) * 2 / 3)); height: auto; aspect-ratio: 2 / 3; }

html[data-theme="dark"] .catch.jump { background: #16181D; }

.egame--big .egame__panel { width: min(820px, 100%); }
.egame--big .egame__say { display: none; }
.egame--big .catch.jump { width: min(100%, calc((100dvh - 150px) * 2 / 3)); cursor: none; }

.egame--full { padding: 0; place-items: stretch; background: #F4F2ED; touch-action: none; }
html[data-theme="dark"] .egame--full { background: #16181D; }
.egame--full .egame__panel { width: 100%; max-width: none; max-height: none; height: 100dvh; box-shadow: none; background: transparent; grid-template-rows: auto 1fr; overflow: hidden; }
.egame--full .egame__bar { height: 44px; padding: 4px 10px; border-bottom: 0; background: transparent; }
.egame--full .egame__score, .egame--full .egame__hint, .egame--full .egame__say { display: none; }
.egame--full .egame__body { position: relative; display: block; padding: 0; height: calc(100dvh - 44px); }
.egame--full .catch.jump { display: block; width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: contain; background: transparent; box-shadow: none; cursor: none; touch-action: none; }
.jump-cover { position: absolute; inset: 0; z-index: 3; display: grid; align-content: center; justify-items: center; gap: 14px; padding: 24px; text-align: center; color: #fff; background: rgba(16, 18, 21, .74); cursor: pointer; }
.jump-cover.is-off { display: none; }
.jump-cover b { font: 600 30px/1.1 var(--f-display); }
.jump-cover span { padding: 12px 26px; font: 600 18px var(--f-display); background: #F5B83D; color: #101215; box-shadow: 4px 4px 0 #101215; }
.jump-cover em { max-width: 340px; font-style: normal; font-size: 14px; line-height: 1.4; opacity: .85; }
.jump-zone { position: absolute; left: 0; right: 0; top: 16%; z-index: 2; text-align: center; font: 600 24px/1.1 var(--f-display); color: #F5B83D; text-shadow: 2px 2px 0 #101215; opacity: 0; transition: opacity .3s; pointer-events: none; }
.jump-zone.is-on { opacity: 1; }

.egame--full .catch.jump.td { cursor: default; }
.td-hud { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; background: rgba(16, 18, 21, .8); color: #fff; font: 600 14px var(--f-display); }
.td-stat b { color: #F5B83D; }
.td-btn { height: 34px; padding: 0 12px; border: 2px solid #101215; background: #F5B83D; color: #101215; font: 600 13px var(--f-display); cursor: pointer; box-shadow: 2px 2px 0 #101215; }
.td-btn:disabled { opacity: .5; cursor: default; }
.td-skill { background: #5B86F0; color: #fff; margin-left: auto; }
.td-panel { position: absolute; left: 8px; right: 8px; bottom: 8px; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; padding: 8px; background: rgba(16, 18, 21, .92); border: 2px solid #101215; }
.td-panel.is-top { bottom: auto; top: 52px; }
.td-panel.is-off { display: none; }
.td-opt { display: flex; gap: 8px; align-items: center; text-align: left; padding: 6px 8px; background: #1F2329; color: #fff; border: 2px solid #3A3F48; cursor: pointer; font: 600 13px var(--f-display); }
.td-opt small { display: block; margin-top: 2px; font-weight: 400; font-size: 11px; line-height: 1.25; opacity: .8; }
.td-opt:disabled { opacity: .4; cursor: default; }
.td-opt:not(:disabled):hover { border-color: #F5B83D; }
.td-sell { border-color: #8E2A1E; }
.td-info { grid-column: 1 / -1; color: #fff; font-size: 13px; }
.td-info span { display: block; margin-top: 2px; font-size: 12px; opacity: .8; }
.td-ico { flex: none; width: 36px; height: 42px; image-rendering: pixelated; }
.td-end em { max-width: 380px; }
