@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/TTHoves-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/TTHoves-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/TTHoves-DemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "TT Hoves";
  src: url("../fonts/TTHoves-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-family-main: "TT Hoves", "Arial", sans-serif;
  --scrollbar-track: #323232;
  --scrollbar-thumb: #4a4a4a;
  --scrollbar-thumb-accent: #fee600;
  --color-white: #fff;
  --color-accent: #fee600;
  --color-success: #4da63e;
  --color-error: #ff4545;
  --color-dark: #1c1c1c;
  --background-color-dark: #1c1c1c;
  --background-color-light: #fff;
  --background-color-primary: #282828;
  --background-color-secondary: #323232;
  --background-color-secondary-hover: #4a4a4a;
  --background-color-tertiary: #343434;
  --background-color-accent: #fee600;
  --background-color-error: #ff4545;
  --background-color-success: #18955c;
  --background-color-avatar: #454545;
  --input-primary: #1c1c1c;
  --input-secondary: #282828;
  --input-disabled: #323232;
  --color-text-primary: #fff;
  --color-text-secondary: #878787;
  --color-text-tertiary: #737373;
  --color-text-light: #fff;
  --color-text-dark: #181818;
  --color-text-disabled: #3a3a3a;
  --color-text-accent: #fee600;
  --color-text-accent-secondary: #ad8b00;
  --color-text-error: #ff4545;
  --color-text-success: #4da63e;
  --button-primary: #fee600;
  --button-primary-hover: #fed500;
  --button-default: #323232;
  --button-default-hover: #4a4a4a;
  --button-error: #ff4545;
  --button-error-hover: #eb3131;
  --button-ghost: transparent;
  --button-disabled: #323232;
  --icon-default: #6c6c6c;
  --icon-secondary: #9d9d9d;
  --icon-tertiary: #7c7b7b;
  --icon-light: #fff;
  --icon-dark: #181818;
  --icon-disabled: #3a3a3a;
  --icon-accent: #fee600;
  --icon-success: #4da63e;
  --icon-error: #ff4545;
  --border-default: #323232;
  --border-secondary: #4a4a4a;
  --border-tertiary: #9d9d9d;
  --border-accent: #fee600;
  --border-error: #ff4545;
  --border-success: #4da63e;
  --box-shadow: 0px 0px 24px 0px #0404044d;
  --color-backdrop: #1c1c1ce6;
  --color-stroke: #4a4a4a;
  --color-online-indicator: #18955c;
  --color-dividers: #323232;
  --gap-2: 2px;
  --gap-3xs: 2px;
  --gap-4: 4px;
  --gap-5: 5px;
  --gap-8: 8px;
  --gap-30: 30px;
  --gap-sections: 16px;
  --gap-sections-mobile: 12px;
  --font-size-label-xs: 0.857rem;
  --radius-round: 1000px;
  --color-state-warning: #f8b31f;
  --color-state-positive: #3db43a;
  --color-state-warning-light: #f8b31f33;
  --color-state-positive-light: #3db43a33;
  --gap-10: 10px;
  --gap-12: 12px;
  --gap-16: 16px;
  --gap-20: 20px;
  --gap-24: 24px;
  --gap-32: 32px;
  --font-size-base: 14px;
  --font-size-12: 0.857rem;
  --font-size-14: 1rem;
  --font-size-16: 1.1143rem;
  --font-size-18: 1.286rem;
  --font-size-20: 1.429rem;
  --font-size-24: 1.714rem;
  --line-height-base: 1.286;
  --line-height-heading: 1.25;
  --transition-base: 0.25s ease-in-out;
  --index-6: 6;
  --gap-2xs: 4px;
  --gap-xs: 8px;
  --gap-s: 12px;
  --gap-m: 16px;
  --gap-l: 20px;
  --gap-xl: 24px;
  --gap-2xl: 32px;
  --padding-xs: 4px;
  --padding-s: 8px;
  --padding-m: 12px;
  --padding-l: 16px;
  --padding-xl: 20px;
  --radius-xs: 6px;
  --radius-2xs: 8px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 20px;
  --font-size-h1: 64px;
  --font-size-h2: 48px;
  --font-size-h3: 32px;
  --font-size-h4: 24px;
  --font-size-h5: 20px;
  --font-size-l: 18px;
  --font-size-m: 16px;
  --font-size-s: 14px;
  --font-size-xs: 12px;
  --icon-size-s: 16px;
  --icon-size-m: 20px;
  --icon-size-l: 24px;
  --color-shadow: #05050580;
  --color-neutral-white: #fff;
  --color-neutral-black: #000;
  --color-neutral-100: #1c1c1c;
  --color-neutral-200: #282828;
  --color-neutral-300: #383838;
  --color-neutral-400: #5f5f60;
  --color-neutral-500: #878787;
  --color-neutral-800: #d3d3d3;
  --color-neutral-900: #fff;
  --color-primary-500: #fee600;
  --color-primary-500-rgb: 254, 230, 0;
  --color-admin: #f33;
  --color-moder: #1ad327;
  --color-arbitrator: #365eff;
  --color-guarantee: #3fdbfe;
  --color-partner: #fee600;
  --color-super-user: #fee600;
}

@media (width <= 600px) {
  :root {
    --gap-sections: 12px;
    --gap-xs: 6px;
    --gap-s: 10px;
    --gap-m: 12px;
    --gap-l: 16px;
    --gap-xl: 18px;
    --gap-2xl: 24px;
    --padding-m: 10px;
    --padding-l: 12px;
    --padding-xl: 16px;
    --radius-s: 8px;
    --radius-m: 14px;
    --font-size-h1: 48px;
    --font-size-h2: 32px;
    --font-size-h3: 24px;
    --font-size-h4: 20px;
    --font-size-h5: 18px;
    --font-size-l: 16px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--background-color-dark);
  color: var(--color-text-primary);
  font-family: var(--font-family-main);
  font-size: 14px !important;
  line-height: var(--line-height-base);
  -webkit-overflow-scrolling: touch;
}

body.lock {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p, span {
  margin: 0;
  padding: 0;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: var(--line-height-heading);
}

h1 { font-size: var(--font-size-h1); }
h2 { font-size: var(--font-size-h2); }
h3 { font-size: var(--font-size-h3); }
h4 { font-size: var(--font-size-h4); }

a {
  color: inherit;
  text-decoration: none;
  background: transparent;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
  border: none;
  background: transparent;
  color: inherit;
}

button {
  cursor: pointer;
  padding: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

svg {
  stroke-width: 0;
}

input, textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--background-color-dark);
  color: var(--color-text-primary);
  font-size: var(--font-size-14);
  line-height: var(--line-height-base);
  transition: border-color var(--transition-base);
}

input[type="checkbox"],
input[type="radio"],
input[type="hidden"] {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-secondary);
}

input:hover, textarea:hover {
  border-color: var(--border-secondary);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--border-accent);
}

::-webkit-scrollbar {
  width: 8px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 10px;
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (width <= 1200px) {
  .container { max-width: 932px; }
}

@media (width <= 991px) {
  .container { max-width: 728px; }
}

@media (width <= 767px) {
  .container { max-width: calc(100% - 20px); }
}

.main {
  flex: auto;
  display: flex;
  flex-direction: column;
  padding: 20px 0 100px;
  position: relative;
}

.main:has(.reg-page) {
  padding-top: 16px;
}

@media (width <= 767px) {
  .main { padding: 16px 0 80px; }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: var(--index-6);
  background: var(--color-neutral-200);
  box-shadow: 0 4px 42px 0 var(--color-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--gap-2xl);
  padding: var(--padding-s) 0;
}

@media (width <= 991px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
}

.logo-link {
  display: flex;
  flex-shrink: 0;
}

.logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

@media (width <= 600px) {
  .logo { width: 40px; height: 40px; }
}

.catalog-search {
  display: flex;
  flex: auto;
  gap: var(--gap-2xs);
  min-width: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--color-neutral-100);
  border: 1px solid transparent;
  border-radius: 10px;
  transition: border-color var(--transition-base);
}

.search-box:focus-within {
  border-color: var(--border-accent);
}

.search-box input {
  padding: 0;
  border: 0;
  background: transparent;
}

.search-box input:hover,
.search-box input:focus {
  border-color: transparent;
}

.search-icon {
  width: 20px;
  height: 20px;
  color: var(--icon-secondary);
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--gap-m);
}

@media (width <= 767px) {
  .header-right { flex: auto; }
}

.header-left {
  display: none;
  align-items: center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--gap-2xs);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  color: var(--color-text-secondary);
  background: var(--button-default);
  transition: background-color var(--transition-base), color var(--transition-base);
}

.icon-btn:hover {
  background: var(--button-default-hover);
  color: var(--color-text-primary);
}

.icon-btn svg {
  width: 24px;
  height: 24px;
}

.menu-toggle {
  display: none;
}

.search-mobile {
  display: none;
}

.icon-btn-ghost {
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  color: rgb(135, 135, 135);
}

.icon-btn-ghost:hover {
  background: transparent;
  color: rgb(255, 255, 255);
}

.icon-btn-ghost svg {
  width: 24px;
  height: 24px;
}

.header-logged {
  display: flex;
  align-items: center;
  gap: var(--gap-2xs);
}

.header-logged-btns {
  display: flex;
  align-items: center;
  gap: var(--gap-2xs);
}

.header-text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #383838;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.header-text-btn svg {
  width: 20px;
  height: 20px;
}

.header-account-btn {
  min-width: 0;
  width: auto;
  padding: 12px;
}

.header-account-btn .person-icon {
  width: 24px;
  height: 24px;
  color: #000;
}

@media (width <= 991px) {
  .header-left { display: flex; }
  .menu-toggle { display: flex; }
  .catalog-search { display: none; }
  .search-mobile { display: flex; }
  .login-btn { display: none; }
  .header-logged { display: flex; }
  .header-logged-btns,
  .header-chat-btn { display: none; }
  .header-notify-btn { position: relative; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  font-weight: 500;
  letter-spacing: 0.32px;
  transition: color var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
  white-space: nowrap;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-m {
  padding: 12px;
  font-size: var(--font-size-16);
  line-height: 24px;
}

@media (width <= 600px) {
  .btn-m { padding: 10px; }
}

.btn-l {
  padding: 14px;
  font-size: 1.286rem;
  line-height: 24px;
}

.btn-primary {
  color: var(--color-text-dark);
  background: var(--button-primary);
}

@media (width >= 1200px) {
  .btn-primary:hover { background: var(--button-primary-hover); }
}

.btn-secondary {
  color: var(--color-text-secondary);
  background: var(--button-default);
}

@media (width >= 1200px) {
  .btn-secondary:hover {
    background: var(--button-default-hover);
    color: var(--color-text-primary);
    box-shadow: 0 0 10px #84848426;
  }
}

.btn-ghost {
  color: var(--color-text-accent);
  background: transparent;
}

.btn-block { width: 100%; }

.login-btn {
  min-width: 108px;
  padding-inline: 16px;
}

.login-btn .person-icon {
  width: 20px;
  height: 20px;
  color: #000;
}

@media (width <= 600px) {
  .login-text { display: none; }
  .login-btn {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
  }
}

.login-btn.header-account-btn {
  min-width: 0;
  width: auto;
  height: auto;
  padding: 12px;
}

.login-btn.header-account-btn .person-icon {
  width: 24px;
  height: 24px;
}

/* Top nav */
.top-nav {
  border-top: 1px solid transparent;
}

.top-nav-inner {
  display: flex;
  justify-content: flex-end;
  padding: var(--padding-s) 0;
}

.top-nav-list {
  display: flex;
  align-items: center;
  gap: var(--gap-m);
}

.top-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: var(--font-size-m);
  font-weight: 500;
  transition: color var(--transition-base);
}

.top-nav-link svg {
  width: 18px;
  height: 18px;
}

.top-nav-link:hover,
.top-nav-link.is-active {
  color: var(--color-text-accent);
}

@media (width <= 991px) {
  .top-nav { display: none; }
}

/* Mobile menu */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-backdrop);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 41;
  background: var(--color-neutral-200);
  border-radius: 0 0 0.875rem 0.875rem;
  transform: translateY(-110%);
  transition: transform var(--transition-base);
}

.drawer-backdrop.is-open .mobile-drawer {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  padding: var(--padding-xl) 12px;
  border-bottom: 1px solid var(--color-neutral-300);
}

.drawer-header h4 {
  font-size: 20px;
  font-weight: 700;
}

.drawer-list-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: var(--padding-xl) 12px;
  color: #878787;
  font-size: var(--font-size-16);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 20px;
}

.drawer-list-item:hover,
.drawer-list-link:hover,
.drawer-list-link.is-active {
  background: var(--background-color-secondary);
  color: var(--color-text-primary);
}

.drawer-list-link svg {
  width: 20px;
  height: 20px;
}

/* Account menu: desktop popover, mobile bottom sheet */
.account-slot { position: relative; }
.account-wrap { position: relative; }

@media (width <= 991px) {
  .header .account-wrap,
  .header .login-btn { display: none; }
}

.account-modal { display: none; }

.account-modal.is-open { display: block; }

.account-modal-backdrop {
  display: none;
  border: 0;
  padding: 0;
  background: rgb(0 0 0 / 0.55);
}

.account-head { padding: 6px; }

.account-user {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-s);
  padding: var(--padding-l);
  text-align: center;
  background: var(--color-neutral-100);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.account-name {
  max-width: 100%;
  font-size: var(--font-size-h5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-list { margin: 0; padding: 0; list-style: none; }

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-item:hover { background: var(--color-neutral-300); }

.account-item:hover .account-link,
.account-item:hover .account-link svg { color: var(--color-neutral-900); }

.account-link {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  width: 100%;
  padding: calc(var(--padding-l) - 2px) var(--padding-l);
  border: 0;
  background: none;
  color: var(--color-neutral-500);
  font: inherit;
  font-size: var(--font-size-m);
  text-align: left;
  cursor: pointer;
}

.account-link p {
  margin: 0;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.account-item form { width: 100%; }

.account-balance {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  flex-shrink: 0;
  margin-right: var(--padding-l);
  color: #fff;
  font-weight: 500;
}

.account-topup {
  display: inline-flex;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-accent);
  cursor: pointer;
}

@media (width >= 992px) {
  .account-slot .account-modal.is-open {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: 296px;
  }

  .account-modal-panel {
    overflow: hidden;
    background: var(--color-neutral-200);
    border-radius: 14px;
    box-shadow: var(--box-shadow);
  }

  .account-item-deals { display: none; }
}

@media (width <= 991px) {
  .account-modal.is-open {
    position: fixed;
    inset: 0;
    z-index: 30;
  }

  .account-modal-backdrop {
    display: block;
    position: absolute;
    inset: 0;
  }

  .account-modal-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 85vh;
    overflow: auto;
    background: var(--color-neutral-200);
    border-radius: 14px 14px 0 0;
    padding-bottom: max(62px, calc(env(safe-area-inset-bottom) + 50px));
  }
}

.cabinet-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cabinet-title {
  font-size: 24px;
  font-weight: 600;
}

.cabinet-balance {
  font-size: 28px;
  font-weight: 600;
}

/* Bottom nav */
.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 31;
  width: 100%;
  padding: var(--padding-l);
  padding-bottom: max(env(safe-area-inset-bottom), var(--padding-l));
  background: var(--background-color-primary);
  box-shadow: 0 0 24px #0404044d;
}

.bottom-nav-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: center;
}

.bottom-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--color-text-secondary);
  font-size: var(--font-size-14);
  line-height: 16px;
}

.bottom-link svg {
  width: 24px;
  height: 24px;
}

.bottom-link.is-active {
  color: var(--color-text-accent);
}

button.bottom-link {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
  .bottom-link:hover { color: var(--color-neutral-900); }
}

@media (width <= 991px) {
  .bottom-nav { display: block; }
}

/* Avatar / names */
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 100%;
  background: var(--color-neutral-300);
  color: var(--color-neutral-800);
  font-weight: 700;
  overflow: hidden;
}

.avatar-s { width: 24px; height: 24px; font-size: 12px; font-weight: 600; }
.avatar-m { width: 32px; height: 32px; font-size: var(--font-size-m); }
.avatar-40 { width: 40px; height: 40px; font-size: 16px; }
.avatar-l { width: 48px; height: 48px; font-size: var(--font-size-h4); font-weight: 800; }
.avatar-xl { width: 72px; height: 72px; font-size: 28px; font-weight: 800; }

.user-name {
  font-weight: 500;
  color: var(--color-neutral-900);
}

.role-admin { color: var(--color-admin); filter: drop-shadow(0 0 7px rgb(255, 51, 51)); }
.role-moderator { color: var(--color-moder); filter: drop-shadow(0 0 7px rgb(26, 211, 39)); }
.role-arbitrator,
.role-support { color: var(--color-arbitrator); filter: drop-shadow(0 0 7px rgb(54, 94, 255)); }
.role-guarantor { color: var(--color-guarantee); filter: drop-shadow(0 0 7px rgb(63, 219, 254)); }
.role-partner,
.role-super-user { color: var(--color-partner); filter: drop-shadow(0 0 7px rgb(254, 230, 0)); }

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-online-indicator);
}

/* Feed */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.page-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 30px;
}

@media (width <= 991px) {
  .page-title { font-size: 18px; line-height: 28px; }
}

@media (width <= 600px) {
  .page-title { font-size: 16px; }
}

.tabs {
  display: flex;
  gap: 4px;
  overflow: auto;
  min-height: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  color: #fff;
  background: #383838;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tab.is-active {
  color: #000;
  background: #fee600;
}

.feed {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
}

.card,
.item {
  background: var(--background-color-primary);
  border-radius: 16px;
  box-shadow: 0 0 18px #04040440;
}

.home-layout {
  display: grid;
  grid-template-columns: 288px minmax(1px, 1fr);
  gap: var(--gap-m);
}

.home-aside,
.home-main,
.home-pubs {
  display: flex;
  flex-direction: column;
  gap: var(--gap-m);
  min-width: 0;
}

.home-aside-banners {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sections);
  position: sticky;
  top: 80px;
}

.home-howto {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xl);
  background: var(--color-neutral-200);
  border-radius: var(--radius-m);
  padding: var(--padding-xl);
}

.home-howto-copy {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.home-howto h4 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.home-howto p {
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: rgb(135, 135, 135);
}

.home-howto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: rgb(56, 56, 56);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  transition: background-color var(--transition-base);
}

.home-howto-btn:hover {
  background: rgb(95, 95, 96);
}

.home-popular {
  background: var(--color-neutral-200);
  border-radius: var(--radius-m);
  min-width: 100%;
  overflow: hidden;
}

.home-popular-head {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--gap-2xs);
  padding: var(--padding-xl) var(--padding-xl) var(--padding-s);
}

.home-popular-head h5 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.home-popular-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  color: rgb(135, 135, 135);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.home-popular-all svg {
  width: 16px;
  height: 16px;
}

.home-article {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
  padding: var(--padding-xl);
  transition: background-color var(--transition-base);
}

.home-article:hover {
  background: var(--color-neutral-300);
}

.home-article-head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
}

.home-article-head p {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.home-article-head span {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: rgb(254, 230, 0);
}

.home-article-desc {
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: rgb(135, 135, 135);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.banner-slider {
  position: relative;
  overflow: hidden;
}

.banner-track {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.banner-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-aside .banner-track { aspect-ratio: 295 / 350; }
.banner-center .banner-track,
.banner-catalog .banner-track { aspect-ratio: 930 / 260; }

.banner-dots {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background: var(--icon-light, rgb(255 255 255));
  opacity: 0.5;
}

.banner-dot.is-active { opacity: 1; }

.pub-card {
  display: flex;
  flex-direction: column;
  gap: var(--gap-s);
  padding: var(--padding-l);
  border-radius: var(--radius-m);
  background: var(--color-neutral-200);
  cursor: pointer;
  transition: background-color var(--transition-base);
  animation: showSection 0.45s ease-in-out;
}

.pub-card:hover {
  background: var(--color-neutral-300);
}

.pub-header {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
}

.pub-title-row {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-xs);
}

.pub-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
}

.pub-pin {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #fee600;
  align-self: flex-start;
}

.pub-cat {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  color: rgb(254, 230, 0);
}

.pub-main {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-m);
}

.pub-user {
  display: flex;
  align-items: center;
  gap: var(--gap-m);
  flex: auto;
  min-width: 0;
}

.pub-user-row {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  min-width: 0;
}

.pub-user-meta {
  display: flex;
  align-items: center;
  gap: var(--gap-2xs);
  min-width: 0;
}

.pub-user-meta .user-name {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pub-online {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--color-state-positive);
  flex-shrink: 0;
}

.pub-date {
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
  color: rgb(135, 135, 135);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pub-stats-block,
.pub-stats-row,
.pub-last {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-s);
}

.pub-stats-block {
  flex-direction: column;
  align-items: stretch;
}

.pub-stat {
  display: flex;
  align-items: center;
  gap: var(--gap-2xs);
  flex-shrink: 0;
  color: rgb(135, 135, 135);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1;
}

.pub-stat svg {
  width: 16px;
  height: 16px;
  color: var(--color-neutral-500);
  flex-shrink: 0;
}

.pub-last .pub-stat svg { display: none; }

.pub-last-user {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-neutral-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.pub-section {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-secondary);
  font-size: 12px;
}

.pub-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pub-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-text-secondary);
  font-size: 12px;
}

@media (width <= 991px) {
  .home-layout {
    grid-template-columns: minmax(1px, 1fr);
  }

  .home-main { order: 1; }
  .home-popular,
  .home-aside-banners { display: none; }
  .home-layout:not(.is-guest) .home-aside { display: none; }
}

@media (width <= 991px) {
  .pub-header { order: 2; }
  .pub-main {
    order: 1;
    flex-wrap: wrap;
  }
  .pub-last {
    flex: 100%;
    justify-content: space-between;
    padding: var(--padding-s);
    border-radius: var(--radius-s);
    background: var(--color-neutral-100);
  }
  .pub-last-user { order: -1; }
}

@media (width <= 600px) {
  .home-howto h4 { font-size: 20px; }
}

/* Catalog */
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (width <= 767px) {
  .section-grid { grid-template-columns: 1fr; }
}

.section-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  transition: background-color var(--transition-base);
}

.section-card:hover {
  background: #2e2e2e;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-neutral-100);
  color: var(--color-accent);
}

.section-icon svg {
  width: 20px;
  height: 20px;
}

.section-name {
  font-size: 16px;
  font-weight: 700;
}

.section-count {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.sub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sub-chip {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--color-neutral-100);
  color: var(--color-text-secondary);
  font-size: 12px;
}

/* Users */
.users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  transition: background-color var(--transition-base);
}

.user-row:hover { background: var(--color-neutral-300); }

.user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: auto;
}

.user-stats {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.article {
  padding: 24px;
}

.article h1 {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.article p {
  font-size: var(--font-size-16);
  margin-top: 10px;
}

.article a { color: var(--color-text-accent); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

@media (width <= 767px) {
  .split { grid-template-columns: 1fr; }
}

.info-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--color-neutral-100);
  border-radius: 16px;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  overflow: hidden;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 18px 20px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
}

.faq-q svg {
  width: 20px;
  height: 20px;
  color: var(--icon-secondary);
  transition: transform var(--transition-base);
}

.faq-item.is-open .faq-q svg {
  transform: rotate(180deg);
  color: var(--color-accent);
}

.faq-a {
  display: none;
  padding: 0 20px 18px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.55;
}

.faq-item.is-open .faq-a { display: block; }

.errorlist {
  color: var(--color-text-error);
  font-size: 12px;
  font-weight: 500;
  margin: 4px 0 0;
  list-style: none;
  padding: 0;
}

.form-error {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-error);
  font-weight: 500;
  margin-bottom: 12px;
}

.auth-extra {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 16px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.auth-extra a {
  color: var(--color-accent);
}

.auth-switch {
  margin-top: 16px;
  text-align: center;
  color: var(--color-text-secondary);
}

.auth-switch a {
  color: var(--color-accent);
  font-weight: 600;
}

/* Profile / publication detail */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 20px 20px;
  text-align: center;
}

.profile-nick {
  font-size: 24px;
  font-weight: 800;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 16px 20px;
}

.stat-box {
  background: var(--color-neutral-100);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
}

.stat-label {
  color: var(--color-text-secondary);
  font-size: 12px;
  margin-top: 4px;
}

.pub-full {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-full-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.25;
}

@media (width <= 600px) {
  .pub-full-title { font-size: 22px; }
}

.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: var(--color-text-secondary);
  text-align: center;
  padding: 20px;
}

/* Login */
.login-page {
  display: flex;
  justify-content: center;
  padding-top: 100px;
}

.login-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-30);
  width: 100%;
  max-width: 750px;
  padding: 20px;
  overflow: hidden;
  background-image: url("../img/login-art.png");
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: contain;
}

.login-art { min-height: 1px; }

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-16);
}

.login-header {
  display: flex;
  flex-direction: column;
  gap: var(--gap-8);
}

.login-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

@media (min-width: 600.1px) {
  .login-header h3 { font-size: 32px; }
}

.login-subtitle {
  font-weight: 400;
  font-size: var(--font-size-16);
  line-height: 18px;
}

.login-link {
  color: var(--color-text-accent);
  font-weight: 500;
}

.login-body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-12);
}

.login-remember {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-remember-btn {
  display: flex;
  align-items: center;
  gap: var(--gap-10);
}

.login-remember-text {
  font-size: var(--font-size-label-xs);
  font-weight: 400;
  line-height: 16px;
}

.login-forgot {
  font-weight: 500;
  font-size: var(--font-size-14);
  color: var(--color-text-accent);
  line-height: 16px;
}

.login-footer {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

@media (width <= 767px) {
  .login-panel {
    grid-template-columns: 1fr;
    max-width: 100%;
    background-image: none;
  }

  .login-art { display: none; }

  .login-form { width: 100%; max-width: 100%; }
}

@media (width <= 600px) {
  .login-page { padding: 0 10px; }

  .login-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100dvh - 146px);
    padding: var(--padding-m);
  }

  .login-form {
    justify-content: space-between;
    height: 100%;
  }

  .login-body { padding: 0; }

  .login-footer {
    gap: var(--gap-10);
    margin-top: auto;
  }
}

/* Rules */
.page-h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

@media (min-width: 600.1px) {
  .page-h2 { font-size: 48px; }
}

.page-h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

@media (min-width: 600.1px) {
  .page-h4 { font-size: 24px; }
}

.muted {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: rgb(135, 135, 135);
}

.rules-page {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sections);
}

.rules-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: max-content;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  color: rgb(135, 135, 135);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.rules-back:hover { color: rgb(239, 203, 0); }

.rules-back svg {
  width: 16px;
  height: 16px;
}

.rules-layout {
  display: grid;
  grid-template-columns: 285px 1fr;
  align-items: start;
  gap: var(--gap-sections);
}

.rules-nav {
  display: grid;
  gap: var(--gap-20);
  padding: 20px 0;
  position: sticky;
  top: 100px;
}

.rules-nav a {
  display: block;
  padding: 0 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.rules-nav a:hover,
.rules-nav a.is-active {
  color: rgb(239, 203, 0);
}

.rules-content {
  padding: 20px;
  overflow: hidden;
}

.rules-body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-24);
}

.rules-section {
  display: flex;
  flex-direction: column;
  gap: var(--gap-8);
  scroll-margin-top: 110px;
}

.rules-section h4 {
  font-size: var(--font-size-h4);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.rules-paragraphs {
  display: flex;
  flex-direction: column;
  gap: var(--gap-8);
}

.rules-p {
  display: flex;
  flex-direction: column;
  gap: var(--gap-5);
  font-size: var(--font-size-16);
}

.rules-list {
  padding-left: 20px;
  font-size: var(--font-size-16);
}

.rules-list li { list-style-type: initial; }

.rules-list-sm { font-size: var(--font-size-14); }

@media (width <= 991px) {
  .rules-layout { grid-template-columns: minmax(1px, 1fr); }
  .rules-nav { display: none; }
}

@media (width <= 767px) {
  .rules-content { padding: 20px 16px; }
}

/* Guarantee */
.garant-inner {
  display: flex;
  flex-direction: column;
  gap: var(--gap-20);
  padding: 32px;
}

.garant-inner > h2 {
  font-size: var(--font-size-h4);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.garant-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.garant-text { font-size: var(--font-size-16); }

.garant-title {
  font-weight: 700;
  font-size: var(--font-size-18);
}

.garant-list {
  display: flex;
  flex-direction: column;
}

.garant-list li {
  font-size: var(--font-size-16);
  margin-left: 20px;
}

.garant-list-ul li { list-style-type: disc; }
.garant-list-ol li { list-style-type: decimal; }

.garant-list li p {
  font-size: var(--font-size-16);
}

@media (width <= 600px) {
  .garant-inner { gap: var(--gap-10); }
}

/* Contacts */
.contacts-page {
  display: flex;
  flex-direction: column;
  gap: var(--gap-l);
}

.contacts-slides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.contacts-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--gap-s);
  height: 224px;
  padding: var(--padding-xl);
  border-radius: var(--radius-m);
  background-color: var(--color-neutral-200);
  overflow: hidden;
  box-sizing: border-box;
}

.contacts-slide > * { position: relative; }

.contacts-slide::before {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -20.0893%;
  height: 109.375%;
  aspect-ratio: 1;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: contain;
}

.contacts-slide--chat::before { background-image: url("../img/contacts-chat.png"); }
.contacts-slide--escrow::before { background-image: url("../img/contacts-escrow.png"); }

.contacts-slide-head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
}

.contacts-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: max-content;
  min-width: auto;
  padding: 12px;
  border-radius: 10px;
  background: #fee600;
  color: #000;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.contacts-go:hover { background: rgb(239, 203, 0); }

.contacts-go svg {
  width: 16px;
  height: 16px;
}

.contacts-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(1px, 1fr));
  gap: var(--gap-xs);
}

.team-professions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--gap-s);
  padding: var(--padding-l);
}

.team-prof-body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
}

.prof-card {
  display: flex;
  align-items: center;
  gap: var(--gap-s);
  width: 100%;
  padding: var(--padding-m);
  border: 1px solid transparent;
  border-radius: var(--radius-s);
  background: var(--color-neutral-100);
  text-align: left;
  cursor: pointer;
}

.prof-card:hover,
.prof-card.is-active {
  border-color: var(--color-primary-500);
}

.prof-card:hover .prof-icon,
.prof-card.is-active .prof-icon {
  color: var(--color-primary-500);
}

.prof-icon-wrap {
  display: flex;
  padding: var(--padding-m);
  border-radius: var(--radius-s);
  background: var(--color-neutral-200);
  overflow: hidden;
}

.prof-icon {
  width: var(--icon-size-m);
  height: var(--icon-size-m);
  color: var(--color-neutral-500);
  flex-shrink: 0;
}

.prof-card-body { flex: auto; }

.prof-card-body h6 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

@media (min-width: 600.1px) {
  .prof-card-body h6 { font-size: 18px; }
}

.team-roles {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--padding-l);
  overflow: hidden;
}

.team-roles-list {
  display: flex;
  flex-direction: column;
  flex: auto;
  gap: var(--gap-xs);
  min-height: 0;
  overflow-y: auto;
}

.person-card {
  display: flex;
  align-items: center;
  gap: var(--gap-xs);
  min-height: 68px;
  height: 100%;
  padding: var(--padding-m);
  border: 1px solid var(--color-neutral-300);
  border-radius: var(--radius-s);
  overflow: hidden;
  transition: border-color 0.15s ease-in-out;
}

.person-card:hover { border-color: var(--color-neutral-800); }

.person-user {
  display: flex;
  flex-direction: column;
  flex: auto;
  gap: var(--gap-3xs);
  min-width: 0;
}

.person-user .user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-btns {
  display: flex;
  gap: var(--gap-2xs);
}

.person-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  background: rgb(56, 56, 56);
  color: #fff;
}

.person-btn:hover { background: rgb(95, 95, 96); }

.person-btn svg {
  width: 20px;
  height: 20px;
}

@media (any-pointer: fine) {
  .person-btns {
    visibility: hidden;
    pointer-events: none;
  }

  .person-card:hover .person-btns {
    visibility: visible;
    pointer-events: auto;
  }
}

.contacts-bottom {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(1px, 1fr));
  gap: var(--gap-xs);
}

.contacts-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  padding: var(--padding-l);
  border-radius: var(--radius-l);
  background: var(--color-neutral-200);
}

.contacts-warning { gap: 40px; }

.contacts-box-head {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
}

.contacts-toolbar {
  position: relative;
  left: calc(var(--padding-l) * -1);
}

.contacts-toolbar img {
  object-fit: contain;
  max-width: 100%;
}

.mirror-statuses,
.mirrors-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-2xs) var(--gap-xs);
}

.mirror-chip {
  display: flex;
  align-items: center;
  gap: var(--gap-2xs) var(--gap-xs);
  padding: var(--padding-xs) var(--padding-s);
  border-radius: var(--radius-round);
  background: var(--color-neutral-300);
  overflow: hidden;
}

.mirror-chip.is-example { background: var(--color-state-positive-light); }

.mirror-chip.is-example.is-down { background: var(--color-state-warning-light); }

.mirror-chip.is-down { color: var(--color-neutral-400); }

.mirror-chip:hover:not(.is-down, .is-example) {
  background: var(--color-neutral-400);
}

.mirror-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-state-positive);
}

.mirror-chip.is-down .mirror-dot { background: var(--color-state-warning); }

.mirror-chip a {
  font-size: 14px;
  font-weight: 500;
}

.mirror-copy {
  display: flex;
  color: inherit;
}

.mirror-copy svg {
  width: 16px;
  height: 16px;
}

.mirror-ok { color: var(--color-state-positive); font-size: 14px; }
.mirror-wait { color: var(--color-state-warning); font-size: 14px; }

.todo-list {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
}

.todo-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--padding-l);
  border-radius: var(--radius-s);
  background: var(--color-neutral-100);
  overflow: hidden;
}

.todo-card svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary-500);
  flex-shrink: 0;
}

.todo-card p {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.contacts-hr {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--color-neutral-300);
}

.contact-us {
  display: grid;
  grid-template-columns: minmax(1px, 1fr) minmax(1px, 1fr);
  gap: var(--gap-xs);
  padding: var(--padding-xl);
  border-radius: var(--radius-l);
  background: var(--color-neutral-200);
}

.contact-us-left,
.contact-us-right {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
}

.contact-us-left { justify-content: space-between; }

.contact-us-left h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

@media (min-width: 600.1px) {
  .contact-us-left h3 { font-size: 32px; }
}

.contact-us-lead {
  max-width: 373px;
  color: rgb(211, 211, 211);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.mail-card {
  display: flex;
  flex-direction: column;
  gap: var(--gap-2xs);
  padding: var(--padding-l);
  border-radius: var(--radius-m);
  background: var(--color-neutral-100);
}

.mail-card h4 {
  color: rgb(254, 230, 0);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

@media (min-width: 600.1px) {
  .mail-card h4 { font-size: 24px; }
}

@media (width <= 991px) {
  .contacts-team,
  .contacts-bottom { grid-template-columns: minmax(1px, 1fr); }

  .team-roles {
    gap: var(--gap-s);
    overflow: visible;
  }

  .team-roles-list {
    flex: none;
    height: auto;
    overflow: visible;
  }
}

@media (width <= 767px) {
  .contact-us {
    grid-template-columns: minmax(1px, 1fr);
    grid-template-rows: auto auto;
  }
}

@media (width <= 600px) {
  .contacts-slides { grid-template-columns: 1fr; }

  .contacts-slide { height: 165px; }

  .contacts-slide::before {
    right: -24px;
    bottom: -29px;
    height: 124.848%;
  }

  .contacts-go { padding: 10px; }
}

/* Loader */
.loader {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 33px;
  height: 30px;
}

.loader span {
  width: 6px;
  height: 30px;
  border-radius: 6px;
  background: #fee600;
  animation: loaderMove 0.8s ease-in-out infinite;
}

.loader span:nth-child(2) { animation-delay: 0.2s; }
.loader span:nth-child(3) { animation-delay: 0.4s; }
.loader span:nth-child(4) { animation-delay: 0.6s; }

@keyframes loaderMove {
  0%, 100% { height: 30px; }
  50% { height: 15px; }
}

@keyframes showSection {
  0% { opacity: 0.1; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
}

/* Registration — exact layout from cl-service */
.reg-page {
  display: flex;
  justify-content: center;
  padding-top: 100px;
}

.reg-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-16);
  width: 100%;
  max-width: 750px;
  padding: var(--padding-l);
  background-color: var(--background-color-primary);
  border-radius: var(--radius-m);
}

.reg-art {
  min-height: 280px;
  background: url("../img/registration-art.png") center / contain no-repeat;
}

.reg-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-16);
}

.reg-header {
  display: flex;
  flex-direction: column;
  gap: var(--gap-8);
}

.reg-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

@media (min-width: 600.1px) {
  .reg-header h3 { font-size: 32px; }
}

.reg-subtitle {
  font-weight: 400;
  font-size: var(--font-size-16);
  line-height: 18px;
  color: var(--color-text-primary);
}

.reg-link {
  color: var(--color-text-accent);
}

.reg-body {
  display: flex;
  flex-direction: column;
  gap: var(--gap-12);
}

.reg-control {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.reg-label {
  color: var(--color-text-secondary);
  font-weight: 400;
  font-size: 14px;
}

.reg-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.reg-tooltip {
  position: relative;
  display: flex;
  color: var(--color-text-secondary);
  cursor: help;
}

.reg-tooltip-text {
  display: none;
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 220px;
  padding: 8px 10px;
  background: var(--color-neutral-100);
  border: 1px solid var(--color-stroke);
  border-radius: 8px;
  color: var(--color-text-primary);
  font-size: 12px;
  line-height: 16px;
  box-shadow: var(--box-shadow);
}

.reg-tooltip:hover .reg-tooltip-text,
.reg-tooltip:focus-within .reg-tooltip-text {
  display: block;
}

.reg-input {
  width: 100%;
  height: 48px;
  padding: 12px 15px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgb(28, 28, 28);
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.reg-input:hover { border-color: rgb(95, 95, 96); }
.reg-input:focus { border-color: var(--border-accent); }

.reg-password {
  position: relative;
}

.reg-password .reg-input {
  padding-right: 44px;
}

.reg-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--icon-secondary);
}

.reg-pin-desc {
  font-size: var(--font-size-12);
  color: var(--color-text-secondary);
  margin-bottom: var(--gap-8);
}

.reg-pin {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
}

.reg-pin input {
  width: 100%;
  height: 48px;
  padding: 11px 15px;
  text-align: center;
  background: var(--background-color-dark);
  color: var(--color-text-primary);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
}

.reg-pin input:hover { border-color: var(--border-secondary); }
.reg-pin input:focus { border-color: var(--border-accent); outline: none; }

.reg-check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reg-check-ui {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.reg-check-ui input,
.turnstile-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  width: 100%;
  height: 100%;
}

.reg-check-box,
.turnstile-box {
  display: block;
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-neutral-300);
  border-radius: 6px;
  background: transparent;
}

.reg-check-ui input:checked + .reg-check-box,
.turnstile-check input:checked + .turnstile-box {
  background: var(--color-primary-500);
  border-color: var(--color-primary-500);
}

.reg-check-ui input:checked + .reg-check-box::after,
.turnstile-check input:checked + .turnstile-box::after {
  content: "";
  display: block;
  width: 6px;
  height: 9px;
  margin: 4px auto 0;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.reg-check-label {
  font-size: 0.857rem;
  line-height: 16px;
  color: var(--color-text-primary);
}

.reg-check-label a {
  text-decoration: underline;
}

.turnstile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 300px;
  height: 65px;
  padding: 0 8px;
  border: 1px solid #4a4a4a;
  border-radius: 2px;
  background: #313131;
}

.turnstile-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.turnstile-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  color: #f2f2f2;
  font-size: 8px;
  line-height: 10px;
}

.turnstile-brand {
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.turnstile-links {
  display: flex;
  gap: 0.2rem;
}

.reg-actions {
  display: flex;
  flex-direction: column;
  gap: var(--gap-xs);
}

.btn-next,
.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 64px;
  padding: 12px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-family: var(--font-family-main);
}

.btn-next {
  color: #000;
  background: #fee600;
}

.btn-next:hover { background: rgb(239, 203, 0); }

.btn-contact {
  color: #fff;
  background: rgb(56, 56, 56);
}

.btn-contact:hover { background: rgb(95, 95, 96); }

@media (width <= 767px) {
  .reg-panel {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: var(--padding-m);
    background-image: none;
  }

  .reg-art { display: none; }

  .reg-form { width: 100%; max-width: 100%; }
}

@media (width <= 600px) {
  .reg-page { padding-top: 0; }

  .reg-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100dvh - 146px);
  }

  .reg-form {
    gap: var(--gap-10);
    justify-content: space-between;
    height: 100%;
    padding: 0;
  }

  .reg-actions { margin-top: auto; }
}

.icon-btn { position: relative; }

.nav-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--color-accent);
  color: #181818;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logic-list { display: grid; gap: 8px; }
.logic-card {
  display: block;
  padding: 16px;
  border-radius: 12px;
  background: var(--background-color-primary);
}
.logic-card.is-unread { outline: 1px solid var(--color-accent); }
.logic-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.logic-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  background: var(--background-color-primary);
}
.logic-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.logic-actions, .logic-form, .comment-form, .chat-compose {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.logic-actions { flex-direction: row; flex-wrap: wrap; }
.logic-status {
  font-size: 13px;
  color: var(--color-text-secondary);
}
.logic-status.is-completed { color: var(--color-text-success); }
.logic-status.is-disputed, .logic-status.is-cancelled { color: var(--color-text-error); }
.logic-status.is-paid, .logic-status.is-accepted { color: var(--color-text-accent); }
.pub-deal-btn { width: auto; min-width: 180px; }
.react-btn.is-on { color: var(--color-accent); }
.chat-thread { display: grid; gap: 8px; margin-bottom: 16px; }
.chat-msg {
  max-width: 80%;
  padding: 12px;
  border-radius: 12px;
  background: #1c1c1c;
}
.chat-msg.is-mine {
  margin-left: auto;
  background: #323232;
}
.chat-msg time, .chat-msg strong { display: block; font-size: 12px; color: var(--color-text-secondary); }
.chat-compose { flex-direction: row; align-items: center; }
.chat-compose .btn-next { width: auto; min-width: 140px; }
.profile-btns form { width: 100%; }

body.is-webapp {
  padding-top: var(--tg-content-safe-area-inset-top, var(--tg-safe-area-inset-top, 0px));
  padding-bottom: var(--tg-content-safe-area-inset-bottom, var(--tg-safe-area-inset-bottom, 0px));
}
body.is-webapp .bottom-nav {
  padding-bottom: max(8px, var(--tg-safe-area-inset-bottom, 0px));
}

.ui-select { position: relative; flex: 1 1 auto; min-width: 0; width: 100%; }
.ui-select select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.ui-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--color-neutral-100);
  color: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}
.ui-select-btn::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.ui-select.is-open .ui-select-btn,
.ui-select-btn:focus {
  border-color: var(--color-accent);
}
.ui-select.is-open .ui-select-btn::after {
  margin-top: 4px;
  transform: rotate(-135deg);
}
.ui-select-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  max-height: 240px;
  margin: 0;
  padding: 6px;
  overflow: auto;
  list-style: none;
  border: 1px solid var(--color-accent);
  border-radius: 12px;
  background: #1c1c1c;
}
.ui-select-list[hidden] { display: none !important; }
.ui-select-list li {
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}
.ui-select-list li.is-selected {
  background: var(--color-accent);
  color: #111;
}
.cl-select { overflow: visible; background: transparent; padding: 0; }
