:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(17, 24, 39, 0.08);
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  --radius: 20px;
  --accent: #f5c84b;
  --accent-dark: #eab308;
  --shell-max: 1520px;
  --shell-padding: clamp(20px, 2.2vw, 32px);
  --z-header-surface: rgba(255, 255, 255, 0.92);
  --z-header-surface-strong: rgba(255, 255, 255, 0.98);
  --z-header-border: rgba(17, 24, 39, 0.1);
  --z-header-border-strong: rgba(17, 24, 39, 0.16);
  --z-header-shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.06);
  --z-header-shadow-pop: 0 18px 42px rgba(17, 24, 39, 0.12);
  --z-header-placeholder-height: 72px;
  --z-header-placeholder-height-mobile: 64px;
  --z-header-row-min-height: 72px;
  --z-header-row-min-height-tablet: 64px;
  --z-header-row-min-height-mobile: 60px;
  --z-header-drawer-top: 72px;
  --z-header-drawer-top-mobile: 68px;
  --z-header-drawer-viewport-gap: 92px;
  --z-header-drawer-transition-ms: 180ms;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 85% 0%, #f5f3ff 0%, var(--bg) 36%);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

.z-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: var(--shell-padding);
  padding-right: var(--shell-padding);
}

.z-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

[data-shared-header]:empty {
  display: block;
  min-height: var(--z-header-placeholder-height);
}

.z-topbar__row {
  min-height: var(--z-header-row-min-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.z-header-context {
  min-width: 0;
}

.z-header-context[hidden] {
  display: none !important;
}

.z-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.z-brand--link {
  text-decoration: none;
  color: inherit;
}

.z-brand--link:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.35);
  outline-offset: 4px;
  border-radius: 12px;
}

.z-brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 700;
}

.z-brand__logo img {
  width: 280%;
  height: 290%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: translateY(-7%);
}

.z-brand__name {
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.z-brand__sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.z-topmenu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.z-topmenu__link {
  color: #1f2937;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.z-topmenu__link:hover {
  border-bottom-color: #111827;
}

.z-topmenu__link.is-active {
  border-bottom-color: #111827;
}

.z-topbar__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.z-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.z-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.z-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 24, 39, 0.18);
  box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
}

.z-btn--primary {
  background: var(--accent);
  border-color: #edbf3f;
  color: #3b2a00;
}

.z-btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.z-btn--ghost {
  background: #fff;
}

.z-layout {
  width: 100%;
  max-width: none;
  margin: 18px 0 24px;
  padding-left: var(--shell-padding);
  padding-right: var(--shell-padding);
}

.z-sidebar {
  display: none;
}

.z-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.z-main > *,
.z-grid,
.z-guide,
.z-card,
.z-cat,
.z-city,
.z-discover,
.z-discover__main,
.z-sidepanel,
.z-footer,
.z-chat,
.z-chat__body {
  min-width: 0;
}

.z-card__title,
.z-card__desc,
.z-empty__desc {
  overflow-wrap: anywhere;
}

.z-card__links,
.z-card__actions {
  flex-wrap: wrap;
}

.z-hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #ffffff 0%, #f8faff 62%, #f1f5ff 100%);
  box-shadow: var(--shadow);
  padding: 40px;
}

.z-hero--landing {
  min-height: 360px;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}

.z-hero__title {
  margin: 0;
  font-size: clamp(44px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.z-hero__desc {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.35;
}

.z-search {
  position: relative;
  display: flex;
  align-items: center;
}

.z-search--hero {
  padding: 8px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
  gap: 10px;
}

.z-search__icon {
  margin-left: 6px;
  color: #9ca3af;
  font-size: 18px;
}

.z-search__input {
  flex: 1;
  min-width: 160px;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.z-search__input::placeholder {
  color: #a3aab8;
}

.z-search__select {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: #374151;
  padding: 0 10px;
  font-size: 14px;
}

.z-search__submit {
  height: 40px;
}

.z-hero__art {
  align-self: stretch;
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 20%, rgba(245, 200, 75, 0.5), transparent 35%),
    radial-gradient(circle at 78% 70%, rgba(96, 165, 250, 0.46), transparent 40%),
    linear-gradient(140deg, #dbeafe 0%, #c7d2fe 42%, #f5f3ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  position: relative;
}

.z-hero__art::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(17, 24, 39, 0.14);
}

.z-hero__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.1);
  font-size: 14px;
  display: grid;
  gap: 3px;
}

.z-hero__badge strong {
  font-size: 14px;
}

.z-cats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.z-cat {
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  min-height: 130px;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.z-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.1);
}

.z-cat__title {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 7px;
}

.z-cat__text {
  color: var(--muted);
  font-size: 14px;
}

.z-cat__arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 700;
}

.z-discover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.z-discover__main {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

body[data-page="home"] .z-discover__main {
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body[data-page="home"] .z-discover {
  grid-template-columns: minmax(0, 1fr) minmax(0, 288px);
  gap: 18px;
  align-items: start;
  background: transparent;
}

.z-section__head {
  margin-bottom: 10px;
}

.z-section__title {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.03em;
}

.z-citylist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.z-city {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.z-city__img {
  height: 120px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.z-city__img--berlin {
  background-image: url("../img/berlin.jpg");
}

.z-city__img--munich {
  background-image: url("../img/Munich.jpg");
}

.z-city__img--hamburg {
  background-image: url("../img/Hamburg.jpg");
}

.z-city__img--stuttgart {
  background-image: url("../img/stuttgart.jpg");
}

.z-city__meta {
  padding: 10px 12px;
}

.z-city__meta h3 {
  margin: 0;
  font-size: 16px;
}

.z-city__meta p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.z-sidepanel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.z-sidepanel__title {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.z-sidepanel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.z-sidepanel__list a {
  display: block;
  text-decoration: none;
  color: #1f2937;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
  padding: 10px 12px;
}

.z-sidepanel__list a:hover {
  background: #fff;
}

body[data-page="home"] .z-discover > .z-sidepanel {
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  align-self: start;
  padding: 14px 0 6px;
}

body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__title {
  margin-bottom: 8px;
  color: #162033;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list {
  gap: 7px;
  max-height: min(232px, calc(100vh - 240px));
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 6px 8px 0;
  align-content: start;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.42) transparent;
}

body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 9px 12px;
  overflow: hidden;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  border: 1px solid rgba(226, 232, 240, 0.94);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 12px 24px rgba(15, 23, 42, 0.045),
    0 3px 8px rgba(15, 23, 42, 0.03);
  color: #162033;
  line-height: 1.25;
  transition: border-color 220ms var(--ease-soft), box-shadow 220ms var(--ease-soft), background-color 220ms var(--ease-soft), transform 180ms ease, color 180ms ease;
}

body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list::-webkit-scrollbar {
  width: 6px;
}

body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list::-webkit-scrollbar-track {
  background: transparent;
}

body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.36);
}

body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list a::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--fx-x, 50%) var(--fx-y, 50%), rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.14) 18%, rgba(255, 255, 255, 0) 54%);
  opacity: 0;
  transition: opacity 220ms var(--ease-soft);
}

body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list a:hover,
body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list a.is-fx-active {
  transform: translate3d(0, -1px, 0);
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(203, 213, 225, 0.96);
  box-shadow:
    0 16px 30px rgba(15, 23, 42, 0.055),
    0 6px 12px rgba(15, 23, 42, 0.035);
}

body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list a:hover::before,
body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list a.is-fx-active::before {
  opacity: 1;
}

body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list a:focus-visible {
  outline: none;
  border-color: rgba(191, 219, 254, 0.96);
  box-shadow:
    var(--focus-ring),
    0 16px 30px rgba(15, 23, 42, 0.055),
    0 6px 12px rgba(15, 23, 42, 0.035);
}

body[data-page="home"] .z-discover > .z-sidepanel .z-sidepanel__list a:active {
  transform: translate3d(0, 0, 0);
  box-shadow:
    0 10px 20px rgba(15, 23, 42, 0.04),
    0 2px 6px rgba(15, 23, 42, 0.025);
}

.z-grid {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.z-grid__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.z-grid__title {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.z-grid__meta {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.z-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.z-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.z-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.1);
}

.z-card__tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: #4b5563;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 10px;
}

.z-card__title {
  margin: 12px 0 10px;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 700;
}

.z-card__desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.z-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.z-linkbtn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: #1f2937;
  background: #fff;
  font-weight: 600;
}

.z-linkbtn:hover {
  background: #f9fafb;
}

.z-empty {
  margin-top: 12px;
  border: 1px dashed rgba(17, 24, 39, 0.2);
  border-radius: 16px;
  background: #fff;
  padding: 18px;
}

.z-empty__title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
}

.z-empty__desc {
  color: var(--muted);
  margin-bottom: 12px;
}

.z-results--focus {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.12);
  transition: outline-color 180ms ease, box-shadow 180ms ease;
}

.z-guide {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.z-guide__title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.z-guide__hint {
  margin: 0 0 12px;
  color: var(--muted);
}

.z-guide__subhead {
  margin: 14px 0 8px;
  font-weight: 700;
}

.z-guide__list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.z-chips {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.z-chip {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.z-chip.is-active,
.z-chip:hover {
  background: #f9fafb;
  border-color: rgba(17, 24, 39, 0.16);
}

/* Universities page: structured tool layout */
.z-uni-page {
  gap: 16px;
}

.z-uni-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}

.z-uni-hero__left {
  display: grid;
  gap: 14px;
  align-content: center;
}

.z-uni-hero__title {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.z-uni-hero__desc {
  margin: 0;
  font-size: 17px;
  color: var(--muted);
}

.z-uni-search {
  max-width: 760px;
}

.z-uni-search .z-search__submit {
  min-width: 104px;
}

.z-uni-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.z-uni-quick__btn {
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0 14px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.z-uni-quick__btn:hover {
  background: #f9fafb;
  border-color: rgba(17, 24, 39, 0.16);
}

.z-uni-hero__right {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.z-uni-filters-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(17, 24, 39, 0.06);
  padding: 14px;
}

.z-uni-filters-card__title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
}

.z-uni-filters-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.z-uni-filter-row {
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.94);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.z-uni-filter-row:hover {
  border-color: rgba(17, 24, 39, 0.14);
  transform: translateY(-1px);
}

.z-uni-hero__media {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 0;
  box-shadow: none;
  min-height: 240px;
  background: url("../img/uni.jpg") center 35% / cover no-repeat;
}

.z-uni-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.34) 44%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

.z-uni-roadmap {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.z-uni-roadmap__head {
  margin-bottom: 12px;
}

.z-uni-roadmap__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.z-uni-roadmap__hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.z-uni-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.z-uni-step {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.z-uni-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.z-uni-step__num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}

.z-uni-step__title {
  margin: 0 0 5px;
  font-size: 17px;
  line-height: 1.2;
}

.z-uni-step__desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.z-uni-grid {
  border-radius: 22px;
}

.z-uni-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}

.z-uni-toolbar__filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.z-uni-filter {
  display: grid;
  gap: 6px;
}

.z-uni-filter span {
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.z-uni-filter select {
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: #111827;
  padding: 0 12px;
  font-size: 14px;
}

.z-uni-toolbar__meta {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.z-uni-toolbar__count {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.z-uni-filter--sort {
  min-width: 200px;
}

.z-uni-page .z-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.z-uni-page .z-card {
  border-radius: 14px;
  box-shadow: none;
}

.z-uni-page .z-card:hover {
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
}

.z-uni-page .z-card__tag {
  background: #fff;
  font-size: 10px;
}

.z-uni-page .z-linkbtn {
  position: relative;
  background: #111827;
  color: #fff;
  border-color: #111827;
  font-size: 0;
  min-height: 34px;
}

.z-uni-page .z-linkbtn::after {
  content: "Открыть источник";
  font-size: 13px;
  font-weight: 600;
}

.z-uni-page .z-linkbtn:hover {
  background: #0b1220;
}

.z-uni-tools {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.z-uni-tools__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.z-uni-tool {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.z-uni-tool:hover {
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
}

.z-uni-tool__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f9fafb;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.z-uni-tool strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.z-uni-tool small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.is-hidden {
  display: none !important;
}

.z-footer {
  margin-top: 2px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 14px 16px;
}

.z-footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.z-footer__left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.z-footer__title {
  font-size: 14px;
  font-weight: 700;
}

.z-footer__text {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.z-footer__right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.z-footer__links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.z-footer__link {
  text-decoration: none;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 7px 10px;
}

.z-footer__projects {
  position: relative;
}

.z-footer__menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  cursor: pointer;
}

.z-footer__menu-arrow {
  transition: transform 0.16s ease;
}

.z-footer__projects.is-open .z-footer__menu-arrow {
  transform: rotate(180deg);
}

.z-footer__menu-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.12);
  z-index: 5;
}

.z-footer__menu-panel[hidden] {
  display: none !important;
}

.z-footer__menu-link {
  text-decoration: none;
  color: #1f2937;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  padding: 8px 10px;
}

.z-footer__menu-link:hover,
.z-footer__menu-link:focus-visible {
  background: #f4f7fc;
}

.z-footer__copy {
  color: var(--muted);
  font-size: 13px;
}

@keyframes z-fab-idle {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  }
  50% {
    transform: translateY(-4px) scale(1.018);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.2);
  }
}

.z-fab {
  position: fixed;
  right: 20px;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 54px);
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: #111827;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
  animation: z-fab-idle 4.8s ease-in-out infinite;
  will-change: transform, box-shadow;
  z-index: 60;
}

.z-fab:hover {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.24);
  border-color: rgba(255, 255, 255, 0.3);
}

.z-fab:focus-visible {
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.24);
  border-color: rgba(255, 255, 255, 0.34);
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

.z-fab:active {
  animation-play-state: paused;
  transform: translateY(0) scale(0.985);
}

.z-chat {
  position: fixed;
  right: 18px;
  bottom: 24px;
  width: min(430px, calc(100vw - 36px));
  height: min(650px, calc(100vh - 120px));
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  z-index: 70;
  display: flex;
  flex-direction: column;
}

.z-chat__header {
  min-height: 62px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px 10px 13px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: #fff;
}

.z-chat__title {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 3px;
  font-weight: 650;
  font-size: 15px;
  line-height: 1.1;
}

.z-chat__sub {
  display: block;
  flex-basis: 100%;
  margin-left: 18px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
}

.z-chat__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
  margin-top: 4px;
  flex: 0 0 auto;
}

.z-chat__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.z-chat__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.78);
  color: #1f2937;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}

.z-iconbtn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.78);
  color: var(--text);
  cursor: pointer;
}

.z-chat__body {
  flex: 1;
  min-height: 0;
  background: #edf3f8;
}

.z-chat__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .z-fab {
    animation: none;
  }

  .z-fab:hover,
  .z-fab:focus-visible,
  .z-fab:active {
    transform: none;
  }
}

@media (max-width: 1180px) {
  .z-topmenu {
    gap: 16px;
  }

  .z-hero--landing {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .z-hero__art {
    min-height: 210px;
  }

  .z-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .z-discover {
    grid-template-columns: 1fr;
  }

  .z-citylist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .z-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .z-uni-hero {
    grid-template-columns: 1fr;
  }

  .z-uni-hero__right {
    grid-template-rows: auto;
  }

  .z-uni-hero__media {
    min-height: 220px;
    background-position: center;
  }

  .z-uni-toolbar {
    grid-template-columns: 1fr;
  }

  .z-uni-toolbar__meta {
    justify-items: start;
  }

  .z-uni-tools__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .z-topbar__row {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 12px 0;
    gap: 10px;
  }

  .z-topmenu {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px 14px;
  }

  .z-topbar__right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .z-hero {
    padding: 24px;
  }

  .z-section__title,
  .z-sidepanel__title,
  .z-grid__title {
    font-size: 28px;
  }

  .z-search--hero {
    flex-wrap: wrap;
  }

  .z-search__input {
    min-width: 0;
    width: 100%;
    order: 1;
  }

  .z-search__icon {
    order: 0;
  }

  .z-search__select,
  .z-search__submit {
    order: 2;
  }

  .z-uni-toolbar__filters {
    grid-template-columns: 1fr;
  }

  .z-uni-page .z-cards {
    grid-template-columns: 1fr;
  }

  .z-uni-hero__media {
    min-height: 200px;
  }
}

@media (max-width: 640px) {
  /* ✅ FIX: больше не ограничиваем ширину, только уменьшаем padding */
  .z-shell,
  .z-layout {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .z-layout {
    margin-top: 12px;
    margin-bottom: 18px;
  }

  .z-hero {
    padding: 16px;
    border-radius: 18px;
  }

  .z-hero__title {
    font-size: clamp(32px, 10vw, 38px);
  }

  .z-hero__desc {
    font-size: 17px;
    margin-bottom: 14px;
  }

  .z-cats,
  .z-citylist,
  .z-cards {
    grid-template-columns: 1fr;
  }

  .z-grid,
  .z-guide,
  .z-discover__main,
  .z-sidepanel {
    padding: 14px;
  }

  .z-footer__inner,
  .z-footer__right {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 1440px) {
  :root {
    --shell-max: 1560px;
    --shell-padding: clamp(24px, 2vw, 36px);
  }
}

@media (min-width: 1728px) {
  :root {
    --shell-max: 1640px;
    --shell-padding: clamp(28px, 2vw, 40px);
  }
}

/* Universities page visual alignment to product mock */
.z-uni-page {
  gap: 18px;
}

.z-uni-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.z-uni-maincol {
  display: grid;
  gap: 14px;
}

.z-uni-hero {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(238, 243, 255, 0.92));
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.z-uni-hero__media {
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url("../img/uni.jpg") center 35% / cover no-repeat;
}

.z-uni-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(240, 244, 255, 0.94) 0%, rgba(240, 244, 255, 0.42) 40%, rgba(240, 244, 255, 0.18) 100%);
}

.z-uni-hero__left {
  position: relative;
  z-index: 1;
  max-width: 760px;
  gap: 16px;
}

.z-uni-hero__title {
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 0.95;
  color: #162145;
}

.z-uni-hero__desc {
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.2;
  color: #2e3650;
  letter-spacing: -0.01em;
}

.z-uni-search {
  padding: 6px;
  border-radius: 22px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.z-uni-search .z-search__input {
  font-size: 22px;
}

.z-uni-search .z-search__icon {
  font-size: 18px;
  margin-left: 14px;
}

.z-uni-search .z-search__select {
  min-width: 265px;
  height: 54px;
  border-radius: 14px;
  font-size: 18px;
}

.z-uni-search .z-search__submit {
  min-width: 150px;
  height: 54px;
  border-radius: 14px;
  font-size: 18px;
}

.z-uni-quick {
  gap: 10px;
}

.z-uni-quick__btn {
  height: 46px;
  font-size: 18px;
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(245, 248, 255, 0.95);
}

.z-uni-roadmap,
.z-uni-popular,
.z-uni-grid,
.z-uni-rail-card,
.z-uni-filters-card {
  border-radius: 22px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.z-uni-roadmap,
.z-uni-popular,
.z-uni-grid {
  padding: 18px;
}

.z-uni-roadmap__title {
  font-size: clamp(26px, 2.8vw, 40px);
}

.z-uni-roadmap__title span {
  font-weight: 600;
}

.z-uni-steps {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.z-uni-step {
  background: #f8f9fd;
}

.z-uni-popular__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.z-uni-pop-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.z-uni-pop-card__img {
  height: 150px;
  background-size: cover;
  background-position: center;
}

.z-uni-pop-card__body {
  padding: 12px 14px;
  display: grid;
  gap: 6px;
}

.z-uni-pop-card__body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.z-uni-pop-card__body p {
  margin: 0;
  color: #5b6478;
  font-size: 14px;
}

.z-uni-pop-card__body span {
  color: #384152;
  font-size: 14px;
}

.z-uni-rail {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 86px;
}

.z-uni-filters-card {
  padding: 16px;
}

.z-uni-filters-card__title,
.z-uni-rail-card__title {
  margin: 0 0 12px;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.1;
  color: #111b3d;
}

.z-uni-filters-list {
  gap: 10px;
}

.z-uni-filter-row {
  height: 56px;
  border-radius: 14px;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.95);
}

.z-uni-rail-card {
  padding: 16px;
}

.z-uni-rail-link {
  display: grid;
  gap: 6px;
  text-decoration: none;
  color: #1f2937;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.z-uni-rail-link strong {
  font-size: 18px;
  line-height: 1.2;
}

.z-uni-rail-link span,
.z-uni-rail-card--finance p {
  font-size: 14px;
  line-height: 1.45;
  color: #5f687c;
  margin: 0;
}

.z-uni-grid .z-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.z-uni-grid .z-card__title {
  font-size: 20px;
}

.z-uni-grid .z-card__desc,
.z-uni-grid .z-linkbtn,
.z-uni-grid .z-card__tag {
  font-size: 14px;
}

@media (max-width: 1280px) {
  .z-uni-shell {
    grid-template-columns: 1fr;
  }

  .z-uni-rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .z-uni-hero__media {
    width: 40%;
  }

  .z-uni-popular__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .z-uni-hero__media {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 16px;
    margin-top: 12px;
  }

  .z-uni-hero__title {
    font-size: clamp(34px, 10vw, 46px);
  }

  .z-uni-hero__desc {
    font-size: 20px;
  }

  .z-uni-search .z-search__input {
    font-size: 16px;
  }

  .z-uni-search .z-search__select,
  .z-uni-search .z-search__submit {
    height: 42px;
    min-width: 0;
    font-size: 15px;
  }

  .z-uni-quick__btn {
    font-size: 14px;
    height: 36px;
  }

  .z-uni-roadmap__title,
  .z-uni-filters-card__title,
  .z-uni-rail-card__title,
  .z-uni-pop-card__body h3,
  .z-uni-grid .z-card__title {
    font-size: 24px;
  }

  .z-uni-filter-row,
  .z-uni-pop-card__body p,
  .z-uni-pop-card__body span,
  .z-uni-rail-link strong,
  .z-uni-rail-link span,
  .z-uni-rail-card--finance p,
  .z-uni-grid .z-card__desc,
  .z-uni-grid .z-linkbtn,
  .z-uni-grid .z-card__tag {
    font-size: 14px;
  }

  .z-uni-steps {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }

  .z-uni-rail {
    grid-template-columns: 1fr;
  }

  .z-uni-grid .z-cards {
    grid-template-columns: 1fr;
  }
}

/* Shared modern header */
.z-topbar[data-header-modern] {
  border-bottom: 1px solid var(--z-header-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, var(--z-header-surface) 100%);
  backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.74),
    var(--z-header-shadow-soft);
  isolation: isolate;
}

.z-topbar[data-header-modern]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.1) 16%, rgba(17, 24, 39, 0.1) 84%, rgba(17, 24, 39, 0) 100%);
  pointer-events: none;
  opacity: 0.8;
}

.z-topbar[data-header-modern] .z-topbar__row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
}

.z-topbar[data-header-modern] .z-brand__sub {
  white-space: nowrap;
}

.z-topbar[data-header-modern] .z-brand--link {
  border-radius: 16px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.z-topbar[data-header-modern] .z-brand--link:hover {
  transform: translateY(-1px);
}

.z-topbar[data-header-modern] .z-brand__logo {
  border-color: rgba(17, 24, 39, 0.1);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.76) 34%, rgba(246, 248, 251, 0.98) 35%, rgba(240, 244, 249, 1) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 8px 18px rgba(17, 24, 39, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.z-topbar[data-header-modern] .z-brand--link:hover .z-brand__logo,
.z-topbar[data-header-modern] .z-brand--link:focus-visible .z-brand__logo {
  transform: translateY(-1px);
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 12px 24px rgba(17, 24, 39, 0.1);
}

.z-topbar[data-header-modern] .z-brand__name,
.z-topbar[data-header-modern] .z-brand__sub {
  transition: color 180ms ease, transform 180ms ease;
}

.z-topbar[data-header-modern] .z-brand--link:hover .z-brand__name,
.z-topbar[data-header-modern] .z-brand--link:focus-visible .z-brand__name {
  color: #0f172a;
}

.z-topbar[data-header-modern] .z-brand--link:hover .z-brand__sub,
.z-topbar[data-header-modern] .z-brand--link:focus-visible .z-brand__sub {
  transform: translateX(1px);
}

.z-topbar[data-header-modern] .z-header-context:not([hidden]) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

.z-topbar[data-header-modern] .z-topbar__controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: auto;
  min-width: 0;
  justify-self: end;
}

.z-topbar[data-header-modern] .z-header-dropdown {
  position: relative;
}

.z-topbar[data-header-modern] .z-header-dropdown__toggle {
  gap: 6px;
}

.z-topbar[data-header-modern] .z-header-dropdown__toggle:not(.z-header-userchip),
.z-topbar[data-header-modern] [data-auth-login].z-btn,
.z-topbar[data-header-modern] .z-lang,
.z-topbar[data-header-modern] .z-burger {
  border-color: var(--z-header-border);
  background: linear-gradient(180deg, var(--z-header-surface-strong) 0%, rgba(247, 248, 250, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 4px 12px rgba(17, 24, 39, 0.05);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.z-topbar[data-header-modern] .z-lang {
  min-height: 36px;
}

.z-topbar[data-header-modern] .z-header-dropdown__toggle:not(.z-header-userchip):hover,
.z-topbar[data-header-modern] .z-header-dropdown.is-open > .z-header-dropdown__toggle:not(.z-header-userchip),
.z-topbar[data-header-modern] [data-auth-login].z-btn:hover,
.z-topbar[data-header-modern] .z-burger:hover,
.z-topbar[data-header-modern] .z-burger[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: var(--z-header-border-strong);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(17, 24, 39, 0.08);
}

.z-topbar[data-header-modern] .z-header-dropdown__toggle:not(.z-header-userchip):active,
.z-topbar[data-header-modern] [data-auth-login].z-btn:active,
.z-topbar[data-header-modern] .z-burger:active {
  transform: translateY(0) scale(0.985);
}

.z-topbar[data-header-modern] [data-auth-login].z-btn {
  font-weight: 700;
}

.z-topbar[data-header-modern] [data-auth-login].z-btn:hover {
  background: linear-gradient(180deg, rgba(245, 200, 75, 0.92) 0%, rgba(243, 197, 70, 0.82) 100%);
  border-color: rgba(237, 191, 63, 0.94);
  color: #3b2a00;
}

.z-topbar[data-header-modern] .z-lang:hover,
.z-topbar[data-header-modern] .z-header-dropdown--lang.is-open .z-lang {
  border-color: var(--z-header-border-strong);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 22px rgba(17, 24, 39, 0.08);
}

.z-topbar[data-header-modern] .z-header-dropdown__arrow {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
  opacity: 0.72;
  transition: transform 160ms ease, opacity 160ms ease;
}

.z-topbar[data-header-modern] .z-header-dropdown.is-open .z-header-dropdown__arrow {
  transform: translateY(1px) rotate(180deg);
  opacity: 0.95;
}

.z-topbar[data-header-modern] .z-header-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 240px;
  max-width: 280px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 249, 251, 0.97) 100%);
  box-shadow:
    0 6px 16px rgba(17, 24, 39, 0.06),
    var(--z-header-shadow-pop);
  padding: 10px;
  display: none;
  z-index: 80;
  overflow: hidden;
  transform-origin: top right;
}

.z-topbar[data-header-modern] .z-header-dropdown.is-open .z-header-dropdown__menu {
  display: block;
  animation: z-header-dropdown-in 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.z-topbar[data-header-modern] .z-topmenu--dropdown,
.z-topbar[data-header-modern] .z-topmenu--mobile {
  display: grid;
  gap: 3px;
}

.z-topbar[data-header-modern] .z-topmenu--dropdown .z-topmenu__link,
.z-topbar[data-header-modern] .z-topmenu--mobile .z-topmenu__link {
  border-bottom: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 9px 11px;
  line-height: 1.3;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.z-topbar[data-header-modern] .z-topmenu--dropdown .z-topmenu__link:hover,
.z-topbar[data-header-modern] .z-topmenu--mobile .z-topmenu__link:hover,
.z-topbar[data-header-modern] .z-topmenu--dropdown .z-topmenu__link.is-active,
.z-topbar[data-header-modern] .z-topmenu--mobile .z-topmenu__link.is-active,
.z-topbar[data-header-modern] .z-topmenu--dropdown .z-topmenu__link[aria-current="page"],
.z-topbar[data-header-modern] .z-topmenu--mobile .z-topmenu__link[aria-current="page"] {
  border-bottom: 0;
  transform: translateX(1px);
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.98) 0%, rgba(238, 243, 249, 0.96) 100%);
  border-color: rgba(17, 24, 39, 0.07);
  color: #0f172a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.z-topbar[data-header-modern] .z-header-dropdown__menu--lang {
  min-width: 100px;
  max-width: none;
}

.z-topbar[data-header-modern] .z-header-lang__item {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  padding: 0 10px;
  font-size: 14px;
  color: #1f2937;
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.z-topbar[data-header-modern] .z-header-lang__item:hover,
.z-topbar[data-header-modern] .z-header-lang__item:focus-visible {
  transform: translateX(1px);
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.98) 0%, rgba(238, 243, 249, 0.96) 100%);
  color: #0f172a;
}

.z-topbar[data-header-modern] .z-header-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.z-topbar[data-header-modern] .z-header-userchip {
  min-height: 36px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 248, 250, 0.96) 100%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  cursor: pointer;
  position: relative;
  box-shadow:
    0 8px 18px rgba(17, 24, 39, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(148, 163, 184, 0.08);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease;
}

.z-topbar[data-header-modern] .z-header-userchip:hover,
.z-topbar[data-header-modern] .z-header-dropdown--user.is-open .z-header-userchip {
  transform: translateY(-1px);
  border-color: rgba(17, 24, 39, 0.16);
  box-shadow:
    0 14px 30px rgba(17, 24, 39, 0.08),
    0 4px 14px rgba(17, 24, 39, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.z-topbar[data-header-modern] .z-header-userchip:focus-visible,
.z-topbar[data-header-modern] .z-topmenu__link:focus-visible,
.z-topbar[data-header-modern] .z-header-dropdown__toggle:focus-visible,
.z-topbar[data-header-modern] .z-header-lang__item:focus-visible,
.z-topbar[data-header-modern] .z-burger:focus-visible,
.z-topbar[data-header-modern] [data-auth-login].z-btn:focus-visible,
.z-topbar[data-header-modern] .z-header-drawer__close:focus-visible {
  outline: 2px solid rgba(43, 99, 217, 0.45);
  outline-offset: 2px;
}

.z-topbar[data-header-modern] .z-header-userchip__avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(59, 92, 160, 0.18);
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.74) 22%, rgba(239, 243, 252, 0.98) 23%, rgba(232, 238, 250, 1) 100%);
  color: #23427d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.95),
    0 4px 10px rgba(76, 110, 190, 0.16);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.z-topbar[data-header-modern] .z-header-userchip:hover .z-header-userchip__avatar,
.z-topbar[data-header-modern] .z-header-dropdown--user.is-open .z-header-userchip__avatar {
  transform: translateY(-1px) scale(1.04);
  border-color: rgba(59, 92, 160, 0.24);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.98),
    0 8px 16px rgba(17, 24, 39, 0.12);
}

.z-topbar[data-header-modern] .z-header-userchip__name {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.22s ease, color 0.22s ease;
}

.z-topbar[data-header-modern] .z-header-userchip:hover .z-header-userchip__name,
.z-topbar[data-header-modern] .z-header-dropdown--user.is-open .z-header-userchip__name {
  transform: translateX(1px);
  color: #0f172a;
}

.z-topbar[data-header-modern] .z-header-dropdown__menu--user {
  min-width: 248px;
  max-width: 280px;
}

.z-topbar[data-header-modern] .z-header-dropdown__divider {
  display: block;
  height: 1px;
  margin: 6px 2px;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.1) 18%, rgba(17, 24, 39, 0.1) 82%, rgba(17, 24, 39, 0) 100%);
}

.z-topbar[data-header-modern] .z-topmenu__link--danger {
  color: #991b1b;
}

.z-topbar[data-header-modern] .z-topmenu__link--danger:hover {
  background: linear-gradient(180deg, #fff5f5 0%, #fff0f0 100%);
  border-color: rgba(180, 35, 24, 0.12);
}

.z-topbar[data-header-modern] [data-auth][hidden] {
  display: none !important;
}

.z-topbar[data-header-modern] .z-burger {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 0;
  place-items: center;
  gap: 3px;
}

.z-topbar[data-header-modern] .z-burger__bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: #111827;
  transition: transform 180ms ease, opacity 180ms ease, background-color 180ms ease;
}

.z-topbar[data-header-modern] .z-burger:hover .z-burger__bar,
.z-topbar[data-header-modern] .z-burger[aria-expanded="true"] .z-burger__bar {
  background: #0f172a;
}

.z-topbar[data-header-modern] .z-header-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--z-header-drawer-transition-ms) ease;
  z-index: 75;
}

.z-topbar[data-header-modern] .z-header-mobile-backdrop[hidden] {
  display: none !important;
}

.z-topbar[data-header-modern] .z-header-mobile-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.z-topbar[data-header-modern] .z-header-drawer {
  position: fixed;
  top: var(--z-header-drawer-top);
  left: 12px;
  right: 12px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 248, 250, 0.97) 100%);
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.16);
  padding: 14px;
  display: grid;
  gap: 12px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity var(--z-header-drawer-transition-ms) ease, transform var(--z-header-drawer-transition-ms) ease;
  z-index: 80;
}

.z-topbar[data-header-modern] .z-header-drawer[hidden] {
  display: none !important;
}

.z-topbar[data-header-modern] .z-header-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
}

.z-topbar[data-header-modern] .z-header-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.z-topbar[data-header-modern] .z-header-drawer__close {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.z-topbar[data-header-modern] .z-header-drawer__close:hover {
  transform: translateY(-1px);
  border-color: rgba(17, 24, 39, 0.18);
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.08);
}

.z-topbar[data-header-modern] .z-header-account--mobile {
  display: grid;
  gap: 8px;
}

.z-topbar[data-header-modern] .z-header-mobile-usernav {
  display: grid;
  gap: 4px;
}

.z-topbar[data-header-modern] .z-header-mobile-usernav .z-topmenu__link {
  border-bottom: 0;
  border-radius: 10px;
  padding: 8px 10px;
}

@keyframes z-header-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .z-topbar[data-header-modern],
  .z-topbar[data-header-modern] *,
  .z-topbar[data-header-modern]::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}

@media (max-width: 980px) {
  .z-topbar[data-header-modern] .z-topbar__row {
    grid-template-columns: 1fr auto;
    align-items: center;
    min-height: var(--z-header-row-min-height-tablet);
    padding: 8px 0;
  }

  .z-topbar[data-header-modern] .z-brand__sub,
  .z-topbar[data-header-modern] .z-header-dropdown[data-dropdown="sections"],
  .z-topbar[data-header-modern] .z-header-account--desktop {
    display: none;
  }

  .z-topbar[data-header-modern] .z-header-dropdown--lang .z-header-dropdown__menu {
    right: 0;
    left: auto;
  }

  .z-topbar[data-header-modern] .z-burger {
    display: inline-grid;
  }
}

@media (min-width: 981px) {
  .z-topbar[data-header-modern] [data-desktop-lang-dropdown] {
    display: none !important;
  }

  .z-topbar[data-header-modern] [data-dropdown="sections"] > .z-header-dropdown__toggle {
    min-height: 40px;
    height: 40px;
    padding: 0 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .z-topbar[data-header-modern] [data-dropdown="sections"] > .z-header-dropdown__toggle .z-header-dropdown__arrow {
    font-size: 10px;
    line-height: 1;
  }

  .z-topbar[data-header-modern] [data-dropdown="sections"].is-open > .z-header-dropdown__toggle,
  .z-topbar[data-header-modern] [data-dropdown="sections"] > .z-header-dropdown__toggle:hover,
  .z-topbar[data-header-modern] [data-dropdown="sections"] > .z-header-dropdown__toggle:focus-visible {
    border-color: var(--z-header-border-strong);
    background: #ffffff;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.94),
      0 8px 18px rgba(17, 24, 39, 0.07);
  }

  .z-topbar[data-header-modern] [data-dropdown="sections"] > .z-header-dropdown__menu {
    min-width: 252px;
    max-width: 268px;
    padding: 12px;
    border-radius: 16px;
    border-color: rgba(17, 24, 39, 0.09);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(247, 249, 252, 0.985) 100%);
    box-shadow:
      0 8px 18px rgba(17, 24, 39, 0.06),
      0 18px 36px rgba(17, 24, 39, 0.09);
    gap: 8px;
  }

  .z-topbar[data-header-modern] [data-dropdown="sections"] > .z-header-dropdown__menu[hidden] {
    display: none !important;
  }

  .z-topbar[data-header-modern] [data-dropdown="sections"].is-open > .z-header-dropdown__menu {
    display: grid;
  }

  .z-topbar[data-header-modern] .z-header-menu__nav {
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 0;
    justify-content: stretch;
    justify-items: stretch;
    align-items: stretch;
    align-content: start;
    --z-header-menu-row-inset-left: 16px;
    --z-header-menu-row-inset-right: 16px;
    --z-header-menu-indicator-left: 8px;
  }

  .z-topbar[data-header-modern] .z-header-menu__nav .z-topmenu__link {
    position: relative;
    width: 100%;
    margin: 0;
    min-height: 42px;
    padding: 0 var(--z-header-menu-row-inset-right) 0 var(--z-header-menu-row-inset-left);
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    text-align: left;
    transition:
      background-color 160ms ease,
      border-color 160ms ease,
      color 160ms ease,
      box-shadow 160ms ease;
  }

  .z-topbar[data-header-modern] .z-header-menu__nav .z-topmenu__link::before {
    content: "";
    position: absolute;
    left: var(--z-header-menu-indicator-left);
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    opacity: 0;
    transition: opacity 160ms ease, background-color 160ms ease;
  }

  .z-topbar[data-header-modern] .z-header-menu__nav .z-topmenu__link:hover,
  .z-topbar[data-header-modern] .z-header-menu__nav .z-topmenu__link:focus-visible {
    background: linear-gradient(180deg, rgba(245, 248, 252, 0.98) 0%, rgba(239, 244, 249, 0.96) 100%);
    border-color: rgba(17, 24, 39, 0.07);
    color: #0f172a;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  }

  .z-topbar[data-header-modern] .z-header-menu__nav .z-topmenu__link.is-active,
  .z-topbar[data-header-modern] .z-header-menu__nav .z-topmenu__link[aria-current="page"] {
    background: linear-gradient(180deg, rgba(239, 245, 255, 0.98) 0%, rgba(232, 240, 255, 0.96) 100%);
    border-color: rgba(59, 130, 246, 0.16);
    color: #0f2347;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  }

  .z-topbar[data-header-modern] .z-header-menu__nav .z-topmenu__link.is-active::before,
  .z-topbar[data-header-modern] .z-header-menu__nav .z-topmenu__link[aria-current="page"]::before {
    background: #2563eb;
    opacity: 1;
  }

  .z-topbar[data-header-modern] .z-header-menu__divider--desktop {
    margin: 6px 0 0;
  }

  .z-topbar[data-header-modern] .z-header-menu__lang {
    display: grid;
    gap: 6px;
    width: 100%;
    padding: 6px 0 0;
  }

  .z-topbar[data-header-modern] .z-header-menu__langlabel {
    padding: 0 4px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    color: #667085;
    letter-spacing: 0.01em;
    text-transform: uppercase;
  }

  .z-topbar[data-header-modern] .z-header-menu__langlist {
    display: grid;
    gap: 0;
    width: 100%;
    align-self: start;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(246, 248, 251, 0.98) 0%, rgba(241, 245, 249, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    transition:
      border-color 160ms ease,
      background-color 160ms ease,
      box-shadow 160ms ease;
    overflow: hidden;
  }

  .z-topbar[data-header-modern] .z-header-menu__langlist.is-open {
    border-color: rgba(17, 24, 39, 0.12);
    background: #ffffff;
    box-shadow:
      0 1px 2px rgba(17, 24, 39, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.84);
  }

  .z-topbar[data-header-modern] .z-header-menu__langtrigger {
    width: 100%;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .z-topbar[data-header-modern] .z-header-menu__langtrigger:hover,
  .z-topbar[data-header-modern] .z-header-menu__langtrigger:focus-visible,
  .z-topbar[data-header-modern] .z-header-menu__langlist.is-open .z-header-menu__langtrigger {
    background: rgba(255, 255, 255, 0.76);
    color: #0f172a;
  }

  .z-topbar[data-header-modern] .z-header-menu__langlist.is-open .z-header-menu__langtrigger .z-header-dropdown__arrow {
    transform: rotate(180deg);
  }

  .z-topbar[data-header-modern] .z-header-menu__langcurrent {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
  }

  .z-topbar[data-header-modern] .z-header-menu__langpanel {
    display: grid;
    gap: 3px;
    padding: 3px;
    border-top: 1px solid rgba(17, 24, 39, 0.07);
    background: rgba(255, 255, 255, 0.86);
  }

  .z-topbar[data-header-modern] .z-header-menu__langpanel[hidden] {
    display: none !important;
  }

  .z-topbar[data-header-modern] .z-header-menu__langpanel .z-header-lang__item {
    min-height: 38px;
    width: 100%;
    padding: 0 12px 0 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.1;
    color: #334155;
    transform: none;
    box-shadow: none;
    transition:
      background-color 160ms ease,
      border-color 160ms ease,
      color 160ms ease,
      box-shadow 160ms ease;
  }

  .z-topbar[data-header-modern] .z-header-menu__langpanel .z-header-lang__item::after {
    content: "\2713";
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    transition: color 160ms ease;
  }

  .z-topbar[data-header-modern] .z-header-menu__langpanel .z-header-lang__item:hover,
  .z-topbar[data-header-modern] .z-header-menu__langpanel .z-header-lang__item:focus-visible {
    transform: none;
    background: rgba(244, 247, 252, 0.9);
    color: #0f172a;
  }

  .z-topbar[data-header-modern] .z-header-menu__langpanel .z-header-lang__item.is-active,
  .z-topbar[data-header-modern] .z-header-menu__langpanel .z-header-lang__item[data-active-language="true"] {
    border-color: rgba(37, 99, 235, 0.14);
    background: linear-gradient(180deg, rgba(241, 246, 255, 0.96) 0%, rgba(236, 242, 255, 0.94) 100%);
    color: #0f2347;
    box-shadow:
      0 1px 2px rgba(17, 24, 39, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .z-topbar[data-header-modern] .z-header-menu__langpanel .z-header-lang__item.is-active::after,
  .z-topbar[data-header-modern] .z-header-menu__langpanel .z-header-lang__item[data-active-language="true"]::after {
    color: #2563eb;
  }
}

.z-grid__headLeft {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.z-grid__controls {
  display: grid;
  gap: 0;
  justify-items: end;
  max-width: 100%;
}

.z-grid__toolbar {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  max-width: 100%;
}

.z-toolbar-menu {
  position: relative;
}

.z-toolbar-trigger {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #3f4a5f;
  cursor: pointer;
  transition: border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease, transform 180ms ease, color 180ms ease;
}

.z-toolbar-trigger__label {
  display: none;
}

.z-toolbar-trigger:hover {
  border-color: rgba(17, 24, 39, 0.18);
  background: #fff;
  transform: translateY(-1px);
}

.z-toolbar-trigger:focus-visible,
.z-toolbar-trigger[aria-expanded="true"] {
  outline: none;
  border-color: rgba(79, 70, 229, 0.42);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.z-toolbar-trigger__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(238, 242, 247, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 1px 1px rgba(17, 24, 39, 0.06);
  color: #5f6b84;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.z-toolbar-trigger__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.z-toolbar-trigger:hover .z-toolbar-trigger__icon,
.z-toolbar-trigger:focus-visible .z-toolbar-trigger__icon,
.z-toolbar-trigger[aria-expanded="true"] .z-toolbar-trigger__icon {
  transform: translateY(-1px) scale(1.04);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 2px 4px rgba(17, 24, 39, 0.08);
  color: #334155;
}

.z-toolbar-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  min-width: 188px;
  padding: 8px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12), 0 2px 8px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(14px);
}

.z-toolbar-popover[hidden] {
  display: none !important;
}

.z-toolbar-popover__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.z-toolbar-popover__option:hover,
.z-toolbar-popover__option:focus-visible {
  outline: none;
  background: rgba(241, 245, 249, 0.92);
}

.z-toolbar-popover__option.is-active {
  background: rgba(247, 248, 252, 0.98);
  color: #0f172a;
}

.z-toolbar-popover__check {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 999px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 160ms ease, transform 160ms ease;
}

.z-toolbar-popover__option.is-active .z-toolbar-popover__check {
  opacity: 1;
  transform: scale(1);
  background: radial-gradient(circle at 50% 50%, #111827 0 38%, transparent 42%);
}

.z-toolbar-nativeSelect {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.z-toolbar-popover--panel {
  gap: 10px;
  min-width: min(340px, calc(100vw - 32px));
}

.z-toolbar-panel {
  display: grid;
  gap: 10px;
}

.z-toolbar-field {
  display: grid;
  gap: 4px;
}

.z-toolbar-field > span {
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.z-toolbar-field select,
.z-toolbar-field input {
  height: 38px;
  min-width: 0;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: #fff;
  padding: 0 10px;
}
