:root {
  --font-ui: "Space Grotesk", sans-serif;
  --font-brand: "Syne", sans-serif;
  --daterok-ink-900: #1b1220;
  --daterok-wine-700: #872844;
  --daterok-red-700: #d5354d;
  --daterok-red-600: #e74259;
  --daterok-red-500: #f05267;
  --daterok-rose-100: #fff0f4;
}

.sale-ribbon {
  width: 100%;
  background: #cfff6e;
  border-bottom: 1px solid rgba(27, 18, 32, 0.12);
}

.sale-ribbon[hidden] {
  display: none;
}

.sale-ribbon-wrap {
  width: min(1540px, 90vw);
  max-width: 100%;
  margin: 0 auto;
  min-height: 36px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.72rem;
  padding: 0 2.5rem;
}

.sale-ribbon-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  padding: 0.42rem 0;
  color: var(--daterok-ink-900);
  text-decoration: none;
  text-align: center;
}

.sale-ribbon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.48rem;
  background: #17151a;
  color: #ffffff;
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.sale-ribbon-copy {
  min-width: 0;
  font-family: var(--font-ui);
  font-size: clamp(0.74rem, 0.82vw, 0.88rem);
  font-weight: 700;
  line-height: 1.35;
}

.sale-ribbon-close {
  display: inline-flex;
  width: 30px;
  height: 30px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--daterok-ink-900);
  font-size: 1.12rem;
  line-height: 1;
  cursor: pointer;
}

.sale-ribbon-close:hover {
  background: rgba(27, 18, 32, 0.08);
}

.sale-ribbon-close:focus-visible {
  outline: 2px solid rgba(27, 18, 32, 0.48);
  outline-offset: 2px;
}

.home-nav {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e6e9ef;
  box-shadow: none;
  padding: 0;
}

.home-nav-wrap {
  width: min(1540px, 90vw);
  max-width: 100%;
  margin: 0 auto;
  padding: 0.88rem 0;
  background: #ffffff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.15rem;
}

.home-nav-panel {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.15rem;
}

.logo {
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 2px;
  text-decoration: none;
  display: inline-block;
  line-height: 1;
  white-space: nowrap;
}

.logo-date {
  color: #111111;
}

.logo-rok {
  color: #d00000;
}

.home-nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  border: 1px solid rgba(27, 18, 32, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #fff5f8 100%);
  color: var(--daterok-ink-900);
  cursor: pointer;
  padding: 0;
}

.home-nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.home-nav-toggle[aria-expanded="true"] .home-nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.home-nav-toggle[aria-expanded="true"] .home-nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.home-nav-toggle[aria-expanded="true"] .home-nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.home-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
  overflow-x: auto;
  background: #ffffff;
  scrollbar-width: none;
}

.home-menu::-webkit-scrollbar {
  display: none;
}

.home-menu a {
  text-decoration: none;
  color: #584c5a;
  font-family: var(--font-ui);
  font-size: clamp(0.82rem, 0.88vw, 0.96rem);
  font-weight: 700;
  line-height: 1;
  padding: 0.62rem 0.98rem;
  border-radius: 0;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.home-menu a:hover {
  color: var(--daterok-red-700);
  background: transparent;
  border-color: transparent;
}

.home-menu a.is-active {
  color: var(--daterok-red-700);
  background: transparent;
  border-color: transparent;
}

.home-auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  background: #ffffff;
}

.home-auth-link {
  text-decoration: none;
  color: #584c5a;
  font-family: var(--font-ui);
  font-size: clamp(0.82rem, 0.88vw, 0.96rem);
  font-weight: 700;
  padding: 0.62rem 0.78rem;
  border-radius: 0;
  white-space: nowrap;
  box-shadow: none;
}

.home-auth-link:hover {
  color: var(--daterok-red-700);
  background: #ffffff;
  box-shadow: none;
}

.home-auth-btn {
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-ui);
  background: linear-gradient(135deg, var(--daterok-red-700), var(--daterok-red-600));
  border-radius: 0;
  padding: 0.62rem 1.04rem;
  font-size: clamp(0.82rem, 0.88vw, 0.96rem);
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: none;
}

.home-auth-btn:hover {
  background: linear-gradient(135deg, #c62f47, #e53f59);
  box-shadow: none;
}

@media (max-width: 980px) {
  .sale-ribbon-wrap {
    width: min(760px, 92vw);
    gap: 0.42rem;
    padding: 0 2.2rem;
  }

  .sale-ribbon-link {
    gap: 0.48rem;
    padding: 0.4rem 0;
  }

  .sale-ribbon-copy {
    font-size: 0.76rem;
  }

  .home-nav-wrap {
    width: min(760px, 92vw);
    gap: 0.9rem;
    padding: 0.86rem 0;
  }

  .home-nav-panel {
    gap: 0.9rem;
  }

  .home-menu {
    overflow-x: auto;
    padding-bottom: 0.16rem;
    scrollbar-width: none;
  }

  .home-menu::-webkit-scrollbar {
    display: none;
  }

  .home-auth {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .home-nav-wrap {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    position: relative;
    gap: 0.65rem;
    padding: 0.82rem 0;
  }

  .logo {
    justify-self: start;
  }

  .home-nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .home-nav-panel {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    padding: 0.95rem;
    margin-top: 0.15rem;
    border: 1px solid rgba(213, 53, 77, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fff6f9 100%);
    box-shadow: 0 14px 30px rgba(27, 18, 32, 0.08);
  }

  .home-nav-panel.open {
    display: grid;
  }

  .home-menu {
    order: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.3rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .home-menu a {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(27, 18, 32, 0.08);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.96rem;
  }

  .home-menu a:hover,
  .home-menu a.is-active {
    background: var(--daterok-rose-100);
    border-color: rgba(213, 53, 77, 0.14);
  }

  .home-auth {
    order: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
  }

  .home-auth-link,
  .home-auth-btn {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1rem;
  }

  .home-auth-link {
    border: 1px solid rgba(27, 18, 32, 0.08);
    background: rgba(255, 255, 255, 0.92);
  }
}

@media (max-width: 640px) {
  .sale-ribbon-wrap {
    padding: 0 2rem;
  }

  .sale-ribbon-link {
    align-items: flex-start;
    justify-content: center;
    padding: 0.38rem 0;
  }

  .sale-ribbon-copy {
    line-height: 1.28;
  }

  .sale-ribbon-close {
    width: 28px;
    height: 28px;
    right: 0;
  }

  .home-nav-wrap {
    width: min(94vw, 520px);
  }

  .home-nav-panel {
    padding: 0.82rem;
  }

  .home-menu a,
  .home-auth-link,
  .home-auth-btn {
    font-size: 0.92rem;
  }
}

@media (max-width: 420px) {
  .logo {
    font-size: 19px;
    letter-spacing: 1.4px;
  }

  .home-nav-toggle {
    width: 42px;
    height: 42px;
  }

  .home-menu a,
  .home-auth-link,
  .home-auth-btn {
    min-height: 44px;
    padding: 0.78rem 0.92rem;
  }
}
