.b-mobile {
  display: none;
}

.b-desktop-actions {
  position: absolute;
  z-index: 22;
  top: calc(100% + 15px);
  left: 50%;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.b-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 21px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 5px;
  font: 600 15px/1.25 "Microsoft YaHei", "PingFang SC", sans-serif;
  text-align: center;
}

.b-button-primary,
.b-button-primary:visited {
  color: #fff;
  background: #d40012;
}

.b-button-primary:hover {
  color: #fff;
  background: #b6000d;
}

.b-button-secondary,
.b-button-secondary:visited {
  border-color: #fff;
  color: #191919;
  background: #fff;
}

.b-desktop-actions .b-button-secondary {
  border-color: #bdbdbd;
}

.b-button-secondary:hover {
  color: #b6000d;
  background: #fff;
}

.b-button:focus-visible,
.b-mobile :focus-visible {
  outline: 2px solid #ff606a;
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  html, body {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body > #mainContentWrapper {
    display: none !important;
  }

  .b-mobile {
    display: block;
    color: #1e1e1e;
    background: #fff;
    font: 400 16px/1.65 "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  }

  .b-mobile *, .b-mobile *::before, .b-mobile *::after {
    box-sizing: border-box;
  }

  .b-mobile [hidden] {
    display: none !important;
  }

  .b-mobile img {
    display: block;
    width: 100%;
  }

  .b-mobile h2, .b-mobile h3 {
    margin: 0;
    font-weight: 700;
    line-height: 1.25;
  }

  .b-mobile h2 {
    font-size: clamp(24px, 5.4vw, 32px);
  }

  .b-mobile h3 {
    font-size: 21px;
  }

  .b-mobile-header {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 64px;
    padding: 9px clamp(14px, 4vw, 36px);
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 7px;
    color: #fff;
    background: #191919;
    border-top: 3px solid #e60012;
  }

  .b-mobile-header > a {
    display: block;
    width: clamp(119px, 34vw, 160px);
    padding: 8px 10px;
    background: #e60012;
    border-radius: 3px;
  }

  .b-header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .b-header-controls a, .b-mobile-header nav a {
    color: #fff;
    font-size: 14px;
  }

  .b-mobile button {
    cursor: pointer;
    color: inherit;
    font: inherit;
  }

  .b-menu-toggle {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .b-menu-icon {
    display: inline-block;
    width: 15px;
    height: 12px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat;
  }

  .b-mobile-header nav {
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
    border-top: 1px solid #414141;
  }

  .b-mobile-header nav a {
    display: block;
    padding: 11px 2px;
  }

  .b-mobile-hero {
    color: #fff;
    background: #191919;
  }

  .b-hero-slide img {
    height: clamp(174px, 52vw, 350px);
    object-fit: cover;
    object-position: center;
  }

  .b-hero-copy {
    display: flex;
    min-height: 147px;
    flex-direction: column;
    justify-content: center;
    padding: 18px 5% 11px;
    text-align: center;
  }

  .b-hero-copy p {
    margin: 3px 0;
    color: #e1e1e1;
    line-height: 1.42;
    font-size: 15px;
  }

  .b-hero-copy .b-hero-title {
    margin-bottom: 6px;
    color: #fff;
    font-size: clamp(25px, 6.7vw, 38px);
    font-weight: 700;
  }

  .b-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 480px;
    margin: auto;
    padding: 0 16px 24px;
  }

  .b-mobile-actions .b-button {
    min-height: 46px;
    padding: 8px 10px;
  }

  .b-carousel {
    position: relative;
  }

  .b-carousel-controls {
    position: absolute;
    inset: 0 9px auto;
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
  }

  .b-hero-carousel .b-carousel-controls {
    height: clamp(174px, 52vw, 350px);
  }

  .b-carousel-controls button {
    display: grid;
    width: 38px;
    height: 44px;
    place-items: center;
    padding: 0 0 4px;
    border: 1px solid #ffffff55;
    border-radius: 4px;
    color: #fff;
    background: #191919bc;
    font-size: 28px;
    pointer-events: auto;
  }

  .b-mobile-section {
    width: min(100%, 690px);
    margin-inline: auto;
    padding: 0 clamp(16px, 4.5vw, 30px);
  }

  .b-studio {
    padding-top: 30px;
  }

  .b-studio-gallery img,
  .b-work img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
  }

  .b-studio-copy {
    padding-top: 18px;
  }

  .b-section-en {
    margin: 0 0 2px;
    color: #6b6b6b;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .08em;
  }

  .b-studio-copy h2, .b-works > h2 {
    margin-bottom: 14px;
  }

  .b-studio-copy p:not(.b-section-en), .b-work-copy p {
    margin: 0 0 12px;
  }

  .b-works {
    padding-top: 30px;
  }

  .b-work {
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
  }

  .b-work-copy {
    padding: 15px;
  }

  .b-work-copy h3 {
    margin-bottom: 9px;
  }

  .b-work-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    color: #ae0010;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .b-news {
    padding-block: 16px 26px;
    text-align: center;
  }

  .b-contact {
    width: 100%;
    padding: 24px max(5%, calc((100% - 630px) / 2));
    color: #f4f4f4;
    background: #191919;
  }

  .b-contact ul {
    display: grid;
    gap: 8px;
    margin: 14px 0 17px;
    list-style: none;
  }

  .b-contact a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .b-copyright {
    margin: 0;
    color: #c7c7c7;
    font-size: 13px;
  }
}
