@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@500;600;700;800&display=swap");

:root {
  --color-primary: #fd7e14;
  --color-black: #03041b;
  --color-white: #ffffff;
  --color-page-bg: #fafafa;
  --color-gray-50: #fafafa;
  --color-gray-200: #e9eaeb;
  --color-gray-400: #a4a7ae;
  --color-gray-500: #717680;
  --color-text-muted: #535862;
  --color-corporate: #304e6e;
}

* {
  box-sizing: border-box;
}

.topbar {
  margin-top: 50px;
  width: 100%;
  position: absolute;
  display: flex;
  justify-content: center;
}
.topbar__content {
  top: 40px;
  height: 74px;
  background: var(--color-page-bg);
  border-radius: 20px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 80px;
  z-index: 5;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  width: 46px;
  height: 42px;
}

.search-btn {
  width: 200px;
  height: 40px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--color-white);
  border: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-icon {
  width: 24px;
  height: 24px;
}

.search-input {
  border: 0;
  outline: none;
  padding: 0;
  margin: 0;
  width: 100%;
  background: transparent;
  color: var(--color-gray-400);
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  line-height: 20px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 48px;
  color: var(--color-black);
  font-size: 16px;
  line-height: 20px;
}

.topbar-nav a {
  color: inherit;
  text-decoration: none;
}

.topbar-nav a:hover {
  color: var(--color-primary);
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-dropdown {
  position: relative;
}

.lang-dropdown summary {
  list-style: none;
  cursor: pointer;
}

.lang-dropdown summary::-webkit-details-marker {
  display: none;
}

.lang {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #373737;
  font-size: 16px;
  line-height: 20px;
}

.lang-arrow {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

.lang-dropdown[open] .lang-arrow {
  transform: rotate(0deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  padding: 8px;
  border-radius: 12px;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 8px 16px rgba(16, 24, 40, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}

.lang-menu button {
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-black);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 20px;
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
}

.lang-menu button:hover {
  background: var(--color-gray-200);
}

.primary-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 40px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;
}

.btn-icon {
  width: 24px;
  height: 24px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--color-corporate) 6%, transparent);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.icon-btn img {
  width: 24px;
  height: 24px;
}

.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.footer {
  left: 0;
  padding: 64px 80px 48px;
  display: flex;
  flex-direction: column;
  gap: 64px;
  background: url("/assets/frontend/default/redesign/images/shadow-background.png")
    no-repeat center center;
  background-size: cover;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  pointer-events: none;
}

.footer > * {
  position: relative;
}

.footer-container {
  display: flex;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-logo img {
  width: 116px;
  height: 81px;
}

.footer-left p {
  margin: 0;
  width: 590px;
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 20px;
}

.footer-nav {
  display: flex;
  gap: 32px;
  color: var(--color-corporate);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.footer-nav a {
  color: var(--color-corporate);
  text-decoration: none;
}

.footer-logos {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.footer-logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 2000px;
  object-fit: cover;
}

.footer-logo-rect {
  width: 100px;
  height: 32px;
  object-fit: cover;
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-400);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-gray-500);
  font-size: 16px;
  line-height: 20px;
}

.social-icons {
  width: 127px;
  height: 28px;
}

@media (max-width: 1024px) {
  .topbar {
    left: 16px;
    top: 16px;
    width: calc(100% - 32px);
    height: auto;
    min-height: 74px;
    gap: 16px;
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .topbar-nav {
    display: none;
  }

  .search-btn {
    width: min(100%, 240px);
  }

  .topbar-right {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .footer {
    position: static;
    width: 100%;
    height: auto;
    padding: 48px 16px 32px;
  }

  .footer-container,
  .footer-bottom {
    width: 100%;
  }

  .footer-container {
    flex-direction: column;
    gap: 24px;
  }

  .footer-left,
  .footer-left p {
    width: 100%;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 24px;
  }
}

@media (max-width: 768px) {
  .topbar-left {
    width: 100%;
    gap: 12px;
  }

  .logo {
    width: 40px;
    height: 36px;
  }

  .search-btn {
    flex: 1;
    min-width: 0;
  }

  .search-input {
    font-size: 16px;
  }

  .topbar-right .primary-btn {
    order: 1;
  }

  .topbar-right .icon-btn,
  .topbar-right .header-avatar {
    display: none;
  }
}
