@charset "UTF-8";
:root,
html[data-theme=light] {
  --bg-normal: #FFFFFF;
  --bg-secondary: #F5F5F7;
  --bg-inverse: #000000;
  --bg-popup: #FFFFFF;
  --bg-overlay: #E4E6EB;
  --bg-clock: no-repeat center/100% url("/img/blank-day.svg");
  --bg-blank: no-repeat center/100% url("/img/blank-day.svg");
  --bg-cv: no-repeat center/100% url("/img/cv-day.png");
  --bg-blur-normal: rgba(255, 255, 255, 0.85);
  --bg-blur-secondary: rgba(245, 245, 247, 0.85);
  --bg-blur-effect: blur(5px);
  --text-normal: #000000;
  --text-secondary: rgba(0, 0, 0, 0.5);
  --text-disable: rgba(0, 0, 0, 0.2);
  --text-inverse: #FFFFFF;
  --link-normal: rgba(0, 0, 0, 0.5);
  --link-hover: #000000;
  --yellow: #FFC701;
  --white: #FFFFFF;
  --black: #000000;
  --teal: #34B7AA;
  --nda-icon: no-repeat center/100% url("/img/nda-lock-day.svg");
  --menu-icon: no-repeat center/22px url("/img/menu-day.svg") var(--bg-inverse);
  --close-icon: no-repeat center/22px url("/img/close-day.svg") var(--bg-secondary);
  --close-icon-hover: no-repeat center/22px url("/img/close-night.svg") var(--bg-inverse);
  --card-bg-short: no-repeat center/100% url("/img/cards-bg/white.svg");
  --card-bg-long: no-repeat center/100% url("/img/cards-bg/white-long.svg");
  --card-bg-menu: no-repeat center/100% url("/img/cards-bg/gray.svg");
  --card-bg-sat: no-repeat center/100% url("/img/cards-bg/teal.svg");
  --card-bg-sat-long: no-repeat center/100% url("/img/cards-bg/teal-long.svg");
  --cover-sat: no-repeat top/100% url("/img/cards/sberautotech-white.png");
  --cover-sat-long: no-repeat top/100% url("/img/cards/sberautotech-long-white.png");
}

html[data-theme=dark] {
  --bg-normal: #000000;
  --bg-secondary: #1A1A1A;
  --bg-inverse: #FFFFFF;
  --bg-popup: #000000;
  --bg-overlay: #1A1A1A;
  --bg-clock: no-repeat center/100% url("/img/blank-night.svg");
  --bg-blank: no-repeat center/100% url("/img/blank-night.svg");
  --bg-cv: no-repeat center/100% url("/img/cv-night.png");
  --bg-blur-normal: rgba(0, 0, 0, 0.8);
  --bg-blur-secondary: rgba(26, 26, 26, 0.8);
  --bg-blur-effect: blur(5px);
  --text-normal: rgba(255, 255, 255, 0.9);
  --text-secondary: rgba(255, 255, 255, 0.5);
  --text-disable: rgba(255, 255, 255, 0.2);
  --text-inverse: #000000;
  --link-normal: rgba(255, 255, 255, 0.5);
  --link-hover: #FFFFFF;
  --yellow: #FFC701;
  --white: #FFFFFF;
  --black: #000000;
  --teal: #6ADBD0;
  --nda-icon: no-repeat center/100% url("/img/nda-lock-night.svg");
  --menu-icon: no-repeat center/22px url("/img/menu-night.svg") var(--bg-inverse);
  --close-icon: no-repeat center/22px url("/img/close-night.svg") var(--bg-secondary);
  --close-icon-hover: no-repeat center/22px url("/img/close-day.svg") var(--bg-inverse);
  --card-bg-short: no-repeat center/100% url("/img/cards-bg/black.svg");
  --card-bg-long: no-repeat center/100% url("/img/cards-bg/black-long.svg");
  --card-bg-menu: no-repeat center/100% url("/img/cards-bg/black.svg");
  --card-bg-sat: no-repeat center/100% url("/img/cards-bg/tiffany.svg");
  --card-bg-sat-long: no-repeat center/100% url("/img/cards-bg/tiffany-long.svg");
  --cover-sat: no-repeat top/100% url("/img/cards/sberautotech-black.png");
  --cover-sat-long: no-repeat top/100% url("/img/cards/sberautotech-long-black.png");
}

main {
  margin: 0 auto;
  max-width: 1400px;
}

ul.main-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, 335px);
  justify-content: center;
}
ul.main-grid li.long-card {
  grid-row: span 2;
  height: 650px;
}

.block-link:hover {
  transform: translateY(-4px);
}

li#sp-slab,
li#gameboys,
li#keebs,
li#gb-studio,
li#collection {
  display: flex;
  align-items: flex-end;
}
li#sp-slab h2,
li#gameboys h2,
li#keebs h2,
li#gb-studio h2,
li#collection h2 {
  margin-bottom: 4px;
}

.card, .menu {
  background: var(--card-bg-short);
  transition: 0.3s;
  width: 275px;
  height: 295px;
  padding: 20px 30px;
}
.card h2,
.card h2 > a, .menu h2,
.menu h2 > a {
  color: var(--text-normal);
}
.card h2, .menu h2 {
  margin-top: 4px;
}
.card h2 span.year, .menu h2 span.year {
  font-weight: normal;
  display: inline-block;
}

.long-card {
  background: var(--card-bg-long);
}

.block-link {
  position: relative;
  cursor: pointer;
}
.block-link a {
  position: relative;
  z-index: 1;
}
.block-link h2 a, .block-link h3 a {
  position: static;
}
.block-link h2 a::before, .block-link h3 a::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.block-link img {
  pointer-events: none;
}

.more_card a {
  position: static;
}
.more_card a::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#phrase a.all_words {
  position: absolute;
  bottom: 15px;
}

#phrase:hover a.all_words {
  color: var(--link-hover);
}
#phrase:hover a.all_words::after {
  content: " →";
}

#about .image img {
  border-radius: 8px;
}
#about video {
  width: 100%;
  height: 156px;
  object-fit: cover;
  display: block;
  margin-bottom: 21px;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 21px;
  outline: none;
}

video:focus,
video:active {
  outline: none;
}

#movies h2,
#games h2,
#last_game h2,
#books h2,
#performances h2,
#flights h2,
#flow h2 {
  margin-bottom: 13px;
}
#movies li,
#games li,
#last_game li,
#books li,
#performances li,
#flights li,
#flow li {
  line-height: 36px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#flow h2 {
  margin-bottom: 9px;
}

#about-site {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#about-site p:last-child {
  margin-bottom: 3px;
}

#uses h2 {
  margin-bottom: 25px;
}
#uses div.image {
  pointer-events: none;
}

#last_game div.image {
  pointer-events: none;
  margin-bottom: 7px;
}
#last_game li {
  line-height: 20px;
}
#last_game p.caption {
  margin-bottom: 0;
}

#countries {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#countries ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}
#countries li {
  line-height: 24px;
}
#countries li img {
  display: inline-block;
}

#connect h2 {
  margin-bottom: 40px;
}
#connect ul {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 19px;
  margin-top: 10px;
}
#connect li, #connect a {
  display: inline-block;
  width: 79px;
  height: 79px;
  transition-duration: 0.3s;
}
#connect li:hover {
  transform: translateY(-4px) rotate(0deg);
  transition-duration: 0.1s;
}
#connect li.c_watch {
  transform: none;
}
#connect a {
  text-indent: -9999px;
  text-align: center;
  line-height: 79px;
  font-weight: 700;
  font-size: 36px;
  transform-origin: center;
  overflow: hidden;
}
#connect a[target=_blank]:after {
  content: none;
}
#connect #c_telegram a {
  background: no-repeat center/100% url("/img/social-icons/telegram.png");
  transform: rotate(4deg);
}
#connect #c_mail a {
  background: no-repeat center/100% url("/img/social-icons/mail.png");
  transform: rotate(-4deg);
}
#connect #c_twitter a {
  background: no-repeat center/100% url("/img/social-icons/twitter.png");
  transform: rotate(4deg);
}
#connect #c_reddit a {
  background: no-repeat center/100% url("/img/social-icons/reddit.png");
  transform: rotate(-4deg);
}
#connect #c_instagram a {
  background: no-repeat center/100% url("/img/social-icons/instagram.png");
  transform: rotate(-4deg);
}
#connect #c_facebook a {
  background: no-repeat center/100% url("/img/social-icons/facebook.png");
  transform: rotate(4deg);
}
#connect #c_linkedin a {
  background: no-repeat center/100% url("/img/social-icons/linkedin.png");
  transform: rotate(-4deg);
}
#connect #c_cv a {
  background: no-repeat center/100% url("/img/cv.svg");
  text-indent: 0;
  color: var(--white);
  transform: rotate(4deg);
}

#podcasts, #updates {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}
#podcasts ul, #updates ul {
  margin-bottom: 6px;
}
#podcasts li, #updates li {
  line-height: 26px;
  margin-top: 18px;
}
#podcasts li a:after, #updates li a:after {
  content: none;
}
#podcasts li p, #updates li p {
  margin: 0;
  line-height: 1.1;
}
#podcasts li p.caption, #updates li p.caption {
  margin-top: 6px;
}

#updates a.rss {
  display: inline-block;
  line-height: 22px;
  position: absolute;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-radius: 4px;
  background: var(--bg-inverse);
  color: var(--text-inverse);
  top: 30px;
  right: 30px;
  letter-spacing: 0.7px;
}

#telegram_channel {
  background: no-repeat center/100% url("/img/cards-bg/telegram_channel_logo.svg");
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#telegram_channel h2, #telegram_channel h2 > a, #telegram_channel p, #telegram_channel span {
  color: var(--white);
}
#telegram_channel a:after {
  content: "";
}
#telegram_channel h2 {
  margin-bottom: 20px;
}
#telegram_channel div.bottom {
  margin-bottom: 10px;
}
#telegram_channel img {
  display: inline-block;
  width: 48px;
  height: 48px;
  background: #EFEFEF;
  border-radius: 24px;
}
#telegram_channel span {
  display: inline-block;
  line-height: 48px;
  margin-left: 12px;
  font-weight: 700;
}

.menu li {
  color: var(--text-secondary);
}
li.menu h2 {
  margin-bottom: 6px;
}

#sberautotech {
  background: var(--cover-sat), var(--card-bg-sat);
}
#sberautotech span.year {
  color: #1E6B63;
}
#sberautotech h2, #sberautotech h2 > a {
  color: var(--text-inverse);
}
#sberautotech p {
  margin-bottom: 9px;
  color: var(--black);
}

.long-card#sberautotech {
  background: var(--cover-sat-long), var(--card-bg-sat-long);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#kinopoisk {
  background: no-repeat center/100% url("/img/cards/kinopoisk.png"), no-repeat center/100% url("/img/cards-bg/orange.svg");
}

.long-card#kinopoisk {
  background: no-repeat center/100% url("/img/cards/kinopoisk-long.png"), no-repeat center/100% url("/img/cards-bg/orange-long.svg");
}
.long-card#kinopoisk span.year {
  color: #993D00;
}

#yandex-afisha {
  background: no-repeat center/100% url("/img/cards/yandex-afisha.png"), no-repeat center/100% url("/img/cards-bg/yellow.svg");
}

.long-card#yandex-afisha {
  background: no-repeat center/100% url("/img/cards/yandex-afisha-long.png"), no-repeat center/100% url("/img/cards-bg/yellow-long.svg");
}
.long-card#yandex-afisha span.year {
  color: #B28F00;
}

#gameboys {
  background: no-repeat center/100% url("/img/cards/gameboys.png"), no-repeat center/100% url("/img/cards-bg/yellow.svg");
}

.long-card#gameboys {
  background: no-repeat center/100% url("/img/cards/gameboys-long.png"), no-repeat center/100% url("/img/cards-bg/yellow-long.svg");
}

#keebs {
  background: no-repeat center/100% url("/img/cards/keebs.png"), no-repeat center/100% url("/img/cards-bg/dark.svg");
}

.long-card#keebs {
  background: no-repeat center/100% url("/img/cards/keebs-long.png"), no-repeat center/100% url("/img/cards-bg/dark-long.svg");
}

#macintosh-pi {
  background: no-repeat center/100% url("/img/cards/macintosh-pi.png"), no-repeat center/100% url("/img/cards-bg/sand.svg");
}

#pc {
  background: no-repeat center/100% url("/img/cards/pc.png"), no-repeat center/100% url("/img/cards-bg/cool-gray.svg");
}

#gb-studio {
  background: no-repeat center/100% url("/img/cards/gb-studio.png"), no-repeat center/100% url("/img/cards-bg/navy.svg");
}

#collection {
  background: no-repeat center/100% url("/img/cards/collection.png"), no-repeat center/100% url("/img/cards-bg/cool-gray.svg");
}

#consoles {
  background: no-repeat center/100% url("/img/cards/consoles.png"), no-repeat center/100% url("/img/cards-bg/cool-gray.svg");
}

#rostelecom {
  background: no-repeat center/100% url("/img/cards/rostelecom.png"), no-repeat center/100% url("/img/cards-bg/violet-rtk.svg");
}

#infotech-group {
  background: no-repeat center/100% url("/img/cards/infotech-group.png"), no-repeat center/100% url("/img/cards-bg/blue.svg");
}

#gradoservice {
  background: no-repeat center/100% url("/img/cards/gradoservice.png"), no-repeat center/100% url("/img/cards-bg/cool-gray.svg");
}

#sp-slab {
  background: no-repeat center/100% url("/img/cards/sp-slab.png"), no-repeat center/100% url("/img/cards-bg/pink.svg");
}

#sketch-1984 {
  background: no-repeat center/100% url("/img/cards/sketch-1984.png"), no-repeat center/100% url("/img/cards-bg/sand.svg");
}

#countries h2 span,
#movies h2 span,
#games h2 span,
#books h2 span,
#performances h2 span,
#flights h2 span {
  color: var(--text-secondary);
  font-weight: 400;
}

#rostelecom h2,
#rostelecom h2 > a,
#kinopoisk h2,
#kinopoisk h2 > a,
#infotech-group h2,
#infotech-group h2 > a,
#sp-slab h2,
#sp-slab h2 > a,
#famicom-covers h2,
#famicom-covers h2 > a,
#gb-studio h2,
#gb-studio h2 > a,
#keebs h2,
#keebs h2 > a {
  color: var(--white);
}

#sofle h2,
#sofle h2 > a,
#yandex-afisha h2,
#yandex-afisha h2 > a,
#sketch-1984 h2,
#sketch-1984 h2 > a,
#collection h2,
#collection h2 > a,
#gradoservice h2,
#gradoservice h2 > a,
#macintosh-pi h2,
#macintosh-pi h2 > a,
#gameboys h2,
#gameboys h2 > a {
  color: var(--black);
}

#consoles,
#pc,
#sberautotech {
  filter: grayscale(100%);
}
#consoles h2,
#pc h2,
#sberautotech h2 {
  color: rgba(0, 0, 0, 0.2);
  position: relative;
  top: -5px;
}
#consoles h2:after,
#pc h2:after,
#sberautotech h2:after {
  position: relative;
  content: "";
  top: 5px;
  left: 4px;
  display: inline-block;
  transform: rotate(15deg);
  background: no-repeat center/100% url("/img/nda-lock-day.svg");
  width: 32px;
  height: 32px;
  background-size: 32px 32px;
}

#sketch-1984 a:hover,
#macintosh-pi a:hover {
  cursor: url("/img/hand.svg") 4 4, auto;
}

.collection-grid {
  margin-top: 40px;
}
.collection-grid a, .collection-grid a:hover {
  color: var(--black);
}
.collection-grid li {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: no-repeat center/100% url("/img/cards-bg/cool-gray.svg");
  border-radius: 24px;
}
.collection-grid li h3 {
  text-align: center;
  z-index: 1;
  margin-bottom: 4px;
}
.collection-grid span {
  position: absolute;
  text-align: right;
  top: 6px;
  right: 20px;
  color: rgba(0, 0, 0, 0.3);
}
.collection-grid .image {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.collection-info table {
  width: 100%;
}
.collection-info table td {
  line-height: 26px;
  padding-bottom: 16px;
}
.collection-info table tr :first-of-type {
  padding-right: 10px;
  color: var(--text-secondary);
  word-break: normal;
}
.collection-info table tr :last-of-type {
  text-align: right;
}
.collection-info p.caption a {
  color: var(--text-secondary);
}
.collection-info p.caption a[target=_blank]:after {
  content: none;
}
.collection-info p.caption a:hover {
  color: var(--text-normal);
}
.collection-info h1 {
  margin-bottom: 14px;
}

.cat-grid,
.keebs-grid {
  max-width: 1045px;
  margin: 50px auto;
}

.keebs-grid li {
  background: no-repeat center/100% url("/img/cards-bg/dark.svg");
}
.keebs-grid li a, .keebs-grid li a:hover {
  color: var(--white);
}
.keebs-grid li span {
  text-align: left;
  top: 4px;
  left: 20px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

article {
  max-width: 1440px;
  margin: 0 auto;
}

article.center {
  text-align: center;
}

article h1, article h2, article h3, article h4, article p, article ul, article ol, article .video, article .quote, article a {
  max-width: 690px;
  margin-left: auto;
  margin-right: auto;
}
article .image a {
  display: block;
}
article .yt-video {
  max-width: 1400px;
  width: 100%;
  margin: 20px auto 0;
  background-color: #DDD;
  position: relative;
}
article .yt-video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  position: relative;
  z-index: 2;
}
article .yt-video .yt-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  color: #8F8F8F;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
  font-family: system-ui, sans-serif;
  font-size: 75%;
  text-align: center;
}

#sberautotech-page article h1, #sberautotech-page article h2, #sberautotech-page article h3, #sberautotech-page article h4, #sberautotech-page article p, #sberautotech-page article ul, #sberautotech-page article ol, #sberautotech-page article .video, #sberautotech-page article .quote, #sberautotech-page article a {
  max-width: 640px;
}

h1 {
  font-size: 48px;
}
@media screen and (max-width: 440px) {
  h1 {
    font-size: 38px;
  }
}

article h1 {
  margin-bottom: 18px;
}
article h1 span {
  color: var(--text-secondary);
  font-weight: 400;
}

h2 {
  font-size: 32px;
  line-height: 1;
}

article h2 {
  margin-top: 44px;
  margin-bottom: 16px;
}
@media screen and (max-width: 440px) {
  article h2 {
    font-size: 22px;
  }
}

h3 {
  font-size: 22px;
  line-height: 28px;
}

article h3 {
  margin-bottom: 8px;
  margin-top: 32px;
}

h4 {
  font-size: 18px;
  line-height: 22px;
}

article h4 {
  margin-bottom: 8px;
  margin-top: 32px;
}

a {
  text-decoration: none;
  color: var(--text-normal);
}
a:hover {
  color: var(--text-secondary);
}

a[target=_blank]:after {
  content: " ↗";
}

p a, ul.list a {
  color: var(--text-normal);
  border-bottom: 1px solid var(--text-disable);
}
p {
  font-size: 18px;
  line-height: 26px;
  margin-bottom: 18px;
}

.image + p,
.video + p {
  margin-top: 24px;
}

p.info-caption,
p.image-caption,
p.caption {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 17px;
}
p.info-caption a,
p.image-caption a,
p.caption a {
  border: 0;
}

p.secondary {
  color: var(--text-secondary);
}

p.info-caption {
  margin-bottom: 0px;
  margin-top: 0px;
}

p.image-caption {
  text-align: center;
  margin-top: 8px;
  margin-bottom: 36px;
}
@media screen and (max-width: 710px) {
  p.image-caption {
    text-align: left;
  }
}

ul li, ol li {
  line-height: 42px;
}

article ol,
article ul {
  margin-bottom: 18px;
}
article ol li,
article ul li {
  line-height: 26px;
  margin-bottom: 8px;
}
article ul.list {
  list-style-type: "− ";
}
article ol {
  list-style-type: decimal;
}

article.fix-image img {
  max-width: 690px;
  width: 100%;
}

article .image {
  margin-top: 20px;
}
article h2 + .image,
article h1 + .image {
  margin-top: 20px;
}
article > :last-child {
  margin-bottom: 0;
}

#updates-page article li {
  margin-bottom: 20px;
}
#updates-page article li:last-child {
  margin-bottom: 0;
}
#updates-page article li p {
  margin-bottom: 0;
}

a.icon-link:before {
  content: "";
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: 16px 16px;
  margin-right: 4px;
  top: 2px;
}

a#aseprite-link:before {
  background: no-repeat center/100% url(/img/aseprite-icon.png);
}

a#gb-instagram-link:before {
  background: no-repeat center/100% url(/img/gb-instagram-icon.png);
}

a#gb-showroom-link:before {
  background: no-repeat center/100% url(/img/gb-showroom-icon.png);
}

a#gb-reddit-link:before {
  background: no-repeat center/100% url(/img/gb-reddit-icon.png);
}

.download-button, .download-button:hover {
  border-radius: 8px;
  background: var(--bg-secondary);
  color: var(--text-normal);
  font-weight: 700;
  padding: 12px 30px;
}

.image-item {
  display: none;
}
.image-item:hover {
  cursor: pointer;
}
@media screen and (max-width: 710px) {
  .image-item {
    display: block !important;
    position: relative;
  }
  .image-item::after {
    content: attr(data-title);
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 17px;
  }
  .image-item:hover {
    cursor: default;
  }
}

.image-item.active {
  display: block;
}

.control-segments {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: center;
  font-size: 13px;
  line-height: 17px;
}
@media screen and (max-width: 710px) {
  .control-segments {
    display: none;
  }
}

.segment {
  cursor: pointer;
  color: var(--text-secondary);
}

.segment.active {
  cursor: default;
  color: var(--text-primary);
}

.image-switch,
.button-link {
  cursor: pointer;
  color: var(--text-primary);
  border-bottom: 1px dotted var(--text-secondary);
}
.image-switch:hover,
.button-link:hover {
  border-bottom-color: var(--text-normal);
}

@media screen and (max-width: 710px) {
  .image-switch {
    border: none;
    color: var(--text-normal);
    cursor: text;
  }
}

.image-switch.active {
  border: none;
  cursor: text;
  color: var(--text-secondary);
}
@media screen and (max-width: 710px) {
  .image-switch.active {
    color: var(--text-normal);
  }
}

#sberautotech-page video {
  display: block;
}
@media screen and (max-width: 680px) {
  #sberautotech-page video {
    border-radius: 0;
  }
}
@media screen and (max-width: 402px) {
  #sberautotech-page video {
    border-radius: 8px;
  }
}

#sberautotech-page div.column-2 {
  display: grid;
  grid-template-columns: repeat(2, 480px);
  gap: 28px;
  padding: 30px;
  margin: 0 auto;
  background: var(--teal);
  background: #34B7AA;
  border-radius: 16px;
  max-width: 988px;
}
@media screen and (max-width: 1087px) {
  #sberautotech-page div.column-2 {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}
@media screen and (max-width: 402px) {
  #sberautotech-page div.column-2 {
    gap: 20px;
    padding: 20px;
  }
}
#sberautotech-page div.column-2 video {
  width: 480px;
  margin: 0;
  border-radius: 12px;
}
@media screen and (max-width: 1087px) {
  #sberautotech-page div.column-2 video {
    width: 640px;
  }
}

#macintosh-pi-page .tweets .image {
  margin: 0;
}

.hystmodal__opened {
  position: fixed;
  right: 0;
  left: 0;
  overflow: hidden;
}

.hystmodal__shadow {
  position: fixed;
  border: none;
  display: block;
  width: 100%;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 98;
  opacity: 0;
  background-color: var(--bg-overlay);
}

.hystmodal__shadow--show {
  pointer-events: auto;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.hystmodal {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 1;
  pointer-events: none;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  z-index: 99;
  visibility: hidden;
}

.hystmodal--active {
  opacity: 1;
}

.hystmodal--moved,
.hystmodal--active {
  pointer-events: auto;
  visibility: visible;
}

.hystmodal__wrap {
  flex-shrink: 0;
  flex-grow: 0;
  width: 100%;
  min-height: 100%;
  margin: auto;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
}

.hystmodal__window {
  margin: 40px auto;
  box-sizing: border-box;
  flex-shrink: 0;
  flex-grow: 0;
  overflow: visible;
  opacity: 0;
  border-radius: 24px;
  max-width: 690px;
  min-width: 355px;
  padding: 30px 32px 40px;
  background: var(--bg-popup);
  box-shadow: 0px 40px 60px rgba(0, 0, 0, 0.1);
}
@media screen and (max-width: 710px) {
  .hystmodal__window {
    margin: 10px;
  }
}
.hystmodal__window h1 {
  margin-right: 58px;
}

.hystmodal--active .hystmodal__window {
  transform: translateY(0px);
  opacity: 1;
  transition: transform 0.2s ease 0s, opacity 0.2s ease 0s;
}

button.hystmodal__close {
  width: 48px;
  height: 48px;
  border: none;
  position: absolute;
  top: 32px;
  right: 32px;
  border-radius: 24px;
  text-indent: -9999px;
  background: var(--close-icon);
}

.hystmodal__close:hover {
  background: var(--close-icon-hover);
}

#menu-modal h2 {
  color: var(--text-secondary);
}
#menu-modal .card {
  background: none;
}
#menu-modal .hystmodal__wrap {
  align-items: flex-end;
  justify-content: flex-end;
}
#menu-modal .hystmodal__window {
  max-width: 100%;
  padding: 0px;
  margin: 20px 78px 20px 0;
  width: 670px;
}
@media screen and (max-width: 767px) {
  #menu-modal .hystmodal__window {
    margin: 10px;
    border-radius: 34px;
  }
}
@media screen and (max-width: 689px) {
  #menu-modal .hystmodal__window {
    width: 355px;
  }
}

ul.menu-modal-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
ul.menu-modal-grid > li {
  display: inline-block;
}

.clock {
  width: 67px;
  height: 67px;
  position: relative;
  padding: 6px;
}

.outer-clock-face {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 100%;
}

.outer-clock-face::after {
  -webkit-transform: rotate(90deg);
  -moz-transform: rotate(90deg);
  transform: rotate(90deg);
}

.outer-clock-face::after,
.outer-clock-face::before,
.outer-clock-face .marking {
  content: "";
  position: absolute;
  width: 1px;
  height: 100%;
  background: var(--bg-inverse);
  z-index: 0;
  left: 49%;
}

.outer-clock-face .marking.marking-one {
  -webkit-transform: rotate(30deg);
  -moz-transform: rotate(30deg);
  transform: rotate(30deg);
}

.outer-clock-face .marking.marking-two {
  -webkit-transform: rotate(60deg);
  -moz-transform: rotate(60deg);
  transform: rotate(60deg);
}

.outer-clock-face .marking.marking-three {
  -webkit-transform: rotate(120deg);
  -moz-transform: rotate(120deg);
  transform: rotate(120deg);
}

.outer-clock-face .marking.marking-four {
  -webkit-transform: rotate(150deg);
  -moz-transform: rotate(150deg);
  transform: rotate(150deg);
}

.inner-clock-face {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 61px;
  height: 61px;
  background: var(--bg-normal);
  -webkit-border-radius: 100%;
  -moz-border-radius: 100%;
  border-radius: 100%;
  z-index: 1;
}

.inner-clock-face::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 27px;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: red;
  z-index: 5;
}

.hand {
  height: 1px;
  right: 50%;
  top: 50%;
  background: var(--bg-inverse);
  position: absolute;
  border-radius: 1px;
  transform-origin: 100%;
  transform: rotate(90deg);
  transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
}

.hand.hour-hand {
  width: 24px;
  z-index: 2;
  top: calc(50% - 0.5px);
}

.hand.min-hand {
  z-index: 3;
  width: 32px;
  top: calc(50% - 0.5px);
  right: calc(50% + 0.5px);
}

.hand.second-hand {
  background: red;
  width: 34px;
  height: 1px;
  z-index: 4;
}

html {
  background: var(--bg-normal);
  color: var(--text-normal);
  height: -webkit-fill-available;
  word-break: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html#main-page,
html#about-site-page,
html#kinopoisk-page,
html#yandex-afisha-page,
html#gameboys-page,
html#sketch-1984-page,
html#famicom-covers-page,
html#sberautotech-page,
html#gb-studio-page,
html#lists-page,
html#misc-page,
html#hobby-page {
  background: var(--bg-secondary);
}
html#main-page li.footer_navigation,
html#about-site-page li.footer_navigation,
html#kinopoisk-page li.footer_navigation,
html#yandex-afisha-page li.footer_navigation,
html#gameboys-page li.footer_navigation,
html#sketch-1984-page li.footer_navigation,
html#famicom-covers-page li.footer_navigation,
html#sberautotech-page li.footer_navigation,
html#gb-studio-page li.footer_navigation,
html#lists-page li.footer_navigation,
html#misc-page li.footer_navigation,
html#hobby-page li.footer_navigation {
  background: var(--bg-blur-secondary);
}

html#not-found-page {
  filter: grayscale(100%);
}

body {
  font-family: "Coil", sans-serif;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: flex;
  flex-direction: column;
  margin: 0 20px;
  font-size: 18px;
}

h1, h2, h3, h4, nav, strong {
  font-weight: 700;
}

.content {
  flex: 1 0 auto;
}

.nowrap {
  white-space: nowrap;
  display: inline;
}

.star {
  color: var(--yellow);
}

.book-note {
  color: var(--text-secondary);
}

.center {
  text-align: center;
}

::-moz-selection {
  color: var(--text-inverse);
  background: var(--bg-inverse);
}

::selection {
  color: var(--text-inverse);
  background: var(--bg-inverse);
}

nav,
.link,
nav li {
  font-size: 18px;
  line-height: 22px;
}

a:active {
  position: relative;
  top: 1px;
}

#books-page article a[target=_blank]:after, #games-page article a[target=_blank]:after, #movies-page article a[target=_blank]:after {
  content: none;
}

img {
  max-width: 100%;
  margin: 0 auto;
  display: block;
}

.center-page, .more-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  height: calc(100vh - 176px);
}
.center-page h3, .more-links h3 {
  margin-bottom: 8px;
}

.more-links {
  height: calc(100vh - 176px);
  margin-top: 88px;
}

nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 88px;
}

nav li {
  list-style-type: none;
}

nav li.name {
  flex-grow: 1;
}
nav li.name a {
  color: var(--text-normal);
}
nav li.name .announcement,
nav li.name .sub_nav {
  font-weight: normal;
  font-size: 13px;
  line-height: 17px;
}
nav li.name .announcement a,
nav li.name .sub_nav a {
  color: var(--text-secondary);
}
nav li.name .announcement a:hover,
nav li.name .sub_nav a:hover {
  color: var(--text-normal);
}

nav li.contact {
  text-align: right;
  font-weight: 400;
}
nav li.contact a:hover {
  cursor: pointer;
}

nav li.local {
  font-weight: 400;
}
nav li.local a {
  color: var(--text-secondary);
}

a.avatar,
div.avatar,
a.theme-toggle {
  display: inline-block;
  width: 48px;
  height: 48px;
  text-indent: -9999px;
  background: no-repeat center/100% url("/img/avatar.png");
}

nav span {
  display: inline-block;
}

footer {
  flex-shrink: 0;
}
footer li.year {
  font-weight: 400;
}
footer li.footer_navigation {
  background: var(--bg-blur-normal);
  backdrop-filter: var(--bg-blur-effect);
  -webkit-backdrop-filter: var(--bg-blur-effect);
  flex-grow: 1;
  position: fixed;
  z-index: 10;
  bottom: 20px;
  right: 78px;
  padding: 0 20px;
  border-radius: 24px;
}
@media screen and (max-width: 649px) {
  footer li.footer_navigation {
    display: none;
  }
}
footer li.footer_navigation ul {
  display: flex;
  gap: 20px;
  height: 48px;
  align-items: center;
}
footer li.footer_navigation ul li {
  color: var(--text-secondary);
}
footer li.footer_navigation ul a.parent_link {
  color: var(--text-secondary);
}
footer li.footer_navigation ul li.sub_link a {
  font-weight: 400;
}
@media screen and (max-width: 910px) {
  footer li.footer_navigation ul li.sub_link {
    display: none;
  }
}

button {
  font-family: "Coil";
  font-weight: 700;
}

button.menu-button {
  color: var(--text-inverse);
  display: inline-block;
  height: 48px;
  width: 48px;
  border-radius: 24px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  border: none;
  text-indent: -9999px;
  background: var(--menu-icon);
}
@media screen and (max-width: 649px) {
  button.menu-button {
    background: var(--bg-inverse);
    text-indent: 0;
    width: 100px;
  }
}

button.menu-button-active {
  z-index: 100;
  background: var(--close-icon-hover);
}
@media screen and (max-width: 649px) {
  button.menu-button-active {
    background: var(--bg-inverse);
  }
}

#menu-modal nav {
  padding: 0;
}
#menu-modal button.menu-button {
  bottom: 10px;
  right: 10px;
}
a.list_link,
li.list_link {
  line-height: 1.1;
}

.book-note a {
  color: var(--text-secondary);
}
:root .photo-day,
html[data-theme=light] .photo-day {
  display: block;
  visibility: visible;
}
:root .photo-night,
html[data-theme=light] .photo-night {
  display: none;
  visibility: hidden;
}

html[data-theme=dark] .photo-day {
  display: none;
  visibility: hidden;
}
html[data-theme=dark] .photo-night {
  display: block;
  visibility: visible;
}

.twemoji {
  display: inline-block;
  position: relative;
  top: -2px;
}

li.nda {
  color: var(--text-disable);
}
li.nda:after {
  content: "";
  position: relative;
  top: 5px;
  left: 4px;
  display: inline-block;
  transform: rotate(15deg);
  background: var(--nda-icon);
  width: 22px;
  height: 22px;
  background-size: 22px 22px;
}

li.nda:hover {
  cursor: default;
}

li.dlc:before {
  top: -3px;
  left: 0px;
  width: 37px;
  content: "DLC";
  font-size: 11px;
  font-weight: 700;
  line-height: 22px;
  margin-right: 4px;
  text-align: center;
  position: relative;
  display: inline-block;
  background-size: 37px 22px;
  background: var(--bg-overlay);
  border-radius: 4px;
}

.card .label {
  position: absolute;
  top: 20px;
  right: 20px;
  color: black;
  font-weight: 700;
  line-height: 1;
  padding: 10px;
  transform: rotate(10deg);
  border-radius: 8px;
}

.lavender {
  background: #CFC8FF;
}

.label.violet {
  background: #7725FB;
  color: var(--white);
}

.yellow {
  background: var(--yellow);
}

.cool-gray {
  background: #DCDFE4;
}

q:lang(en):before {
  content: "“";
}

q:lang(en):after {
  content: "”";
}

q:lang(ru):before {
  content: "«";
}

q:lang(ru):after {
  content: "»";
}

.tweets {
  display: flex;
  gap: 20px;
}
@media (max-width: 690px) {
  .tweets {
    flex-direction: column;
  }
}

.tweets__col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tweet-card {
  background: var(--bg-normal);
  border-radius: 8px;
  padding: 20px;
  position: relative;
  transition: 0.3s;
}
.tweet-card:hover {
  transform: translateY(-4px);
}
.tweet-card a:after {
  content: "";
}
.tweet-card__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 10px;
}
.tweet-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.tweet-card__meta {
  display: grid;
  align-content: center;
  min-width: 0;
}
.tweet-card__row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.tweet-card__name {
  font-weight: 700;
  white-space: nowrap;
}
.tweet-card__verified {
  width: 18px;
  height: 18px;
  display: inline-block;
  background: transparent url("/img/tweet/verified.svg") no-repeat center/contain;
}
.tweet-card__handle {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 16px;
}
.tweet-card__logo, .tweet-card__logo-linkedin {
  width: 28px;
  height: 28px;
  display: inline-block;
}
.tweet-card__logo {
  background: transparent url("/img/tweet/twitter.svg") no-repeat center/contain;
}
.tweet-card__logo-linkedin {
  background: transparent url("/img/tweet/linkedin.svg") no-repeat center/contain;
}
.tweet-card__body {
  margin-top: 20px;
}
.tweet-card__body p {
  font-size: 19px;
  line-height: 26px;
  margin-bottom: 30px;
}
.tweet-card__body a {
  color: #4C82EE;
  text-decoration: none;
  border: none;
  position: relative;
  z-index: 1;
}
.tweet-card__body a:hover, .tweet-card__body a:focus {
  color: #2F66D4;
}
.tweet-card__footer, .tweet-card__footer a {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 16px;
}
.tweet-card__footer a {
  position: absolute;
  display: block;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.tweet-card .emoji {
  width: 20px;
  height: 20px;
  vertical-align: -0.2em;
  display: inline-block;
}

@media (max-width: 720px) {
  .tweet-card {
    flex: 1 1 100%;
  }
}
@font-face {
  font-family: "Coil";
  src: url("../font/Coil-Regular.eot");
  src: url("../font/Coil-Regular.eot?#iefix") format("embedded-opentype"), url("../font/Coil-Regular.woff2") format("woff2"), url("../font/Coil-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Coil";
  src: url("../font/Coil-Bold.eot");
  src: url("../font/Coil-Bold.eot?#iefix") format("embedded-opentype"), url("../font/Coil-Bold.woff2") format("woff2"), url("../font/Coil-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
::-webkit-scrollbar {
  width: 0;
}
