
    :root {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color-scheme: dark;
      --bg: #020617;
      --bg-soft: #020617;
      --bg-card: #020617;
      --border: rgba(148,163,184,0.45);
      --accent: #2563eb;
      --accent-soft: rgba(37,99,235,0.18);
      --accent2: #7c3aed;
      --accent2-soft: rgba(124,58,237,0.16);
      --text: #e5e7eb;
      --muted: #9ca3af;
      --radius-lg: 18px;
      --radius-md: 12px;
      --shadow: 0 18px 45px rgba(15,23,42,0.8);
      --toggle-bg: rgba(15,23,42,0.70);
      --toggle-border: rgba(148,163,184,0.35);
      --toggle-shadow: 0 12px 32px rgba(0,0,0,0.55);
    
      --page-bg: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
      --hero-bg: radial-gradient(circle at 0 0, rgba(34,211,238,0.18), transparent 55%),
                radial-gradient(circle at 100% 0, rgba(129,140,248,0.18), transparent 50%),
                rgba(2,6,23,0.95);
      --logo-bg: #020617;
      --panel: rgba(15,23,42,0.95);
      --panel2: rgba(15,23,42,0.90);
      --panel3: rgba(15,23,42,0.85);
      --panel4: rgba(15,23,42,0.70);
      --panelBorder: rgba(31,41,55,0.90);
      --cardShadow: 0 14px 35px rgba(0,0,0,0.90);
      --shadowStrong: 0 12px 32px rgba(15,23,42,0.90);
      --modalBackdrop: rgba(15,23,42,0.86);
      --link: #bfdbfe;

    }
    
    :root[data-theme="light"] {
      color-scheme: light;
      --bg: #f3f5ff;
      --bg-soft: rgba(255,255,255,0.92);
      --bg-card: rgba(255,255,255,0.94);
      --border: rgba(15,23,42,0.14);
      --text: #0b1220;
      --muted: rgba(15,23,42,0.68);
      --accent: #4159a6;  /* muted blue for light theme */
      --accent-soft: rgba(65, 89, 166, 0.16);
      --accent2: #6b69c9; /* muted indigo for light theme */
      --accent2-soft: rgba(107, 105, 201, 0.14);
      --ok: #16a34a;
      --warn: #d97706;
      --page-bg: radial-gradient(circle at top, #ffffff 0, #eef2ff 55%, #e5e7eb 100%);
      --hero-bg: radial-gradient(circle at 0 0, rgba(34,211,238,0.12), transparent 55%),
                radial-gradient(circle at 100% 0, rgba(129,140,248,0.12), transparent 50%),
                rgba(255,255,255,0.92);
      --logo-bg: rgba(15,23,42,0.06);
      --panel: rgba(255,255,255,0.92);
      --panel2: rgba(255,255,255,0.86);
      --panel3: rgba(255,255,255,0.82);
      --panel4: rgba(255,255,255,0.75);
      --panelBorder: rgba(15,23,42,0.12);
      --cardShadow: 0 14px 35px rgba(15,23,42,0.12);
      --shadowStrong: 0 12px 32px rgba(15,23,42,0.18);
      --modalBackdrop: rgba(15,23,42,0.30);
      --link: #1d4ed8;
      --toggle-bg: rgba(255,255,255,0.86);
      --toggle-border: rgba(15,23,42,0.18);
      --toggle-shadow: 0 12px 32px rgba(15,23,42,0.15);
    }
* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body {
      min-height: 100vh;
      background: var(--page-bg);
      color: var(--text);
      display: flex;
      flex-direction: column;
      font-size: 16px;
      line-height: 1.5;
    }
    .page {
      max-width: 1120px;
      margin: 0 auto;
      padding: 24px 16px 48px;
      width: 100%;
    }
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-bottom: 22px;
    }

    /* HERO */
    .hero {
      border-radius: var(--radius-lg);
      padding: 22px 20px 20px;
      background: var(--hero-bg);
      box-shadow: var(--shadow);
      margin-bottom: 18px;
    }
    .hero-layout {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 24px;
    }
    .hero-main {
      flex: 1 1 0%;
    }
    .hero-main h1 {
      font-size: clamp(26px,3.8vw,36px);
      line-height: 1.2;
      margin-bottom: 10px;
      margin-top: 4px;
    }
    .hero-main h1 span {
      background: linear-gradient(120deg,#60a5fa,#a855f7,#ec4899);
      -webkit-background-clip: text;
      color: transparent;
    }
    .hero-h1-region {
      display: inline-block;
      margin-top: 4px;
      color: var(--text);
    }
    .hero-sub {
      font-size: 16px;
      color: var(--muted);
      margin-bottom: 0;
      max-width: 100%;
    }

    .hero-logo-block {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 10px;
      flex-shrink: 0;
    }
    .hero-logo-image {
      width: 144px;
      height: 144px;
      border-radius: 22px;
      object-fit: contain;
      background: var(--logo-bg);
      box-shadow: 0 0 28px rgba(37,99,235,0.85);
    }
    .hero-logo-lines {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      text-align: right;
      gap: 2px;
      font-size: 13px;
      color: var(--muted);
    }
    .hero-logo-line {
      padding: 2px 0;
      white-space: nowrap;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: .04em;
      color: var(--text);
    }
    .hero-logo-line a {
      color: inherit;
      text-decoration: none;
    }
    .hero-logo-line a:hover {
      text-decoration: underline;
    }

    @media (max-width: 720px) {
      .hero-layout {
        flex-direction: column-reverse;
        align-items: flex-start;
      }
      .hero-logo-block {
        align-items: flex-start;
      }
      .hero-logo-lines {
        align-items: flex-start;
        text-align: left;
      }
    }

    .btn {
      border-radius: 999px;
      border: 1px solid transparent;
      padding: 9px 16px;
      font-size: 14px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
      background: var(--accent-soft);
      color: var(--text);
      backdrop-filter: blur(10px);
      transition: .15s ease;
    }
    .btn.outline {
      background: transparent;
      border-color: rgba(148,163,184,0.7);
      color: var(--muted);
    }
    .btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: rgba(123, 97, 255, 0.30);
  color: #fff;
}

html[data-theme="light"] .btn.primary {
  background: linear-gradient(135deg, rgba(65, 89, 166, 0.92), rgba(107, 105, 201, 0.92));
  border-color: rgba(65, 89, 166, 0.28);
  box-shadow: 0 10px 20px rgba(65, 89, 166, 0.18);
}
.btn:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadowStrong);
      opacity: .96;
    }

    .hero-contacts-title {
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--text);
      margin-bottom: 4px;
    }
    .project-contacts-line {
      font-size: 14px;
      color: var(--muted);
      text-align: center;
      width: 100%;
    }
    .project-contacts-line a {
      color: var(--link);
      text-decoration: none;
      font-weight: 500;
    }
    .project-contacts-line a:hover {
      text-decoration: underline;
    }

    .card {
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      background: var(--bg-card);
      padding: 16px 16px 14px;
      box-shadow: var(--cardShadow);
    }

    #manifest {
      margin-top: 12px;
    }
    #manifest h3 {
      font-size: 16px;
      margin-bottom: 6px;
    }
    #manifest p {
      font-size: 15px;
      color: var(--muted);
      margin-bottom: 6px;
    }

    /* SEARCH PANEL */
    .search-panel {
      border-radius: var(--radius-lg);
      padding: 16px 16px 12px;
      background: var(--panel);
      border: 1px solid var(--panelBorder);
      box-shadow: 0 18px 45px rgba(0,0,0,0.9);
      margin-bottom: 18px;
    }
    .search-grid {
      display: grid;
      grid-template-columns: repeat(3,minmax(0,1fr));
      gap: 10px;
      align-items: center;
    }
    @media (max-width: 860px) {
      .search-grid {
        grid-template-columns: minmax(0,1fr);
      }
    }
    .field-label {
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--muted);
      margin-bottom: 4px;
    }
    .input,
    select {
      width: 100%;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.6);
      padding: 10px 14px;
      font-size: 15px;
      background: var(--panel);
      color: var(--text);
      outline: none;
    }
    .input.upper-input {
      text-transform: uppercase;
    }
    .input-row {
      display: flex;
      gap: 8px;
    }
    .input-row .input {
      flex: 1 1 auto;
    }
    .input-row .input.input-currency {
      flex: 0 0 120px;
      max-width: 140px;
      text-transform: uppercase;
      text-align: center;
      padding-right: 10px;
      padding-left: 10px;
    }
    select[multiple] {
      border-radius: 10px;
      min-height: 90px;
      padding-top: 6px;
      padding-bottom: 6px;
    }
    .input:focus,
    select:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 1px rgba(37,99,235,0.75);
    }
    .input.input-error {
      border-color: #f97373;
      box-shadow: 0 0 0 1px rgba(248,113,113,0.7);
    }
    .pill-toggle {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      cursor: pointer;
      user-select: none;
      margin-top: 6px;
    }
    .pill-toggle input {
      width: 14px;
      height: 14px;
    }

    .pill-toggle-remote {
      margin-top: 0;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.7);
      padding: 6px 12px;
      background: var(--panel2);
    }

    /* VIEW TABS */
    .view-toggle-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
    }
    .view-toggle {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .view-tab {
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.7);
      background: var(--panel2);
      padding: 6px 12px;
      font-size: 13px;
      color: var(--muted);
      cursor: pointer;
      transition: .15s ease;
    }
    .view-tab:hover {
      border-color: var(--accent);
      color: var(--text);
    }
    .view-tab.active {
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      color: var(--text);
      border-color: transparent;
    }
    /* FIX: белый текст только для активной кнопки "общий список" */
    .view-tab.active[data-view-mode="all"] {
      color: #ffffff;
    }

    .view-tab[data-view-mode="jobs"].active {
      background: linear-gradient(135deg,#22c55e,#16a34a);
    }
    .view-tab[data-view-mode="candidates"].active {
      background: linear-gradient(135deg,#f97316,#ea580c);
    }

    .travel-tabs {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
      width: 100%;
      overflow: visible;
    }
    .travel-tabs .btn {
      justify-content: center;
      text-align: center;
      white-space: normal;
    }
    @media (max-width: 640px) {
      .travel-tabs {
        gap: 8px;
      }
      .travel-tabs .btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 140px;
      }
    }

    main {
      display: grid;
      grid-template-columns: minmax(0,3fr) minmax(0,1.7fr);
      gap: 16px;
    }
    @media (max-width: 960px) {
      main {
        grid-template-columns: minmax(0,1fr);
      }
    }

    
    .pager-info{
      align-self: center;
      font-size: 13px;
      color: var(--muted);
      padding: 0 6px;
      white-space: nowrap;
    }
    .page-footer{
      margin-top: 16px;
      display: grid;
      gap: 12px;
    }

    .jobs-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .load-more-row {
      margin-top: 10px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
    .card-header {
      display: flex;
      justify-content: space-between;
      gap: 10px;
      margin-bottom: 6px;
    }
    .card-header-right {
      display: flex;
      align-items: center;
      gap: 8px;
      white-space: nowrap;
    }
    .card-title {
      font-size: 16px;
      font-weight: 600;
    }
    .card-meta {
      font-size: 13px;
      color: var(--muted);
      display: flex;
      flex-wrap: wrap;
      column-gap: 6px;
      row-gap: 0px;
      margin-top: 2px;
    }
    .card-meta span {
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
        .card-meta .meta-remote {
      white-space: nowrap;
    }
.job-date {
      font-weight: 600;
    }
    .meta-dot {
      width: 6px;
      height: 6px;
      border-radius: 999px;
      background: #22c55e;
    }
    .salary {
      font-size: 14px;
      font-weight: 600;
      white-space: nowrap;
    }
    .salary-candidate {
      color: #fb923c;
    }
    .salary-employer {
      color: #4ade80;
    }
    .job-kind-badge {
      display: inline-flex;
      align-items: center;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    .job-kind-badge.candidate-kind {
      background: rgba(249,115,22,0.16);
      border: 1px solid rgba(249,115,22,0.8);
      color: #fed7aa;
    }
    .job-kind-badge.vacancy-kind {
      background: rgba(34,197,94,0.16);
      border: 1px solid rgba(34,197,94,0.8);
      color: #bbf7d0;
    }
    
    /* Light theme: stronger contrast for kind badges & salary */
    html[data-theme="light"] .job-kind-badge.vacancy-kind{
      background: rgba(34, 197, 94, 0.18);
      border-color: rgba(34, 197, 94, 0.55);
      color: #166534;
    }
    html[data-theme="light"] .job-kind-badge.candidate-kind{
      background: rgba(249, 115, 22, 0.18);
      border-color: rgba(249, 115, 22, 0.55);
      color: #9a3412;
    }
    html[data-theme="light"] .salary.salary-employer{ color: #16a34a; }
    html[data-theme="light"] .salary.salary-candidate{ color: #ea580c; }
.section-title {
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: .08em;
      color: var(--muted);
      margin-top: 6px;
      margin-bottom: 3px;
    }
    .card-text {
      font-size: 14px;
      color: var(--text);
    }
    .contacts {
      margin-top: 4px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      font-size: 13px;
    }
    .contacts span {
      padding: 3px 8px;
      border-radius: 999px;
      border: 1px solid rgba(167,139,250,0.7);
      background: rgba(88,28,135,0.4);
      color: #ddd6fe;
    }
    .job-footer {
      margin-top: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 12px;
      color: var(--muted);
      gap: 6px;
      flex-wrap: wrap;
    }
    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 4px;
    }
    .tag {
      padding: 3px 7px;
      border-radius: 999px;
      border: 1px solid rgba(148,163,184,0.6);
      font-size: 12px;
      color: var(--muted);
      background: var(--panel2);
    }

    .tag-warn {
      border: 1px solid rgba(245, 158, 11, 0.35);
      background: rgba(245, 158, 11, 0.12);
      color: rgb(245, 158, 11);
    }

    .empty {
      padding: 12px;
      font-size: 14px;
      color: var(--muted);
    }

    .sidebar-section {
      margin-bottom: 12px;
    }
    .sidebar-section h3 {
      font-size: 15px;
      margin-bottom: 6px;
    }
    .sidebar-section p {
      font-size: 13px;
      color: var(--muted);
    }

    .form {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 6px;
    }
    .role-switch {
      margin-top: 4px;
    }
    .role-buttons {
      display: grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap: 8px;
      margin-top: 6px;
    }
    .role-btn {
      justify-content: center;
      text-align: center;
    }
    .role-btn input {
      margin-right: 6px;
    }

    textarea {
      display: block;
      width: 100%;
      border-radius: 10px;
      border: 1px solid rgba(148,163,184,0.7);
      background: var(--panel);
      padding: 8px 10px;
      color: var(--text);
      font-size: 14px;
      min-height: 100px;
      margin-top: 4px;
      margin-bottom: 10px;
      resize: vertical;
    }
    textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 1px rgba(37,99,235,0.75);
      outline: none;
    }
    .small {
      font-size: 12px;
      color: var(--muted);
    }

    
    .stay-destination-wrap { position: relative; }
    .stay-destination-input { padding-right: 38px; }
    .stay-destination-clear {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      border: 0;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      font-size: 18px;
      line-height: 1;
      display: none;
      padding: 2px;
    }
    .stay-destination-wrap.has-value .stay-destination-clear { display: inline-flex; }
    .stay-autocomplete-list {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      right: 0;
      z-index: 60;
      border-radius: 16px;
      border: 1px solid var(--border);
      background: var(--panel);
      box-shadow: var(--shadowStrong);
      overflow: hidden;
      display: none;
      max-height: 320px;
      overflow-y: auto;
    }
    .stay-autocomplete-list.is-open { display: block; }
    .stay-autocomplete-item {
      width: 100%;
      border: 0;
      background: transparent;
      color: var(--text);
      text-align: left;
      padding: 12px 14px;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .stay-autocomplete-item + .stay-autocomplete-item { border-top: 1px solid var(--border); }
    .stay-autocomplete-item:hover,
    .stay-autocomplete-item.is-active { background: var(--accent-soft); }
    .stay-autocomplete-title { font-weight: 700; }
    .stay-autocomplete-sub { color: var(--muted); font-size: 13px; }
    .stay-autocomplete-empty {
      padding: 12px 14px;
      color: var(--muted);
      font-size: 14px;
    }

.toast{display:none;opacity:0;transform:translate(-50%, 10px);pointer-events:none;position:fixed;left:50%;bottom:18px;z-index:9999;padding:10px 14px;border-radius:14px;background:#ffffff !important;color:#000000 !important;border:1px solid #e5e7eb !important;}
    .toast.visible {display:block;opacity:1;transform:translate(-50%, 0);pointer-events:auto;
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }
    

    /* Theme toggle (AUTO / LIGHT / DARK) */
    .theme-toggle {
      position: fixed;
      left: 18px;
      bottom: 18px;
      width: 52px;
      height: 52px;
      border-radius: 999px;
      border: 1px solid var(--toggle-border);
      background: var(--toggle-bg);
      box-shadow: var(--toggle-shadow);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text);
      font-weight: 800;
      letter-spacing: .02em;
      cursor: pointer;
      z-index: 9999;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      user-select: none;
    }
    .theme-toggle:hover {
      transform: translateY(-1px);
    }
    .theme-toggle:active {
      transform: translateY(0);
    }
.job-promoted {
      border-color: rgba(250,204,21,0.7);
      box-shadow:
        0 0 0 1px rgba(250,204,21,0.35),
        0 20px 50px rgba(0,0,0,0.95);
    }
    .promoted-badge {
      padding: 2px 7px;
      border-radius: 999px;
      background: rgba(250,204,21,0.14);
      border: 1px solid rgba(250,204,21,0.85);
      color: #facc15;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .08em;
    }

    /* Candidates cards */
    #candidatesSection {
      margin-top: 16px;
    }
    .candidates-list {
      margin-top: 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .candidate-card {
      border-radius: var(--radius-md);
      border: 1px solid rgba(148,163,184,0.6);
      background: var(--panel);
      padding: 10px 11px;
      font-size: 13px;
      box-shadow: 0 10px 26px rgba(0,0,0,0.7);
    }
    .candidate-header {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 4px;
      flex-wrap: wrap;
    }
    .candidate-name {
      font-weight: 600;
      font-size: 14px;
    }
    .candidate-meta {
      font-size: 12px;
      color: var(--muted);
      text-align: right;
    }
    .candidate-badge {
      display: inline-block;
      padding: 2px 7px;
      border-radius: 999px;
      background: rgba(45,212,191,0.16);
      border: 1px solid rgba(45,212,191,0.7);
      color: #a5f3fc;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .08em;
      margin-bottom: 3px;
    }
    .candidate-body {
      font-size: 13px;
      color: var(--text);
    }
    .candidate-note {
      margin-top: 4px;
      font-size: 11px;
      color: var(--muted);
    }

    .job-title-main {
      text-transform: uppercase;
      letter-spacing: .04em;
    }
    .card-extra {
      margin-top: 6px;
      border-top: 1px dashed rgba(148,163,184,0.45);
      padding-top: 6px;
      display: none;
    }
    .card.expanded .card-extra {
      display: block;
    }
    .card-toggle-icon {
      font-size: 16px;
      opacity: 0.6;
      margin-left: 8px;
      transition: transform .15s ease, opacity .15s ease;
    }
    .card.expanded .card-toggle-icon {
      transform: rotate(90deg);
      opacity: 1;
    }
    .payment-modal-backdrop {
      position: fixed;
      inset: 0;
      background: var(--modalBackdrop);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 60;
    }
    .payment-modal-backdrop.visible {
      display: flex;
    }
    .payment-modal {
      background: var(--bg-soft);
      border-radius: 18px;
      border: 1px solid rgba(148,163,184,0.7);
      box-shadow: 0 24px 60px rgba(0,0,0,0.95);
      padding: 14px 16px 12px;
      max-width: 480px;
      width: calc(100% - 32px);
    }
    .payment-modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 6px;
    }
    .payment-modal-header h3 {
      font-size: 15px;
    }
    .payment-modal-close {
      border: none;
      background: transparent;
      color: var(--muted);
      font-size: 18px;
      cursor: pointer;
      padding: 2px 6px;
    }
    .payment-modal-text {
      margin-top: 2px;
    }
    .payment-modal-grid {
      display: grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
      gap: 10px;
      margin-top: 8px;
      margin-bottom: 6px;
    }
    .payment-option {
      border-radius: 12px;
      border: 1px dashed rgba(148,163,184,0.6);
      padding: 8px;
      text-align: center;
    }
    .payment-option-title {
      font-size: 13px;
      margin-bottom: 4px;
    }
    .payment-qr {
      width: 100%;
      max-width: 160px;
      height: auto;
      border-radius: 10px;
      background: var(--bg-soft);
    }
    .payment-modal-footnote {
      margin-top: 4px;
      opacity: .8;
    }

  
    
    .typeahead-wrap{position:relative;}
    .typeahead-ghost{
      position:absolute;top:0;left:0;right:0;bottom:0;
      padding:12px 14px;
      line-height:1.2;
      pointer-events:none;
      opacity:0.55;
      color: var(--muted);
      font: inherit;
      font-size: 14px;
      letter-spacing: inherit;
      white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
      z-index:3; /* ВАЖНО: поверх input */
    }
    .typeahead-input{
      position:relative;
      z-index:2;
      background:transparent !important;
    }
    .typeahead-wrap .input.typeahead-input{
      background:transparent !important;
    }
    .typeahead-list{
      position:absolute;z-index:50;left:0;right:0;margin-top:6px;
      background: var(--panel2);
      border:1px solid var(--border);
      border-radius:10px;
      padding:6px;
      max-height:220px;
      overflow:auto;
      box-shadow:0 12px 30px rgba(0,0,0,0.35);
    }
    .typeahead-item{
      padding:10px 10px;border-radius:8px;cursor:pointer;user-select:none;font-size:14px;
    }
    .typeahead-item:hover{background: var(--bg-card);}
    .typeahead-item b{font-weight:800;}



    .uppercase-input{ text-transform: uppercase; }


    /* ===== APP-режим (desktop): лента скроллится, шапка и блоки на месте ===== */
    .feed-scroll { display: block; }

    @media (min-width: 960px) {
      body { overflow: hidden; }
      .page {
        height: 100vh;
        padding-top: 18px;
        padding-bottom: 18px;
        display: flex;
        flex-direction: column;
      }

      /* один общий скролл: контент под шапкой/поиском */
      .content-scroll{
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        padding-right: 6px;
      }

      main { overflow: visible; }

      /* лента больше не отдельным скроллом */
      .feed-scroll{
        overflow: visible;
        padding-right: 0;
      }

      /* правый столбец фиксируем и не скроллим */
      main > aside{
        position: sticky;
        top: 0;
        align-self: start;
        overflow: visible;
        padding-right: 0;
      }

      /* как было раньше: переключатель режима остаётся на месте */
      .main-feed .view-toggle-row{
        position: sticky;
        top: 0;
        z-index: 10;
        background: rgba(2,6,23,0.92);
        padding: 10px 0 10px;
        backdrop-filter: blur(10px);
      }
    
      /* Light theme: sticky bar background */
      html[data-theme="light"] .main-feed .view-toggle-row{
        background: rgba(255,255,255,0.92);
        border: 1px solid rgba(2,6,23,0.08);
      }
}


    /* ===== Пагинация приклеена к низу левой колонки (desktop) ===== */
    @media (min-width: 960px) {
      section.main-feed{
        display: flex;
        flex-direction: column;
        min-height: 0;
      }
      section.main-feed .feed-scroll{
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
      }
      section.main-feed .load-more-row{
        margin-top: auto;
        padding-top: 10px;
      }
    }

    .pager-info .pager-num{
      color: var(--link);
      font-weight: 700;
    }
    .btn:disabled{
      opacity: .55;
      cursor: default;
      transform: none !important;
      box-shadow: none !important;
    }


/* ===== STATIC CONTENT PAGE: hide вакансии/резюме ленту ===== */
#travelStay { margin-bottom: 16px; }
section.main-feed { display: none !important; }



/* CP_ALIGN_TOPBAR_TO_MAIN_V1 */
/* Force relocation topbar/search-panel to be centered exactly like main page container */
.search-panel{
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.search-panel .search-grid{
  width: 100%;
}


.stay-booking-hero h1,
#stayResultsWrap .stay-section-head h2{font-family:"Trebuchet MS","Arial Rounded MT Bold",Inter,Arial,sans-serif!important;letter-spacing:.01em;}
.stay-search-form .stay-field span{text-align:center;display:block;}



@media (max-width: 768px){
  #travelStay{
    padding-bottom: 96px !important;
  }
  #travelStay .stay-booking-shell{
    gap: 14px !important;
  }
  #travelStay .stay-search-form{
    padding: 14px !important;
  }
  #travelStay .stay-grid{
    gap: 10px !important;
  }
  #travelStay .stay-grid + .stay-grid{
    margin-top: 2px !important;
  }
  #travelStay .stay-field{
    gap: 6px !important;
  }
  #travelStay .stay-field > span{
    font-size: 11px !important;
    line-height: 1.1 !important;
  }
  #travelStay .stay-search-form .input,
  #travelStay .stay-search-form textarea,
  #travelStay .stay-search-form select.input,
  #travelStay .stay-search-form .btn{
    height: 38px !important;
    min-height: 38px !important;
  }
  #travelStay .stay-search-form textarea{
    min-height: 92px !important;
    height: auto !important;
  }
}


/* spacing fix below results header */
.stay-results-header{ margin-bottom:32px; }

#travelStay .stay-total-btn, #travelStay .stay-total-btn *, #travelStay .stay-total-btn .stay-price-button, #travelStay .stay-total-btn .stay-price-button *{color:#fff !important;}




/* FIX: center text inside primary buttons */
.button-primary, .btn-primary, .btn-home, a.btn-home, button.btn-home {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* spacing fix below results header */
.stay-results-header{ margin-bottom:32px; }



/* FIX: strict centering for 'НА ГЛАВНУЮ' button */
.btn-home, .home-btn, a[href="https://contactsportal.eu/"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  line-height: 1.1 !important;
}

/* spacing fix below results header */
.stay-results-header{ margin-bottom:32px; }



/* DISABLE external source links (keep visual list, no outbound clicks) */
.cp-disabled-link{
  color: var(--muted) !important;
  text-decoration: none !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* spacing fix below results header */
.stay-results-header{ margin-bottom:32px; }



#travelStay .stay-booking-shell{display:flex;flex-direction:column;gap:18px}
#travelStay .stay-booking-hero{padding:4px 0 2px}
#travelStay .stay-booking-badge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(99,102,241,.16);border:1px solid rgba(99,102,241,.28);font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--link);margin-bottom:12px}
#travelStay .stay-booking-hero h1{margin:0 0 8px 0}
#travelStay .stay-booking-lead{font-size:16px;line-height:1.45;color:var(--muted);margin:0 0 10px 0;font-weight:500}
#travelStay .stay-booking-note,#travelStay .stay-payment-note,#travelStay .stay-status{padding:14px 16px;border-radius:14px;border:1px solid rgba(148,163,184,.24);background:rgba(15,23,42,.28);line-height:1.6}
html[data-theme="light"] #travelStay .stay-booking-note,
html[data-theme="light"] #travelStay .stay-payment-note,
html[data-theme="light"] #travelStay .stay-status{background:#f8fafc}
#travelStay .stay-search-form,
#travelStay .stay-guest-form,
#travelStay .stay-selected-card,
#travelStay .stay-confirmation-box{padding:18px;border:1px solid rgba(148,163,184,.18);border-radius:18px;background:var(--bg-card)}
#travelStay .stay-grid{display:grid;gap:14px}
#travelStay .stay-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
#travelStay .stay-grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
#travelStay .stay-field{display:flex;flex-direction:column;gap:8px}
#travelStay .stay-field > span{font-size:13px;font-weight:700;color:var(--muted);text-align:center;line-height:1.25}
#travelStay .stay-field textarea{min-height:104px;border-radius:14px}
#travelStay .stay-search-form .input,
#travelStay .stay-search-form select.input,
#travelStay .stay-search-form input.input{height:42px;min-height:42px;border-radius:18px;padding-top:0;padding-bottom:0}
#travelStay .stay-search-form button.btn{height:42px;min-height:42px;border-radius:18px}
#travelStay .stay-search-form .stay-field{min-width:0}
#travelStay .stay-search-form .stay-field > span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

#travelStay .stay-search-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
#travelStay .stay-search-actions .btn{width:100%}
#travelStay .stay-total-btn{
  color:#fff !important;
display:inline-flex;align-items:center;justify-content:center;text-align:center;min-width:180px}
#travelStay .stay-total-btn{color:#fff !important;font-weight:600}

#travelStay .stay-results-wrap,
#travelStay .stay-checkout-wrap,
#travelStay .stay-confirmation-wrap{display:flex;flex-direction:column;gap:14px}
#travelStay .stay-section-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;align-items:flex-end}
#travelStay .stay-section-head h2{margin:0}
#travelStay .stay-results-meta{font-size:14px;color:var(--muted)}
#travelStay .stay-results-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px;flex-wrap:wrap}
#travelStay .stay-page-info{font-size:14px;font-weight:700;color:var(--muted)}
#travelStay .stay-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#travelStay .stay-result-card{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:18px;border:1px solid rgba(148,163,184,.18);background:var(--bg-card);box-shadow:0 8px 24px rgba(2,6,23,.08)}
#travelStay .stay-result-title{font-size:18px;font-weight:800;line-height:1.3}
#travelStay .stay-result-sub{font-size:14px;color:var(--muted);line-height:1.5}
#travelStay .stay-price-row{display:flex;justify-content:space-between;gap:10px;align-items:flex-end}
#travelStay .stay-price-main{font-size:22px;font-weight:900;color:var(--text)}
#travelStay .stay-price-help{font-size:13px;color:var(--muted)}
#travelStay 
.stay-room-media{display:flex;gap:8px;overflow:auto;padding:8px 0 10px}
.stay-room-media img{width:150px;height:100px;object-fit:cover;border-radius:12px;border:1px solid rgba(99,102,241,.15);background:#fff;flex:0 0 auto}
.stay-detail-more{margin-top:10px;padding:12px;border:1px solid rgba(99,102,241,.15);border-radius:16px;background:#fff}
.stay-detail-more-title{font-weight:800;margin-bottom:8px}
.stay-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#travelStay .stay-kv div{padding:10px 12px;border-radius:12px;background:rgba(99,102,241,.08);font-size:13px;line-height:1.45}
#travelStay .stay-kv strong{display:block;margin-bottom:4px;color:var(--text)}
#travelStay .stay-chip-row{display:flex;flex-wrap:wrap;gap:8px}
#travelStay .stay-chip{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:rgba(15,23,42,.08);border:1px solid rgba(148,163,184,.2);font-size:12px;font-weight:700}
#travelStay .stay-selected-top{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
#travelStay .stay-selected-main{display:flex;flex-direction:column;gap:8px}
#travelStay .stay-selected-price{font-size:24px;font-weight:900}
#travelStay .stay-mini-muted{font-size:13px;color:var(--muted)}
#travelStay .stay-loading{color:var(--link);font-weight:700}
#travelStay .stay-error{border-color:rgba(239,68,68,.32);color:#fecaca;background:rgba(127,29,29,.18)}
html[data-theme="light"] #travelStay .stay-error{color:#991b1b;background:#fef2f2}
#travelStay .stay-ok{border-color:rgba(34,197,94,.28);color:#bbf7d0;background:rgba(20,83,45,.22)}
html[data-theme="light"] #travelStay .stay-ok{color:#166534;background:#f0fdf4}
#travelStay .stay-payment-target{min-height:120px}
#travelStay code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
@media (max-width: 959px){
  #travelStay .stay-grid-2,
  #travelStay .stay-grid-4,
  #travelStay .stay-results{grid-template-columns:1fr}
}
/* FINAL UI FIXES */
#travelStay .stay-booking-hero h1,
#travelStay .stay-section-head h2{
  font-family:Inter,Roboto,Arial,sans-serif;
  letter-spacing:0;
}
#travelStay .stay-booking-hero h1{
  font-size:20px;
  font-weight:900;
  line-height:1.2;
  margin:0 0 8px 0;
}
#travelStay .stay-booking-lead{
  margin:0 0 14px 0;
  font-size:14px;
  line-height:1.45;
  color:var(--muted);
  max-width:520px;
}
#travelStay .stay-section-head h2{
  font-size:20px;
  font-weight:900;
  line-height:1.2;
}
#travelStay .stay-results-meta{
  font-size:14px;
  font-weight:700;
  color:var(--muted);
}
#travelStay .stay-grid{gap:14px}
#travelStay .stay-grid + .stay-grid{margin-top:6px}
#travelStay .stay-field{gap:8px}
#travelStay .stay-field > span{
  order:2;
  text-align:center;
  width:100%;
  display:block;
  font-size:12px;
  font-weight:800;
  line-height:1.15;
}
#travelStay .stay-field > .input,
#travelStay .stay-field > select.input,
#travelStay .stay-field > .stay-destination-wrap{
  order:1;
}
#travelStay .stay-search-form{
  max-width:660px;
  padding:18px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:20px;
  background:var(--bg-card);
}
#travelStay .stay-search-form .input,
#travelStay .stay-search-form textarea,
#travelStay .stay-search-form select.input,
#travelStay .stay-search-form .btn{
  min-height:40px;
  height:40px;
  border-radius:18px;
  font-size:14px;
  padding:0 14px;
}
#travelStay .stay-search-form .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:128px;
}
#travelStay .stay-search-actions{justify-content:flex-end;margin-top:6px}
#travelStay .stay-status{display:none;margin-top:12px}
#travelStay .stay-status.stay-loading{display:block !important}
#travelStay .stay-status.stay-error{display:block !important}
#travelStay .stay-status.stay-ok{display:block !important}
#travelStay #staySearchBtn.is-loading{opacity:.9;cursor:wait}
#travelStay .stay-results{display:flex;flex-direction:column;gap:10px}
#travelStay .stay-section-head{align-items:center}
#travelStay .stay-section-head h2{margin:0}
#travelStay .stay-result-row{
  border:1px solid rgba(148,163,184,.22);
  border-radius:18px;
  background:var(--bg-card);
  box-shadow:0 8px 24px rgba(2,6,23,.05);
  overflow:hidden;
}
#travelStay .stay-result-head{
  display:grid;
  grid-template-columns:minmax(0,1.8fr) minmax(180px,1.1fr) auto 18px;
  gap:12px;
  align-items:center;
  padding:14px 18px;
  cursor:pointer;
}
#travelStay .stay-result-head:hover{background:rgba(99,102,241,.05)}
#travelStay .stay-result-name{font-size:16px;font-weight:900;line-height:1.25}
#travelStay .stay-result-room{font-size:15px;font-weight:600;line-height:1.35;color:var(--text)}
#travelStay .stay-result-price{font-size:16px;font-weight:900;white-space:nowrap;text-align:right}
#travelStay .stay-result-arrow{font-size:16px;font-weight:900;color:var(--muted);transition:transform .2s ease}
#travelStay .stay-result-row.is-open .stay-result-arrow{transform:rotate(180deg)}
#travelStay .stay-result-details{display:none;padding:0 18px 18px;border-top:1px solid rgba(148,163,184,.16)}
#travelStay .stay-result-row.is-open .stay-result-details{display:block}
#travelStay .stay-detail-grid{display:grid;grid-template-columns:minmax(240px,.92fr) minmax(0,1.2fr);gap:16px;padding-top:16px}
#travelStay .stay-detail-stack{display:flex;flex-direction:column;gap:12px}
#travelStay .stay-detail-title{font-size:20px;font-weight:900;line-height:1.2}
#travelStay .stay-detail-sub{font-size:14px;color:var(--muted);line-height:1.5}
#travelStay .stay-photo-box{border-radius:16px;overflow:hidden;background:rgba(15,23,42,.05);min-height:200px}
#travelStay .stay-photo-box img{display:block;width:100%;height:100%;object-fit:cover}
#travelStay .stay-empty-photo{display:flex;align-items:center;justify-content:center;min-height:200px;color:var(--muted)}
#travelStay .stay-map-box iframe{width:100%;height:220px;border:0;border-radius:16px}
#travelStay .stay-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#travelStay .stay-kv div{padding:10px 12px;border-radius:14px;background:rgba(99,102,241,.08);font-size:14px;line-height:1.45}
#travelStay .stay-price-button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:12px 18px;background:var(--brand);color:#fff;font-size:15px;font-weight:800;cursor:pointer}
#travelStay .stay-checkout-wrap{margin-top:16px;padding-top:14px;border-top:1px solid rgba(148,163,184,.16)}
#travelStay .stay-checkout-wrap .stay-section-head{display:none}
#travelStay .stay-selected-card{display:none}
#travelStay .stay-category-list{display:flex;flex-direction:column;gap:10px;padding:16px 0 0}
#travelStay .stay-category-item{width:100%;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,1fr) auto;gap:12px;align-items:center;padding:12px 16px;border:1px solid rgba(148,163,184,.22);border-radius:18px;background:var(--bg-card);box-shadow:0 4px 10px rgba(2,6,23,.04);cursor:pointer;text-align:left}
#travelStay .stay-category-item.is-active{background:rgba(99,102,241,.06);border-color:rgba(99,102,241,.32)}
#travelStay .stay-category-room{font-size:15px;font-weight:800;color:var(--text)}
#travelStay .stay-category-board{font-size:14px;font-weight:600;color:var(--muted);text-align:center}
#travelStay .stay-category-price{font-size:15px;font-weight:900;color:var(--text);white-space:nowrap;text-align:right}
#travelStay .stay-result-head,
#travelStay .stay-category-item{
  -webkit-appearance:none;
  appearance:none;
  font:inherit;
  width:100%;
  margin:0;
  outline:none;
}
#travelStay .stay-result-head{
  border:0;
  background:transparent;
  border-radius:18px;
}
#travelStay .stay-category-item{
  border:1px solid rgba(148,163,184,.22);
  background:var(--bg-card);
  border-radius:18px;
}
#travelStay .stay-result-row{border-radius:18px}
#travelStay .stay-room-selected{display:flex;flex-direction:column;gap:12px;padding-top:16px}
#travelStay .stay-detail-actions{display:flex;justify-content:flex-start}
#travelStay .stay-detail-actions .stay-price-button{min-width:160px}
#travelStay .stay-total-btn{
  background:linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  border:1px solid rgba(123,97,255,.30) !important;
  box-shadow:0 10px 20px rgba(65,89,166,.18);
  color:#fff !important;
  font-weight:800 !important;
  text-align:center !important;
  justify-content:center !important;
  align-items:center !important;
}
html[data-theme="light"] #travelStay .stay-total-btn{
  background:linear-gradient(135deg, rgba(65, 89, 166, 0.92), rgba(107, 105, 201, 0.92)) !important;
  color:#fff !important;
}
#stayGuestForm .stay-field > span{
  text-align:center !important;
}
#stayGuestForm .stay-search-actions{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:12px !important;
  grid-template-columns:none !important;
}
#stayGuestForm .stay-search-actions .btn{
  width:auto !important;
  min-width:120px;
}
@media (max-width: 959px){
  #travelStay .stay-result-head{
    grid-template-columns:1fr;
    gap:6px;
    align-items:flex-start;
  }
  #travelStay .stay-result-price{text-align:left}
  #travelStay .stay-result-arrow{display:none}
  #travelStay .stay-detail-grid,
  #travelStay .stay-kv{grid-template-columns:1fr}
  #travelStay .stay-search-form{max-width:none}
  #travelStay .stay-category-item{grid-template-columns:1fr;gap:6px}
  #travelStay .stay-category-board,
  #travelStay .stay-category-price{text-align:left}
}


/* spacing fix below results header */
.stay-results-header{ margin-bottom:32px; }

@media (max-width: 768px){
  .page{
    padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
  }
  #travelStay{
    padding-bottom: calc(120px + env(safe-area-inset-bottom)) !important;
  }
  #travelStay .stay-booking-shell{
    gap: 12px !important;
  }
  #travelStay .stay-search-form{
    padding: 14px !important;
  }
  #travelStay .stay-grid{
    gap: 8px !important;
  }
  #travelStay .stay-grid + .stay-grid{
    margin-top: 0 !important;
  }
  #travelStay .stay-field{
    gap: 4px !important;
  }
  #travelStay .stay-field > span{
    font-size: 11px !important;
    line-height: 1.05 !important;
    margin: 0 !important;
  }
  #travelStay .stay-search-form .input,
  #travelStay .stay-search-form select.input,
  #travelStay .stay-search-form input.input,
  #travelStay .stay-search-form .btn{
    height: 36px !important;
    min-height: 36px !important;
    font-size: 14px !important;
  }
  #travelStay .stay-search-actions{
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
}


@media (max-width: 768px){
  #travelStay .stay-grid,
  #travelStay .stay-grid-2,
  #travelStay .stay-grid-4,
  #travelStay .stay-field{
    min-width: 0 !important;
  }
  #travelStay .stay-search-form .stay-field{
    overflow: hidden !important;
  }
  #travelStay .stay-search-form input[type="date"],
  #travelStay .stay-search-form input[type="text"],
  #travelStay .stay-search-form input[type="number"],
  #travelStay .stay-search-form input[type="email"],
  #travelStay .stay-search-form select.input,
  #travelStay .stay-search-form .input{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  #travelStay .stay-search-form input[type="date"]{
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
  }
}


/* ===== LiteAPI stay cleanup patch ===== */
.stay-main-only {
  width: 100%;
}
.stay-intro-copy {
  margin-top: 14px;
  color: var(--text);
}
.stay-intro-copy p + p {
  margin-top: 6px;
}
.stay-price-note {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  color: var(--muted);
  min-height: 48px;
  text-align: center;
  font-size: 14px;
}
.stay-status[data-state="error"] {
  color: #fca5a5;
}
.stay-status[data-state="ok"] {
  color: #86efac;
}
.stay-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.stay-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel2);
  overflow: hidden;
  box-shadow: var(--cardShadow);
}
.stay-card-grid {
  display: grid;
  grid-template-columns: minmax(250px, 320px) 1fr;
}
.stay-card-media {
  position: relative;
  min-height: 220px;
  background: rgba(15,23,42,0.35);
}
.stay-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stay-card-media-empty {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 20px;
  text-align: center;
}
.stay-card-room-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(2,6,23,0.76);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.stay-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stay-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.stay-card-title {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 4px;
}
.stay-card-subline,
.stay-card-address {
  color: var(--muted);
  font-size: 14px;
}
.stay-card-price {
  min-width: 210px;
  text-align: right;
}
.stay-price-final {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.stay-price-base,
.stay-price-markup {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.stay-tags,
.stay-points,
.stay-amenities {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stay-tag,
.stay-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 13px;
}
.stay-chip.good {
  border-color: rgba(34,197,94,0.4);
}
.stay-chip.warn {
  border-color: rgba(245,158,11,0.4);
}
.stay-card-desc {
  color: var(--text);
  opacity: 0.95;
}
.stay-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.stay-card-actions-left,
.stay-card-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.stay-detail-box {
  border-top: 1px solid var(--border);
  padding: 16px 18px 18px;
  display: none;
}
.stay-detail-box.open {
  display: block;
}
.stay-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.stay-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stay-detail-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.stay-detail-map {
  width: 100%;
  min-height: 260px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.stay-detail-map iframe {
  width: 100%;
  min-height: 260px;
  border: 0;
}
.stay-detail-section + .stay-detail-section {
  margin-top: 14px;
}
.stay-detail-section h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.stay-policy-list {
  display: grid;
  gap: 8px;
}
.stay-policy-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 14px;
}
.stay-selected-card .stay-card {
  margin-bottom: 16px;
}
.stay-confirmation-box dl {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.stay-confirmation-box dt {
  color: var(--muted);
  font-size: 13px;
}
.stay-confirmation-box dd {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 600;
}
@media (max-width: 940px) {
  .stay-card-grid,
  .stay-detail-grid {
    grid-template-columns: 1fr;
  }
  .stay-card-price {
    min-width: 0;
    text-align: left;
  }
}
@media (max-width: 640px) {
  .stay-card-head,
  .stay-card-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .stay-card-actions-left,
  .stay-card-actions-right {
    width: 100%;
  }
  .stay-card-actions .btn {
    justify-content: center;
  }
  .stay-detail-gallery {
    grid-template-columns: 1fr;
  }
}

/* ===== APPENDED STAY PATCH (March 2026) ===== */

/* stay.css — Полная версия (март 2026) */

:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #020617;
  --bg-card: #020617;
  --border: rgba(148,163,184,0.45);
  --accent: #2563eb;
  --accent-soft: rgba(37,99,235,0.18);
  --accent2: #7c3aed;
  --accent2-soft: rgba(124,58,237,0.16);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow: 0 18px 45px rgba(15,23,42,0.8);
  --ok: #22c55e;
  --warn: #eab308;
  --page-bg: radial-gradient(circle at top, #111827 0, #020617 55%, #000 100%);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f5ff;
  --bg-soft: rgba(255,255,255,0.92);
  --bg-card: rgba(255,255,255,0.94);
  --border: rgba(15,23,42,0.14);
  --text: #0b1220;
  --muted: rgba(15,23,42,0.68);
  --accent: #4159a6;
  --accent-soft: rgba(65,89,166,0.16);
  --accent2: #6b69c9;
  --accent2-soft: rgba(107,105,201,0.14);
  --ok: #16a34a;
  --warn: #d97706;
  --page-bg: radial-gradient(circle at top, #ffffff 0, #eef2ff 55%, #e5e7eb 100%);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  width: 100%;
}

/* ====================== SEARCH PANEL ====================== */
.search-panel {
  border-radius: var(--radius-lg);
  padding: 16px 16px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0,0,0,0.9);
  margin-bottom: 18px;
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

@media (max-width: 860px) {
  .search-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.field-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.input, select {
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  padding: 10px 14px;
  font-size: 15px;
  background: var(--bg-card);
  color: var(--text);
  outline: none;
}

.input:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.75);
}

/* ====================== TRAVEL TABS ====================== */
.travel-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.travel-tabs .btn {
  justify-content: center;
  text-align: center;
  white-space: normal;
}

/* ====================== RESULTS ====================== */
.stay-results-wrap {
  margin-top: 20px;
}

.stay-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 16px;
}

.stay-section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.stay-results-meta {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.stay-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stay-result-row {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.stay-result-head {
  display: grid;
  grid-template-columns: 140px 1fr auto 24px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.stay-result-head:hover {
  background: rgba(37,99,235,0.05);
}

.stay-result-image-wrap {
  width: 140px;
  height: 100px;
  overflow: hidden;
  border-radius: 12px;
  background: #1e2937;
  flex-shrink: 0;
}

.stay-result-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stay-result-noimage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 8px;
}

.stay-result-content {
  min-width: 0;
}

.stay-result-name {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 4px;
}

.stay-result-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

.stay-result-price {
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  text-align: right;
}

.stay-result-arrow {
  font-size: 22px;
  font-weight: 900;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.stay-result-row.is-open .stay-result-arrow {
  transform: rotate(180deg);
}

.stay-result-details {
  display: none;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border);
}

.stay-result-row.is-open .stay-result-details {
  display: block;
}

/* ====================== STATUS ====================== */
.stay-status {
  padding: 12px 16px;
  border-radius: 12px;
  margin: 12px 0;
  font-size: 15px;
  display: none;
}

.stay-status.is-loading {
  background: rgba(59,130,246,0.15);
  color: #60a5fa;
  display: block;
}

.stay-status.is-ok {
  background: rgba(34,197,94,0.15);
  color: #4ade80;
  display: block;
}

.stay-status.is-error {
  background: rgba(239,68,68,0.15);
  color: #f87171;
  display: block;
}

/* ====================== CHECKOUT & PAYMENT ====================== */
.stay-checkout-wrap,
.stay-payment-wrap,
.stay-confirmation-wrap {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
}

.stay-selected-card {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--accent-soft);
  border-radius: 14px;
  background: rgba(37,99,235,0.08);
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 959px) {
  .stay-result-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stay-result-price {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .stay-grid-4 {
    grid-template-columns: 1fr;
  }
}


/* ===== CONTACTSPORTAL MOBILE TOPBAR FIX ===== */
.search-grid-top {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

@media (max-width: 768px) {
  .search-grid-top {
    grid-template-columns: 1fr !important;
  }

  .search-grid-top > div {
    width: 100%;
    min-width: 0;
  }

  .travel-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  .travel-tabs .btn {
    width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
  }

  .esim-relocation-inline {
    grid-column: 1 / -1;
    width: 100% !important;
    min-width: 0 !important;
    display: block !important;
  }

  .esim-relocation-inline .relocation-inline-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

/* ===== CONTACTSPORTAL STAY UI PATCH 2026-04-01 ===== */
/* Поднять форму выше + привести шрифты и языковой переключатель к стилю сайта */
#travelStay,
#travelStay .stay-booking-shell,
#travelStay .stay-booking-hero,
#travelStay .stay-search-form,
#travelStay .stay-search-form .input,
#travelStay .stay-search-form select,
#travelStay .stay-search-form textarea,
#travelStay .stay-search-form button,
#travelStay .stay-field > span,
#travelStay .stay-section-head h2,
#travelStay .stay-results-meta,
#travelStay .stay-status,
#travelStay .stay-result-name,
#travelStay .stay-result-room,
#travelStay .stay-result-price,
#travelStay .stay-category-room,
#travelStay .stay-category-board,
#travelStay .stay-category-price,
#travelStay #stayLanguageSwitch,
#travelStay #stayLanguageSwitch button,
#travelStay #stayLangRu,
#travelStay #stayLangEn {
  font-family: Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

#travelStay .stay-booking-shell {
  gap: 8px !important;
}

#travelStay .stay-booking-hero {
  padding: 0 !important;
  margin: 0 !important;
}

#travelStay .stay-booking-hero h1 {
  margin: 0 0 6px 0 !important;
}

#travelStay .stay-booking-lead {
  margin: 0 0 6px 0 !important;
  max-width: 100% !important;
}

#travelStay .stay-search-form {
  margin-top: 0 !important;
}

#travelStay #stayLanguageSwitch,
#travelStay .stay-language-switch {
  margin: 0 0 6px 0 !important;
}

#travelStay #stayLanguageSwitch button,
#travelStay .stay-language-switch button,
#travelStay #stayLangRu,
#travelStay #stayLangEn {
  min-width: 52px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(65, 89, 166, 0.24) !important;
  background: #ffffff !important;
  color: #5d6b86 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

#travelStay #stayLanguageSwitch button.is-active,
#travelStay #stayLanguageSwitch button.active,
#travelStay .stay-language-switch button.is-active,
#travelStay .stay-language-switch button.active,
#travelStay #stayLangRu.is-active,
#travelStay #stayLangRu.active,
#travelStay #stayLangEn.is-active,
#travelStay #stayLangEn.active {
  background: linear-gradient(135deg, rgba(65, 89, 166, 0.92), rgba(107, 105, 201, 0.92)) !important;
  border-color: rgba(65, 89, 166, 0.28) !important;
  color: #ffffff !important;
}

#travelStay #stayLanguageSwitch button:hover,
#travelStay .stay-language-switch button:hover,
#travelStay #stayLangRu:hover,
#travelStay #stayLangEn:hover {
  opacity: 0.96;
}

html[data-theme="dark"] #travelStay #stayLanguageSwitch button,
html[data-theme="dark"] #travelStay .stay-language-switch button,
html[data-theme="dark"] #travelStay #stayLangRu,
html[data-theme="dark"] #travelStay #stayLangEn {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(148,163,184,0.24) !important;
  color: #dbe4f0 !important;
}

html[data-theme="dark"] #travelStay #stayLanguageSwitch button.is-active,
html[data-theme="dark"] #travelStay #stayLanguageSwitch button.active,
html[data-theme="dark"] #travelStay .stay-language-switch button.is-active,
html[data-theme="dark"] #travelStay .stay-language-switch button.active,
html[data-theme="dark"] #travelStay #stayLangRu.is-active,
html[data-theme="dark"] #travelStay #stayLangRu.active,
html[data-theme="dark"] #travelStay #stayLangEn.is-active,
html[data-theme="dark"] #travelStay #stayLangEn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2)) !important;
  color: #ffffff !important;
  border-color: rgba(123, 97, 255, 0.30) !important;
}

@media (max-width: 768px) {
  #travelStay .stay-booking-shell {
    gap: 6px !important;
  }

  #travelStay .stay-booking-lead {
    margin-bottom: 4px !important;
  }

  #travelStay #stayLanguageSwitch,
  #travelStay .stay-language-switch {
    margin-bottom: 4px !important;
  }
}

/* CONTACTSPORTAL vertical alignment patch: lift booking form and RU/EN switch */
#travelStay .stay-booking-shell{
  gap:6px !important;
}

#travelStay .stay-booking-hero{
  padding:0 !important;
  margin:0 !important;
}

#travelStay .stay-booking-hero h1{
  margin:0 0 6px 0 !important;
}

#travelStay .stay-booking-lead,
#travelStay #stayHeroLead{
  margin:0 0 6px 0 !important;
  max-width:560px !important;
}

#travelStay .stay-search-form{
  margin-top:-4px !important;
}

#travelStay #stayLanguageSwitch,
#travelStay .stay-language-switch{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
  gap:8px !important;
  margin-top:-26px !important;
  margin-bottom:8px !important;
  position:relative;
  z-index:3;
}

@media (max-width: 768px){
  #travelStay .stay-search-form{
    margin-top:0 !important;
  }

  #travelStay #stayLanguageSwitch,
  #travelStay .stay-language-switch{
    margin-top:0 !important;
    margin-bottom:8px !important;
  }
}
