@charset "UTF-8";

/* Shared header and footer. Loaded after the legacy bundles. */

/* Header */
#header {
  position: relative;
  z-index: 50;
  background: var(--sp-theme-dark);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

#header .sp-header-bar {
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr) auto;
  min-height: 80px;
  align-items: center;
  gap: 24px;
}

#header .logo.sp-header-brand {
  position: relative;
  z-index: 1;
  width: auto;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
  text-align: left;
}

#header .sp-header-brand a {
  display: inline-flex;
  max-width: 100%;
  height: 64px;
  align-items: center;
}

#header .sp-header-brand img {
  display: block;
  width: auto;
  max-width: 172px;
  max-height: 58px;
  margin: 0;
  object-fit: contain;
}

#header .sp-header-main,
#header .sp-header-nav {
  min-width: 0;
}

#header .sp-header-nav {
  display: flex;
  width: 100%;
  align-items: stretch;
  justify-content: flex-end;
}

#header .nav .sf-menu {
  display: flex;
  min-width: 0;
  align-items: stretch;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  float: none;
}

#header .nav .sf-menu > li {
  display: flex;
  align-items: stretch;
  float: none;
  overflow: visible;
  text-transform: none;
}

#header .nav .sf-menu > li > a {
  position: relative;
  display: inline-flex;
  min-height: 80px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #cbd4dc;
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

#header .nav .sf-menu > li > a:hover,
#header .nav .sf-menu > li.active > a {
  background: transparent;
  color: #fff;
}

#header .nav .sf-menu > li > a::after {
  position: absolute;
  bottom: 15px;
  left: 50%;
  width: 0;
  height: 2px;
  transform: translateX(-50%);
  background: var(--sp-theme-accent);
  content: "";
  transition: width 0.2s ease;
}

#header .nav .sf-menu > li > a:hover::after,
#header .nav .sf-menu > li.active > a::after {
  width: 28px;
}

#header .sp-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#header .sp-header-socials {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  margin: 0;
  padding: 0;
}

#header .sp-header-social-link,
#header .sp-header-social-more,
#header .sp-header-social-overflow-link {
  display: inline-flex;
  width: 30px;
  height: 36px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #aebbc5;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
}

#header .sp-header-social-link:hover,
#header .sp-header-social-link:focus,
#header .sp-header-social-overflow-link:hover,
#header .sp-header-social-overflow-link:focus {
  transform: translateY(-1px);
  color: var(--sp-social-color, #fff);
  outline: none;
  text-decoration: none;
}

#header .sp-header-social-link i,
#header .sp-header-social-more i,
#header .sp-header-social-overflow-link i,
#header .sp-lang-toggle i {
  padding: 0;
  color: inherit;
}

#header .sp-header-social-more,
#header .sp-header-social-overflow {
  display: none;
}

#header .sp-lang-switch {
  position: relative;
  flex: 0 0 auto;
}

#header .sp-lang-toggle {
  display: inline-flex;
  min-width: 120px;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 2px;
  background: transparent;
  color: #d7dfe5;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#header .sp-lang-toggle:hover,
#header .sp-lang-toggle:focus,
#header .sp-lang-switch.is-open .sp-lang-toggle {
  border-color: #5e7587;
  background: #283641;
  color: #fff;
  outline: none;
}

#header .sp-lang-arrow {
  margin-left: 2px;
  transition: transform 0.2s ease;
}

#header .sp-lang-switch.is-open .sp-lang-arrow {
  transform: rotate(180deg);
}

#header .sp-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 100;
  width: 216px;
  padding: 7px;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  border: 1px solid #dce3e8;
  box-shadow: 0 16px 36px rgba(7, 22, 34, 0.24);
  transform: translateY(-7px);
  transition: visibility 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

#header .sp-lang-switch.is-open .sp-lang-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

#header .sp-lang-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 10px;
  color: #4e5d68;
  text-decoration: none;
}

#header .sp-lang-option:hover,
#header .sp-lang-option:focus {
  background: #edf4f9;
  color: var(--sp-theme-primary);
  outline: none;
  text-decoration: none;
}

#header .sp-lang-option.is-active {
  background: var(--sp-theme-pale-bg);
  color: var(--sp-theme-primary);
  font-weight: 700;
}

#header .sp-lang-code {
  display: inline-flex;
  height: 26px;
  align-items: center;
  justify-content: center;
  background: #e9eef2;
  color: #60717e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

#header .sp-lang-option.is-active .sp-lang-code {
  background: var(--sp-theme-primary);
  color: #fff;
}

#header .sp-lang-name {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Footer */
#footer {
  padding: 64px 0 0;
  background: linear-gradient(135deg, #17222c 0%, #101922 100%);
  color: #9cabb7;
}

#footer .sp-footer-grid {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(220px, 1.3fr) minmax(150px, 0.78fr) minmax(250px, 1.35fr);
  gap: 48px;
  align-items: start;
}

#footer .sp-footer-logo {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
}

#footer .sp-footer-logo img {
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 70px;
  margin: 0;
  object-fit: contain;
}

#footer .sp-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

#footer .sp-footer-socials a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #aab8c3;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

#footer .sp-footer-socials i {
  padding: 0;
  color: inherit;
  font-size: 15px;
}

#footer .sp-footer-socials a:hover,
#footer .sp-footer-socials a:focus {
  border-color: var(--sp-social-color, var(--sp-theme-primary));
  background: var(--sp-social-color, var(--sp-theme-primary));
  color: #fff;
  outline: none;
}

#footer .title {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 14px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

#footer .title::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 2px;
  background: var(--sp-theme-accent);
  content: "";
}

#footer .title a {
  color: #fff;
}

#footer .sp-footer-about p {
  margin: 0;
  color: #97a7b3;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

#footer .sp-footer-nav {
  padding: 0;
}

#footer .sp-footer-nav ul {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .sp-footer-nav li {
  margin: 0;
  padding: 0;
}

#footer .sp-footer-nav li a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: #a4b2bd;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

#footer .sp-footer-nav li i {
  padding: 0;
  color: var(--sp-theme-primary);
  transition: transform 0.2s ease;
}

#footer .sp-footer-nav li a:hover,
#footer .sp-footer-nav li a:focus {
  color: #fff;
  outline: none;
}

#footer .sp-footer-nav li a:hover i {
  transform: translateX(3px);
}

#footer .sp-footer-contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer .sp-footer-contact-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin: 0;
  padding: 0;
  color: #9eacb7;
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

#footer .sp-footer-contact-list i {
  padding: 3px 0 0;
  color: #68a9d5;
  text-align: center;
}

#footer .sp-footer-contact-list a {
  color: #b7c5cf;
}

#footer .sp-footer-contact-list a:hover,
#footer .sp-footer-contact-list a:focus {
  color: #fff;
  outline: none;
}

#footer .copyright {
  min-height: 58px;
  margin-top: 52px;
  padding: 19px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #71808b;
  font-size: 12px;
  line-height: 1.65;
  text-align: center;
}

#footer .copyright a {
  color: #8797a3;
  text-decoration: none;
}

#footer .copyright a:hover,
#footer .copyright a:focus {
  color: #fff;
  outline: none;
  text-decoration: underline;
}

@media (min-width: 768px) {
  #header {
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  #sendform {
    scroll-margin-top: 96px;
  }
}

@media (max-width: 767px) {
  #sendform {
    scroll-margin-top: 16px;
  }
}

@media (max-width: 1279px) {
  #header .sp-header-bar {
    grid-template-columns: 170px minmax(0, 1fr) auto;
    gap: 16px;
  }

  #header .nav .sf-menu > li > a {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
  }

  #header .sp-header-social-link {
    width: 27px;
    flex-basis: 27px;
  }

  #footer .sp-footer-grid {
    gap: 32px;
  }
}

@media (max-width: 991px) {
  #header .sp-header-bar {
    grid-template-columns: 150px minmax(0, 1fr) auto;
    gap: 10px;
  }

  #header .sp-header-brand img {
    max-width: 148px;
  }

  #header .nav .sf-menu > li > a {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 11px;
  }

  #header .sp-lang-toggle {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }

  #header .sp-lang-toggle > span,
  #header .sp-lang-arrow {
    display: none;
  }

  #footer .sp-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 50px;
  }
}

@media (max-width: 767px) {
  .rd-mobilepanel {
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--sp-theme-dark);
    box-shadow: 0 5px 18px rgba(8, 19, 28, 0.18);
  }

  .rd-mobilepanel_toggle {
    background: transparent;
  }

  .rd-mobilepanel_title {
    color: #eef3f7;
    font-size: 16px;
    font-weight: 600;
  }

  .rd-mobilemenu {
    z-index: 999;
  }

  #header .sp-header-bar {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 82px;
    gap: 12px;
    padding: 0 12px;
  }

  #header .sp-header-brand a {
    height: 62px;
  }

  #header .sp-header-brand img {
    max-width: 150px;
    max-height: 54px;
  }

  #header .sp-header-main {
    display: none !important;
  }

  #header .sp-header-actions {
    display: flex;
  }

  #header .sp-lang-toggle {
    display: inline-flex;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
  }

  #header .sp-lang-toggle > span,
  #header .sp-lang-arrow {
    display: none;
  }

  #header .sp-header-socials {
    gap: 1px;
  }

  #header .sp-header-social-link {
    width: 28px;
    height: 36px;
    flex-basis: 28px;
  }

  #header .sp-header-social-link:nth-of-type(n + 4) {
    display: none;
  }

  #header .sp-header-social-more {
    display: inline-flex;
    width: 28px;
    height: 36px;
    flex-basis: 28px;
  }

  #header .sp-header-social-more:hover,
  #header .sp-header-social-more:focus,
  #header .sp-header-socials.is-open .sp-header-social-more {
    color: #fff;
  }

  #header .sp-header-social-overflow {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 110;
    width: max-content;
    max-width: calc(100vw - 24px);
    align-items: center;
    gap: 4px;
    padding: 7px 9px;
    visibility: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: #26333e;
    box-shadow: 0 12px 28px rgba(7, 22, 34, 0.3);
    opacity: 0;
    transform: translateY(-5px);
    pointer-events: none;
    transition: visibility 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
  }

  #header .sp-header-socials.is-open .sp-header-social-overflow {
    visibility: visible;
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  #header .sp-header-social-overflow-link {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
  }

  #header .sp-lang-menu {
    top: calc(100% + 8px);
    width: min(216px, calc(100vw - 30px));
  }

  #footer {
    padding-top: 46px;
  }

  #footer .sp-footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  #footer .sp-footer-brand {
    padding-bottom: 30px;
    text-align: center;
  }

  #footer .sp-footer-logo {
    justify-content: center;
  }

  #footer .sp-footer-socials {
    justify-content: center;
    margin-top: 18px;
  }

  #footer .sp-footer-about,
  #footer .sp-footer-nav,
  #footer .sp-footer-contact {
    padding: 27px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  #footer .title {
    margin-bottom: 18px;
  }

  #footer .sp-footer-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #footer .sp-footer-nav li a {
    display: flex;
    min-height: 42px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.035);
  }

  #footer .sp-footer-contact-list {
    gap: 12px;
  }

  #footer .copyright {
    margin-top: 8px;
    padding: 18px 20px;
  }
}

@media (max-width: 420px) {
  #footer .sp-footer-nav ul {
    grid-template-columns: 1fr;
  }
}

/* Floating quick tools / social media */
#gotop.sp-gotop {
  position: fixed;
  z-index: 980;
  top: calc(50% - 56px);
  right: 18px;
  bottom: auto;
  display: flex;
  width: 52px;
  margin: 0;
  flex-direction: column;
  gap: 8px;
  transform: none;
}

#gotop.sp-gotop .sp-gotop-social {
  position: relative;
}

#gotop.sp-gotop .sp-gotop-button {
  position: relative;
  display: flex;
  width: 52px;
  height: 52px;
  min-width: 52px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 15px;
  outline: 0;
  background: linear-gradient(145deg, var(--sp-theme-primary), var(--sp-theme-action));
  box-shadow: 0 10px 24px rgba(7, 31, 55, 0.2);
  color: #fff;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#gotop.sp-gotop .sp-gotop-contact {
  background: linear-gradient(145deg, #243746, var(--sp-theme-dark));
}

#gotop.sp-gotop .cd-top {
  text-indent: 0;
  white-space: normal;
  background: linear-gradient(145deg, #415364, var(--sp-theme-dark-control));
}

#gotop.sp-gotop .sp-gotop-button > i,
#gotop.sp-gotop .cd-top > i {
  position: static;
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  transform: none;
  color: inherit;
  font-size: 20px;
  line-height: 1;
  text-indent: 0;
}

#gotop.sp-gotop .sp-gotop-button:hover,
#gotop.sp-gotop .sp-gotop-button:focus-visible,
#gotop.sp-gotop .sp-gotop-social.is-open .sp-gotop-trigger {
  transform: translateX(-3px);
  background: linear-gradient(145deg, var(--sp-theme-action), var(--sp-theme-primary));
  box-shadow: 0 13px 28px rgba(7, 31, 55, 0.28);
  color: #fff;
  text-decoration: none;
}

#gotop.sp-gotop .sp-gotop-button-label {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  width: max-content;
  max-width: 180px;
  padding: 8px 11px;
  visibility: hidden;
  transform: translate(6px, -50%);
  border-radius: 8px;
  background: var(--sp-theme-dark);
  box-shadow: 0 8px 20px rgba(7, 31, 55, 0.2);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

#gotop.sp-gotop .sp-gotop-button:hover .sp-gotop-button-label,
#gotop.sp-gotop .sp-gotop-button:focus-visible .sp-gotop-button-label {
  visibility: visible;
  transform: translate(0, -50%);
  opacity: 1;
}

#gotop.sp-gotop .sp-gotop-social .sp-gotop-button-label {
  display: none;
}

#gotop.sp-gotop .cd-top {
  visibility: hidden;
  display: flex;
  transform: translateY(8px);
  opacity: 0;
  pointer-events: none;
}

#gotop.sp-gotop .cd-top.cd-is-visible {
  visibility: visible;
  display: flex;
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

#gotop.sp-gotop .sp-gotop-panel {
  position: absolute;
  z-index: 2;
  top: -84px;
  right: calc(100% + 14px);
  width: 326px;
  padding: 0;
  visibility: hidden;
  transform: translateX(12px) scale(0.98);
  transform-origin: right top;
  overflow: visible;
  border: 1px solid rgba(15, 45, 70, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 54px rgba(7, 31, 55, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

#gotop.sp-gotop .sp-gotop-panel--count-0 {
  width: 240px;
}

#gotop.sp-gotop .sp-gotop-panel--count-1,
#gotop.sp-gotop .sp-gotop-panel--count-2 {
  width: 300px;
}

#gotop.sp-gotop .sp-gotop-panel::before {
  position: absolute;
  top: 110px;
  right: -8px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  border-top: 1px solid rgba(15, 45, 70, 0.08);
  border-right: 1px solid rgba(15, 45, 70, 0.08);
  background: #fff;
  content: '';
}

#gotop.sp-gotop .sp-gotop-panel::after {
  position: absolute;
  top: 0;
  right: -15px;
  width: 16px;
  height: 100%;
  content: '';
}

#gotop.sp-gotop .sp-gotop-social:hover .sp-gotop-panel,
#gotop.sp-gotop .sp-gotop-social:focus-within .sp-gotop-panel,
#gotop.sp-gotop .sp-gotop-social.is-open .sp-gotop-panel {
  visibility: visible;
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

#gotop.sp-gotop .sp-gotop-panel-head {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-radius: 17px 17px 0 0;
  background: linear-gradient(135deg, var(--sp-theme-dark), #243f55);
  color: #fff;
}

#gotop.sp-gotop .sp-gotop-panel-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--sp-theme-accent);
  font-size: 17px;
}

#gotop.sp-gotop .sp-gotop-panel-head strong,
#gotop.sp-gotop .sp-gotop-panel-head small {
  display: block;
}

#gotop.sp-gotop .sp-gotop-panel-head strong {
  margin-bottom: 3px;
  font-size: 15px;
  line-height: 1.25;
}

#gotop.sp-gotop .sp-gotop-panel-head small {
  color: rgba(255, 255, 255, 0.67);
  font-size: 11px;
  line-height: 1.35;
}

#gotop.sp-gotop .sp-gotop-social-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 14px;
}

#gotop.sp-gotop .sp-gotop-panel--count-0 .sp-gotop-social-list {
  grid-template-columns: 1fr;
}

#gotop.sp-gotop .sp-gotop-panel--count-2 .sp-gotop-image-item {
  grid-column: 1 / -1;
}

#gotop.sp-gotop .sp-gotop-social-item {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 61px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 8px;
  overflow: hidden;
  border: 1px solid #e7edf2;
  border-radius: 12px;
  outline: 0;
  background: #f8fafc;
  color: #253845;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

#gotop.sp-gotop .sp-gotop-social-item:hover,
#gotop.sp-gotop .sp-gotop-social-item:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--sp-social-color, var(--sp-theme-primary)) 32%, #dfe7ed);
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 48, 70, 0.1);
  color: #172a38;
  text-decoration: none;
}

#gotop.sp-gotop .sp-gotop-social-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--sp-social-color, var(--sp-theme-primary)) 11%, #fff);
  color: var(--sp-social-color, var(--sp-theme-primary));
  font-size: 16px;
}

#gotop.sp-gotop .sp-gotop-qr-icon {
  --sp-social-color: var(--sp-theme-primary);
}

#gotop.sp-gotop .sp-gotop-social-copy {
  min-width: 0;
  flex: 1;
}

#gotop.sp-gotop .sp-gotop-social-copy strong,
#gotop.sp-gotop .sp-gotop-social-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#gotop.sp-gotop .sp-gotop-social-copy strong {
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

#gotop.sp-gotop .sp-gotop-social-copy small {
  margin-top: 2px;
  color: #8795a1;
  font-size: 9px;
  line-height: 1.25;
}

#gotop.sp-gotop .sp-gotop-external {
  flex: 0 0 auto;
  color: #a3afb8;
  font-size: 9px;
}

#gotop.sp-gotop .sp-gotop-image-item {
  position: relative;
  min-width: 0;
}

#gotop.sp-gotop .sp-gotop-image-preview,
#gotop.sp-gotop #codeimg.sp-gotop-image-preview {
  position: absolute;
  z-index: 5;
  top: auto;
  right: calc(100% + 24px);
  bottom: 0;
  display: block;
  width: 224px;
  height: auto;
  min-height: 224px;
  padding: 11px;
  visibility: hidden;
  transform: translateX(10px) scale(0.98);
  overflow: hidden;
  border: 1px solid rgba(15, 45, 70, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(7, 31, 55, 0.25);
  color: #687985;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

#gotop.sp-gotop .sp-gotop-image-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 9px;
  background: #fff;
}

#gotop.sp-gotop #codeimg.sp-gotop-image-preview canvas,
#gotop.sp-gotop #codeimg.sp-gotop-image-preview img,
#gotop.sp-gotop #codeimg.sp-gotop-image-preview table {
  display: block;
  max-width: 100%;
  margin: 7px auto 0;
}

#gotop.sp-gotop #codeimg.sp-gotop-image-preview {
  box-sizing: border-box;
  height: 252px;
  min-height: 252px;
}

#gotop.sp-gotop .sp-gotop-image-item:hover .sp-gotop-image-preview,
#gotop.sp-gotop .sp-gotop-image-item:focus-within .sp-gotop-image-preview,
#gotop.sp-gotop .sp-gotop-image-item.is-preview-open .sp-gotop-image-preview,
#gotop.sp-gotop .sp-gotop-image-item:hover #codeimg.sp-gotop-image-preview,
#gotop.sp-gotop .sp-gotop-image-item:focus-within #codeimg.sp-gotop-image-preview,
#gotop.sp-gotop .sp-gotop-image-item.is-preview-open #codeimg.sp-gotop-image-preview {
  visibility: visible;
  display: block !important;
  transform: translateX(0) scale(1);
  opacity: 1 !important;
}

@media (max-width: 767px) {
  #gotop.sp-gotop {
    top: auto;
    right: 12px;
    bottom: 12px;
    width: auto;
    flex-direction: row;
    gap: 7px;
    transform: none;
  }

  #gotop.sp-gotop .sp-gotop-button {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 13px;
    font-size: 18px;
  }

  #gotop.sp-gotop .cd-top {
    order: -1;
  }

  #gotop.sp-gotop .sp-gotop-button:hover,
  #gotop.sp-gotop .sp-gotop-button:focus-visible,
  #gotop.sp-gotop .sp-gotop-social.is-open .sp-gotop-trigger {
    transform: translateY(-2px);
  }

  #gotop.sp-gotop .sp-gotop-button-label {
    display: none;
  }

  #gotop.sp-gotop .sp-gotop-panel {
    position: fixed;
    top: auto;
    right: 12px;
    bottom: 68px;
    width: min(326px, calc(100vw - 24px));
    max-height: calc(100vh - 90px);
    transform: translateY(10px) scale(0.98);
    transform-origin: right bottom;
  }

  #gotop.sp-gotop .sp-gotop-social-list {
    max-height: calc(100vh - 180px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #gotop.sp-gotop .sp-gotop-image-item {
    grid-column: 1 / -1;
  }

  #gotop.sp-gotop .sp-gotop-panel--count-0 {
    width: min(240px, calc(100vw - 24px));
  }

  #gotop.sp-gotop .sp-gotop-panel--count-1,
  #gotop.sp-gotop .sp-gotop-panel--count-2 {
    width: min(300px, calc(100vw - 24px));
  }

  #gotop.sp-gotop .sp-gotop-panel::before {
    top: auto;
    right: 68px;
    bottom: -8px;
    transform: rotate(135deg);
  }

  #gotop.sp-gotop .sp-gotop-panel::after {
    top: auto;
    right: 0;
    bottom: -16px;
    width: 60px;
    height: 17px;
  }

  #gotop.sp-gotop .sp-gotop-social:hover .sp-gotop-panel,
  #gotop.sp-gotop .sp-gotop-social:focus-within .sp-gotop-panel,
  #gotop.sp-gotop .sp-gotop-social.is-open .sp-gotop-panel {
    transform: translateY(0) scale(1);
  }

  #gotop.sp-gotop .sp-gotop-image-preview,
  #gotop.sp-gotop #codeimg.sp-gotop-image-preview {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
    visibility: hidden;
    transform: none;
    border-width: 0;
    border-radius: 12px;
    box-shadow: none;
    opacity: 0;
    transition: max-height 0.22s ease, margin 0.22s ease, padding 0.22s ease, opacity 0.18s ease, visibility 0.18s ease;
  }

  #gotop.sp-gotop #codeimg.sp-gotop-image-preview {
    height: auto;
    min-height: 0;
  }

  #gotop.sp-gotop .sp-gotop-image-item:hover .sp-gotop-image-preview,
  #gotop.sp-gotop .sp-gotop-image-item:focus-within .sp-gotop-image-preview,
  #gotop.sp-gotop .sp-gotop-image-item.is-preview-open .sp-gotop-image-preview,
  #gotop.sp-gotop .sp-gotop-image-item:hover #codeimg.sp-gotop-image-preview,
  #gotop.sp-gotop .sp-gotop-image-item:focus-within #codeimg.sp-gotop-image-preview,
  #gotop.sp-gotop .sp-gotop-image-item.is-preview-open #codeimg.sp-gotop-image-preview {
    min-height: 220px;
    max-height: 250px;
    margin-top: 9px;
    padding: 9px;
    visibility: visible;
    transform: none;
    border-width: 1px;
    opacity: 1;
  }
}

@media (max-width: 380px) {
  #gotop.sp-gotop .sp-gotop-social-list {
    gap: 7px;
    padding: 10px;
  }

  #gotop.sp-gotop .sp-gotop-social-item {
    min-height: 57px;
    padding: 7px;
  }

  #gotop.sp-gotop .sp-gotop-panel-head {
    min-height: 64px;
    padding: 12px 14px;
  }
}
