/**
 * Шапка 1:1 з modules/tscm/front — header.component styles
 */

.container--header {
  max-width: 1650px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 8px;
}

@media only screen and (max-width: 1024px) {
  .container--header {
    padding: 0 16px;
  }
}

.header {
  position: relative;
  z-index: 10001;
  background: #00000066;
  backdrop-filter: blur(16px);
  margin-top: 8px;
  border-radius: 8px;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 16px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header .logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.header .logo img {
  width: auto;
  height: auto;
  max-width: none;
}

.header-lang-wrap {
  position: relative;
}

.header-lang--desktop {
  display: none;
}

@media only screen and (min-width: 769px) {
  .header-lang--desktop {
    display: block;
  }
}

.header-lang {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease;
  padding: 10px 0 0;
  margin: 0;
  font-family: inherit;
}

.header-lang:hover {
  opacity: 0.85;
}

.header-lang img {
  width: 48px;
  height: 48px;
  max-width: none;
  flex-shrink: 0;
}

.header-lang__text {
  white-space: nowrap;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

.header-lang__arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid rgba(255, 255, 255, 0.4);
  margin-left: 2px;
}

.header-lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin: 8px 0 0;
  padding: 8px 0;
  list-style: none;
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #292929;
  border-radius: 8px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.header-lang-dropdown[hidden] {
  display: none !important;
}

.header-lang-dropdown__item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  text-align: left;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 16px;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.header-lang-dropdown__item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.header-lang-dropdown__item--active {
  color: #ef1a33;
  font-weight: 500;
}

.menu-btn {
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
}

.menu-btn:hover {
  opacity: 0.85;
}

.menu-btn img {
  width: 48px;
  height: 48px;
  max-width: none;
  flex-shrink: 0;
}

.menu-btn__label {
  padding-right: 16px;
  line-height: 1.2;
}

@media only screen and (max-width: 768px) {
  .menu-btn__label {
    display: none;
  }
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-overlay__backdrop {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4);
}

.nav-panel {
  position: relative;
  z-index: 1;
  margin-top: 80px;
  padding: 40px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.9);
  color: #ffffff;
  backdrop-filter: blur(16px);
  overflow: hidden;
}

@media only screen and (max-width: 768px) {
  .nav-panel {
    padding: 20px;
    margin-top: 67px;
  }
}

.nav-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 48px;
  width: 100%;
  max-width: 960px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  padding-bottom: 40px;
}

@media only screen and (max-width: 1024px) {
  .nav-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .nav-columns .nav-columns-list:not(:last-child) {
    margin-bottom: 32px;
  }
}

@media only screen and (max-width: 768px) {
  .nav-columns {
    text-align: center;
    padding-bottom: 20px;
  }
}

.nav-columns-list {
  font-size: 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: none;
  opacity: 0.8;
  font-weight: 500;
}

.nav-columns-list .link {
  cursor: pointer;
}

.nav-columns-list a:hover {
  color: #ef1a33;
}

@media only screen and (max-width: 768px) {
  .nav-columns-list {
    gap: 24px;
    font-size: 20px;
    text-align: center;
  }
}

.nav-footer {
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

@media only screen and (max-width: 1024px) {
  .nav-footer {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }
}

@media only screen and (max-width: 768px) {
  .nav-footer {
    padding-top: 20px;
  }
}

.nav-footer__meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.nav-footer__social {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-footer__social a {
  display: inline-flex;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.nav-footer__social a:hover {
  opacity: 1;
}

.nav-footer__social img {
  width: 24px;
  height: 24px;
}

.nav-footer .lang {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
}

.nav-footer .lang img {
  width: 48px;
  height: 48px;
  max-width: none;
}

.lang-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

@media only screen and (max-width: 768px) {
  .nav-footer__meta {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
  }

  .nav-footer__social {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-footer .lang {
    font-size: 20px;
    justify-content: center;
  }
}

body.menu-open {
  overflow: hidden;
}
