| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- // Header
- .header {
- position: fixed;
- width: 100%;
- top: 0;
- left: 0;
- height: 70px;
- z-index: 1000;
- background: var(--header-color);
- .container {
- @include flex(space-between, center);
- height: 100%;
- gap: 20px;
- }
- // Logo
- &__logo {
- width: 190px;
- height: 44px;
- flex-shrink: 0;
- @include flex(center, center);
- z-index: 1001;
- &-link {
- display: inline-block;
- line-height: 0;
- }
- img {
- width: 190px;
- height: 44px;
- display: block;
- cursor: pointer;
- object-fit: contain;
- transition: opacity 0.3s ease;
- }
- }
- // Navigation
- &__nav {
- flex: 1;
- @include flex(center);
- }
- &__menu {
- list-style: none;
- margin: 0;
- padding: 0;
- @include flex(null, center, null, 40px);
- &-link {
- // color will be set dynamically
- text-decoration: none;
- font-size: 16px;
- font-weight: 500;
- transition: opacity 0.3s ease;
- color:#fff;
- white-space: nowrap;
- opacity: 0.9;
- &:hover {
- opacity: 1;
- color:#fff;
- }
- }
- }
- // Actions (buttons)
- &__actions {
- @include flex(null, center, null, 12px);
- flex-shrink: 0;
- }
- &__btn {
- border-radius: 6px;
- border: 1px solid #FFF;
- display: flex;
- height: 42px;
- padding: 8px 32px;
- justify-content: center;
- align-items: center;
- gap: 8px;
- color: #FFF;
- font-size: 14px;
- font-style: normal;
- font-weight: 600;
- line-height: normal;
- text-transform: uppercase;
- background:none;
- cursor:pointer;
- &--primary {
- // background and color will be set dynamically
- &:hover {
- transform: translateY(-1px);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
- }
- }
- &--secondary {
- // background and color will be set dynamically
- &:hover {
- transform: translateY(-1px);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
- }
- }
- }
- // Burger menu button
- &__burger {
- display: none;
- flex-direction: column;
- justify-content: space-between;
- width: 30px;
- height: 24px;
- background: transparent;
- border: none;
- cursor: pointer;
- padding: 0;
- z-index: 1001;
- transition: transform 0.3s ease;
- &:hover {
- transform: scale(1.1);
- }
- &-line {
- width: 100%;
- height: 3px;
- background:#fff;
- border-radius: 2px;
- // background will be set dynamically
- transition: all 0.3s ease;
- }
- // Active state (menu open)
- &.active {
- .header__burger-line {
- &:nth-child(1) {
- transform: translateY(10.5px) rotate(45deg);
- }
- &:nth-child(2) {
- opacity: 0;
- }
- &:nth-child(3) {
- transform: translateY(-10.5px) rotate(-45deg);
- }
- }
- }
- }
- // Tablet styles
- @include tablet {
- &__menu {
- gap: 24px;
- }
- &__btn {
- padding: 8px 16px;
- font-size: 13px;
- }
- }
- // Mobile styles
- @include mobile {
- height: 60px;
- &__logo {
- width: 150px;
- height: 35px;
- img {
- width: 150px;
- height: 35px;
- }
- }
- // Show burger menu
- &__burger {
- display: flex;
- }
- // Mobile navigation
- &__nav {
- position: fixed;
- top: 60px;
- left: 0;
- width: 100%;
- height: calc(100vh - 60px);
- // background will be set dynamically
- transform: translateX(-100%);
- transition: transform 0.3s ease;
- padding: 40px 20px;
- overflow-y: auto;
- //backdrop-filter: blur(10px);
- @include mobile{
- background: var(--body-bg-color);
- }
- &.active {
- transform: translateX(0);
- }
- }
- &__menu {
- flex-direction: column;
- align-items: center;
- width: 100%;;
- gap: 24px;
- &-link {
- font-size: 18px;
- @include mobile{
- font-size: 16px;
- background: var(--body-bg-color);
- color:var(--text-color);
- }
- }
- }
- &__actions {
- gap: 8px;
- }
- &__btn {
- display: none;
- }
- // Mobile buttons in menu
- &__nav.active {
- .header__btn {
- display: block;
- width: calc(100% - 40px);
- margin: 0 20px 16px;
- }
- }
- }
- }
|