

@font-face {
  font-family: 'Jeko';
  src: url('/assets/frontend/default/fonts/jeko-medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jeko';
  src: url('/assets/frontend/default/fonts/jeko-semi-bold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jeko';
  src: url('/assets/frontend/default/fonts/jeko-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jeko';
  src: url('/assets/frontend/default/fonts/jeko-black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-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: "Jeko", 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: "Jeko", 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: "Jeko", 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;
}

/* Burger Menu */
.burger-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--Semantic-colors-Surface-corporate-blue-2, rgba(48, 78, 110, 0.06));
  padding: 12px;
  border: 0;
  cursor: pointer;
}

.burger-toggle img {
  width: 16px;
  height: 16px;
}

.burger-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.burger-overlay.active {
  display: block;
  opacity: 1;
}

.burger-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: var(--color-page-bg);
  z-index: 100;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.burger-menu.active {
  right: 0;
}

.burger-menu__content {
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.burger-menu__search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--color-white);
}

.burger-menu__search .search-input {
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
  font-family: "Jeko", sans-serif;
  font-size: 16px;
  color: var(--color-black);
}

.burger-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.burger-menu__nav a {
  padding: 12px 0;
  color: var(--color-black);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid var(--color-gray-200);
}

.burger-menu__nav a:hover {
  color: var(--color-primary);
}

.burger-menu__lang {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-gray-200);
}

.burger-menu__social {
  display: flex;
  gap: 12px;
}

.burger-menu__auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 12px;
}

.burger-menu__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-black);
  font-size: 16px;
}

.secondary-btn {
  height: 40px;
  padding: 10px 20px;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
  background: var(--color-white);
  color: var(--color-black);
  font-family: "Jeko", sans-serif;
  font-size: 16px;
  cursor: pointer;
}

.secondary-btn:hover {
  background: var(--color-gray-200);
}

.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) {
  .burger-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .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;
  }

  .topbar-right .burger-toggle {
    order: 2;
  }

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

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

  .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) {
  .page{
    padding-top: 0!important;
  }
  .topbar {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 10;
    margin-top: 16px;
    right: 0;
    left: 0;
  }
  .topbar__content{
    width: 100%;
    padding: 12px;
  }
  .topbar-left {
    width: 100%;
    gap: 12px;
  }

  .logo {
    width: 35px;
    height: 35px;
  }

  .search-btn {
    display: none;
  }

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

  .topbar-right {
    width: 100%;
    justify-content: flex-end;
  }
  .topbar-right .primary-btn{
    font-size: 12px;
    padding: 4px 12px;
  }
  .topbar-right .btn-icon{
    width: 16px;
    height: 16px;
  } 
}

