@charset "utf-8";

:root {
  --site-max-width: 1600px;
  --surface-bg: #f6f7f9;
  --card-border: #e8eaee;
  --header-shadow: 0 8px 30px rgba(14, 23, 38, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-bg) 100%);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.common-wrapper {
  width: min(var(--site-max-width), calc(100% - 48px));
}

.head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(120%) blur(8px);
  transition: box-shadow 0.25s ease;
}

body.scrolled .head {
  box-shadow: var(--header-shadow);
}

.head-logo img {
  max-height: 56px;
  width: auto;
}

.news-item,
.pro-item,
.adv-item,
.content-item {
  border: 1px solid var(--card-border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.news-item {
  outline: none;
}

.pro-item:hover,
.content-item:hover {
  transform: translateY(-2px);
}

.pro-item,
.content-item,
.news-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.language-dropdown {
  max-height: min(70vh, 520px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.language-item.hidden {
  display: none;
}

.language-dropdown.show-more .language-item.hidden {
  display: flex;
}

.language-dropdown.show-more .more-languages {
  display: none;
}

.foot-right p,
.foot-right a {
  word-break: break-word;
}

.top-btn {
  cursor: pointer;
}

img[loading="lazy"] {
  content-visibility: auto;
}

@media (max-width: 1380px) {
  .common-wrapper {
    width: min(var(--site-max-width), calc(100% - 32px));
  }
}

@media (max-width: 1024px) {
  .head {
    position: sticky;
  }

  .head-wrapper {
    min-height: 68px;
  }
}

@media (max-width: 768px) {
  .common-wrapper {
    width: calc(100% - 24px);
  }

  .head-logo img {
    max-height: 44px;
  }

  .pro,
  .adv,
  .news {
    padding: 38px 0;
  }

  .common-title {
    font-size: 30px;
    line-height: 1.2;
    text-wrap: balance;
  }

  .top-btn {
    width: 42px;
    height: 42px;
  }
}
