/* Форпост Трэвел — главная (статика, без БД) */
:root {
  --primary: #0f766e;
  --primary-600: #0d9488;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f4f6f3;
  --card: #ffffff;
  --border: #e5e7eb;
  --accent: #f59e0b;
  --hero-gold-deep: #d4b870;
  --hero-gold-rich: #e5cf95;
  --hero-gold-mid: #f0e2c4;
  --hero-gold-light: #faf3e4;
  /* Шапка: не чисто белый, лёгкий оттенок primary */
  --header-bg: linear-gradient(180deg, #ffffff 0%, #f4fbfa 55%, #eff8f6 100%);
  --header-border: rgba(15, 118, 110, 0.14);
  /* Мобильные кнопки «Наши офисы» и «Меню»: одинаковый отступ контента от края .container */
  --mobile-toggle-pad-x: 0;
  --mobile-toggle-pad-right: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.site-body {
  flex: 1;
}

/* Баннер «про VPN» — скрытие без мигания, если уже закрывали */
html.js-vpn-notice-off .vpn-notice {
  display: none !important;
}

.vpn-notice {
  position: relative;
  z-index: 200;
  padding: 10px 0;
  padding-top: max(10px, env(safe-area-inset-top));
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1px solid rgba(180, 83, 9, 0.22);
  color: #78350f;
  font-size: 14px;
  line-height: 1.45;
}

.vpn-notice__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vpn-notice__text {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.vpn-notice__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -6px -8px -6px 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #78350f;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.vpn-notice__close:hover {
  background: rgba(180, 83, 9, 0.12);
  color: #451a03;
}

.vpn-notice__close:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.vpn-notice__close-icon {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px 20px;
  padding: 14px 0;
}

.header-toolbar {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  min-width: 0;
}

.header-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px 12px;
  margin-left: auto;
  --header-anniversary-width: 138px;
}

.header-anniversary {
  position: relative;
  box-sizing: border-box;
  width: var(--header-anniversary-width);
  flex: 0 0 auto;
  margin: 0;
  padding: 10px 10px 9px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(45, 212, 191, 0.45);
  background-color: #f0fdfa;
  background-image:
    radial-gradient(ellipse 120% 80% at 100% 0%, rgba(251, 191, 36, 0.22) 0%, transparent 52%),
    radial-gradient(ellipse 100% 90% at 0% 100%, rgba(244, 114, 182, 0.14) 0%, transparent 48%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(34, 211, 238, 0.1) 0%, transparent 55%),
    linear-gradient(155deg, rgba(240, 253, 250, 0.97) 0%, rgba(255, 251, 235, 0.95) 45%, rgba(253, 244, 255, 0.92) 100%);
  box-shadow:
    0 4px 16px rgba(13, 148, 136, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.header-anniversary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    #0d9488 0%,
    #06b6d4 22%,
    #eab308 48%,
    #f97316 72%,
    #db2777 100%
  );
  opacity: 0.92;
}

.header-anniversary__text {
  position: relative;
  z-index: 1;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  line-height: 1.3;
}

.header-anniversary__lead {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f766e;
}

.header-anniversary__num {
  display: inline;
  padding: 0 1px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #ea580c 0%, #eab308 50%, #ca8a04 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
}

.header-anniversary__date {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.02em;
  color: #6d28d9;
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
  color: inherit;
}

.logo img {
  display: block;
  height: auto;
  max-height: 52px;
  width: auto;
  max-width: min(100%, 300px);
}

.header-offices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 22px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 720px;
  justify-items: start;
  text-align: left;
}

.header-office {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  line-height: 1.35;
}

.header-office__city {
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.header-office__pin {
  margin-right: 2px;
}

.header-office__addr {
  color: var(--muted);
}

.header-office__phone {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.header-office__phone:hover {
  text-decoration: underline;
}

.header-offices-wrap {
  flex: 0 1 auto;
  min-width: 0;
}

.header-offices__toggle {
  display: none;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0 14px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 118, 110, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.header-offices__toggle:hover {
  background: #ecfdf5;
  border-color: rgba(15, 118, 110, 0.28);
  color: var(--primary);
}

.header-offices__toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.header-offices-wrap--open .header-offices__toggle {
  background: #ecfdf5;
  border-color: rgba(15, 118, 110, 0.35);
  color: var(--primary);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.header-offices__toggle-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
}

.header-offices__toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow:
    0 -7px 0 currentColor,
    0 7px 0 currentColor;
}

.header-offices__toggle-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 10px 0 6px;
  }

  .logo img {
    max-height: 48px;
  }

  .header-toolbar {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .header-toolbar__controls {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .header-offices-wrap {
    flex: 1 1 58%;
    min-width: 0;
  }

  .header-offices__toggle {
    display: inline-flex;
  }

  .header-actions {
    flex: 1 1 38%;
    margin-left: 0;
    min-width: 0;
    --header-anniversary-width: 100%;
  }

  .header-anniversary {
    min-height: 44px;
    padding: 8px 10px 7px;
    justify-content: center;
  }

  .header-anniversary__text {
    gap: 2px;
  }

  .header-anniversary__lead {
    font-size: 0.78rem;
  }

  .header-anniversary__date {
    font-size: 0.64rem;
    line-height: 1.25;
  }

  .header-offices {
    display: none;
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
    gap: 14px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.08);
  }

  .header-toolbar:has(.header-offices-wrap--open) .header-offices {
    display: grid;
  }

  .header-office {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }

  .header-office:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}

@media (min-width: 901px) {
  .header-toolbar__controls {
    display: contents;
  }

  .header-offices-wrap {
    display: none;
  }

  .header-offices {
    flex: 1 1 auto;
    order: 1;
  }

  .header-actions {
    order: 2;
  }
}

/* Полоса навигации под шапкой */
.nav-bar {
  position: relative;
  z-index: 100;
  background: var(--card);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(15, 118, 110, 0.06);
}

.nav-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 6px 0;
}

.nav-bar__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-bar__toggle:hover {
  background: #ecfdf5;
  color: var(--primary);
}

.nav-bar__toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-bar__toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow:
    0 -7px 0 currentColor,
    0 7px 0 currentColor;
}

.nav-bar__mobile-actions {
  display: none;
}

.nav-bar__toggle--cabinet .nav-bar__toggle-bars {
  display: none;
}

.nav-bar__toggle-badge--mod {
  background: #dc2626;
}

.nav-bar__mod-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 1.2rem;
  height: 1.2rem;
  margin-left: 6px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: #dc2626;
  border-radius: 999px;
}

.nav-bar__msg-badge--mod {
  background: #dc2626;
}

a.nav-bar__toggle--auth {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

a.nav-bar__toggle--auth:hover {
  color: var(--primary);
}

.nav-bar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

@media (min-width: 901px) {
  .nav-bar__item--to-end {
    margin-left: auto;
  }
}

.nav-bar__item {
  position: relative;
}

.nav-bar__item--dropdown > .nav-bar__link {
  padding-right: 1.65rem;
}

.nav-bar__item--dropdown > .nav-bar__link::after {
  content: "";
  position: absolute;
  right: 0.65rem;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: border-color 0.15s ease, transform 0.15s ease, margin-top 0.15s ease;
}

.nav-bar__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

button.nav-bar__link {
  width: auto;
  max-width: 100%;
  margin: 0;
  font: inherit;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
}

.nav-bar__link:hover {
  background: #ecfdf5;
  color: var(--primary);
}

.nav-bar__link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.nav-bar__link--agency {
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--bg);
  padding-left: 14px;
  margin-left: 0;
}

.nav-bar__link--agency:hover {
  border-color: rgba(15, 118, 110, 0.35);
  background: #ecfdf5;
  color: var(--primary);
}

.nav-bar__link--cta {
  color: #fff;
  background: linear-gradient(135deg, #ea580c 0%, var(--accent) 100%);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.28);
}

.nav-bar__link--cta:hover {
  color: #fff;
  background: linear-gradient(135deg, #c2410c 0%, #d97706 100%);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.38);
}

.nav-bar__link--primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.22);
}

.nav-bar__link--primary:hover {
  color: #fff;
  background: var(--primary-600);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}

.nav-bar__item--user {
  max-width: 16rem;
}

.nav-bar__link--user-menu {
  position: relative;
  max-width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
}

.nav-bar__link--user-menu:hover {
  border-color: rgba(15, 118, 110, 0.35);
}

.nav-bar__user-email {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-bar__logout-form {
  margin: 0;
  padding: 0;
}

.nav-bar__sub .nav-bar__logout-form {
  display: block;
}

.nav-bar__sub-logout-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  font: inherit;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.nav-bar__sub-logout-btn:hover {
  background: #f3faf9;
  color: var(--primary);
}

.nav-bar__sub-logout-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.nav-bar__sub {
  list-style: none;
  margin: 0;
  padding: 8px;
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-bar__sub a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 8px;
}

.nav-bar__sub a:hover {
  background: #f3faf9;
  color: var(--primary);
}

.nav-bar__sub a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.nav-bar__sub--user > li:first-child a {
  font-weight: 700;
}

.nav-bar__sub--user > li:last-child {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

@media (min-width: 901px) {
  .nav-bar__item--desktop-only {
    display: list-item;
  }

  .nav-bar__list--cabinet {
    display: none !important;
  }

  .nav-bar__item--dropdown:hover > .nav-bar__sub,
  .nav-bar__item--dropdown:focus-within > .nav-bar__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-bar__item--dropdown:hover > .nav-bar__link::after,
  .nav-bar__item--dropdown:focus-within > .nav-bar__link::after {
    margin-top: -2px;
    transform: rotate(225deg);
    border-color: var(--primary);
  }
}

@media (max-width: 900px) {
  .nav-bar__inner {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    gap: 0;
  }

  .nav-bar__mobile-actions {
    display: flex;
    align-self: stretch;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
  }

  .nav-bar__mobile-actions .nav-bar__toggle {
    display: inline-flex;
    flex: 1 1 50%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 0 10px;
    border-radius: 0;
  }

  .nav-bar__mobile-actions .nav-bar__toggle + .nav-bar__toggle,
  .nav-bar__mobile-actions .nav-bar__toggle + .nav-bar__toggle--auth {
    border-left: 1px solid var(--border);
  }

  .nav-bar__mobile-actions .nav-bar__toggle--auth {
    background: var(--primary);
    color: #fff;
  }

  .nav-bar__mobile-actions .nav-bar__toggle--auth:hover {
    background: var(--primary-600);
    color: #fff;
  }

  .nav-bar__toggle-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .nav-bar__item--desktop-only {
    display: none !important;
  }

  .nav-bar__list {
    align-self: stretch;
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    padding: 8px 8px 12px;
  }

  .nav-bar__list:not(.nav-bar__list--cabinet) {
    padding-bottom: 8px;
  }

  .nav-bar--open .nav-bar__list:not(.nav-bar__list--cabinet) {
    display: flex;
    padding-bottom: 12px;
  }

  .nav-bar__list--cabinet {
    display: none;
    padding: 8px 8px 12px;
    border-top: 1px solid var(--border);
    background: var(--bg);
  }

  .nav-bar--cabinet-open .nav-bar__list--cabinet {
    display: flex;
  }

  .nav-bar--cabinet-open .nav-bar__toggle--cabinet {
    background: #ecfdf5;
    color: var(--primary);
  }

  .nav-bar--open .nav-bar__toggle:not(.nav-bar__toggle--cabinet) {
    background: #ecfdf5;
    color: var(--primary);
  }

  .nav-bar__link {
    min-height: 44px;
    padding: 0 14px;
    border-radius: 10px;
  }

  .nav-bar__link--cta,
  .nav-bar__link--primary {
    justify-content: center;
  }

  .nav-bar__item--dropdown > .nav-bar__link::after {
    right: 14px;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
  }

  .nav-bar__item--dropdown.nav-bar__item--open > .nav-bar__link {
    background: #ecfdf5;
    color: var(--primary);
  }

  .nav-bar__item--dropdown.nav-bar__item--open > .nav-bar__link::after {
    margin-top: -2px;
    transform: rotate(225deg);
    border-color: var(--primary);
  }

  .nav-bar__sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    min-width: 0;
    margin: 2px 0 4px;
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: none;
    background: var(--bg);
  }

  .nav-bar__item--dropdown.nav-bar__item--open .nav-bar__sub {
    display: block;
  }

  .nav-bar__sub a {
    padding: 10px 12px;
    color: var(--text);
  }

  .nav-bar__sub a:hover {
    background: #ecfdf5;
    color: var(--primary);
  }

  .nav-bar__item--to-end {
    margin-left: 0;
  }

  .nav-bar__link--logout {
    width: 100%;
    text-align: left;
    font: inherit;
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: transparent;
  }

  .nav-bar__item--logout {
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 4px;
  }

  .nav-bar__list--cabinet .nav-bar__msg-badge {
    margin-left: 6px;
    color: #fff;
    background: var(--primary);
  }

  .nav-bar__list--cabinet .nav-bar__msg-badge--mod {
    background: #dc2626;
  }

  .nav-bar__link--agency {
    border: 1px solid var(--border);
    padding-left: 14px;
    margin-left: 0;
    border-top: 1px solid var(--border);
  }

  .nav-bar__item--user {
    max-width: none;
  }

  .nav-bar__sub--user > li:last-child {
    border-top-color: var(--border);
  }

  .nav-bar__user-email {
    white-space: normal;
    word-break: break-all;
  }

  .nav-bar__sub-logout-btn {
    padding: 10px 12px;
    color: var(--text);
    border-radius: 8px;
  }

  .nav-bar__sub-logout-btn:hover {
    background: #ecfdf5;
    color: var(--primary);
  }
}

.page-cabinet__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.35rem;
}

/* Плашки-ссылки в кабинете */
.page-cabinet__tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 0.65rem 0 0;
}

.page-cabinet__tiles--after-text {
  margin-top: 0.75rem;
}

.page-cabinet__tiles--after-table {
  margin-top: 1rem;
}

.page-legal a.page-cabinet__tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  min-height: 4.35rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--text);
  background: var(--card, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.page-legal a.page-cabinet__tile:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
  text-decoration: none;
  color: var(--text);
}

.page-legal a.page-cabinet__tile:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.page-legal a.page-cabinet__tile--primary {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.22);
}

.page-legal a.page-cabinet__tile--primary:hover {
  background: var(--primary-600);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.3);
}

.page-legal a.page-cabinet__tile--primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.page-cabinet__tile-title {
  font-weight: 700;
  font-size: 0.98rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.page-cabinet__tile-desc {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.42;
  color: var(--muted);
}

.page-legal a.page-cabinet__tile--primary .page-cabinet__tile-desc {
  color: rgba(255, 255, 255, 0.9);
}

.page-cabinet__head-actions.page-cabinet__head-actions--tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(12rem, 1fr));
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  max-width: 38rem;
}

.page-cabinet__head-actions--tiles .page-cabinet__tile {
  height: 100%;
  min-height: 4.75rem;
  min-width: 0;
  max-width: none;
}

.page-cabinet__head-actions--tiles .page-cabinet__tile-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.35em;
}

@media (max-width: 520px) {
  .page-cabinet__head-actions.page-cabinet__head-actions--tiles {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

.page-cabinet__welcome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.page-cabinet__welcome .page-cabinet__head {
  flex: 1 1 12rem;
  margin-bottom: 0;
}

.page-cabinet__title-block {
  flex: 1 1 auto;
  min-width: 0;
}

.page-cabinet__profile-view-meta {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.page-cabinet__profile-view-line {
  margin: 0.25rem 0 0;
}

.page-cabinet__profile-view-line:first-child {
  margin-top: 0;
}

.page-cabinet__avatar-wrap {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(15, 118, 110, 0.2);
  background: #f4f6f3;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.page-cabinet__avatar-wrap--large {
  width: 120px;
  height: 120px;
}

.page-cabinet__avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-cabinet__avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-600) 100%);
  text-transform: uppercase;
}

.page-cabinet__avatar-wrap--large .page-cabinet__avatar--placeholder {
  font-size: 2.75rem;
}

.page-cabinet__summary {
  margin-top: 0;
}

.page-cabinet__reviews-section {
  margin-top: 1.25rem;
}

.page-cabinet__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.85rem;
  margin: 0 0 0.65rem;
}

.page-cabinet__section-head-title.page-legal__h2 {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.page-cabinet__section-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex: 0 1 auto;
}

.page-legal a.page-cabinet__section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  color: #fff;
  background: var(--primary);
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.page-legal a.page-cabinet__section-action:hover,
.page-legal a.page-cabinet__section-action:focus-visible {
  background: var(--primary-600);
  color: #fff;
  text-decoration: none;
}

.page-legal a.page-cabinet__section-action:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.page-legal a.page-cabinet__section-action--ghost {
  color: var(--primary);
  background: #fff;
  border-color: rgba(15, 118, 110, 0.35);
}

.page-legal a.page-cabinet__section-action--ghost:hover,
.page-legal a.page-cabinet__section-action--ghost:focus-visible {
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-600, var(--primary));
  border-color: var(--primary);
}

.page-cabinet__reviews-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.page-cabinet__reviews-table-wrap {
  margin: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.page-cabinet__reviews-table {
  width: 100%;
  min-width: 20rem;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.page-cabinet__reviews-table--compact th,
.page-cabinet__reviews-table--compact td {
  padding: 0.32rem 0.5rem;
}

.page-cabinet__reviews-table th,
.page-cabinet__reviews-table td {
  padding: 0.4rem 0.55rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.page-cabinet__reviews-table thead th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
  background: rgba(15, 23, 42, 0.035);
  white-space: nowrap;
}

.page-cabinet__reviews-table tbody tr:last-child td {
  border-bottom: none;
}

.page-cabinet__reviews-table tbody tr:hover td {
  background: rgba(15, 23, 42, 0.025);
}

.page-cabinet__reviews-th-actions {
  width: 1%;
  min-width: 8.5rem;
  white-space: nowrap;
}

.page-cabinet__reviews-cell-stack {
  min-width: 0;
}

.page-cabinet__reviews-cell-stack--actions .page-cabinet__review-status {
  margin-bottom: 0;
}

.page-cabinet__reviews-stack-line {
  display: block;
}

.page-cabinet__reviews-stack-line + .page-cabinet__reviews-stack-line {
  margin-top: 0.22rem;
}

.page-cabinet__reviews-stack-line--primary {
  font-weight: 600;
  color: var(--text);
}

.page-cabinet__reviews-stack-line--muted {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--muted);
}

.page-cabinet__reviews-stack-line--primary[datetime] {
  color: var(--text);
}

.page-cabinet__reviews-emdash {
  color: var(--muted);
}

.page-cabinet__reviews-table .page-cabinet__review-rating {
  font-size: 0.76rem;
  letter-spacing: 0.05em;
}

.page-cabinet__reviews-table .page-cabinet__review-status {
  font-size: 0.72rem;
  padding: 0.18rem 0.4rem;
  border-radius: 6px;
}

.page-cabinet__review-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin-top: 0.3rem;
}

.page-cabinet__review-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  color: var(--primary);
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.22);
  text-decoration: none;
  flex-shrink: 0;
}

.page-cabinet__review-icon-link:hover {
  background: rgba(15, 118, 110, 0.16);
  color: var(--primary);
}

.page-cabinet__review-icon-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.page-cabinet__tb-own-form {
  display: inline-flex;
  margin: 0;
}

.page-cabinet__tb-own-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: inherit;
  line-height: 1.2;
  color: var(--primary);
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  cursor: pointer;
}

.page-cabinet__tb-own-btn:hover {
  background: rgba(15, 118, 110, 0.16);
}

.page-cabinet__tb-own-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.page-cabinet__tb-own-btn--danger {
  color: #991b1b;
  background: #fef2f2;
  border-color: rgba(185, 28, 28, 0.22);
}

.page-cabinet__tb-own-btn--danger:hover {
  background: #fee2e2;
}

.page-cabinet__review-status {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-cabinet__review-status--pending {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid rgba(180, 83, 9, 0.28);
}

.page-cabinet__review-status--approved {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid rgba(15, 118, 110, 0.28);
}

.page-cabinet__review-status--rejected {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid rgba(185, 28, 28, 0.22);
}

.page-cabinet__review-status--blocked {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid var(--border);
}

.page-cabinet__review-status--unknown {
  background: #f9fafb;
  color: var(--muted);
}

.page-cabinet__review-rating {
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.page-cabinet-profile__avatar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.page-cabinet-profile__avatar-fields {
  flex: 1 1 14rem;
  min-width: 0;
}

.page-cabinet-profile__file {
  padding: 0.45rem 0.35rem;
  font-size: 0.9rem;
}

.page-cabinet-profile__remove {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}

.page-cabinet-profile__remove input {
  margin: 0;
  cursor: pointer;
}

.page-cabinet__head .page-legal__title {
  margin-bottom: 0;
}

/* Специфичнее .page-legal a — иначе цвет ссылки затирает белый текст на фоне primary */
.page-legal a.page-cabinet__edit-btn {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s ease;
}

.page-legal a.page-cabinet__edit-btn:hover,
.page-legal a.page-cabinet__edit-btn:focus-visible {
  background: var(--primary-600);
  color: #fff;
  text-decoration: none;
}

.page-cabinet__login-note {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-cabinet__who-line {
  font-size: 0.95rem;
}

.auth-form__hint {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}

.page-cabinet-profile-inner {
  max-width: 32rem;
}

.page-cabinet-profile__email {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  line-height: 1.5;
}

.page-cabinet-profile__email-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}

.page-cabinet-profile__birth-extra {
  margin-top: 0.35rem;
  font-style: italic;
}

.page-cabinet-profile__card {
  margin-top: 1rem;
  max-width: 28rem;
}

.page-cabinet-profile__card.page-cabinet-profile__card--wide {
  max-width: 36rem;
}

/* ЛК: список пользователей и др. см. .page-cabinet__tiles */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-cabinet .auth-flash {
  margin: 0 0 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-cabinet .auth-flash--ok {
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.25);
  color: #065f46;
}

.page-cabinet .auth-flash--err {
  background: #fef2f2;
  border: 1px solid rgba(185, 28, 28, 0.25);
  color: #991b1b;
}

.page-cabinet .page-cabinet-admin__flash {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
}

/* Админ: список пользователей — шире контейнера юридических страниц */
.page-cabinet--admin-users .page-cabinet-admin-users-inner {
  max-width: min(72rem, 100%);
}

.cabinet-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
  padding: 0.65rem 0.75rem;
  background: #f3faf9;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cabinet-users-toolbar__field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cabinet-users-toolbar__field--grow {
  flex: 1 1 12rem;
}

.cabinet-users-toolbar__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cabinet-users-toolbar__control {
  font: inherit;
  font-size: 0.82rem;
  padding: 5px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  min-width: 0;
}

.cabinet-users-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.cabinet-users-toolbar__btn {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.cabinet-users-toolbar__btn:hover {
  background: var(--primary-600);
}

.cabinet-users-toolbar__reset {
  font-size: 0.82rem;
  color: var(--primary);
  text-decoration: underline;
}

.cabinet-users-toolbar__reset:hover {
  text-decoration: none;
}

.cabinet-users-summary {
  margin: 0.4rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.cabinet-users-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
}

.cabinet-users-pagination__link {
  color: var(--primary);
  text-decoration: underline;
  padding: 2px 4px;
}

.cabinet-users-pagination__link:hover {
  text-decoration: none;
}

.cabinet-users-pagination__current {
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 118, 110, 0.12);
  color: var(--text);
}

.cabinet-users-pagination__muted {
  color: var(--muted);
  padding: 2px 4px;
}

.cabinet-users-pagination__ellipsis {
  color: var(--muted);
  padding: 0 2px;
  user-select: none;
}

.cabinet-users-wrap {
  margin-top: 0.5rem;
  overflow-x: auto;
}

@media (min-width: 1100px) {
  .cabinet-users-wrap {
    overflow-x: visible;
  }
}

.cabinet-users-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: 0.82rem;
  line-height: 1.3;
}

.cabinet-users-table th,
.cabinet-users-table td {
  padding: 6px 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.cabinet-users-table th {
  font-weight: 700;
  color: var(--text);
  background: #f3faf9;
  white-space: nowrap;
}

.cabinet-users-table__sort {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cabinet-users-table__sort:hover {
  text-decoration: none;
}

.cabinet-users-table__empty {
  text-align: center;
  padding: 1.25rem 0.5rem;
  color: var(--muted);
}

.cabinet-users-table__email {
  max-width: 20rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cabinet-users-table__bool {
  text-align: center;
  white-space: nowrap;
}

.cabinet-users-table__dt {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cabinet-users-table__action {
  white-space: nowrap;
}

.cabinet-users-form {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
}

.cabinet-users-form__select {
  padding: 4px 6px;
  font: inherit;
  font-size: 0.82rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  width: auto;
  min-width: 7.5rem;
  max-width: 9rem;
  background: #fff;
  flex-shrink: 0;
}

.cabinet-users-form__btn {
  padding: 4px 10px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  border: none;
  background: var(--primary);
  color: #fff;
  flex-shrink: 0;
}

.cabinet-users-form__btn:hover {
  background: var(--primary-600);
}

.cabinet-users-table__muted {
  color: var(--muted);
}

/* Формы входа / регистрации */
.page-auth .auth-flash {
  margin: 0 0 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-auth .auth-flash--ok {
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.25);
  color: #065f46;
}

.page-auth .auth-flash--err {
  background: #fef2f2;
  border: 1px solid rgba(185, 28, 28, 0.25);
  color: #991b1b;
}

.page-auth .auth-flash a {
  color: var(--primary);
  font-weight: 600;
}

.auth-form {
  max-width: 22rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

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

.auth-form__turnstile {
  margin: 0.35rem 0 0.25rem;
}

.auth-form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.auth-form__input {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
}

.auth-form__input:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 1px;
}

.auth-form__submit {
  margin-top: 6px;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.auth-form__submit:hover {
  background: var(--primary-600);
}

.auth-form__meta {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.auth-form__meta a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-form__meta a:hover {
  text-decoration: underline;
}

.auth-form__meta--fine {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-form__meta--back {
  margin-top: 1rem;
}

.page-auth__layout {
  max-width: 26rem;
  margin-inline: auto;
}

.auth-card {
  margin: 0 auto 1.75rem;
  padding: 1.5rem 1.35rem 1.35rem;
  max-width: 22rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.06);
}

.auth-card--register {
  margin-bottom: 0;
}

.auth-card--static {
  max-width: none;
}

.auth-card__lead {
  margin: 0;
}

.auth-card__title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.auth-card.auth-card--register .auth-card__title {
  margin-bottom: 1rem;
}

.auth-card__links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.875rem;
  line-height: 1.35;
}

.auth-card__links-cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

.auth-card__links-cell:first-child {
  justify-content: flex-end;
  text-align: right;
}

.auth-card__links-cell:last-child {
  justify-content: flex-start;
  text-align: left;
}

.auth-card__links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.auth-card__links a:hover {
  text-decoration: underline;
}

.auth-card__links-sep {
  display: block;
  width: 1px;
  height: 1.15em;
  margin: 0 0.1rem;
  background: rgba(0, 0, 0, 0.14);
  user-select: none;
}

.page-auth .auth-form {
  max-width: none;
}

/* Hero */
.hero.hero--split {
  padding: 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  /* Высота всего блока (левая колонка + слайдер Tourvisor): −20% от исходных 360px / 52vh */
  --hero-split-h: min(288px, 41.6vh);
}

.hero-split__wrap {
  padding-top: 12px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: 0;
  align-items: stretch;
  /* Фиксированная высота строки: иначе iframe Tourvisor задаёт свою и растягивает блок */
  height: var(--hero-split-h);
  min-height: 0;
  max-height: var(--hero-split-h);
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.07);
}

.hero-split__left,
.hero-split__right {
  min-height: 0;
}

.hero-split__left {
  position: relative;
  z-index: 1;
  padding: 1.25rem 1.25rem 1.35rem;
  background: linear-gradient(
    to right,
    var(--hero-gold-deep) 0%,
    var(--hero-gold-rich) 16%,
    var(--hero-gold-mid) 32%,
    var(--hero-gold-light) 52%,
    rgba(255, 251, 240, 0.88) 72%,
    rgba(255, 253, 248, 0.65) 86%,
    rgba(255, 255, 255, 0.92) 96%,
    rgba(255, 255, 255, 1) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 1px 0 0 rgba(255, 255, 255, 0.25),
    inset -1px 0 0 rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-split__left-inner {
  max-width: 360px;
  width: 100%;
}

.hero-title--split {
  margin: 0 0 0.35rem;
  font-size: clamp(1.1rem, 2.1vw, 1.45rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-tagline--split {
  margin: 0 0 0.85rem;
  font-size: clamp(0.88rem, 1.45vw, 1rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--primary);
}

.hero-messengers__pills {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 100%;
}

.messenger-pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px 14px;
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  color: #fff;
  font-family: inherit;
  width: 100%;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.messenger-pill:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.messenger-pill__icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: block;
}

.messenger-pill--telegram {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
}

.messenger-pill--max {
  background: linear-gradient(180deg, #8b5cf6 0%, #6d28d9 100%);
}

.messenger-pill--max .messenger-pill__icon svg rect {
  fill: rgba(255, 255, 255, 0.22);
}

.messenger-pill--max .messenger-pill__icon svg path {
  fill: #fff;
}

.messenger-pill--whatsapp {
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.messenger-pill--telegram .messenger-pill__icon {
  color: #fff;
}

.messenger-pill--whatsapp .messenger-pill__icon {
  color: #fff;
}

/* Модальное окно: выбор города для мессенджеров */
.social-city-dialog {
  max-width: calc(100vw - 32px);
  width: 400px;
  padding: 0;
  border: none;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  background: transparent;
}

.social-city-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.social-city-dialog__panel {
  padding: 24px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--border);
}

.social-city-dialog__title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.social-city-dialog__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.social-city-dialog__city {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary) 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.social-city-dialog__city:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
}

.social-city-dialog__city:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.social-city-dialog__cancel {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
}

.social-city-dialog__cancel:hover {
  background: #e8eeec;
}

.hero-split__right {
  position: relative;
  min-height: 176px;
  min-width: 0;
  z-index: 0;
  margin-left: -1px;
}

.hero-tv__fade {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(58%, min(280px, 42vw));
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.97) 0%,
    rgba(255, 253, 248, 0.82) 8%,
    rgba(255, 251, 242, 0.55) 22%,
    rgba(252, 246, 232, 0.32) 42%,
    rgba(248, 238, 218, 0.14) 62%,
    rgba(245, 235, 210, 0.05) 82%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

.hero-tv__inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  background: #fff;
  overflow: hidden;
  box-shadow: 6px 12px 40px rgba(0, 0, 0, 0.06);
  border-left: 1px solid rgba(255, 255, 255, 0.98);
}

.hero-tv__inner .tv-image-slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-tv__inner .tv-image-slider iframe,
.hero-tv__inner iframe {
  display: block;
  width: 100% !important;
  border: 0;
  vertical-align: top;
}

/* Высоту iframe на десктопе задаём мы (фиксированный hero); на мобильных — не трогаем,
   иначе height:100% перебивает inline от Tourvisor и обрезает стрелки/картинку внутри iframe */
@media (min-width: 901px) {
  .hero-tv__inner .tv-image-slider iframe,
  .hero-tv__inner iframe {
    height: 100% !important;
    max-height: 100% !important;
  }
}

/* Поиск (макет) */
.hero-split__search {
  padding-top: 8px;
  padding-bottom: 32px;
}

.search-heading {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  text-align: center;
}

.search-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Главная: карусель отзывов (над блоком поиска Tourvisor) */
.home-reviews-carousel {
  margin-bottom: 22px;
}

.home-reviews-carousel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.home-reviews-carousel__title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.home-reviews-carousel__all {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.home-reviews-carousel__all:hover {
  text-decoration: underline;
}

.home-reviews-carousel__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-reviews-carousel__viewport {
  flex: 1;
  min-width: 0;
}

.home-reviews-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 4px;
  padding: 4px 2px 14px;
  margin: 0 -2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: rgba(15, 118, 110, 0.35) transparent;
}

.home-reviews-carousel__track:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 12px;
}

@media (prefers-reduced-motion: no-preference) {
  .home-reviews-carousel__track {
    scroll-behavior: smooth;
  }
}

.home-reviews-carousel__slide {
  flex: 0 0 min(100% - 40px, 300px);
  scroll-snap-align: start;
}

@media (min-width: 640px) {
  .home-reviews-carousel__slide {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: 0;
  }
}

@media (min-width: 960px) {
  .home-reviews-carousel__slide {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

.home-reviews-carousel__nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(15, 118, 110, 0.35);
  border-radius: 50%;
  background: var(--card);
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.home-reviews-carousel__nav:hover:not(:disabled) {
  background: rgba(15, 118, 110, 0.08);
}

.home-reviews-carousel__nav:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.home-reviews-carousel__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.home-review-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-review-card:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.1);
}

.home-review-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.home-review-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.15), rgba(245, 158, 11, 0.18));
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-review-card__meta {
  min-width: 0;
}

.home-review-card__name {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.home-review-card__place {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.home-review-card__stars {
  margin-bottom: 10px;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.home-review-card__quote {
  margin: 0 0 12px;
  flex: 1;
}

.home-review-card__quote p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.home-review-card__link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
}

.home-review-card__link:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 520px) {
  .home-reviews-carousel__nav {
    display: none;
  }

  .home-reviews-carousel__controls {
    gap: 0;
  }
}

/* Страница «Поиск попутчиков» */
.page-travel-buddies__inner {
  max-width: 900px;
}

/* Лента попутчиков: та же ширина контента, что у .container / навигации (не 100% экрана). */
.page-travel-buddies__inner--feed {
  max-width: 1200px;
}

.page-travel-buddies__head {
  margin-bottom: 28px;
}

.page-travel-buddies__head--feed {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: 20px;
}

.page-travel-buddies__head--feed .page-travel-buddies__title {
  margin-bottom: 0;
}

.page-travel-buddies__head-text {
  flex: 1 1 240px;
  min-width: 0;
}

.page-travel-buddies__lead--feed {
  margin-top: 6px;
  font-size: 0.94rem;
  line-height: 1.45;
}

.page-travel-buddies__actions--feed {
  margin: 0;
  flex-shrink: 0;
  align-self: center;
}

.page-travel-buddies__panel--compact {
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.page-travel-buddies__panel-title--compact {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-travel-buddies__panel-hint {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

.page-tb-filters {
  margin-top: 10px;
}

.page-tb-filters__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.page-tb-filters__hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted);
}

.page-tb-filters__hint--span {
  grid-column: 1 / -1;
}

.page-tb-filters__label {
  display: block;
  margin: 0 0 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.page-tb-filters__select,
.page-tb-filters__input {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
}

.page-tb-filters__countries {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.page-tb-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-tb-filters__chip {
  display: inline-flex;
  cursor: pointer;
}

.page-tb-filters__chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-tb-filters__chip-ui {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.86rem;
  font-weight: 600;
}

.page-tb-filters__chip-input:focus-visible + .page-tb-filters__chip-ui {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.page-tb-filters__chip-input:checked + .page-tb-filters__chip-ui {
  border-color: var(--primary);
  background: #ecfdf5;
  color: var(--primary);
}

.page-tb-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 700px) {
  .page-tb-filters__grid {
    grid-template-columns: 1fr;
  }
}

.page-travel-buddies__panel--results-feed {
  padding: 16px 16px 18px;
}

.page-tb__listing.page-tb__listing--feed {
  gap: 12px;
}

@media (min-width: 1180px) {
  .page-tb__listing.page-tb__listing--feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
  }
}

.page-tb__listing.page-tb__listing--feed > .page-tb__listing-item {
  display: flex;
  min-width: 0;
}

.page-tb__card--feed {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 100%;
  min-height: 292px;
}

.page-tb__card--feed:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.page-tb__feed-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.page-tb__feed-thumb {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 1 / 1;
  align-self: center;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: linear-gradient(145deg, rgba(15, 118, 110, 0.08), rgba(15, 118, 110, 0.02));
  text-decoration: none;
  line-height: 0;
}

.page-tb__feed-thumb--photo {
  padding: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}

.page-tb__feed-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-tb__feed-thumb--placeholder {
  cursor: pointer;
  color: rgba(15, 118, 110, 0.45);
}

.page-tb__feed-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
}

.page-tb__feed-placeholder-letter {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  opacity: 0.85;
  line-height: 1;
}

.page-tb__feed-placeholder-icon {
  opacity: 0.55;
}

.page-tb__feed-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-tb__feed-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.page-tb__feed-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.page-tb__feed-title-link {
  color: var(--text);
  text-decoration: none;
}

.page-tb__feed-title-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.page-tb__feed-dates-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  max-width: 100%;
  min-width: 0;
}

.page-tb__feed-dates-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.page-tb__feed-dates {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: normal;
  overflow-wrap: anywhere;
}

.page-tb__feed-tail {
  margin-top: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.page-tb__feed-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding-top: 8px;
}

.page-tb__feed-cmt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.page-tb__feed-cmt:hover {
  color: var(--primary);
}

.page-tb__feed-cmt-icon {
  display: flex;
  line-height: 0;
  opacity: 0.85;
}

.page-tb__feed-cmt-num {
  min-width: 1ch;
}

.page-tb__feed-chips {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.page-tb__feed-chip {
  display: block;
  max-width: 100%;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--primary);
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.14);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-tb__feed-chip--muted {
  color: var(--text);
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--border);
  font-weight: 500;
}

.page-tb__feed-who {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.page-tb__feed-who + .page-tb__feed-who {
  margin-top: 2px;
}

.page-tb__feed-excerpt {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}

.page-tb__feed-moreWrap {
  margin: 0 !important;
  padding-top: 6px;
  flex-shrink: 0;
}

.page-tb__feed-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.page-tb__feed-views-icon {
  display: flex;
  line-height: 0;
  opacity: 0.85;
}

.page-tb__feed-views-num {
  min-width: 1ch;
}

.page-tb__feed-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.page-tb__feed-more:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .page-tb__feed-row {
    flex-direction: column;
    min-height: 0;
    flex: 1;
  }

  .page-tb__card--feed {
    min-height: 300px;
  }

  .page-tb__feed-thumb {
    width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    align-self: stretch;
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .page-tb__feed-thumb-img {
    min-height: 0;
  }

  .page-travel-buddies__actions--feed {
    width: 100%;
  }

  .page-travel-buddies__actions--feed .page-travel-buddies__cta {
    flex: 1 1 auto;
    justify-content: center;
  }
}

.page-travel-buddies__title {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.page-travel-buddies__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-travel-buddies__panel {
  margin-bottom: 20px;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.page-travel-buddies__panel-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.page-travel-buddies__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 12px;
}

.page-travel-buddies__sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-travel-buddies__toolbar-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.page-travel-buddies__placeholder {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-travel-buddies__placeholder--inline {
  margin: 0;
}

.page-tb__legend {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}

.page-tb__req {
  color: #b45309;
}

.page-tb__hint {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.page-tb__muted {
  color: var(--muted);
  font-weight: 400;
}

.page-tb__checkbox-grid,
.page-tb__radio-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.page-tb__checkbox-grid--dense {
  gap: 8px 14px;
}

.page-tb__check {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.page-tb__dest-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.page-tb__dest-num {
  flex-shrink: 0;
  width: 1.5rem;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 10px;
}

.page-tb__dest-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  flex: 1;
  min-width: 0;
}

.page-tb__field {
  flex: 1 1 200px;
  min-width: 160px;
}

.page-tb__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-tb__dates .page-tb__field {
  flex: 1 1 220px;
}

.page-tb__submit-wrap {
  margin-top: 8px;
}

.page-tb__listing {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-tb__listing-item {
  margin: 0;
}

.page-tb__card {
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.page-tb__detail-photo-wrap {
  margin: 0 0 20px;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-width: min(720px, 100%);
  line-height: 0;
}

.page-tb__detail-photo {
  display: block;
  width: 100%;
  height: auto;
}

.page-tb__mod-photo-wrap {
  margin: 0 0 12px;
}

.page-tb__mod-photo-link {
  display: inline-block;
  max-width: 280px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}

.page-tb__mod-photo {
  display: block;
  width: 100%;
  max-height: 160px;
  height: auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.04);
}

.page-tb__card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  align-items: baseline;
}

.page-tb__card-author {
  font-weight: 700;
  color: var(--text);
}

.page-tb__card-time {
  font-size: 0.88rem;
  color: var(--muted);
}

.page-tb__card-dl {
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.page-tb__card-dl dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
}

.page-tb__card-dl dd {
  margin: 2px 0 0;
  color: var(--text);
}

.page-tb__card-body {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.page-tb__card-body p {
  margin: 0;
}

.page-travel-buddies__actions {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-travel-buddies__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
}

.page-travel-buddies__cta:hover {
  background: var(--primary-600);
  color: #fff;
}

.page-travel-buddies__cta--secondary {
  background: var(--card);
  color: var(--primary);
  border-color: rgba(15, 118, 110, 0.35);
}

.page-travel-buddies__cta--secondary:hover {
  background: rgba(15, 118, 110, 0.08);
}

.page-travel-buddies__mod-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 6px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.page-tb__card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.page-tb__card-title-link {
  color: var(--text);
  text-decoration: none;
}

.page-tb__card-title-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.page-tb__card-more-wrap {
  margin: 10px 0 0 !important;
}

.page-tb__card-more {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
  text-decoration: none;
}

.page-tb__card-more:hover {
  text-decoration: underline;
}

.page-travel-buddies__back {
  margin: 0 0 16px;
}

.page-travel-buddies__back-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
  text-decoration: none;
}

.page-travel-buddies__back-link:hover {
  text-decoration: underline;
}

.page-travel-buddies--detail .page-travel-buddies__title--detail {
  margin-bottom: 8px;
}

.page-travel-buddies__detail-head {
  margin-bottom: 20px;
}

.page-travel-buddies__detail-meta {
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  font-size: 0.95rem;
}

.page-travel-buddies__detail-author {
  font-weight: 700;
  color: var(--text);
}

.page-travel-buddies__detail-dates {
  font-size: 0.88rem;
  color: var(--muted);
}

.page-travel-buddies__actions--detail {
  margin-top: 8px;
}

.page-tb__detail {
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.page-tb__card-dl--detail {
  margin-bottom: 16px;
}

.page-tb__detail-body {
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.page-tb__detail-text {
  margin: 14px 0 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text);
}

.page-tb__comments {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.page-tb__comments-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-tb__comments-flash {
  margin: 0 0 14px;
}

.page-tb__comments-empty {
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

.page-tb__comments-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-tb__comments-item {
  margin: 0;
}

.page-tb__comments-card {
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.page-tb__comments-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 8px;
}

.page-tb__comments-author {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.page-tb__comments-author-link {
  color: var(--primary);
  text-decoration: none;
}

.page-tb__comments-author-link:hover {
  text-decoration: underline;
}

.page-travel-buddies__detail-author-link {
  color: var(--primary);
  text-decoration: none;
}

.page-travel-buddies__detail-author-link:hover {
  text-decoration: underline;
}

/* Публичный профиль /pages/user.php */
.page-user-public__inner {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.page-user-public__back {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.page-user-public__back a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.page-user-public__back a:hover {
  text-decoration: underline;
}

.page-user-public__head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.page-user-public__avatar-wrap {
  flex-shrink: 0;
}

.page-user-public__avatar {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
}

.page-user-public__avatar--placeholder {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.page-user-public__head-text {
  min-width: 0;
}

.page-user-public__title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-user-public__muted {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.page-user-public__meta {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.page-user-public__own {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.page-user-public__own a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.page-user-public__own a:hover {
  text-decoration: underline;
}

.page-user-public__dl {
  margin: 0 0 28px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.page-user-public__dl dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-user-public__dl dd {
  margin: 2px 0 14px;
  font-size: 0.95rem;
  color: var(--text);
}

.page-user-public__dl > div:last-child dd {
  margin-bottom: 0;
}

.page-user-public__hint {
  display: block;
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.page-user-public__section {
  margin-bottom: 28px;
}

.page-user-public__section-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.page-user-public__links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-user-public__links-item {
  margin: 0 0 10px;
}

.page-user-public__links-a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-user-public__links-a:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.page-user-public__links-dates {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.page-user-public__links-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

.page-user-public__links-snippet {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}

.page-user-public__dm {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.page-user-public__dm-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.page-user-public__dm-link:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .page-user-public__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-user-public__head-text {
    text-align: center;
  }
}

/* Личные сообщения (кабинет) */
.page-cabinet-messages__inner {
  max-width: 720px;
}

.page-cabinet-messages__head {
  margin-bottom: 20px;
}

.page-cabinet-messages__lead {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

.page-cabinet-messages__actions {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}

.page-cabinet-messages__actions a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.page-cabinet-messages__actions a:hover {
  text-decoration: underline;
}

.page-cabinet-messages__empty {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}

.page-cabinet-messages__thread {
  margin-bottom: 20px;
}

.page-cabinet-messages__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-cabinet-messages__item {
  display: flex;
  justify-content: flex-start;
}

.page-cabinet-messages__item--mine {
  justify-content: flex-end;
}

.page-cabinet-messages__bubble {
  max-width: min(100%, 520px);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.15);
}

.page-cabinet-messages__item--mine .page-cabinet-messages__bubble {
  background: rgba(15, 118, 110, 0.16);
  border-color: rgba(15, 118, 110, 0.28);
}

.page-cabinet-messages__bubble-meta {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.page-cabinet-messages__bubble-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
  word-break: break-word;
}

.page-cabinet-messages__compose {
  margin-top: 8px;
}

.page-cabinet-messages__compose-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
}

.page-cabinet-messages__textarea {
  min-height: 120px;
  resize: vertical;
}

.page-cabinet-messages__inbox {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-cabinet-messages__inbox-item {
  margin: 0 0 10px;
}

.page-cabinet-messages__inbox-link {
  display: block;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-cabinet-messages__inbox-link:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.page-cabinet-messages__inbox-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.page-cabinet-messages__inbox-name {
  font-weight: 700;
  color: var(--text);
}

.page-cabinet-messages__badge {
  flex-shrink: 0;
  min-width: 1.5rem;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 800;
  text-align: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

.page-cabinet-messages__inbox-preview {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.page-cabinet-messages__inbox-time {
  display: block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.page-cabinet__head-actions:not(.page-cabinet__head-actions--tiles) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  align-items: center;
}

.page-cabinet__msg-badge {
  display: inline-block;
  min-width: 1.25em;
  padding: 2px 7px;
  margin-left: 2px;
  font-size: 0.78em;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  vertical-align: middle;
}

.review-card__msg {
  margin: 2px 0 0;
  font-size: 0.78rem;
}

.review-card__msg-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.review-card__msg-link:hover {
  text-decoration: underline;
}

.review-dialog__msg {
  margin: 8px 0 0;
  font-size: 0.88rem;
}

.review-dialog__msg-link {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.review-dialog__msg-link:hover {
  text-decoration: underline;
}

.nav-bar__msg-badge {
  display: inline-block;
  min-width: 1.1rem;
  margin-left: 4px;
  padding: 1px 6px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
  vertical-align: middle;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
}

@media (max-width: 900px) {
  .nav-bar__sub a .nav-bar__msg-badge {
    background: var(--primary);
    color: #fff;
  }
}

.page-tb__comments-time {
  font-size: 0.8rem;
  color: var(--muted);
}

.page-tb__comments-body {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.page-tb__comments-formCard {
  padding: 18px 18px 20px;
  background: rgba(15, 118, 110, 0.05);
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 14px;
}

.page-tb__comments-form-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.page-tb__comments-form-meta {
  margin: 6px 0 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

.page-tb__comments-textarea {
  min-height: 100px;
  resize: vertical;
}

.page-tb__comments-submit {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--primary);
  color: #fff;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.page-tb__comments-submit:hover {
  background: var(--primary-600);
  color: #fff;
}

.page-tb__comments-guest {
  margin: 0;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.page-tb__comments-guest-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.page-tb__comments-guest-text a {
  color: var(--primary);
  font-weight: 600;
}

.page-travel-buddies__flash {
  margin-bottom: 16px;
}

.page-tb__moderation-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-tb__mod-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.page-tb__mod-meta {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

/* Компактная форма «попутчики» */
.page-tb-compact {
  padding: 4px 2px;
}

.page-tb-compact__head .page-reviews__lead {
  margin-top: 6px;
}

.page-tb-compact__section {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.page-tb-compact__section:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
  padding-bottom: 0;
}

.page-tb-compact__section--dep {
  position: relative;
}

.page-tb-compact__dep-typeahead {
  position: relative;
}

.page-tb-compact__section-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-tb-compact__grid2 {
  display: grid;
  gap: 20px 28px;
}

@media (min-width: 800px) {
  .page-tb-compact__grid2 {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.page-tb-compact__chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-tb-compact__chiprow--stack {
  flex-direction: column;
  align-items: stretch;
}

.page-tb-compact__chiprow--stack .page-tb-compact__chip {
  width: 100%;
}

@media (min-width: 480px) {
  .page-tb-compact__chiprow--stack {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .page-tb-compact__chiprow--stack .page-tb-compact__chip {
    width: auto;
  }
}

.page-tb-compact__chip {
  position: relative;
  cursor: pointer;
  margin: 0;
}

.page-tb-compact__chip-input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.page-tb-compact__chip-ui {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 0.9rem;
  line-height: 1.3;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.page-tb-compact__chip-input:focus-visible + .page-tb-compact__chip-ui {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.page-tb-compact__chip-input:checked + .page-tb-compact__chip-ui {
  background: rgba(15, 118, 110, 0.14);
  border-color: var(--primary);
  font-weight: 600;
}

.page-tb-compact__microhint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.page-tb-compact__dates-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.page-tb-compact__field {
  flex: 1 1 200px;
  min-width: 160px;
}

.page-tb-compact__dep-input {
  margin-top: 4px;
}

.page-tb-compact__suggest {
  list-style: none;
  margin: 0;
  padding: 4px 0;
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.page-tb-compact__suggest-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.92rem;
}

.page-tb-compact__suggest-item:hover {
  background: rgba(15, 118, 110, 0.08);
}

.page-tb-compact__dep-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  min-height: 8px;
}

.page-tb-compact__dep-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.28);
  font-size: 0.88rem;
  max-width: 100%;
}

.page-tb-compact__dep-pill-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-tb-compact__dep-pill-x {
  flex-shrink: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0 2px;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--muted);
}

.page-tb-compact__dep-pill-x:hover {
  color: var(--text);
}

.page-tb-compact__dest-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-tb-compact__dest-slot {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 12px;
  background: rgba(244, 246, 243, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.page-tb-compact__dest-slot--hidden {
  display: none !important;
}

.page-tb-compact__dest-num {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 10px;
  width: 1.25rem;
}

.page-tb-compact__dest-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  flex: 1;
  min-width: 0;
}

.page-tb-compact__add-row-wrap {
  margin: 12px 0 0;
}

.page-tb-compact__add-row {
  border: 1px dashed rgba(15, 118, 110, 0.45);
  background: transparent;
  color: var(--primary);
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}

.page-tb-compact__add-row:hover {
  background: rgba(15, 118, 110, 0.06);
}

/* Секции */
.section {
  padding: 32px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
}

.page-hot-tours__title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-hot-tours__tip {
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.95) 0%, rgba(255, 251, 235, 0.9) 100%);
  border: 1px solid rgba(15, 118, 110, 0.2);
  box-shadow: 0 2px 12px rgba(15, 118, 110, 0.06);
}

.page-hot-tours__tip-link {
  display: inline;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--primary);
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.page-hot-tours__tip-link:hover {
  color: #0f766e;
  text-decoration: underline;
}

.page-hot-tours__tip-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Страница 404 */
.page-404__intro {
  margin-bottom: 28px;
  max-width: 36rem;
}

.page-404__code {
  margin: 0 0 8px;
  font-size: clamp(3rem, 10vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  color: rgba(15, 118, 110, 0.22);
}

.page-404__title {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.page-404__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-404__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 22rem;
}

.page-404__link {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.06);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.page-404__link:hover {
  background: rgba(15, 118, 110, 0.06);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.1);
}

.page-404__link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.page-404__back {
  margin: 0;
}

.page-404__home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary) 100%);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
}

.page-404__home-btn:hover {
  filter: brightness(1.05);
}

.page-404__home-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Страница «Онлайн-табло аэропортов» */
.page-online-tablo__intro {
  margin-bottom: 24px;
  max-width: 52rem;
}

.page-online-tablo__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.page-online-tablo__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.airport-board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 40rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 4px 18px rgba(15, 118, 110, 0.06);
}

.airport-board-list__item + .airport-board-list__item {
  border-top: 1px solid var(--border);
}

.airport-board-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.airport-board-list__link:hover {
  background: rgba(15, 118, 110, 0.06);
  color: var(--primary);
}

.airport-board-list__link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.airport-board-list__external {
  flex-shrink: 0;
  font-size: 0.95rem;
  opacity: 0.45;
}

.page-online-tablo__note {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 40rem;
}

/* Страница «Минимальные цены» (Tourvisor) */
.page-min-prices {
  padding-top: 28px;
  padding-bottom: 40px;
}

.page-min-prices__inner {
  max-width: 1200px;
}

.page-min-prices__intro {
  margin-bottom: 1.25rem;
  max-width: 52rem;
}

.page-min-prices__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.page-min-prices__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-min-prices__widget {
  width: 100%;
  min-height: 12rem;
}

.page-min-prices__widget .tv-min-price {
  width: 100%;
  min-height: 8rem;
}

/* Страница «ОСАГО» (виджет Pampadu) */
.page-osago {
  padding-top: 28px;
  padding-bottom: 40px;
}

.page-osago__inner {
  max-width: 1100px;
}

.page-osago__intro {
  margin-bottom: 1.25rem;
  max-width: 44rem;
}

.page-osago__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.page-osago__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-osago__widget {
  width: 100%;
  min-width: 320px;
  min-height: 650px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.page-osago__iframe {
  display: block;
  vertical-align: top;
}

/* Страница «Авиабилеты» (виджет Aviasales) */
.page-flights {
  padding-top: 28px;
  padding-bottom: 40px;
}

.page-flights__inner {
  max-width: 1100px;
}

.page-flights__intro {
  margin-bottom: 1.25rem;
  max-width: 44rem;
}

.page-flights__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.page-flights__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-flights__widget {
  width: 100%;
  min-width: 320px;
  border-radius: 12px;
  overflow: visible;
  position: relative;
  z-index: 10;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.page-flights__subsidy {
  margin-top: 2.75rem;
  padding-top: 0;
  padding-bottom: 0;
  max-width: 52rem;
}

.page-flights__subsidy-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-flights__subsidy .page-article__h2 {
  font-size: 1.08rem;
}

.page-flights__options {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-flights__option {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border);
}

.page-flights__option--recommended {
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.08) 0%, rgba(15, 118, 110, 0.02) 100%);
  border-color: rgba(15, 118, 110, 0.22);
  border-left: 3px solid var(--primary);
}

.page-flights__option-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.page-flights__option-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text);
}

.page-flights__option-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-flights__option-text a:hover {
  color: var(--primary-600);
}

.page-flights__subsidy-cta {
  margin: 0.5rem 0 0;
}

.page-flights__subsidy .page-article__callout:last-of-type {
  margin-bottom: 1rem;
}

/* Страница «Отзывы туристов» */
.page-reviews {
  padding-top: 28px;
  padding-bottom: 48px;
}

.page-reviews__inner {
  max-width: 1100px;
}

.page-reviews__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.page-reviews__action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
  margin: 0;
  flex: 0 0 auto;
  align-self: flex-start;
  padding-top: 0.2rem;
}

a.page-reviews__add-btn {
  display: inline-block;
  padding: 12px 18px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s ease;
}

a.page-reviews__add-btn:hover {
  background: var(--primary-600);
  color: #fff;
}

a.page-reviews__add-btn--secondary {
  color: var(--primary);
  background: #fff;
  border: 2px solid var(--primary);
}

a.page-reviews__add-btn--secondary:hover {
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-600, var(--primary));
  border-color: var(--primary-600, var(--primary));
}

button.page-reviews__add-btn {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 10px;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease;
}

button.page-reviews__add-btn:hover {
  background: var(--primary-600);
  color: #fff;
}

button.page-reviews__add-btn--small {
  padding: 8px 14px;
  font-size: 0.875rem;
  border-radius: 8px;
}

.page-reviews--moderation .page-reviews--add-page__inner {
  max-width: 1100px;
}

.reviews-grid--moderation {
  margin-top: 0.5rem;
}

.review-card--pending {
  border-color: rgba(234, 179, 8, 0.45);
  background: linear-gradient(180deg, #fffbeb 0%, var(--card) 2.5rem);
}

.review-card__mod-badge {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #92400e;
  background: #fef3c7;
  border-radius: 6px;
}

.review-card__mod-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.review-card--pending .review-card__action--btn {
  color: #991b1b;
  border-color: rgba(220, 38, 38, 0.35);
}

.review-card--pending .review-card__action--btn:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

.page-reviews--add-page {
  padding-top: 20px;
}

.page-reviews--add-page__inner {
  max-width: 32rem;
}

.page-ind-tour-cabinet-edit .page-ind-tour-cabinet-edit__inner {
  max-width: min(920px, 100%);
}

.page-reviews--add-page__back {
  margin: 0 0 0.5rem;
}

.page-reviews--add-page__back-link {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.page-reviews--add-page__back-link:hover {
  text-decoration: underline;
}

.page-reviews--add-page__head {
  margin-bottom: 1.25rem;
}

.page-reviews__intro {
  margin-bottom: 0;
  max-width: 40rem;
  flex: 1 1 16rem;
  min-width: 0;
}

.page-reviews__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.page-reviews__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-reviews__soon {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 1.75rem;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 50%, #fff 100%);
  box-shadow: 0 2px 12px rgba(15, 118, 110, 0.06);
}

.page-reviews__soon-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--primary);
}

.page-reviews__soon-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.page-reviews__soon-text strong {
  font-weight: 700;
  color: var(--primary);
}

.page-reviews__soon--note {
  border-color: rgba(180, 83, 9, 0.28);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 50%, #fff 100%);
}

.page-reviews__guest-gate {
  margin: 0 0 2rem;
  max-width: min(28rem, 100%);
}

.page-reviews--add-form .page-reviews__guest-gate {
  max-width: 100%;
}

.page-reviews__guest-gate-card {
  position: relative;
  padding: 1.65rem 1.4rem 1.5rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 4px 28px rgba(15, 23, 42, 0.08);
  text-align: center;
}

.page-reviews__guest-gate-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.75rem;
  height: 3.75rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, #ecfdf5 0%, #ccfbf1 45%, #f0fdfa 100%);
  border: 1px solid rgba(15, 118, 110, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.page-reviews__guest-gate-badge-icon {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--primary);
}

.page-reviews__guest-gate-title {
  margin: 0 0 0.65rem;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.page-reviews__guest-gate-text {
  margin: 0 0 1.35rem;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-reviews__guest-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  justify-content: center;
}

.page-reviews__guest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  padding: 0.72rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-reviews__guest-btn--primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.28);
}

.page-reviews__guest-btn--primary:hover {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
}

.page-reviews__guest-btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.28);
}

.page-reviews__guest-btn--secondary {
  color: var(--primary);
  background: #fff;
  border-color: rgba(15, 118, 110, 0.35);
}

.page-reviews__guest-btn--secondary:hover {
  background: #f0fdfa;
  border-color: var(--primary);
  color: var(--primary-600);
}

.page-reviews__guest-btn--secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

@media (max-width: 480px) {
  .page-reviews__guest-gate-actions {
    flex-direction: column;
  }

  .page-reviews__guest-btn {
    width: 100%;
  }
}

.page-reviews .auth-flash {
  margin: 0 0 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-reviews .auth-flash--ok {
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.25);
  color: #065f46;
}

.page-reviews .auth-flash--err {
  background: #fef2f2;
  border: 1px solid rgba(185, 28, 28, 0.25);
  color: #991b1b;
}

.page-reviews .auth-flash a {
  color: #0f766e;
  text-decoration: underline;
}

.page-reviews .auth-flash a:hover {
  color: #0d9488;
}

.page-reviews__flash {
  margin-bottom: 1.25rem;
}

.page-reviews__form-block {
  margin: 0 0 1.75rem;
  max-width: 32rem;
}

.page-reviews--add-form .page-reviews--add-page__inner {
  max-width: 36rem;
}

.page-reviews--add-form .page-reviews__form-block {
  max-width: 100%;
}

.page-reviews__form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.35rem 1.25rem 1.5rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.page-reviews__form-card--has-submit-overlay {
  position: relative;
}

.page-reviews__submit-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
}

.page-reviews__submit-overlay[hidden] {
  display: none;
}

.page-reviews__submit-overlay-card {
  max-width: 22rem;
  width: 100%;
  padding: 1.25rem 1.35rem;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
}

.page-reviews__submit-overlay-title {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.page-reviews__submit-overlay-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted, #64748b);
}

.page-reviews__submit-progress-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  overflow: hidden;
}

.page-reviews__submit-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--primary-600, #0d9488),
    var(--primary, #0f766e)
  );
  width: 0%;
  transition: width 0.12s ease-out;
}

.page-reviews__submit-progress-track--indeterminate .page-reviews__submit-progress-fill {
  width: 40% !important;
  animation: review-submit-fill-wobble 1.1s ease-in-out infinite;
}

@keyframes review-submit-fill-wobble {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(65%);
  }
  100% {
    transform: translateX(250%);
  }
}

.page-reviews__submit-progress-label {
  margin: 0.45rem 0 0;
  font-size: 0.87rem;
  color: var(--muted, #64748b);
  text-align: center;
}

.page-reviews__form-meta--card-top {
  margin: 0 0 1.1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.page-reviews__fieldset {
  margin: 0 0 1.1rem;
}

.page-reviews__crm-cascade {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.page-reviews__crm-combobox {
  position: relative;
}

.page-reviews__crm-combobox-input[aria-busy="true"] {
  opacity: 0.88;
}

.page-reviews__crm-combobox-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  max-height: min(45vh, 280px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  z-index: 60;
}

.page-reviews__crm-combobox-option {
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.35;
}

.page-reviews__crm-combobox-option:hover,
.page-reviews__crm-combobox-option.is-active {
  background: rgba(15, 118, 110, 0.12);
  color: var(--text);
}

.page-reviews__form--modern {
  gap: 0.35rem;
}

.page-reviews__form--modern > .auth-form__label {
  margin-top: 0.35rem;
}

.page-reviews__form--modern .auth-form__input,
.page-reviews__form--modern .page-reviews__textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-reviews__form--modern .auth-form__input:focus,
.page-reviews__form--modern .page-reviews__textarea:focus {
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
  outline: none;
}

.page-reviews__uploads--modern {
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px dashed rgba(15, 23, 42, 0.12);
  gap: 0.85rem;
}

.page-reviews__uploads--modern .auth-form__hint {
  margin: -0.15rem 0 0.2rem;
  font-size: 0.88rem;
}

.page-reviews__file--modern {
  padding: 0.55rem 0.4rem;
  background: #fff;
}

.page-reviews__submit {
  width: 100%;
  margin-top: 0.65rem;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1.02rem;
}

/* Пошаговое добавление отзыва */
.page-reviews__wizard {
  margin-top: 0.35rem;
}

.page-reviews__wizard-progress {
  margin: 0 0 1rem;
}

.page-reviews__wizard-progress-text {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.page-reviews__wizard-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.12);
  overflow: hidden;
}

.page-reviews__wizard-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-600, #0d9488) 100%
  );
  transition: width 0.25s ease;
}

.page-reviews__wizard-client-msg {
  margin: 0 0 0.85rem;
}

.page-reviews__wizard-steps {
  position: relative;
}

.page-reviews__wizard-step {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.page-reviews__wizard-step.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.page-reviews__wizard-lead {
  margin: -0.25rem 0 0.85rem;
}

.page-reviews__wizard-hint {
  margin: -0.35rem 0 0.85rem;
}

.page-reviews__wizard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.05rem;
}

.page-reviews__wizard-actions--split {
  justify-content: space-between;
}

.page-reviews__wizard-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.15rem;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-reviews__wizard-btn--primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.page-reviews__wizard-btn--primary:hover {
  background: var(--primary-600, #0d9488);
  border-color: var(--primary-600, #0d9488);
}

.page-reviews__wizard-btn--ghost {
  background: transparent;
  color: var(--primary);
  border-color: rgba(15, 118, 110, 0.38);
}

.page-reviews__wizard-btn--ghost:hover {
  background: rgba(15, 118, 110, 0.08);
}

@media (max-width: 520px) {
  .page-reviews__wizard-actions--split .page-reviews__wizard-submit {
    width: 100%;
    order: -1;
  }

  .page-reviews__wizard-actions--split {
    flex-direction: column;
    align-items: stretch;
  }

  .page-reviews__wizard-actions--split .page-reviews__wizard-btn {
    width: 100%;
    justify-content: center;
  }
}

.page-reviews__wizard-submit {
  width: auto;
  min-width: min(100%, 13.5rem);
  margin-top: 0;
}

.page-reviews__star-rating {
  margin: 0 0 0.5rem;
}

.page-reviews__stars-inner {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.2rem 0.25rem;
  margin: 0.2rem 0 0.85rem;
}

.page-reviews__star-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 2.45rem;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}

.page-reviews__star-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  box-sizing: border-box;
}

.page-reviews__star-shape {
  position: relative;
  z-index: 1;
  pointer-events: none;
  font-size: clamp(1.65rem, 5vw, 2.15rem);
  line-height: 1;
  color: #cbd5e1;
  transition:
    color 0.12s ease,
    transform 0.12s ease;
}

.page-reviews__star-btn .visually-hidden {
  pointer-events: none;
}

.page-reviews__star-btn:hover .page-reviews__star-shape {
  color: #94a3b8;
}

.page-reviews__stars-inner:has(#review-star-1:checked) .page-reviews__star-btn:nth-child(-n + 1) .page-reviews__star-shape,
.page-reviews__stars-inner:has(#review-star-2:checked) .page-reviews__star-btn:nth-child(-n + 2) .page-reviews__star-shape,
.page-reviews__stars-inner:has(#review-star-3:checked) .page-reviews__star-btn:nth-child(-n + 3) .page-reviews__star-shape,
.page-reviews__stars-inner:has(#review-star-4:checked) .page-reviews__star-btn:nth-child(-n + 4) .page-reviews__star-shape,
.page-reviews__stars-inner:has(#review-star-5:checked) .page-reviews__star-btn:nth-child(-n + 5) .page-reviews__star-shape {
  color: #f59e0b;
}

.page-reviews__star-input:focus-visible + .page-reviews__star-shape {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
  border-radius: 6px;
  color: #d97706;
}

.page-reviews__form-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-reviews__form-hint,
.page-reviews__form-meta {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-reviews__form-meta {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

.page-reviews__form {
  max-width: 100%;
}

.page-reviews__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.page-reviews__field {
  flex: 1 1 10rem;
  min-width: 0;
}

.page-reviews__uploads {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.page-reviews__existing-media {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.page-reviews__existing-media--modern {
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px dashed rgba(15, 23, 42, 0.12);
  gap: 0.85rem;
}

.page-reviews__existing-media--modern .auth-form__hint {
  margin: -0.15rem 0 0.2rem;
  font-size: 0.88rem;
}

.page-reviews__media-edit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.page-reviews__media-edit-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 100%;
}

.page-reviews__media-edit-thumb {
  display: block;
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.page-reviews__media-edit-video-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.page-reviews__media-edit-video-link:hover {
  text-decoration: underline;
}

.page-reviews__media-edit-remove {
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-reviews__file {
  padding: 0.5rem 0.35rem;
  font-size: 0.9rem;
}

.review-card__video-native {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0f172a;
}

.page-reviews__textarea {
  min-height: 7rem;
  resize: vertical;
  line-height: 1.45;
}

.reviews-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
}

.reviews-grid__item {
  margin: 0;
}

.review-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.25rem 1.35rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.review-card::before {
  content: '“';
  position: absolute;
  top: 0.35rem;
  right: 1rem;
  font-size: 3.5rem;
  line-height: 1;
  font-family: Georgia, 'Times New Roman', serif;
  color: rgba(15, 118, 110, 0.12);
  pointer-events: none;
}

.review-card:hover {
  border-color: rgba(15, 118, 110, 0.25);
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.1);
}

.review-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 8px;
  font-size: 0.8rem;
}

.review-card__action-form {
  display: inline;
  margin: 0;
  padding: 0;
}

.review-card__action--link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-card__action--link:hover {
  text-decoration: none;
}

.review-card__action--btn {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  font-size: inherit;
  font-family: inherit;
  line-height: 1.3;
  cursor: pointer;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.review-card__action--btn:hover {
  background: #f3f4f6;
  border-color: #cbd5e1;
}

.review-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-card__avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-600) 0%, var(--primary) 100%);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.review-card__meta {
  min-width: 0;
}

.review-card__name {
  margin: 0 0 2px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.review-card__name-link {
  color: inherit;
  text-decoration: none;
}

.review-card__name-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.review-card__city {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.review-card__stars {
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 2px;
}

.review-card__star {
  color: #d1d5db;
}

.review-card__star--on {
  color: #fbbf24;
  text-shadow: 0 1px 0 rgba(180, 83, 9, 0.15);
}

.review-card__quote {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
  flex: 1;
}

.review-card__quote p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

/* Фото и видео к отзыву (макет) */
.review-card__media {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 14px;
}

.review-card__figure {
  margin: 0;
  flex: 1 1 100px;
  min-width: 5.5rem;
  max-width: calc(50% - 4px);
}

.review-card__photo {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  border-radius: 10px;
  border: 1px solid var(--border);
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
}

.review-card__video-wrap {
  margin: 0;
  flex: 1 1 100%;
  width: 100%;
  min-width: 100%;
}

.review-card__video {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
}

.review-card__video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-card__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
}

.review-card__video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.review-card__video-play-icon {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.35));
}

.review-card__video-time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(15, 23, 42, 0.75);
  z-index: 1;
}

.review-card__media-caption {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.review-card__footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.review-card__tour {
  font-weight: 600;
  color: var(--primary);
}

.review-card__sep {
  opacity: 0.5;
}

.review-card__date {
  color: var(--muted);
}

/* Отзывы: компактная сетка и карточка, лента медиа, модальное «Читать полностью» */
.reviews-grid--compact {
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
}

.review-card--compact {
  padding: 0.85rem 1rem 0.9rem;
  border-radius: 12px;
}

.review-card--compact::before {
  top: 0.2rem;
  right: 0.65rem;
  font-size: 2.75rem;
  opacity: 0.85;
}

.review-card--compact .review-card__top {
  margin-bottom: 6px;
  gap: 10px;
}

.review-card--compact .review-card__avatar {
  width: 2.35rem;
  height: 2.35rem;
  font-size: 1rem;
}

.review-card--compact .review-card__name {
  font-size: 0.98rem;
  margin-bottom: 0;
}

.review-card--compact .review-card__city {
  font-size: 0.8rem;
}

.review-card--compact .review-card__stars {
  margin-bottom: 6px;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.review-card--compact .review-card__quote {
  margin-bottom: 0.45rem;
}

.review-card--compact .review-card__quote p {
  font-size: 0.88rem;
  line-height: 1.45;
}

.review-card--compact .review-card__actions {
  margin-bottom: 4px;
  font-size: 0.75rem;
}

.review-card__read-wrap {
  margin: 0 0 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.review-card__media-hint {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.review-card__read-more {
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.review-card__read-more:hover {
  color: var(--primary-600, #0d9488);
}

.review-card__media-group {
  margin: 0 0 0.45rem;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.review-card__media-strip {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.review-card__strip-figure {
  flex: 0 0 auto;
  margin: 0;
}

.review-card__strip-photo {
  display: block;
  width: auto;
  height: 56px;
  max-width: 88px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #f3f4f6;
  vertical-align: middle;
}

.review-card__strip-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-card__strip-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.review-card--compact .review-card__footer {
  padding-top: 8px;
  margin-top: 0.15rem;
  font-size: 0.78rem;
}

.review-dialog {
  padding: 0;
  border: none;
  max-width: calc(100vw - 1rem);
  width: min(28rem, calc(100vw - 1rem));
  max-height: min(90vh, 100dvh);
  margin: auto;
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.25);
}

.review-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.review-dialog__panel {
  position: relative;
  max-height: min(90vh, 100dvh);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.review-dialog__close {
  flex-shrink: 0;
  align-self: flex-end;
  margin: 0;
  padding: 10px 14px;
  border: none;
  border-radius: 0 0 0 12px;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.review-dialog__close:hover {
  color: var(--text);
}

.review-dialog__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 1.1rem 1rem;
}

.review-dialog__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding-right: 2.25rem;
}

.review-dialog__avatar {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(145deg, var(--primary-600) 0%, var(--primary) 100%);
}

.review-dialog__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.review-dialog__name-link {
  color: inherit;
  text-decoration: none;
}

.review-dialog__name-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.review-dialog__place {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.review-dialog__stars {
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-dialog__quote {
  margin: 0 0 1rem;
  padding: 0;
  border: none;
}

.review-dialog__quote p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.review-dialog__media {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
}

.review-dialog__media .review-card__figure {
  flex: 1 1 100px;
  min-width: 5.5rem;
  max-width: calc(50% - 4px);
}

.review-dialog__media .review-card__video-wrap {
  flex: 1 1 100%;
  width: 100%;
  min-width: 100%;
}

.review-dialog__date {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

@media (max-width: 540px) {
  .review-dialog {
    width: 100%;
    max-width: 100vw;
    max-height: 100dvh;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }

  .review-dialog__panel {
    max-height: 100dvh;
    height: 100%;
  }

  .review-dialog__body {
    padding: 0 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .review-dialog__close {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px;
  }
}

.review-card__strip-figure--video .review-card__strip-video {
  pointer-events: none;
}

.review-card__strip-thumb-btn,
.review-card__strip-video-btn {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
  border-radius: 8px;
}

.review-card__strip-thumb-btn:focus-visible,
.review-card__strip-video-btn:focus-visible,
.review-card__photo-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.review-card__strip-video-btn {
  position: relative;
  cursor: pointer;
}

.review-card__strip-video-open {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  color: #fff;
  background: rgba(15, 23, 42, 0.65);
  border-radius: 6px;
  pointer-events: none;
}

.review-card__strip-video-btn .review-card__strip-video {
  display: block;
  height: 56px;
  width: auto;
  max-width: 120px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f172a;
}

.review-card__strip-video-fake {
  display: block;
  position: relative;
  width: 100px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
}

.review-card__photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
  border-radius: 10px;
}

.review-card__video-wrap--lightbox {
  position: relative;
}

.review-lightbox-float {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  line-height: 1;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.2);
  cursor: pointer;
}

.review-lightbox-float:hover {
  background: #fff;
}

.review-lightbox-float__icon {
  display: block;
  margin-top: 2px;
}

.review-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  overflow: visible;
  box-sizing: border-box;
}

.review-lightbox::backdrop {
  background: rgba(15, 23, 42, 0.92);
}

.review-lightbox__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.review-lightbox__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  min-height: min(100dvh, 100vh);
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  box-sizing: border-box;
  pointer-events: none;
}

.review-lightbox__content > * {
  pointer-events: auto;
}

.review-lightbox__close {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top, 0));
  right: calc(12px + env(safe-area-inset-right, 0));
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 50%;
  font-size: 1.65rem;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.review-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.review-lightbox__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  max-width: 100vw;
  flex: 1 1 auto;
  min-height: 0;
  padding: 2.75rem 0.15rem 0.35rem;
  box-sizing: border-box;
}

.review-lightbox__nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  width: 2.75rem;
  height: 3.25rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  font-size: 2rem;
  line-height: 1;
  font-weight: 300;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  transition: background 0.12s ease;
}

.review-lightbox__nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.24);
}

.review-lightbox__nav:disabled {
  opacity: 0.28;
  cursor: default;
}

.review-lightbox__stage {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100vw - 6.5rem);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0;
  box-sizing: border-box;
}

.review-lightbox__img {
  max-width: 100%;
  max-height: min(82dvh, 82vh);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.review-lightbox__video {
  max-width: 100%;
  max-height: min(82dvh, 82vh);
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #000;
}

.review-lightbox__counter {
  margin: 0 0 0.5rem;
  padding: 0 1rem;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.88);
}

.review-lightbox__media--hidden {
  display: none !important;
}

/* Статья (советы туристам) */
.page-article__inner {
  max-width: 44rem;
}

.page-article__header {
  margin-bottom: 28px;
}

.page-article__title {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 4vw, 1.95rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-article__lead {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--muted);
}

.page-article__body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text);
}

.page-article__section {
  margin-bottom: 1.5rem;
}

.page-article__section:last-of-type {
  margin-bottom: 0;
}

.page-article__h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.page-article__section p {
  margin: 0 0 1rem;
}

.page-article__section p:last-child {
  margin-bottom: 0;
}

.page-article__list {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.page-article__list:last-child {
  margin-bottom: 0;
}

.page-article__list--bullets li {
  margin-bottom: 0.4rem;
}

.page-article__list--numbered li {
  margin-bottom: 0.65rem;
}

.page-article__offices .page-article__office {
  margin-bottom: 1.35rem;
  padding: 1rem 1rem 1rem 1.1rem;
  border-left: 3px solid var(--primary);
  background: rgba(15, 118, 110, 0.05);
  border-radius: 0 10px 10px 0;
}

.page-article__offices .page-article__office:last-child {
  margin-bottom: 0;
}

.page-article__office-city {
  margin: 0 0 0.35rem !important;
  font-weight: 700;
  color: var(--text);
}

.page-article__office-addr,
.page-article__office-hours,
.page-article__office-phone {
  margin: 0 0 0.25rem !important;
  font-size: 0.98rem;
}

.page-article__office-phone a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.page-article__office-phone a:hover {
  text-decoration: underline;
}

.page-article__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.page-article__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(180deg, var(--primary-600) 0%, var(--primary) 100%);
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.22);
}

.page-article__btn:hover {
  filter: brightness(1.05);
}

.page-article__btn--outline {
  color: var(--primary);
  background: var(--card);
  border: 1px solid rgba(15, 118, 110, 0.4);
  box-shadow: none;
}

.page-article__btn--outline:hover {
  background: rgba(15, 118, 110, 0.06);
}

/* Статья «Как поймать горящий тур» — усиленная вёрстка */
.page-article--guide {
  padding-top: 20px;
  padding-bottom: 48px;
}

.page-article--guide .page-article__inner {
  max-width: 52rem;
}

.page-article--guide .page-article__hero {
  margin: 0 0 28px;
  padding: 28px 24px 26px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(240, 253, 250, 0.98) 0%,
    rgba(255, 251, 235, 0.75) 48%,
    rgba(254, 243, 199, 0.35) 100%
  );
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.page-article--guide .page-article__title {
  margin-bottom: 12px;
  background: linear-gradient(120deg, #0f766e 0%, #0d9488 45%, #b45309 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-contrast: more) {
  .page-article--guide .page-article__title {
    background: none;
    color: var(--primary);
    -webkit-background-clip: unset;
    background-clip: unset;
  }
}

.page-article--guide .page-article__lead {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
}

.page-article--guide .page-article__panel {
  margin-bottom: 1.5rem;
  padding: 22px 22px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.page-article--guide .page-article__h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(15, 118, 110, 0.15);
}

.page-article--guide .page-article__h2--steps {
  margin-top: 8px;
  border-bottom: none;
  padding-bottom: 0;
}

.page-article--guide .page-article__checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-article--guide .page-article__checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.06) 0%, transparent 100%);
  border-left: 3px solid var(--primary-600);
}

.page-article--guide .page-article__checklist-text {
  flex: 1;
  min-width: 0;
}

.page-article--guide .page-article__question {
  margin: 0 0 1.5rem;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 2px 12px rgba(180, 83, 9, 0.08);
}

.page-article--guide .page-article__question-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  color: #92400e;
}

.page-article--guide .page-article__intro-p {
  margin: 0 0 1rem;
  font-size: 1.04rem;
  line-height: 1.65;
}

.page-article--guide .page-article__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: kpt-step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-article--guide .page-article__step {
  counter-increment: kpt-step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

.page-article--guide .page-article__step::before {
  content: counter(kpt-step);
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(165deg, var(--primary-600) 0%, var(--primary) 100%);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.page-article--guide .page-article__step-body {
  flex: 1;
  padding-top: 4px;
  line-height: 1.6;
}

.page-article--guide .page-article__callout {
  margin: 0 0 14px;
  padding: 16px 18px 16px 20px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.page-article--guide .page-article__callout:last-of-type {
  margin-bottom: 1.5rem;
}

.page-article--guide .page-article__callout-p {
  margin: 6px 0 0;
  font-size: 0.98rem;
  line-height: 1.58;
}

.page-article--guide .page-article__callout-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.55);
}

.page-article--guide .page-article__callout--info {
  background: linear-gradient(135deg, #ecfeff 0%, #e0f2fe 100%);
  border: 1px solid rgba(14, 165, 233, 0.28);
}

.page-article--guide .page-article__callout--info .page-article__callout-label {
  color: #0369a1;
}

.page-article--guide .page-article__callout--positive {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.page-article--guide .page-article__callout--positive .page-article__callout-label {
  color: #047857;
}

.page-article--guide .page-article__callout--urgent {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.page-article--guide .page-article__callout--urgent .page-article__callout-label {
  color: #6d28d9;
}

.page-article--guide .page-article__offices {
  margin-bottom: 0;
}

.page-article--guide .page-article__office-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .page-article--guide .page-article__office-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}

.page-article--guide .page-article__office {
  margin: 0;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.page-article--guide .page-article__office:hover {
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
  transform: translateY(-2px);
}

.page-article--guide .page-article__office-city {
  font-size: 1.02rem;
  color: var(--primary);
}

.page-article--guide .page-article__office-tel-prefix {
  margin-right: 6px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.92rem;
}

.page-article--guide .page-article__cta--bar {
  margin-top: 2rem;
  padding: 22px 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
  border-top: none;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.06) 0%, rgba(255, 255, 255, 0.9) 100%);
  justify-content: center;
}

.page-article--guide .page-article__cta--bar .page-article__btn {
  min-width: 10rem;
  justify-content: center;
}

/* Страница «Контакты» */
.page-contacts__intro {
  margin-bottom: 28px;
  max-width: 52rem;
}

.page-contacts__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.page-contacts__lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.contact-card {
  margin: 0;
  padding: 22px 22px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 18px rgba(15, 118, 110, 0.06);
}

.contact-card__title {
  margin: 0 0 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.contact-card__address {
  margin: 0 0 14px;
  font-size: 15px;
  font-style: normal;
  line-height: 1.45;
  color: var(--text);
}

.contact-card__phone {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.contact-card__phone:hover {
  text-decoration: underline;
}

.page-contacts__note {
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 40rem;
}

/* Юридические страницы (политика конфиденциальности и т.п.) */
.page-legal {
  padding-top: 28px;
  padding-bottom: 40px;
}

.page-legal__inner {
  max-width: 44rem;
}

.page-legal__title {
  margin: 0 0 16px;
  font-size: clamp(1.45rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}

.page-legal__updated {
  margin: 0 0 28px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-legal__section {
  margin-bottom: 1.5rem;
}

.page-legal__section:last-child {
  margin-bottom: 0;
}

.page-legal__h2 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.page-legal__section p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

.page-legal__section p:last-child {
  margin-bottom: 0;
}

.page-legal__list {
  margin: 8px 0 0;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.page-legal__list li {
  margin-bottom: 6px;
}

.page-legal__list a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.page-legal__list a:hover {
  text-decoration: underline;
}

.page-legal a {
  color: var(--primary);
  text-decoration: none;
}

.page-legal a:hover {
  text-decoration: underline;
}

.page-promo-stub__hint {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
}

.page-promo-stub__back {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}

.page-promo-stub__back:hover {
  text-decoration: underline;
}

/* Промокоды pages/promo.php */
.page-promo {
  position: relative;
}

/* Таблица промокодов на всю ширину контейнера сайта (не узкая колонка юр. страниц) */
.page-promo__inner {
  max-width: 1200px;
}

.page-promo .auth-flash {
  margin: 0 0 1rem;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.page-promo .auth-flash--ok {
  background: #ecfdf5;
  border: 1px solid rgba(15, 118, 110, 0.25);
  color: #065f46;
}

.page-promo .auth-flash--err {
  background: #fef2f2;
  border: 1px solid rgba(185, 28, 28, 0.25);
  color: #991b1b;
}

.page-promo__flash {
  margin-bottom: 1rem;
}

.promo-codes-wrap {
  margin-top: 0.75rem;
}

.promo-codes-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 0.75rem;
}

.promo-codes-toolbar__add {
  padding: 9px 18px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  line-height: 1.25;
}

.promo-codes-toolbar__add:hover {
  background: var(--primary-600);
}

.promo-codes-toolbar__add:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.45);
  outline-offset: 2px;
}

.promo-codes-table__row--add td {
  background: #f0fdfa;
  vertical-align: middle;
}

.promo-codes-table__row--add .promo-codes-table__actions-edit--always {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.promo-codes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.45;
}

.promo-codes-table th,
.promo-codes-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border);
  vertical-align: top;
}

.promo-codes-table thead th {
  background: #f3faf9;
  font-weight: 700;
}

.promo-codes-table__code {
  white-space: nowrap;
  width: 1%;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.promo-codes-table__desc {
  word-break: break-word;
}

.promo-codes-table__row--upcoming td {
  background: #eff6ff;
}

.promo-codes-table__row--active td {
  background: #ecfdf5;
}

.promo-codes-table__row--expired td {
  background: #f3f4f6;
  color: #4b5563;
}

.promo-codes-table__row--expired .promo-codes-table__code-inner {
  color: #6b7280;
}

/* Скрытые POST-формы (поля в строках таблицы через атрибут form=) */
.promo-codes-hidden-forms {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.promo-codes-table--staff {
  table-layout: fixed;
  width: 100%;
}

.promo-codes-table--staff th:nth-child(1),
.promo-codes-table--staff td:nth-child(1) {
  width: 11%;
}

.promo-codes-table--staff th:nth-child(2),
.promo-codes-table--staff td:nth-child(2) {
  width: 40%;
}

.promo-codes-table--staff th:nth-child(3),
.promo-codes-table--staff td:nth-child(3),
.promo-codes-table--staff th:nth-child(4),
.promo-codes-table--staff td:nth-child(4) {
  width: 14%;
}

.promo-codes-table--staff th:nth-child(5),
.promo-codes-table--staff td:nth-child(5) {
  width: 7%;
  text-align: center;
}

.promo-codes-table--staff th:nth-child(6),
.promo-codes-table--staff td:nth-child(6) {
  width: 12%;
}

.promo-codes-table--staff th,
.promo-codes-table--staff td {
  padding: 8px 10px;
  vertical-align: middle;
}

.promo-codes-table--staff .promo-codes-table__desc {
  word-break: break-word;
}

/* Даты в узкой колонке: без min-width, иначе Chrome раздувает input за границы ячейки */
.promo-codes-table--staff .promo-codes-table__dt {
  overflow: hidden;
}

.promo-codes-table--staff .promo-codes-table__dt .promo-codes-table__edit {
  display: block;
  min-width: 0;
  max-width: 100%;
}

.promo-codes-table--staff .promo-codes-table__sort .promo-codes-table__view {
  display: inline-block;
  min-width: 1.5rem;
}

/* Просмотр / редактирование строки (--add исключена: в ней всегда видны «Сохранить» и «Отменить») */
.promo-codes-table--staff .promo-codes-table__row:not(.promo-codes-table__row--editing):not(.promo-codes-table__row--add) .promo-codes-table__edit,
.promo-codes-table--staff .promo-codes-table__row:not(.promo-codes-table__row--editing):not(.promo-codes-table__row--add) .promo-codes-table__actions-edit {
  display: none !important;
}

.promo-codes-table--staff .promo-codes-table__row--editing .promo-codes-table__view,
.promo-codes-table--staff .promo-codes-table__row--editing .promo-codes-table__actions-view {
  display: none !important;
}

.promo-codes-table__input {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.promo-codes-table__input:hover {
  border-color: rgba(15, 23, 42, 0.18);
}

.promo-codes-table__input:focus {
  outline: none;
  border-color: rgba(13, 148, 136, 0.55);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04), 0 0 0 3px rgba(13, 148, 136, 0.18);
  background: #fff;
}

.promo-codes-table__input--date {
  min-width: 0;
}

.promo-codes-table--staff .promo-codes-table__input--date {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-right: 4px;
  font-size: 0.85rem;
}

.promo-codes-table__input--sort {
  width: 100%;
  max-width: 4.25rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.promo-codes-table__actions {
  vertical-align: middle;
}

.promo-codes-table__actions-view,
.promo-codes-table__actions-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.promo-codes-table__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  cursor: pointer;
  line-height: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.promo-codes-table__icon-btn:hover {
  background: #fff;
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--primary);
}

.promo-codes-table__icon-btn:active {
  transform: scale(0.96);
}

.promo-codes-table__icon-btn:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.45);
  outline-offset: 2px;
}

.promo-codes-table__icon-svg {
  display: block;
  flex-shrink: 0;
}

.promo-codes-table__icon-btn--edit {
  border-color: rgba(13, 148, 136, 0.25);
  background: rgba(255, 255, 255, 0.98);
  color: var(--primary);
}

.promo-codes-table__icon-btn--edit:hover {
  background: rgba(236, 253, 245, 0.95);
}

.promo-codes-table__icon-btn--save {
  border: none;
  background: var(--primary);
  color: #fff;
}

.promo-codes-table__icon-btn--save:hover {
  background: var(--primary-600);
  color: #fff;
}

.promo-codes-table__icon-btn--cancel {
  border-color: rgba(15, 23, 42, 0.12);
  color: #64748b;
}

.promo-codes-table__icon-btn--cancel:hover {
  border-color: rgba(15, 23, 42, 0.22);
  color: var(--text);
}

.promo-codes-table__icon-btn--del {
  border-color: rgba(185, 28, 28, 0.3);
  background: rgba(254, 242, 242, 0.95);
  color: #991b1b;
}

.promo-codes-table__icon-btn--del:hover {
  background: #fee2e2;
  border-color: rgba(185, 28, 28, 0.45);
  color: #7f1d1d;
}

.promo-codes-filter {
  margin: 0 0 0.75rem;
}

.promo-codes-filter__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}

.promo-codes-filter__label input {
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--primary);
}

.promo-codes-form__row--dates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 12px 16px;
  max-width: 36rem;
}

.promo-codes-form__hint {
  margin: -4px 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.45;
}

.page-promo__empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-promo__empty--staff {
  margin: 0 0 0.75rem;
}

.page-promo__h3 {
  margin: 1.25rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.promo-codes-form__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  max-width: 36rem;
}

.promo-codes-form__row--narrow {
  max-width: 10rem;
}

.promo-codes-form__label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.promo-codes-form__input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.promo-codes-form__submit {
  margin-top: 2px;
  padding: 8px 18px;
  font: inherit;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.promo-codes-form__submit:hover {
  background: var(--primary-600);
}

.page-promo__back {
  margin-top: 1.75rem;
}

/* Страница «Реквизиты» */
.page-rekvizity__plain-list strong {
  font-weight: 600;
}

.page-rekvizity__addr-fact > strong {
  display: block;
  margin-bottom: 6px;
}

.page-rekvizity__sublist {
  margin: 0;
  padding-left: 1.25rem;
  list-style: disc;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

.page-rekvizity__sublist li {
  margin-bottom: 4px;
}

.page-rekvizity__sublist li:last-child {
  margin-bottom: 0;
}

.page-rekvizity__banks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.rekvizity-bank {
  margin: 0;
  padding: 20px 20px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-left: 4px solid var(--primary);
  box-shadow: 0 4px 18px rgba(15, 118, 110, 0.06);
}

.rekvizity-bank__title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.rekvizity-bank__dl {
  margin: 0;
}

.rekvizity-bank__row {
  display: grid;
  grid-template-columns: minmax(0, 11rem) 1fr;
  gap: 8px 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.45;
}

.rekvizity-bank__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.rekvizity-bank__row:first-child {
  padding-top: 0;
}

.rekvizity-bank__row dt {
  margin: 0;
  font-weight: 600;
  color: var(--muted);
}

.rekvizity-bank__row dd {
  margin: 0;
  font-weight: 500;
  color: var(--text);
  word-break: break-word;
}

.page-rekvizity__basis {
  margin-top: 6px !important;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 480px) {
  .rekvizity-bank__row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}

.feature .title {
  font-weight: 600;
  margin-bottom: 6px;
}

.feature .muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Подвал */
.footer {
  background: #fafaf9;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  padding: 24px 0;
}

.footer p {
  margin: 0;
}

.footer p + p {
  margin-top: 6px;
}

.footer__link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.footer__sep {
  color: var(--border);
  user-select: none;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
    min-height: 0;
    border-radius: 12px;
    overflow: visible;
  }

  .hero-split__left {
    padding: 1.1rem 20px 1.25rem;
  }

  .hero-split__right {
    display: none;
  }

  .hero-title--split {
    font-size: 1.05rem;
  }

  .hero-tagline--split {
    font-size: 0.9rem;
  }

  .messenger-pill {
    font-size: 14px;
    min-height: 44px;
    padding: 10px 12px;
  }

  .messenger-pill__icon svg {
    width: 20px;
    height: 20px;
  }

  .header-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ——— Индивидуальные туры (лента / деталь / кабинет) ——— */
.page-ind-tours__inner {
  max-width: 920px;
}

.page-ind-tours__head {
  margin-bottom: 1.5rem;
}

.page-ind-tours__title {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text, #0f172a);
}

.page-ind-tours__lead {
  margin: 0;
  color: var(--muted, #64748b);
  line-height: 1.5;
  max-width: 52rem;
}

.page-ind-tours__staff {
  margin: 1rem 0 0;
}

.page-ind-tours__empty {
  margin: 2rem 0;
  color: var(--muted, #64748b);
}

.page-ind-tours__back {
  margin: 0 0 1rem;
}

.ind-tours-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .ind-tours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ind-tour-card {
  margin: 0;
}

.ind-tour-card__link {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  height: 100%;
  box-sizing: border-box;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--border, #e2e8f0);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.ind-tour-card__link:hover {
  border-color: var(--primary, #0d9488);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.12);
}

.ind-tour-card__figure {
  display: block;
  margin: -1rem -1.1rem 0.35rem;
  border-radius: 11px 11px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
}

.ind-tour-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ind-tour-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text, #0f172a);
}

.ind-tour-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted, #64748b);
}

.ind-tour-card__price {
  font-weight: 700;
  color: var(--primary-600, #0d9488);
  margin-top: 0.15rem;
}

.ind-tour-card__excerpt {
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text, #334155);
}

.ind-tour-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 0.35rem;
}

.ind-tour-card__more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary, #0d9488);
}

.ind-tour-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted, #64748b);
}

.ind-tour-stats__published {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.ind-tour-stats__published-label {
  font-weight: 600;
  color: var(--muted, #64748b);
}

.ind-tour-stats__published time {
  font-weight: 700;
  color: var(--text, #334155);
}

.ind-tour-stats__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.ind-tour-stats__item--cmt {
  color: var(--muted, #64748b);
  text-decoration: none;
}

a.ind-tour-stats__item--cmt:hover {
  color: var(--primary, #0d9488);
}

.ind-tour-stats__icon {
  display: flex;
  line-height: 0;
  opacity: 0.85;
}

.ind-tour-stats__num {
  min-width: 1ch;
}

.ind-tour-detail__stats-wrap {
  margin: 0 0 0.85rem;
}

.ind-tour-detail__staff {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border, #e2e8f0);
  background: #f8fafc;
}

.ind-tour-detail__staff-del {
  margin: 0;
}

.ind-tour-detail__summary-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 720px) {
  .ind-tour-detail__summary-row--with-image {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.25rem 1.75rem;
  }

  .ind-tour-detail__summary-row--with-image .ind-tour-detail__media {
    flex: 0 0 min(36%, 320px);
    max-width: 320px;
  }

  .ind-tour-detail__summary-row--with-image .ind-tour-detail__summary {
    flex: 1 1 auto;
    min-width: 0;
  }
}

.ind-tour-detail__media {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border, #e2e8f0);
  background: #e2e8f0;
}

.ind-tour-detail__media-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.ind-tour-detail__summary .ind-tour-detail__title {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.25;
  color: var(--text, #0f172a);
}

.ind-tour-detail__facts {
  display: grid;
  gap: 0.65rem 1.25rem;
  margin: 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--border, #e2e8f0);
}

@media (min-width: 520px) {
  .ind-tour-detail__facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ind-tour-detail__fact {
  margin: 0;
}

.ind-tour-detail__fact dt {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #64748b);
}

.ind-tour-detail__fact dd {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.ind-tour-detail__body {
  margin-top: 1.5rem;
  line-height: 1.65;
  font-size: 1rem;
}

.ind-tour-detail__body > *:first-child {
  margin-top: 0;
}

.ind-tour-detail__body p {
  margin: 0 0 0.85em;
}

.ind-tour-detail__body ul,
.ind-tour-detail__body ol {
  margin: 0 0 0.85em;
  padding-left: 1.35em;
}

.ind-tour-detail__body blockquote {
  margin: 0 0 0.85em;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid rgba(15, 118, 110, 0.35);
  color: var(--muted, #64748b);
}

.ind-tour-detail__body h3,
.ind-tour-detail__body h4 {
  margin: 1rem 0 0.45em;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.ind-tour-detail__body h3 {
  font-size: 1.4rem;
}

.ind-tour-detail__body h4 {
  font-size: 1.125rem;
}

.ind-tour-detail__body a {
  color: var(--primary);
  font-weight: 600;
  text-underline-offset: 2px;
}

.ind-tour-detail__comments {
  margin-top: 2.25rem;
}

.ind-tours-cabinet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ind-tours-cabinet-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
}

.ind-tours-cabinet-list__title {
  font-weight: 700;
  text-decoration: none;
  color: var(--text, #0f172a);
}

.ind-tours-cabinet-list__title:hover {
  color: var(--primary, #0d9488);
}

.ind-tours-cabinet-list__meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted, #64748b);
}

.ind-tours-cabinet-list__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ind-tours-cabinet-list__del {
  margin: 0;
}

.ind-tours-cabinet-list__del-submit {
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #b91c1c;
  background: #dc2626;
  color: #fff;
}

.ind-tours-cabinet-list__del-submit:hover {
  background: #b91c1c;
}

.ind-tour-edit-form__row {
  margin-bottom: 1rem;
}

.ind-tour-edit-form__grid2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .ind-tour-edit-form__grid2 {
    grid-template-columns: 1fr 1fr;
  }
}

.ind-tour-edit-form__label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.ind-tour-edit-form__input,
.ind-tour-edit-form__textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  font: inherit;
  border: 1px solid var(--border, #cbd5e1);
  border-radius: 8px;
}

.ind-tour-edit-form__textarea {
  resize: vertical;
  min-height: 200px;
}

.ind-tour-edit-form__actions {
  margin-top: 1.25rem;
}

.ind-tour-edit-form__cover-preview {
  margin: 0 0 0.5rem;
}

.ind-tour-edit-form__cover-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border, #cbd5e1);
}

.ind-tour-edit-form__check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.ind-tour-edit-form__hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted, #64748b);
}

.ind-tour-edit-form__row--editor .ind-tour-edit-form__hint {
  margin-bottom: 0.5rem;
}

.ind-tour-body-editor__wrap .ql-toolbar.ql-snow {
  border-radius: 8px 8px 0 0;
  border-color: var(--border, #cbd5e1);
  border-bottom: none;
  font-family: inherit;
}

.ind-tour-body-editor__wrap .ql-container.ql-snow {
  min-height: 280px;
  font-size: 1rem;
  line-height: 1.55;
  font-family: inherit;
  border-radius: 0 0 8px 8px;
  border-color: var(--border, #cbd5e1);
  background: #fff;
}

.ind-tour-body-editor__wrap .ql-editor {
  min-height: 236px;
}
