/* RELAXIK catalog — own implementation, metrics matched to the reference layout */

:root {
  --bg: #ffffff;
  --bg-soft: #f9fafc;
  --bg-panel: #eff3f9;
  --bg-filters: #f9fafc;
  --text: #252a2d;
  --text-strong: #142149;
  --text-dark-strong: #d0d7dd;
  --muted: #757575;
  --muted-dark: #7e8fa1;
  --border: #dee0ff;
  --border-dark: #63637d;
  --border-input: #d3d6e2;
  --accent: #7616bf;
  --accent-hover: #8719db;
  --accent-deep: #680dad;
  --accent-text: #6d1bc7;
  --accent-dark-theme: #c484f4;
  --accent-border-dark: #cd94f9;
  --select-text: #525666;
  --badge-vip: #f37500;
  --badge-verified: #1fb425;
  --badge-independent: #7616bf;
  --badge-new: #1472c9;
  --badge-video: #ff5e7d;
  --call-bg: #7616bf;
  --radius: 5px;
  --radius-sm: 4px;
  --radius-pill: 12px;
}

.theme-dark {
  --bg: #233040;
  --bg-soft: #2f4155;
  --bg-panel: #2f4155;
  --bg-filters: #2f4155;
  --text: #b3c1d0;
  --text-strong: #d0d7dd;
  --muted: #7e8fa1;
  --border: #63637d;
  --border-input: #63637d;
  --accent: #8719db;
  --accent-hover: #a732f0;
  --accent-text: #cd94f9;
  --accent-dark-theme: #c484f4;
  --select-text: #e9f2fb;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: sans-serif, Tahoma, Arial;
  font-size: 13px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-weight: normal;
}

h1 {
  margin: 12px 0;
  font-size: 18px;
  color: var(--text-strong);
}

h2 {
  margin: 10px 0;
  font-size: 14px;
  color: var(--text-strong);
}

h3 {
  margin: 8px 0;
  font-size: 12px;
  color: var(--text-strong);
}

@media (min-width: 768px) {
  h1 {
    margin: 15px 0;
    font-size: 18px;
  }

  h2 {
    margin: 18px 0;
    font-size: 16px;
  }
}

@media (min-width: 992px) {
  h1 {
    margin: 15px 0;
    font-size: 20px;
  }

  h2 {
    margin: 22px 0;
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  h1 {
    font-size: 20px;
  }
}

a {
  font-size: 13px;
  font-weight: normal;
  text-decoration: none;
  color: var(--accent-text);
  cursor: pointer;
}

a:hover {
  text-decoration: none;
  color: var(--accent-deep);
}

.theme-dark a:hover {
  color: #dbaffd;
}

img {
  border: 0;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 8px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 970px;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  z-index: 200;
  padding: 6px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
}

/* ---------- header / navbar ---------- */

header {
  display: block;
  position: relative;
  padding: 5px 0 5px 0;
  border-bottom: 1px solid #e8e9f2;
  background: #ffffff;
}

.theme-dark header {
  border-bottom-color: #33405a;
  background: #233040;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  height: 41px;
  margin: 0;
  padding: 0;
}

.navbar-logo {
  display: inline-block;
  flex: 1 1 auto;
  margin-right: auto;
}

.navbar-logo a {
  display: inline-block;
}

.navbar-logo a img {
  display: block;
  width: 160px;
  height: 40px;
  margin-top: 0;
}

/* Логотип статичный webp, поэтому вариант для тёмной темы переключаем классами на body. */
.navbar-logo .logo-dark {
  display: none;
}

body.theme-dark .navbar-logo .logo-light {
  display: none;
}

body.theme-dark .navbar-logo .logo-dark {
  display: block;
}

.theme-dark .navbar-logo a img path:first-child {
  opacity: 1;
}

.navbar-logo a img {
  filter: none;
}

.theme-switcher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  color: var(--accent);
}

.theme-switcher img {
  width: 18px;
  height: 18px;
}

.navbar-locale {
  position: relative;
  display: inline-block;
}

.navbar-switcher {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
}

.locale {
  display: inline-block;
  width: 20px;
  height: 15px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-size: cover;
}

.locale-ru {
  background: linear-gradient(#fff 0 33%, #0039a6 33% 66%, #d52b1e 66%);
}

.locale-uk {
  background: linear-gradient(#005bbb 0 50%, #ffd500 50%);
}

.navbar-locales {
  position: absolute;
  right: 0;
  top: 30px;
  display: none;
  min-width: 110px;
  padding: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  z-index: 30;
}

.navbar-locales[data-open='true'] {
  display: block;
}

.navbar-locales a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: var(--radius-sm);
  color: var(--text);
}

.navbar-locales a:hover {
  background: var(--bg-soft);
  color: var(--accent-text);
}

.navbar-menu {
  display: inline-block;
  order: 1;
}

.navbar-theme {
  order: 3;
}

.navbar-locale {
  order: 2;
}

.navbar-items {
  display: inline-block;
  margin: 11px 2px 0 0;
  padding: 0;
  list-style: none;
}

.navbar-item {
  display: inline-block;
}

.navbar-items {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-login,
.navbar-item .navbar-link {
  display: inline-block;
  margin-right: 0;
  padding: 5px 14px;
  line-height: 1.2;
  background: #7616bf;
  border: 1px solid #7616bf;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}

.navbar-item .navbar-link {
  display: none;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 13px;
  line-height: 15px;
  color: var(--accent-text);
}

/* Как в референсе: на узких экранах «Добавить анкету» убирается, иначе хедер переносится. */
@media (min-width: 576px) {
  .navbar-item .navbar-link {
    display: inline-block;
  }
}

.navbar-login:hover {
  background: #8719db;
  border-color: #8719db;
  color: #fff;
}

.navbar-item.active .navbar-login {
  background: #8719db;
  border-color: #8719db;
}

.navbar-item .navbar-link:hover {
  text-decoration: underline;
}

.navbar-item.active .navbar-login {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ---------- breadcrumbs ---------- */

/* Значения и поведение скопированы с референса: разделитель — растянутый значок
   17x32 внутри .breadcrumbs-item, подписи 11/12px с отступом сверху 9px, у последней
   крошки отступ тоже 9px (иначе она провисает ниже остальных). */
.navigation {
  display: block;
  margin: 0 0 15px 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.navigation-breadcrumbs {
  display: block;
  margin: 0;
  padding: 0 4px;
}

.navigation-breadcrumbs ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0;
}

.navigation-breadcrumbs ul li {
  display: inline-block;
  vertical-align: top;
}

.breadcrumbs-item a {
  display: inline-block;
  margin: 9px 0 0 4px;
  font-size: 11px;
  line-height: 1.2;
  vertical-align: top;
}

.breadcrumbs-item img {
  width: 16px;
  height: 30px;
  margin-top: 0;
}

/* иконка дома внутри ссылки — исключение, она квадратная */
.breadcrumbs-item a img {
  width: auto;
  height: 13px;
  margin-top: 0;
  border: 0;
}

.breadcrumbs-last span {
  display: inline-block;
  margin: 9px 0 0 4px;
  font-size: 11px;
  line-height: 1.2;
  color: #767676;
  vertical-align: top;
}

.theme-dark .breadcrumbs-last span {
  color: var(--muted);
}

@media (min-width: 576px) {
  .breadcrumbs-item img {
    width: 17px;
    height: 32px;
  }

  .breadcrumbs-item a {
    font-size: 12px;
  }

  .breadcrumbs-item a img {
    height: 14px;
  }

  .breadcrumbs-last span {
    font-size: 12px;
  }
}

/* ---------- index headline ---------- */

.index {
  display: block;
}

.headline {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  background: linear-gradient(100deg, #5b21b6 0%, #6d28d9 45%, #7c3aed 100%);
  overflow: hidden;
}

.headline-bg {
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/hero-pattern.svg');
  background-size: 320px 320px;
  opacity: 0.35;
  pointer-events: none;
}

.headline .container {
  position: relative;
}

/* Отступ сверху задаётся на .title, как в референсе, а не на самой полосе. */
.headline .title {
  display: block;
  margin: 0;
  padding: 32px 0 0 0;
  text-align: center;
}

.headline .title h1 {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
}

.headline .description {
  display: block;
  max-width: 300px;
  margin: 0 auto;
  padding: 12px 0 32px 0;
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  text-align: center;
}

@media (min-width: 576px) {
  .headline .title {
    padding: 40px 0 0 0;
  }

  .headline .title h1 {
    font-size: 18px;
  }

  .headline .description {
    max-width: 500px;
    padding: 20px 0 40px 0;
  }
}

@media (min-width: 768px) {
  .headline .title {
    padding: 60px 0 0 0;
  }

  .headline .title h1 {
    font-size: 20px;
  }

  .headline .description {
    max-width: 650px;
    padding: 25px 0 48px 0;
    font-size: 14px;
  }
}

@media (min-width: 992px) {
  .headline .title {
    padding: 64px 0 0 0;
  }

  .headline .title h1 {
    font-size: 24px;
  }

  .headline .description {
    max-width: 800px;
    padding: 30px 0 75px 0;
  }
}

.headline .actions {
  display: inline-block;
  padding: 0 0 8px 0;
}

.headline .actions .action {
  display: inline-block;
  padding: 6px 8px;
  background: #2e71f0;
  border: 1px solid #2e71f0;
  border-radius: 6px;
  text-align: center;
  font-size: 11px;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
}

/* ---------- locations ---------- */

.locations {
  display: block;
  padding: 0;
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.locations .country {
  display: block;
  padding: 8px;
}

.locations .country .title {
  display: block;
  margin: 4px 0 8px 0;
  text-align: left;
}

.locations .country .title a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.locations .country .title img {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.locations .country .title h2 {
  display: inline-block;
  font-size: 15px;
  color: var(--text-strong);
}

.locations .cities {
  display: block;
}

.locations .country .title h2 {
  display: inline-block;
  margin: 0;
  font-size: 14px;
  vertical-align: middle;
}

@media (min-width: 576px) {
  .locations .country .title h2 {
    font-size: 16px;
  }
}

.locations .cities ul {
  list-style: none;
  font-size: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 16px;
}

.locations .cities li {
  display: block;
}

.locations .cities li a {
  display: inline-block;
  font-size: 14px;
  color: var(--accent-text);
}

.locations .cities li a:hover,
.countries-list li a:hover,
.profiles-category-links li a:hover,
.profiles-filters-section li a:hover {
  text-decoration: underline;
  color: var(--accent-deep);
}

.theme-dark .locations .cities li a:hover,
.theme-dark .countries-list li a:hover,
.theme-dark .profiles-category-links li a:hover,
.theme-dark .profiles-filters-section li a:hover {
  color: #dbaffd;
}

@media (max-width: 640px) {
  .locations .cities ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- countries ---------- */

.countries {
  display: block;
  margin: 8px 0 0 0;
}

.countries-title {
  display: block;
  margin: 4px 0 8px 0;
}

.countries-title h1 {
  font-size: 16px;
  color: var(--text-strong);
}

.countries .description {
  display: block;
  margin: 0 0 12px 0;
  font-size: 12px;
  color: var(--muted);
}

.countries-list ul {
  list-style: none;
  font-size: 0;
}

.countries-list li {
  display: inline-block;
  width: 50%;
}

.countries-list li a {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 3px 0 0;
  padding: 5px 8px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--accent-text);
}

.countries-list li a img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.countries .cities {
  display: block;
  margin: 6px 0 0 0;
}

.countries .cities ul {
  list-style: none;
  font-size: 0;
}

.countries .cities li {
  display: inline-block;
}

.countries .cities li a {
  display: inline-block;
  margin: 3px 3px 0 0;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text);
}

.countries .cities li a:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.cities-count {
  color: var(--muted);
  font-size: 11px;
  margin-left: 4px;
}

/* ---------- profiles ---------- */

.profiles {
  display: block;
  margin: 12px 0;
}

.profiles-title {
  display: block;
  margin: 4px 0 8px 0;
}

.profiles-title h1 {
  margin: 0 0 8px 0;
  padding: 0;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-strong);
}

.profiles-title h2 {
  margin: 0 0 8px 0;
  padding: 0;
  font-size: 14px;
  font-weight: bold;
  color: var(--text-strong);
}

@media (min-width: 768px) {
  .profiles-title h1 {
    font-size: 18px;
  }

  .profiles-title h2 {
    font-size: 16px;
  }
}

@media (min-width: 992px) {
  .profiles-title h1 {
    font-size: 20px;
  }
}

.profiles-title {
  margin: 18px 0 6px 0;
}

.profiles-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-size: 0;
}

.profiles-list .profile {
  position: relative;
  display: block;
  width: calc(50% - 5px);
  height: auto;
  margin: 10px 10px 10px 0;
  padding: 0;
  border: 1px solid #f0f0f5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg);
  transition: box-shadow 0.15s ease;
}

.profiles-list .profile:nth-child(2n) {
  margin: 10px 0 10px 0;
}

.profiles-list .profile:hover {
  box-shadow: 0 3px 14px rgba(20, 33, 73, 0.14);
}

.theme-dark .profiles-list .profile {
  border-color: #33405a;
}

@media (min-width: 576px) {
  .profiles-list .profile {
    width: calc(33.3333% - 6.6px);
    margin: 10px 10px 10px 0;
  }

  .profiles-list .profile:nth-child(2n) {
    margin: 10px 10px 10px 0;
  }

  .profiles-list .profile:nth-child(3n) {
    margin: 10px 0 10px 0;
  }
}

@media (min-width: 768px) {
  .profiles-list .profile {
    width: calc(25% - 7.5px);
  }

  .profiles-list .profile:nth-child(3n) {
    margin: 10px 10px 10px 0;
  }

  .profiles-list .profile:nth-child(4n) {
    margin: 10px 0 10px 0;
  }
}

.profile-photo {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.profile-photo a {
  display: block;
}

/* вся карточка кликабельна: имя растягивает ссылку на фото+инфо */
.profiles-list .profile .profile-name a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
}

.profiles-list .profile .profile-card-link {
  position: static;
}

.profiles-list .profile:hover .profile-name a {
  color: var(--accent-deep);
}

.profiles-list .profile:hover .profile-photo img {
  transform: scale(1.03);
}

.profile-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 300 / 340;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.profile-photo a:hover img {
  transform: scale(1.03);
}

.profile-badge {
  display: block;
  position: absolute;
  margin: 0;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: normal;
  color: #fff;
  white-space: nowrap;
  z-index: 1;
}

.profile-vip {
  top: 0;
  right: 0;
  background-color: var(--badge-vip);
  font-weight: bold;
}

.profile-photo-verified {
  background-color: var(--badge-verified);
}

.profile-independent,
.profile-independent-single {
  background-color: var(--badge-independent);
}

.profile-new,
.profile-new-second,
.profile-new-single {
  background-color: var(--badge-new);
}

.profile-video {
  background-color: var(--badge-video);
}

.profile-stack-1 {
  right: 0;
  bottom: 55px;
}

.profile-stack-2 {
  right: 0;
  bottom: 80px;
}

.profile-stack-3 {
  right: 0;
  bottom: 105px;
}

.profile-stack-4 {
  right: 0;
  bottom: 130px;
}

.profile-badge.profile-video {
  right: auto;
  left: 0;
  bottom: 55px;
}

.profile-params {
  display: block;
  position: absolute;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: var(--radius-sm);
  font-size: 0;
  overflow: hidden;
  z-index: 1;
}

.profile-params .profile-params-item {
  display: inline-block;
  width: 33.3333%;
  height: auto;
  margin: 0;
  padding: 4px 0;
  background: rgba(0, 0, 0, 0.5);
  border-right: 1px solid rgba(0, 0, 0, 0.8);
  text-align: center;
}

.profile-params .profile-params-item:nth-child(3) {
  border-right: 0;
}

.profile-params .profile-params-label {
  font-weight: normal;
  font-size: 11px;
  color: #d3d3d3;
}

.profile-params .profile-params-value {
  font-weight: bold;
  font-size: 12px;
  color: #fff;
}

.profile-name {
  display: block;
  width: 100%;
  margin: 0;
  padding: 10px 10px 0 10px;
  white-space: nowrap;
  overflow: hidden;
}

.profile-name a {
  font-weight: bold;
  font-size: 14px;
  color: var(--text-strong);
  text-overflow: ellipsis;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
  vertical-align: bottom;
}

.profile-name img {
  width: 18px;
  height: 18px;
  margin: -1px 0 0 1px;
  vertical-align: middle;
}

.profile-city {
  display: block;
  margin: 0;
  padding: 6px 10px 0 10px;
  font-weight: normal;
  font-size: 13px;
  color: #757575;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-dark .profile-city {
  color: var(--muted);
}

.profile-price {
  display: block;
  margin: 0;
  padding: 8px 10px 10px 10px;
  font-weight: bold;
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .profile-name a {
    font-size: 16px;
  }

  .profile-price {
    font-size: 15px;
  }

  .profile-city {
    font-size: 14px;
  }
}

.theme-dark .profile-price {
  color: var(--accent-dark-theme);
}

.profiles-empty {
  margin: 8px 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

/* ---------- filters ---------- */

.profiles-filters {
  display: block;
  margin: 5px 0;
  font-size: 0;
}

.profiles-filters-header {
  display: block;
  margin: 0;
  padding: 0;
}

.profiles-filters-header .profile-filters-item {
  display: inline-block;
}

.profiles-filters-header .profile-filters-item span {
  display: inline-block;
  margin: 4px 4px 0 0;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-weight: normal;
  font-size: 12px;
  color: var(--accent-text);
  cursor: pointer;
}

.profiles-filters-header .profile-filters-item span:hover {
  background-color: var(--bg-soft);
}

.profiles-filters-header .profile-filters-item[data-visible='true'] span {
  background: var(--accent);
  color: #fff;
}

.profiles-filters-body {
  display: none;
  margin: 10px 0 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.profiles-filters-body[data-open='true'] {
  display: block;
}

.profiles-filters-body .container {
  padding: 8px;
  max-width: none;
}

.profiles-filters-section {
  display: block;
  margin: 0;
  padding: 0;
}

.profiles-filters-title {
  display: block;
  margin: 0;
  padding: 6px 8px;
  background-color: var(--bg-filters);
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 12px;
  color: var(--text);
}

.profiles-filters-body ul {
  list-style: none;
  font-size: 0;
  padding: 6px 8px;
  margin: 0;
}

.profiles-filters-body li {
  display: inline-block;
}

.profiles-filters-body li a {
  display: inline-block;
  margin: 3px 3px 0 0;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-size: 12px;
  color: var(--accent-text);
}

.theme-dark .profiles-filters-body li a {
  border-color: var(--accent-border-dark);
  color: var(--accent-border-dark);
}

.profiles-filters-cloud .profiles-filters-body {
  display: block;
}

/* ---------- controls ---------- */

.profiles-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 2px 0 4px 0;
  font-size: 12px;
  color: var(--text);
}

.profiles-count b {
  font-weight: bold;
}

.profiles-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px 0 0;
}

.profiles-sort .profiles-sort-select {
  display: block;
  width: auto;
  height: 28px;
  padding: 4px 6px;
  background-color: var(--bg);
  border: 1px solid var(--border-input);
  border-radius: 3px;
  font-weight: normal;
  font-size: 12px;
  color: var(--select-text);
  cursor: pointer;
}

/* ---------- pagination ---------- */

.pagination {
  display: block;
  margin: 8px 0;
}

.pagination-pages {
  display: block;
  font-size: 0;
}

.pagination-item {
  display: inline-block;
  margin: 0 3px 3px 0;
  padding: 4px 8px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: normal;
  color: #606060;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: top;
}

.theme-dark .pagination-item {
  color: var(--muted-dark);
}

.pagination-item:hover {
  background-color: var(--bg-soft);
  color: var(--accent-text);
}

.pagination-item.active {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ---------- category / reviews / telegram ---------- */

.profiles-category {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--text);
}

.profiles-category p {
  margin: 0 0 8px 0;
  font-size: 12px;
}

.profiles-category-links {
  margin: 0 0 15px 0;
  padding: 0;
  list-style: none;
  font-size: 0;
}

.profiles-category-links li {
  display: inline-block;
}

.profiles-category-links li a {
  display: inline-block;
  margin: 4px 4px 0 0;
  padding: 4px 8px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-weight: normal;
  font-size: 12px;
  color: var(--accent-text);
  cursor: pointer;
}

.theme-dark .profiles-category-links li a {
  border-color: var(--accent-border-dark);
  color: var(--accent-border-dark);
}

/* ---------- profile page ---------- */

.profile {
  display: block;
  margin: 0;
  padding: 0;
}

/* Страница анкеты. Правила страницы не должны протекать в карточки каталога:
   у карточек тоже .profile и .profile-info, поэтому всё ниже под .profile-page. */
.profile-page {
  padding-top: 14px;
}

.profile-page .profile-info {
  display: block;
  margin: 0;
  padding: 0;
}

/* Колонки с фото и деталями — флоаты. Отзывы, как в референсе, идут после них обычным
   блоком и визуально попадают в левую колонку. «Девушки рядом» должно встать уже под
   обеими колонками во всю ширину — сбрасываем флоаты на самом блоке. */
.profile-page::after {
  content: '';
  display: block;
  clear: both;
}

/* ---------- отзывы на странице анкеты ---------- */

.profile-reviews {
  display: block;
  margin: 15px 0 0 0;
  padding: 0;
}

/* Блок отзывов стоит после двух флоутов. Если колонка с фото окажется короче правой,
   флоат закончится раньше, и обычный блок растянется на всю ширину — наезжая на
   текст правой колонки. Поэтому на десктопе отзывы сами становятся левой колонкой. */
@media (min-width: 768px) {
  .profile-reviews {
    float: left;
    width: 50%;
    padding: 0 8px 0 0;
  }
}

.profile-reviews-title h2 {
  margin: 0 0 8px 0;
  font-size: 15px;
  font-weight: bold;
  color: var(--text-strong);
}

.profile-reviews-empty {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: var(--muted);
}

.profile-reviews-list {
  display: block;
  margin: 0;
  padding: 0;
}

.profiles-review {
  margin: 0 0 5px 0;
  padding: 10px;
  background: #eff3f9;
  border-radius: 4px;
}

.theme-dark .profiles-review {
  background: #2f4155;
}

.profiles-review-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px 0;
}

.profiles-review-name span {
  font-size: 12px;
  font-weight: bold;
}

.profiles-review-time {
  font-size: 10px;
  font-weight: normal;
  color: var(--muted);
}

.profiles-review-text {
  display: block;
  font-size: 12px;
  font-weight: normal;
  white-space: pre-line;
}

.profile-reviews-form .form-button {
  display: inline-block;
  min-width: 80px;
  padding: 6px 12px;
  background: #7616bf;
  border: 1px solid #7616bf;
  border-radius: 6px;
  text-align: center;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
}

.theme-dark .profile-reviews-form .form-button {
  background: #8719db;
  border-color: #8719db;
}

/* ---------- контакты под депозитом ---------- */

/* Телефон и Telegram закрыты до внесения депозита: содержимое размыто и недоступно
   для клика, сверху — призыв перейти на страницу гарантии. */
.contacts-locked {
  display: block;
}

/* Размытая строка контактов остаётся как напоминание, что данные закрыты. */
.contacts-lock-body {
  filter: blur(5px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

/* Блок с объяснением идёт обычным потоком под контактами. Раньше он висел
   абсолютно поверх и при нехватке высоты наезжал на подписи соседних блоков. */
.contacts-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 12px 0 0 0;
  padding: 14px 8px 4px 8px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contacts-lock-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: bold;
  color: var(--text-strong);
}

.contacts-lock-text {
  margin-top: 6px;
  max-width: 380px;
  font-size: 12px;
  color: var(--muted);
}

.contacts-lock-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 9px 20px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 13px;
  color: #fff;
}

.contacts-lock-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

/* ---------- пояснение под формой входа ---------- */

.login-note {
  margin: 16px 0 0 0;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.login-note-title {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--text-strong);
}

.login-note-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

/* Ссылка на гарант-сервис — отдельный блок со сдвигом, полупрозрачный,
   чтобы читался как вторичный переход, а не часть пояснения. */
.login-more {
  display: block;
  margin: 10px 0 0 24px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-sm);
}

.login-more:hover {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--accent);
}

.login-more-label {
  font-size: 13px;
  font-weight: bold;
  color: var(--accent-text);
}

.login-more:hover .login-more-label {
  text-decoration: underline;
}

/* ---------- страница гарантии ---------- */

.content-page-wide {
  max-width: 640px;
}

.glead {
  font-size: 14px !important;
  color: var(--text) !important;
}

.gsection {
  margin: 20px 0 0 0;
}

.gsection h2 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-strong);
}

.gsection p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.gsteps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gstep {
  display: flex;
  gap: 12px;
  margin: 0 0 12px 0;
  padding: 0 0 12px 0;
  border-bottom: 1px solid var(--border);
}

.gstep:last-child {
  border-bottom: 0;
}

.gstep-num {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  line-height: 26px;
  text-align: center;
}

.gstep-body {
  flex: 1 1 auto;
  min-width: 0;
}

.gstep-title {
  margin: 2px 0 4px 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--text-strong);
}

.gstep-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.glist {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.glist li {
  margin: 0 0 6px 0;
}

.gsection-cta {
  margin-top: 24px;
  text-align: center;
}

.gsection-cta .contacts-lock-btn {
  margin-top: 0;
}

/* ---------- главное действие на странице анкеты ---------- */

.profile-cta {
  margin: 12px 0 0 0;
  padding: 14px;
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius-sm);
  text-align: center;
}

.profile-cta-title {
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: bold;
  color: var(--text-strong);
}

.profile-cta-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin: 0 0 12px 0;
  padding: 0;
  list-style: none;
  counter-reset: cta;
}

.profile-cta-steps li {
  position: relative;
  font-size: 12px;
  color: var(--muted);
  counter-increment: cta;
}

.profile-cta-steps li::before {
  content: counter(cta);
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text-strong);
  font-size: 10px;
  font-weight: bold;
  line-height: 16px;
  text-align: center;
}

.profile-cta-btn {
  display: block;
  width: 100%;
  padding: 11px 12px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
}

.profile-cta-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.profile-cta-note {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.gsection-deposit {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.gsection-deposit h2 {
  margin-top: 0;
}

.gsection-deposit > p {
  margin-bottom: 12px;
}

/* ---------- страница бронирования ---------- */

.book {
  max-width: 560px;
  margin: 16px 0 28px 0;
}

/* Шапка-карточка с фото: тёмная подложка, чтобы витрина читалась «взрослее» */
.book-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1b1726 0%, #241b33 55%, #2a1c3d 100%);
  border: 1px solid #3a2b52;
}

.book-hero-photo img {
  display: block;
  width: 150px;
  height: 170px;
  object-fit: cover;
  border-radius: 5px;
}

.book-hero-info {
  flex: 1 1 200px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-hero-name {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
}

.book-hero-city {
  margin: 0 0 10px 0;
  font-size: 13px;
  color: #a89cbd;
}

.book-hero-price {
  font-size: 20px;
  font-weight: bold;
  color: #cd94f9;
}

.book-hero-price span {
  font-size: 12px;
  font-weight: normal;
  color: #a89cbd;
}

.book-hero-back {
  margin-top: 10px;
  font-size: 12px;
  color: #a89cbd;
}

.book-hero-back:hover {
  color: #ffffff;
}

/* Три причины доверять — перед шагами, чтобы снять вопрос «а замораживают ли» */
.book-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0 0;
}

.book-trust-item {
  flex: 1 1 160px;
  min-width: 0;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}

.book-trust-title {
  margin: 0 0 4px 0;
  font-size: 12px;
  font-weight: bold;
  color: var(--text-strong);
}

.book-trust-text {
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

.book-howto {
  margin: 14px 0 0 0;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.book-howto h2 {
  margin: 0 0 12px 0;
  font-size: 15px;
  color: var(--text-strong);
}

/* Форма оплаты — отдельный акцентный блок с выбором суммы */
.book-pay {
  margin: 14px 0 0 0;
  padding: 18px 16px 16px 16px;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.book-pay-head {
  margin: 0 0 14px 0;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-strong);
  text-align: center;
}

.book-pay-sum {
  margin: 0 0 14px 0;
  padding: 14px 12px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 6px;
  text-align: center;
}

.book-pay-sum-label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

.book-pay-sum-value {
  display: block;
  font-size: 30px;
  font-weight: bold;
  line-height: 1.1;
  color: var(--text-strong);
}

/* Смета: из чего складывается депозит */
.book-pay-rows {
  margin: 0 0 14px 0;
  font-size: 13px;
}

.book-pay-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 2px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.book-pay-row:last-child {
  border-bottom: 0;
}

.book-pay-row-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  border-bottom: 0;
  font-weight: bold;
  color: var(--text-strong);
}

.book-pay-row-total span:last-child {
  font-size: 17px;
  color: var(--accent-text);
}

/* Описание анкеты на странице брони */
.book-about {
  margin: 10px 0 0 0;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.book-about-title {
  margin: 0 0 10px 0;
  font-size: 15px;
  font-weight: bold;
  color: var(--text-strong);
}

.book-params {
  border-bottom: 1px solid var(--border);
}

.book-services {
  margin: 0;
}

.book-service-yes {
  color: #1fb425;
  font-size: 15px;
  font-weight: bold;
}

.book-pay-submit {
  display: block;
  width: 100%;
  padding: 13px 12px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

.book-pay-submit:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.book-pay-secure {
  margin: 12px 0 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

.book-pay-secure img {
  margin-right: 5px;
  vertical-align: -2px;
}

.book-pay .form-notice {
  margin: 12px 0 0 0;
}

/* ---------- отступ блока «Девушки рядом» ---------- */
.profiles-nearby {
  clear: both;
  padding: 15px 0 0 0;
  border-top: 1px solid var(--border);
}

.profiles-list .profile-info {
  display: block;
}

.profile-photos {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 8px 0;
  padding: 0;
  float: none;
}

.profile-details {
  display: block;
  position: relative;
  width: 100%;
  margin: 0 0 12px 0;
  padding: 0;
  float: none;
}

@media (min-width: 768px) {
  /* правая колонка имеет внутренний отступ 8px — VIP-бейдж держим по краю фото, а не колонки */
  .profile-page .profile-labels {
    right: 8px;
  }

  .profile-photos {
    width: 50%;
    float: left;
    margin: 0;
    padding: 0 8px 0 0;
  }

  .profile-details {
    width: 50%;
    float: right;
    margin: 0 0 12px 0;
    padding: 0 0 0 8px;
  }
}

/* Бейджи складываются в колонку обычным потоком, как в референсе. Раньше каждый класс
   имел свой жёсткий top, и «Индивидуалка» с «Новая» без «Фото проверено» попадали
   на один top — бейджи наезжали друг на друга. Поток решает это на любом их наборе. */
.profile-labels {
  display: flex;
  position: absolute;
  flex-direction: column;
  align-items: flex-start;
  top: 10px;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.profile-labels > div {
  display: block;
  margin: 0 0 4px 0;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
  z-index: 2;
}

.profile-labels .profile-independent {
  background-color: var(--badge-independent);
}

.profile-labels .profile-photo-verified {
  background-color: var(--badge-verified);
}

.profile-labels .profile-new {
  background-color: var(--badge-new);
}

.profile-labels .profile-vip {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  background-color: var(--badge-vip);
  font-weight: bold;
}

.profile-photos .profile-photo {
  position: relative;
  cursor: pointer;
}

.profile-photos .profile-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 640px;
  aspect-ratio: 894 / 1080;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.profile-gallery {
  display: block;
  margin: 5px 0;
  font-size: 0;
}

.profile-gallery-item {
  display: inline-block;
  margin: 0 5px 5px 0;
  cursor: pointer;
}

.profile-gallery-item img {
  display: block;
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
}

.profile-gallery-item:hover img,
.profile-gallery-item.active img {
  border-color: var(--accent);
}

.profile-section {
  display: block;
  margin: 0 0 15px 0;
  padding: 0;
}

.details-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.details-header .profile-title {
  flex: 1 1 auto;
  min-width: 0;
}

.details-header .details-favorite {
  flex: 0 0 auto;
}

.details-title {
  display: block;
  margin: 0 0 6px 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.details-title h2 {
  font-size: 15px;
  color: var(--text-strong);
}

.profile-title {
  margin-bottom: 8px;
}

.profile-title h1 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 22px;
  color: var(--text-strong);
}

.profile-title h1 img {
  width: 20px;
  height: 20px;
}

.profile-location,
.details-service-hours {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Отметка «в избранном» — только само сердечко, без рамки вокруг кнопки: рамка
   визуально превращалась в отдельный элемент и выглядела лишней. */
.details-favorite {
  display: inline-block;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.details-favorite:hover img {
  opacity: 0.75;
}

/* Отмечается только сердечко (сменой картинки), рамка кнопки остаётся нейтральной —
   иначе непонятно, нажата кнопка или просто подсвечена область. */
.details-favorite[data-favorite='true'] {
  color: var(--muted);
}

/* Залитое сердце на тёмном фоне чуть высветляем, иначе фиолетовый сливается с фоном. */
.theme-dark .details-favorite[data-favorite='true'] img {
  filter: brightness(1.45) saturate(1.1);
}

/* Ячейки параметров и цен. Контейнер в референсе — обычный block с inline-block
   ячейками и нижней границей; flex здесь давал другую высоту строки и «плавающие»
   разделители. */
.details-items {
  display: block;
  font-size: 0;
  border-bottom: 1px solid var(--border);
}

.details-item {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 6px 4px;
  border-right: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}

.details-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.details-item-4 {
  width: 25%;
}

.details-item-3 {
  width: 33.3333%;
}

.details-item-2 {
  width: 50%;
}

.details-item:last-child {
  border-right: 0;
}

.details-label {
  display: block;
  font-weight: normal;
  font-size: 13px;
  line-height: 15px;
  color: var(--muted);
}

.details-value {
  margin: 4px 0 0 0;
  font-weight: normal;
  font-size: 13px;
  line-height: 15px;
}

.details-warning {
  display: block;
  margin: 6px 0 0 0;
  font-weight: normal;
  font-size: 11px;
  color: var(--muted);
}

.details-about {
  display: block;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.details-contacts {
  display: block;
}

.details-phone {
  display: inline-block;
  margin: 0 0 6px 0;
  padding: 0;
}

.details-phone a {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-strong);
}

.details-phone-verified {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  vertical-align: middle;
}

.details-phone-call {
  display: none;
  position: fixed;
  width: 48px;
  height: 48px;
  right: 20px;
  bottom: 20px;
  margin: 0;
  padding: 0;
  background-color: var(--call-bg);
  border: 1px solid var(--call-bg);
  border-radius: 50%;
  z-index: 30;
}

.details-phone-call a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #fff;
}

.details-phone-call-circle {
  display: none;
}

.details-messengers {
  display: inline-block;
  margin: 0 0 6px 0;
}

.details-messenger {
  display: inline-block;
  margin-right: 6px;
}

.details-messenger a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.services-list {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Каждая группа услуг — отдельная рамка с промежутком, как в референсе.
   Рамки и разделителей строк внутри нет. */
.services-group {
  display: block;
  width: 100%;
  margin: 0 0 10px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.services-group:last-child {
  margin-bottom: 0;
}

.services-head,
.services-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.services-head .service-name,
.services-row .service-name {
  display: block;
  padding: 5px 8px;
  font-size: 13px;
  vertical-align: middle;
}

.services-head {
  font-weight: bold;
}

.services-head .service-name {
  font-weight: bold;
}

.services-head .service-included {
  width: 90px;
  padding: 5px 8px 5px 0;
  text-align: right;
  font-size: 11px;
  font-weight: normal;
  color: var(--muted);
}

.services-row .service-included {
  display: block;
  width: 90px;
  padding: 5px 8px 5px 0;
  text-align: right;
  vertical-align: middle;
}

.services-row a {
  font-size: 13px;
}

/* ---------- lightbox ---------- */

.pswp {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  font-size: 0;
}

.pswp[data-open='true'] {
  display: block;
}

.pswp__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
}

.pswp__container {
  position: absolute;
  inset: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pswp__item {
  display: none;
  max-width: 100%;
  max-height: 100%;
}

.pswp__item[data-active='true'] {
  display: block;
}

.pswp__item img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-sm);
}

.pswp__counter {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 12px;
}

.pswp__caption {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ddd;
  font-size: 11px;
}

.pswp__button {
  position: absolute;
  border: 0;
  background: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 12px;
}

.pswp__button--close {
  top: 4px;
  right: 8px;
}

.pswp__button--fs {
  top: 4px;
  right: 44px;
}

.pswp__button--arrow--left {
  top: 50%;
  left: 6px;
  transform: translateY(-50%);
}

.pswp__button--arrow--right {
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}

/* ---------- forms ---------- */

.form-page,
.content-page {
  margin: 12px 0 24px 0;
}

.form-page h1,
.content-page h1 {
  font-size: 16px;
  color: var(--text-strong);
  margin-bottom: 8px;
}

.form-page .description,
.content-page p {
  margin: 0 0 12px 0;
  font-size: 12px;
  color: var(--muted);
}

.form {
  display: block;
}

/* Атрибут hidden из UA-стилей проигрывает авторскому display:block выше,
   поэтому после отправки форма оставалась на экране вместе с подтверждением. */
.form[hidden] {
  display: none;
}

.form-field {
  margin: 0 0 10px 0;
  font-size: 12px;
}

.form-field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.form-field .form-input,
.form-field input,
.form-field select,
.form-field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 6px;
  background-color: var(--bg);
  border: 1px solid var(--border-input);
  border-radius: 3px;
  font-size: 12px;
  color: var(--select-text);
}

.form-field .form-input:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-action {
  margin: 12px 0 0 0;
}

.form-button {
  display: inline-block;
  min-width: 60px;
  margin-right: 4px;
  padding: 6px 8px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  text-align: center;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
}

.form-button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.form-foot {
  margin: 12px 0 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- форма добавления анкеты ---------- */

.form-section {
  margin: 0 0 10px 0;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.form-section-title {
  margin: 0 0 10px 0;
  font-size: 13px;
  font-weight: bold;
  color: var(--text-strong);
}

.form-section-hint {
  margin: -6px 0 10px 0;
  font-size: 12px;
  color: var(--muted);
}

/* Короткие поля — в две колонки, чтобы форма не была длинной лентой в одну колонку. */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}

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

.form-field-block {
  grid-column: 1 / -1;
}

.form-req {
  font-size: 11px;
  font-weight: normal;
  color: var(--accent-text);
}

.form-req-optional {
  color: var(--muted);
}

.form-hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.form-button-wide {
  display: block;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
}

/* ---------- валидация формы ---------- */

.form-error {
  display: none;
  margin-top: 4px;
  font-size: 11px;
  color: #d92d20;
}

.theme-dark .form-error {
  color: #ff7a70;
}

.form-field-invalid .form-error {
  display: block;
}

/* Уведомление под формой (например, отказ по ключ-фразе). */
.form-notice {
  margin: 4px 0 12px 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
}

.form-notice[hidden] {
  display: none;
}

.form-notice-error {
  background: color-mix(in srgb, #d92d20 10%, transparent);
  border: 1px solid color-mix(in srgb, #d92d20 45%, transparent);
}

.theme-dark .form-notice-error {
  background: color-mix(in srgb, #ff7a70 14%, transparent);
  border-color: color-mix(in srgb, #ff7a70 50%, transparent);
}

.form-notice-title {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: bold;
  color: #d92d20;
}

.theme-dark .form-notice-title {
  color: #ff9d95;
}

.form-notice-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}

.form-field-invalid input,
.form-field-invalid select,
.form-field-invalid textarea {
  border-color: #d92d20;
}

.theme-dark .form-field-invalid input,
.theme-dark .form-field-invalid select,
.theme-dark .form-field-invalid textarea {
  border-color: #ff7a70;
}

/* ---------- подтверждение отправки ---------- */

.form-success {
  display: block;
  margin: 12px 0 24px 0;
  padding: 24px 16px;
  background: var(--bg);
  border: 1px solid #1fb425;
  border-radius: var(--radius-sm);
  text-align: center;
}

.form-success[hidden] {
  display: none;
}

.form-success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px 0;
  border-radius: 50%;
  background: #1fb425;
  color: #fff;
  font-size: 26px;
  line-height: 48px;
  text-align: center;
}

.form-success-title {
  margin: 0 0 8px 0;
  font-size: 17px;
  font-weight: bold;
  color: var(--text-strong);
}

.form-success-text {
  margin: 0 auto 14px 0;
  max-width: 420px;
  font-size: 13px;
  color: var(--muted);
}

.form-success-link {
  display: inline-block;
  font-size: 13px;
  color: var(--accent-text);
}

/* ---------- footer ---------- */

footer {
  display: block;
  position: relative;
  min-height: 40px;
  margin: 0;
  padding: 10px 8px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

footer .copyright {
  display: inline-block;
  float: left;
  width: 50%;
  padding: 3px 0 3px 8px;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  font-weight: normal;
}

footer .age {
  display: inline-block;
  float: right;
  width: 25%;
  padding: 0 8px 0 0;
  text-align: right;
}

footer .age img {
  width: 22px;
  height: 22px;
}

footer .disclaimer {
  display: block;
  clear: both;
  padding: 8px 8px;
  text-align: left;
  font-weight: normal;
  font-size: 11px;
  color: var(--muted);
}

footer .links {
  display: block;
  clear: both;
  padding: 0 8px;
  font-size: 0;
}

footer .links a {
  display: inline-block;
  margin: 0 8px 0 0;
  font-size: 11px;
  color: var(--accent-text);
}

@media (max-width: 319px) {
  footer .copyright {
    width: 100%;
  }

  footer .age {
    display: none;
  }
}