/* === ПК (десктоп, ширина > 650px) === */
html {
  height: 100%;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #f46e8f #22252a;
}
html::-webkit-scrollbar { width: 7px; }
html::-webkit-scrollbar-track { background: #22252a; }
html::-webkit-scrollbar-thumb {
  background-color: #f46e8f;
  border-radius: 5px;
  border: 2px solid #22252a;
}
html::-webkit-scrollbar-thumb:hover { background-color: #1f8cd1; }

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #22252a;
  color: #f2f3f5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 0 0 0;
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Анимации */
@keyframes coin-jump {
  0%, 92%, 100% { transform: translateY(0); }
  95% { transform: translateY(-7px); }
  97% { transform: translateY(0); }
}
@keyframes modal-pop {
  0% { opacity: 0; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes dropdown-search {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes navmenu-slide {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ссылки */
a.donate-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color .15s, filter .15s;
}
a.donate-link:hover,
a.donate-link:focus-visible {
  color: #FFD700;
  filter: brightness(1.16);
  text-decoration: none;
}
a.telegram-link {
  color: #32afed;
  text-decoration: none;
  font-weight: bold;
  transition: color .15s, filter .15s;
}
a.telegram-link:hover,
a.telegram-link:focus-visible {
  color: #4dc7ff;
  text-decoration: none;
  filter: brightness(1.11);
}
a.stripper-link {
  color: #f46e8f;
  font-weight: 700;
  text-decoration: none;
  transition: color .15s, filter .15s;
}
a.stripper-link:hover,
a.stripper-link:focus-visible {
  color: #f46e8f;
  filter: brightness(1.16);
  text-decoration: none;
}
a.vpn-link {
  color: #FFD700;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s, filter .15s;
}
a.vpn-link:hover,
a.vpn-link:focus-visible {
  color: #FFD700;
  filter: brightness(1.16);
  text-decoration: none;
}

/* === ПК (min-width: 651px) === */
/* Шапка */
.header {
  background: #282b30;
  min-height: 58px;
  padding: 12px 18px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 32px -6px rgba(255,255,255,0.1), 0 2px 10px 0 rgba(50,175,237,0.3);
}
.header__logo {
  font-size: 1.7rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  margin-right: 10px;
  transition: color .22s;
  display: flex;
  align-items: center;
  user-select: none;
}
.header__logo:hover .logo-silk {
  color: #4dc7ff;
  text-shadow: 0 0 8px rgba(77,199,255,0.8), 0 0 14px rgba(77,199,255,0.6);
}
.header__logo:hover .logo-pill {
  color: #ff80a1;
  text-shadow: 0 0 8px rgba(244,110,143,0.8), 0 0 14px rgba(244,110,143,0.6);
}
.header .header__logo .logo-silk {
  color: #32afed !important;
  font-weight: 700;
  letter-spacing: 1px;
}
.header .header__logo .logo-pill {
  color: #f46e8f !important;
  font-weight: 700;
  margin-left: 3px;
  letter-spacing: 1px;
}
.header__menu {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0 14px 0 0;
  padding: 0;
  align-items: center;
}
.header__menu li { display: flex; align-items: center; }
.header__menu li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.08rem;
  padding: 6px 14px 6px 12px;
  border-radius: 5px;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
  transition: background 0.14s, color 0.14s, border-color 0.15s;
  cursor: pointer;
  outline: none;
}
.header__menu li a .fa,
.header__menu li a svg {
  font-size: 1.18em;
  min-width: 21px; min-height: 21px;
  max-width: 21px; max-height: 21px;
  width: 21px; height: 21px;
  opacity: 0.87;
  display: inline-block;
  vertical-align: middle;
  color: #fff;
  fill: #fff;
  transition: color 0.15s, fill 0.15s;
}
.header__menu li a.is-active {
  border: 2px solid transparent;
  color: #ffffff;
  background: transparent;
  outline: none;
}
.header__menu li a[href="/"]:hover,
.header__menu li a[href="/"]:focus,
.header__menu li a[href*="t.me"]:hover,
.header__menu li a[href*="t.me"]:focus,
.header__menu li a[href$="contacts.html"]:hover,
.header__menu li a[href$="contacts.html"]:focus,
.header__menu li a[href$="/en/contacts-en.html"]:hover,
.header__menu li a[href$="/en/contacts-en.html"]:focus,
.header__menu li a[href$="donate.html"]:hover,
.header__menu li a[href$="donate.html"]:focus {
  border-color: transparent; background: none; color: #32afed;
}
.header__menu li a[href$="/en/donate-en.html"]:hover,
.header__menu li a[href$="/en/donate-en.html"]:focus {
  border-color: transparent; background: none; color: #32afed;
}
.header__menu li a[href$="donate.html"]:hover,
.header__menu li a[href$="donate.html"]:focus { color: #FFD700; }
.header__menu li a[href$="/en/donate-en.html"]:hover,
.header__menu li a[href$="/en/donate-en.html"]:focus { color: #FFD700; }
.header__menu li a.is-active:hover .fa,
.header__menu li a.is-active:hover svg,
.header__menu li a.is-active:focus .fa,
.header__menu li a.is-active:focus svg,
.header__menu li a:hover .fa,
.header__menu li a:hover svg {
  color: #32afed;
  fill: #32afed;
}

.header__menu li a.menu-stripper {
  color: #fff;
  background: transparent;
  font-weight: 500;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  padding: 6px 14px;
  transition: color 0.14s;
}
.header__menu li a.menu-stripper .fa-fire-flame-curved {
  color: #f46e8f;
  font-size: 1.18em;
  width: 15.3px; height: 21px;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}
.header__menu li a.menu-stripper:hover { color: #f46e8f; }

.header__menu li a.menu-game {
  color: #fff;
  background: transparent;
  font-weight: 500;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  padding: 6px 14px;
  transition: color 0.14s;
}
.header__menu li a.menu-game .fa-bolt {
  color: #FFD700;
  font-size: 1.18em;
  width: 15.3px; height: 21px;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}
.header__menu li a.menu-game:hover { color: #FFD700; }

.header__menu li a.menu-videochat {
  color: #fff;
  background: transparent;
  font-weight: 500;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  padding: 6px 14px;
  transition: color 0.14s;
  white-space: nowrap;
}
.header__menu li a.menu-videochat .fa-play {
  color: #32afed;
  font-size: 1.18em;
  width: 15.3px; height: 21px;
  display: inline-block;
  vertical-align: middle;
  margin: 0;
}
.header__menu li a.menu-videochat:hover { color: #32afed; }

.header__menu li a .fa-house {
  font-size: 1.18em; width: 21px; height: 21px;
  display: inline-block; vertical-align: middle;
  margin-right: 2px;
}
.header__menu li a[href$="donate.html"] .fa-coins {
  color: #FFD700;
  animation: coin-jump 5s ease-in-out infinite;
}
.header__menu li a[href$="contacts.html"] .fa-envelope {
  position: relative; top: 1px;
}
.header__menu li a[href$="/en/donate-en.html"] .fa-coins {
  color: #FFD700;
  animation: coin-jump 5s ease-in-out infinite;
}
.header__menu li a[href$="/en/contacts-en.html"] .fa-envelope {
  position: relative; top: 1px;
}

.header__search {
  flex-grow: 1;
  max-width: 370px;
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 6px;
  min-width: 190px;
}
.header__search-box {
  display: flex;
  width: 100%;
  background: #282b30;
  border-radius: 7px;
  border: 1px solid #35363a;
  overflow: hidden;
  min-width: 190px;
  margin-right: 4px;
}
.header__search-box input {
  width: 100%;
  border: none; outline: none;
  background: transparent;
  color: #fff;
  padding: 9px 13px;
  font-size: 1rem;
  font-family: inherit;
}
.header__search-box .search-btn {
  background: none; border: none;
  color: #32afed;
  padding: 0 13px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center;
}
.header__search-box .search-btn .fa-search {
  color: #32afed;
  transition: color .15s, filter .15s;
}
.header__search-box .search-btn:hover .fa-search,
.header__search-box .search-btn:focus .fa-search {
  color: #4dc7ff;
  filter: brightness(1.11);
}

/* Сортировка и VPN */
.sort-vpn-row {
  padding-top: 0px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0px auto 0 auto;
  box-sizing: border-box;
  justify-content: space-between;
  gap: 10px;
  line-height: 1;
}
.sort-vpn-link {
  color: #fff;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 0px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  transition: color .18s;
  border: none;
  background: none;
  gap: 13px;
  line-height: 1;
}

.sort-vpn-link:hover,
.sort-vpn-link:focus { color: #32afed; }

.model-views-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 500;
  background: none;
  padding: 0;
  line-height: 1;
  user-select: none;
}
.model-views-row::before {
  content: "Просмотры";
  font-weight: 500;
  font-size: 1.05rem;
  color: #fff;
}
.model-views-row .fa-eye {
  color: #fff;
  font-size: 1.15rem;
  margin: 0 5px;
  opacity: 0.97;
  position: relative;
  top: 1px;
}

/* Профиль модели */
.model-profile-row {
  display: flex;
  gap: 32px;
  align-items: stretch;
  margin: 2px 0 23px 0;
}
.model-card-wrapper {
  width: 33.33%;
  min-width: 0;
  max-width: 100%;
  display: flex;
}
.model-card {
  border: 1px solid #32343b;
  border-radius: 10px;
  padding: 0;
  text-align: center;
  box-shadow: 0 8px 32px -6px rgba(255,110,143,0.16), 0 0 10px 0 rgba(244,110,143,0.34), 0 8px 32px -6px rgba(255,255,255,0.08);
  background: #23262b;
  width: 100%;
  max-width: 383px;
  flex-shrink: 0;
  min-height: 305px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 20;
  overflow: hidden;
  cursor: default;
  transition: none;
}
.model-card:hover {
  transform: none;
  box-shadow: 0 8px 32px -6px rgba(255,110,143,0.16), 0 0 10px 0 rgba(244,110,143,0.34), 0 8px 32px -6px rgba(255,255,255,0.08);
}
.image-placeholder {
  width: 100%;
  padding-bottom: 110%;
  background-size: cover;
  background-position: center;
  border-bottom: none;
  position: relative;
  flex-grow: 1;
  overflow: hidden;
  transform-origin: center;
  z-index: 10;
}
/* LCP-изображение в верхней карточке */
.hero-thumb{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio: 768 / 850;   /* подгони под свой реальный ratio */
  object-fit:cover;
  background:#23262b;
  flex-grow:1;
  border-bottom:none;
}
.vote-block {
  display: flex;
  width: 100%;
  margin: 0; padding: 0;
  background: #282b30;
  border-radius: 0 0 10px 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
  height: 50px;
  position: relative;
  z-index: 30;
}
.vote-btn {
  flex: 0 0 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #f46e8f;
  background: transparent;
  cursor: pointer;
  border-radius: 0 0 0 10px;
  font-weight: 600;
  padding: 0; margin: 0;
  height: 100%;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
#like-count {
  flex: 0 0 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.09rem;
  font-weight: 600;
  border-left: 1.5px solid #35363a;
  user-select: none;
  border-radius: 0 0 10px 0;
  margin: 0;
  height: 100%;
}
.vote-btn:hover,
.vote-btn:focus {
  background: #3c2027;
  color: #f46e8f;
  border-color: #f46e8f;
  outline: none;
}
.vote-btn i.fa-solid {
  font-size: 1.8rem;
  color: #f46e8f;
  pointer-events: none;
}

.model-info {
  flex: 1.7;
  display: flex;
  flex-direction: column;
  padding-right: 0;
  justify-content: flex-start;
  min-width: 0;
  margin-top: 0;
  position: relative;
  gap: 45px;
}
.model-info .description {
  max-height: calc(400px);
  overflow-y: auto;
  padding-right: 10px;
  padding-bottom: 0;
  box-sizing: content-box;
  font-size: 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
  margin-top: 0 !important;
  padding-top: 0 !important;
  user-select: text;
}
.description p { margin: 0 0 .1em; line-height: 1.5; }
.description p:last-child { margin-bottom: 0; }
.description .ql-align-center { text-align: center; }
.description .ql-align-right { text-align: right; }
.description .ql-align-justify { text-align: justify; }

.model-info .description::-webkit-scrollbar { width: 7px; }
.model-info .description::-webkit-scrollbar-track { background: #22252a; border-radius: 5px; }
.model-info .description::-webkit-scrollbar-thumb {
  background-color: #f46e8f;
  border-radius: 5px;
  border: 2px solid #22252a;
}
.model-info .description::-webkit-scrollbar-thumb:hover { background-color: #1f8cd1; }
.model-info .description {
  scrollbar-width: thin;
  scrollbar-color: #f46e8f #22252a;
  overflow-x: hidden !important;
  word-break: break-word;
}

.media-links {
  display: flex;
  justify-content: center;
  gap: 45px;
  margin-top: auto;
  margin-bottom: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.media-links a {
  height: 45px;
  flex: 1 1 0;
  max-width: 100%;
  padding: 0;
  background: #282b30;
  color: #fff;
  border-radius: 7px;
  text-decoration: none;
  font-size: 1.13rem;
  font-weight: bold;
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  box-shadow: 0 2px 10px 0 rgba(50,175,237,0.08);
  transition: box-shadow 0.16s, transform 0.17s;
  cursor: pointer;
  border: none;
  position: relative;
  z-index: 1;
  line-height: 1;
  user-select: none;
  border: 2px solid #fff;
  align-items: center;   
}

.media-links a i {
  font-size: 21px;
  color: #fff;
  transition: none;
  pointer-events: none;
}
.media-links a span {
  font-size: 1.08rem;
  font-weight: bold;
  color: #fff;
  transition: none;
  user-select: none;
}
.media-links a:hover,
.media-links a:focus-visible {
  box-shadow: 0 0 12px 1px #32afed, 0 2px 10px 0 rgba(50,175,237,0.13);
  background: #282b30;
  color: #fff;
  outline: none;
  transform: scale(1.03);
}
.media-links a:hover i,
.media-links a:focus i,
.media-links a:hover span,
.media-links a:focus span {
  color: #fff;
}

/* Другие модели */
.other-models-section {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
}
.other-models-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f46e8f;
  margin-bottom: 20px;
  user-select: none;
  text-align: left;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
}
.other-models-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
}
.other-model-card {
  width: 100%;
  min-width: 0;
  border: 1px solid #32343b;
  border-radius: 10px;
  background: #23262b;
  cursor: pointer;
  transition: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  user-select: none;
}
.other-model-card:hover,
.other-model-card:focus {
  transform: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.other-model-card .other-thumb{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio: 5 / 6;   /* подгони под свои карточки */
  object-fit:cover;
  background:#23262b;
  flex-shrink:0;
}

.other-model-card .name-box {
  padding: 8px 10px;
  font-size: 1.09rem;
  color: #fff;
  font-weight: 400;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: #282b30;
  flex-shrink: 0;
  transition: color 0.18s;
}
.other-model-card:hover .name-box,
.other-model-card:focus .name-box { color: #f46e8f; }

/* Футер */
.footer-text {
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  text-align: justify;
  width: 100%;
  box-sizing: border-box;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}
.attention {
  color: #f46e8f;
  font-weight: 700;
  text-transform: uppercase;
}
.footer-black {
  width: 100%;
  max-width: 1236px;
  margin: 20px auto 0;
  background: #282b30;
  border-radius: 10px 10px 0 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 -8px 32px -6px rgba(255,255,255,0.1), 0 -2px 10px 0 rgba(50,175,237,0.3);
  flex-shrink: 0;
  position: relative;
}
.footer-black .age-restriction {
  flex-shrink: 0;
  margin-right: 24px;
  display: flex;
  align-items: center;
}
.footer-black .age-restriction-img {
  height: 40px; width: auto; object-fit: contain; display: block;
}
.footer-black .footer-content {
  flex-grow: 1;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  margin-left: 0; margin-right: 0;
  padding-right: 20px;
}
.footer-black .footer-content p {
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  width: 100%;
}
.lang-switcher-footer {
  display: flex; align-items: center; gap: 7px;
  margin-left: 0; margin-right: 0;
}
.lang-switcher-oval {
  position: relative;
  width: 42px; height: 25px;
  background: #282b30;
  border: 2px solid #fff;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px; box-sizing: border-box;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.lang-switcher-knob {
  position: absolute; left: 2px;
  width: 13px; height: 13px;
  background: #304552;
  border: 2px solid #fff;
  border-radius: 50%;
  transition: left .25s cubic-bezier(.44,.06,.51,1), background .15s;
  z-index: 2;
}
.lang-switcher-oval.active .lang-switcher-knob { left: 19px; }
.lang-switcher-flag {
  z-index: 1;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: visible;
}
.lang-switcher-flag img {
  display: block;
  height: 18px; width: 29px;
  object-fit: cover;
  margin: 0; padding: 0;
  box-shadow: none !important;
  background: transparent !important;
}

/* Модалка */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(28,31,38,0.85);
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: #23262b; color: #fff;
  border-radius: 13px;
  box-shadow: 0 8px 32px -6px rgba(255,110,143,0.21), 0 0 10px 0 rgba(50,175,237,0.22), 0 8px 32px -6px rgba(255,255,255,0.09);
  padding: 22px 30px 26px;
  min-width: 300px; max-width: 92vw; max-height: 80vh;
  display: flex; flex-direction: column; align-items: center;
  font-size: 1.09rem;
  animation: modal-pop 0.21s cubic-bezier(.42,.01,.74,1.03);
}
.modal-box .modal-msg {
  margin-bottom: 14px;
  text-align: center;
  font-weight: 500; color: #fff; line-height: 2;
}
.modal-box .modal-btn {
  padding: 9px 26px;
  border: none; border-radius: 7px;
  background: #32afed; color: #fff;
  font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: background 0.16s;
  margin-top: 2px;
  box-shadow: 0 2px 7px rgba(50,175,237,0.13);
}
.modal-box .modal-btn:hover { background: #2196d6; }

/* Мобильные элементы: по умолчанию скрыты (ПК/планшет) */
.mobile-header,
.mobile-nav-menu,
.mobile-search-form,
.mobile-views-row,
.mobile-sort {
  display: none;
}

/* На всякий случай: убираем маркеры у списка в мобильном меню */
.mobile-nav-menu ul { list-style: none; margin: 0; padding: 0; }

/* === Мобилка (max-width: 650px) и другие брейкпоинты === */
@media (max-width: 1250px) {
  .other-models-section,
  .other-models-section h2,
  .other-models-list { max-width: 98vw; }

  .header { flex-wrap: wrap; gap: 10px; }
  .header__logo { margin: 9px 0 5px 2px; }
  .header__menu { gap: 7px; margin: 0; }
  .header__search { max-width: 180px; }

  .sort-vpn-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .model-views-row { justify-content: flex-start; margin-top: 0px; }

  .model-profile-row { flex-direction: column; gap: 25px; }
  .model-card-wrapper { width: 100%; }

  .media-links { flex-direction: column; gap: 20px; height: auto; max-width: 100%; }
  .media-links a { max-width: 100%; width: 100%; flex: none; }

  .other-models-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 660px) {
  .header {
    flex-direction: column;
    align-items: stretch;
    padding: 0 2vw;
    gap: 0;
    min-height: 0;
  }
  .header__logo { font-size: 1.18rem; margin: 8px 0 5px 2px; }
  .header__menu { justify-content: center; gap: 2px; margin: 2px 0 8px; font-size: 0.96rem; }
  .header__search { margin: 4px 0 9px; max-width: 100%; }
}

@media (max-width: 650px) {
  * { -webkit-tap-highlight-color: transparent !important; outline: none !important; }

  .header { display: none !important; }
  .mobile-header {
    display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 2000;
    background: #282b30; padding: 0;
    box-shadow: 0 6px 24px -6px rgba(50,175,237,0.20);
    border-radius: 0 !important;
  }
  .mobile-header-row {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 70px; width: 100%;
    padding-left: 20px; padding-right: 18px; box-sizing: border-box; gap: 8px;
  }
  .mobile-header-actions {
    display: flex; align-items: center; justify-content: flex-end;
    flex: 1 1 auto; gap: 7px; min-width: 0;
  }
  .mobile-logo {
    line-height: 40px; transform: scaleY(1.15);
    font-size: 1.6rem; font-weight: bold; color: #fff;
    display: flex; align-items: center; user-select: none; text-decoration: none;
  }
  .mobile-logo .logo-silk { color: #32afed; font-weight: 700; letter-spacing: 1px; }
  .mobile-logo .logo-pill { color: #f46e8f; font-weight: 700; margin-left: 3px; letter-spacing: 1px; }

  .mobile-btn {
    background: none; border: none; color: #fff; font-size: 1.37rem;
    margin: 0; padding: 8px 8px; padding-right: 0 !important;
    border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    min-width: 40px; min-height: 40px; box-sizing: border-box; transition: background 0.16s, color 0.18s;
  }
  .mobile-btn i { font-size: 1.37rem; width: 1em; height: 1em; display: inline-block; vertical-align: middle; }
  .mobile-btn.mobile-burger i { color: #fff; font-size: 2rem !important; position: relative; top: 1px; width: 1.15em; height: 1.15em; }
  .mobile-btn.mobile-stripper i { color: #FFD700; }
  .mobile-btn.mobile-donate i { color: #FFD700; animation: coin-jump 5s ease-in-out infinite !important; }
  .mobile-btn.mobile-search-toggle i { color: #32afed; }

  .mobile-search-form {
    border-top: 1px solid #35363a; display: none;
    padding: 15px; animation: dropdown-search 0.23s cubic-bezier(.51,.02,.49,.98);
    background: #282b30;
  }
  .mobile-search-form.active { display: block; }

  .mobile-nav-menu {
    display: none; position: fixed; top: 57px; left: 0; right: 0;
    background: #23262b; z-index: 1999; box-shadow: 0 14px 24px -10px #000a;
    animation: navmenu-slide .21s cubic-bezier(.51,.02,.49,.98);
    border-radius: 0 0 10px 10px; padding: 12px 0 4px;
  }
  .mobile-nav-menu.active { display: block; }
  .mobile-nav-menu ul { list-style: none; margin: 0; padding: 0 9px; }
  .mobile-nav-menu li { margin: 0; border-bottom: 1px solid #30333a44; }
  .mobile-nav-menu li:last-child { border-bottom: none; }
  .mobile-nav-menu a {
    display: flex; align-items: center; gap: 12px;
    color: #ffffff; text-decoration: none; font-size: 1.1rem;
    padding: 15px 12px; transition: background 0.14s, color 0.13s; border-radius: 0;
  }
  .mobile-nav-menu a i { font-size: 1.14em; width: 22px; min-width: 22px; text-align: center; }
  .mobile-nav-menu a:hover,
  .mobile-nav-menu a:focus { color: #32afed; background: #24272c; }
  .mobile-nav-menu a[href$="donate.html"] .fa-coins { color: #FFD700; }
  .mobile-nav-menu a[href$="/en/donate-en.html"] .fa-coins { color: #FFD700; }
  .mobile-nav-menu a[href$="stripper.html"] .fa-fire-flame-curved { color: #f46e8f; }
  .mobile-nav-menu a .fa-shield-alt { color: #FFD700; }

  .mobile-sort { display: none; }

  .mobile-vpn-link {
    color: #fff; font-weight: 500; font-size: 1.13rem;
    display: inline-flex; align-items: center; gap: 12px;
    text-decoration: none; cursor: pointer; transition: color .18s;
    border: none; background: none; line-height: 1; margin-right: auto; margin-bottom: 2px;
  }
  .mobile-vpn-link .fa-paper-plane {
    font-size: 1.15em; width: 21px; height: 21px; opacity: 0.97; position: relative; top: 0;
  }
  .mobile-vpn-link:hover,
  .mobile-vpn-link:focus { color: #32afed; }

  .mobile-views-label {
    margin-top: -2px; font-weight: 500; letter-spacing: .01em; color: #fff; font-size: 1.13rem;
  }
  .mobile-views-row i,
  .mobile-views-row #mobile-model-views-count { margin-top: 0; } 

  .mobile-sort {
    display: flex !important; flex-direction: row !important; align-items: center !important; gap: 8px !important;
    justify-content: flex-end !important;
    padding: 0 20px !important; margin: 0 0 8px !important; min-height: 40px;
    box-sizing: border-box; background: transparent;
  }
  .mobile-sort-label {
    color: #fff; font-weight: 500; font-size: 1.06rem; letter-spacing: .01em;
    white-space: nowrap; flex-shrink: 0; line-height: 1; padding: 0; margin-right: auto !important;
  }
  .mobile-sort-icon {
    color: #fff; background: none; border: none; outline: none; border-radius: 6px;
    padding: 0; margin: 0; transition: color 0.14s, background 0.13s;
    display: flex !important; align-items: center !important; cursor: pointer; text-decoration: none !important;
    font-size: 1.36rem !important; min-width: 39px; min-height: 39px; justify-content: center; margin-top: 6px;
  }
  .mobile-sort-icon.active { color: #32afed; background: none !important; }
  .mobile-sort-icon:focus,
  .mobile-sort-icon:hover:not(.active) { color: #32afed; background: rgba(50,175,237,0.07); }
  .mobile-sort-icon i {
    pointer-events: none; line-height: 1; font-size: 1.13rem !important;
    width: 1.15em !important; height: 1.15em !important; display: inline-block !important; vertical-align: middle !important;
  }
  .mobile-sort-icon:last-child { margin-right: 0 !important; }
  .mobile-sort-icon i.fa-heart { position: relative; left: 2px; }

  .mobile-views-row {
    display: flex; align-items: center; justify-content: flex-end;
    width: 100%; padding: 13px 22px 5px; font-size: 1.1rem; gap: 12px; color: #fff; background: transparent; box-sizing: border-box;
  }
  .mobile-views-row .fa-eye { color: #fff; font-size: 1.125rem; opacity: 0.95; margin-right: 0; }
  #mobile-model-views-count { font-weight: 500; font-size: 1.11rem; letter-spacing: 0.5px; }

  .model-card-wrapper {
    display: flex !important; justify-content: center !important;
    padding-left: 12px !important; padding-right: 14px !important; box-sizing: border-box !important;
  }
  .model-card { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; }

  .model-info {
    padding-left: 18px !important; padding-right: 18px !important; box-sizing: border-box !important;
    gap: 35px;
  }
  .media-links {
    padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .media-links a { box-sizing: border-box !important; }

  .model-info .description {
    padding-left: 0 !important; padding-right: 0 !important; box-sizing: border-box !important;
    max-height: none !important; overflow: visible !important; text-align: justify !important; font-size: 1rem !important;
  }
  .description p { line-height: 1.4; }
  .description ul, .description ol, .description li, .description .list-item { text-align: left !important; }

  .model-info .description::-webkit-scrollbar { width: 7px; background: #22252a; }
  .model-info .description::-webkit-scrollbar-thumb { background: #f46e8f; border-radius: 5px; }

  .model-profile-row { gap: 10px; }

  .other-models-section { margin: 10px 10px 20px 0; padding: 0 15px; max-width: 100vw; }
  .other-models-section h2, .other-models-list { max-width: 100vw; }
  .other-models-list {
    display: flex !important; flex-direction: row !important; overflow-x: auto !important; overflow-y: hidden !important;
    gap: 13px !important; box-sizing: border-box;
  }
  .other-model-card { min-width: 50vw; max-width: 60vw; flex: 0 0 auto !important; scroll-snap-align: start; }
  .other-model-card .name-box { font-size: 0.9rem; padding: 6px 8px; }

  .footer-text {
    padding-left: 15px !important; padding-right: 15px !important; box-sizing: border-box !important;
    margin: 15px 0 0; font-size: 1rem !important;
  }
  .footer-text p { margin: 0 !important; }
  .footer-text p + p { margin-top: 15px !important; }

  .footer-black {
    flex-direction: column; align-items: stretch; text-align: center;
    padding: 10px 15px 15px; margin-top: 32px !important; border-radius: 0 !important;
  }
  .footer-black .footer-content { order: 2; margin-top: 10px; width: 100%; text-align: center; padding: 0; }
  .footer-black .age-restriction,
  .footer-black .lang-switcher-footer { order: 1; margin-bottom: 0; margin-right: 0; display: inline-flex; align-items: center; }
  .footer-black .footer-top-row {
    display: flex; flex-direction: row; justify-content: space-between; align-items: center; width: 100%;
    margin-bottom: 12px; gap: 5px;
  }
  .footer-black .footer-top-row-mobile {
    display: flex; flex-direction: row; justify-content: center; align-items: center; width: 100%;
    margin: 5px 0; gap: 82px;
  }
  .footer-black .footer-content p { font-size: 0.75rem; line-height: 1.4; }
  .footer-black .footer-content br { display: none; } 

  .pagination-simple {
    font-size: 1.19rem; gap: 13px; padding-top: 18px; flex-wrap: wrap; max-width: 100%;
    box-sizing: border-box; justify-content: center; margin: 0 auto;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .pagination-simple::-webkit-scrollbar { display: none; }

  .page-link {
    min-width: 42px; min-height: 42px; padding: 0; border-radius: 6px; font-size: 1.17rem;
    margin: 0; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
    font-weight: 500; border: none; background: transparent; outline: none; transition: background 0.13s, color 0.15s;
  }
  .page-link.active { background: #f46e8f; color: #fff; font-weight: 700; box-shadow: none; }
  .page-link:hover:not(.active) { background: rgba(244,110,143,0.19); color: #fff; }

  .modal-box { padding-left: 18px !important; padding-right: 18px !important; min-width: 0 !important; width: 90vw !important; max-width: 97vw !important; box-sizing: border-box !important; }
  .model-card-wrapper { margin-top: -2px; }
}

@media (max-width: 600px) {
  .model-views-row { font-size: 0.99rem; }
  .sort-vpn-row { gap: 7px; }
}
@media (max-width: 450px) {
  .modal-box { padding: 20px 6vw; min-width: 0; }
}

/* === Планшет (min-width: 651px) и (max-width: 1250px) === */
@media (min-width: 651px) and (max-width: 1250px) {
  .header__logo { cursor: pointer; }
  .header {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    width: 100%; max-width: 100%;
    padding: 15px 20px; background: #282b30; min-height: 70px;
    box-shadow: 0 6px 24px -6px rgba(50,175,237,0.18);
    border-radius: 0; box-sizing: border-box; position: fixed !important; top: 0; left: 0; right: 0; z-index: 1000;
  }
  .header__logo {
    grid-column: 1; font-size: 2rem; font-weight: bold; color: #fff; display: flex; align-items: center;
    user-select: none; margin-right: 0; justify-self: start; min-width: 130px;
  }
  .header__menu {
    grid-column: 2;
    display: flex !important; flex-direction: row; justify-content: space-evenly !important; align-items: center !important;
    width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important;
  }
  .header__menu li {
    flex: 0 0 auto; display: flex; justify-content: center; align-items: center; margin: 0; padding: 0;
  }
  .header__menu li a {
    width: 48px; height: 48px; min-width: 48px; min-height: 48px; max-width: 48px; max-height: 48px;
    border-radius: 50%; padding: 0 !important; font-size: 0 !important;
    display: flex; align-items: center; justify-content: center; background: none; color: #fff !important;
    position: relative; overflow: hidden; border: none; transition: background 0.13s, color 0.14s;
  }
  .header__menu li a *:not(.fa):not(svg):not(.fa-solid):not(.fa-paper-plane):not(.fa-envelope):not(.fa-coins):not(.fa-fire-flame-curved):not(.fa-house) {
    display: none !important;
  }
  .header__menu li a .fa,
  .header__menu li a .fa-solid,
  .header__menu li a svg {
    display: inline-block !important; font-size: 1.6rem !important; margin: 0 !important;
    color: inherit !important; vertical-align: middle; pointer-events: none; transition: color 0.15s;
  }
  .header__logo, .header__menu { transform: translateY(-2px); }

  .header__menu li a.menu-stripper { margin-right: -5px !important; }
  .header__menu li a.menu-stripper .fa-fire-flame-curved { color: #f46e8f !important; }
  .header__menu li a.menu-game .fa-bolt { color: #FFD700 !important; }
  .header__menu li a.menu-videochat .fa-play { color: #32afed !important; }
  .header__menu li a[href$="donate.html"] .fa-coins { color: #FFD700 !important; }
  .header__menu li a[href$="contacts.html"] .fa-envelope { color: #fff !important; }
  .header__menu li a[href$="/en/donate-en.html"] .fa-coins { color: #FFD700 !important; }
  .header__menu li a[href$="/en/contacts-en.html"] .fa-envelope { color: #fff !important; }

  .header__menu li a.menu-stripper:hover,
  .header__menu li a.menu-stripper:focus,
  .header__menu li a.menu-game:hover,
  .header__menu li a.menu-game:focus,
  .header__menu li a.menu-videochat:hover,
  .header__menu li a.menu-videochat:focus,
  .header__menu li a[href$="donate.html"]:hover,
  .header__menu li a[href$="donate.html"]:focus,
  .header__menu li a[href$="contacts.html"]:hover,
  .header__menu li a[href$="contacts.html"]:focus
  .header__menu li a[href$="/en/donate-en.html"]:hover,
  .header__menu li a[href$="/en/donate-en.html"]:focus,
  .header__menu li a[href$="/en/contacts-en.html"]:hover,
  .header__menu li a[href$="/en/contacts-en.html"]:focus,  {
    background: none !important; color: #fff !important;
  }
  .header__menu li a.menu-stripper:hover .fa-fire-flame-curved,
  .header__menu li a.menu-stripper:focus .fa-fire-flame-curved { color: #f46e8f !important; }
  .header__menu li a.menu-game:hover .fa-bolt,
  .header__menu li a.menu-game:focus .fa-bolt { color: #FFD700 !important; }
  .header__menu li a.menu-videochat:hover .fa-play,
  .header__menu li a.menu-videochat:focus .fa-play { color: #32afed !important; }
  .header__menu li a[href$="donate.html"]:hover .fa-coins,
  .header__menu li a[href$="donate.html"]:focus .fa-coins { color: #FFD700 !important; }
  .header__menu li a[href$="contacts.html"]:hover .fa-envelope,
  .header__menu li a[href$="contacts.html"]:focus .fa-envelope { color: #fff !important; }
  .header__menu li a[href$="/en/donate-en.html"]:hover .fa-coins,
  .header__menu li a[href$="/en/donate-en.html"]:focus .fa-coins { color: #FFD700 !important; }
  .header__menu li a[href$="/en/contacts-en.html"]:hover .fa-envelope,
  .header__menu li a[href$="/en/contacts-en.html"]:focus .fa-envelope { color: #fff !important; }

  .header__search {
    grid-column: 3; max-width: 240px; min-width: 120px; margin-left: 0; margin-right: 0;
    display: flex; align-items: center; justify-self: end;
  }
  .header__search-box {
    width: 100%; background: #282b30; border-radius: 7px; border: 1px solid #35363a; overflow: hidden;
    box-sizing: border-box; display: flex; align-items: center; max-width: 100%; margin-right: 0;
  }
  .header__search-box input {
    width: 100%; border: none; outline: none; background: transparent; color: #fff;
    padding: 10px 13px; font-size: 1.1rem; font-family: inherit; box-sizing: border-box;
  }
  .header__search-box .search-btn {
    background: none; border: none; color: #32afed; padding: 0 13px; font-size: 1.6rem;
    cursor: pointer; display: flex; align-items: center; box-sizing: border-box; flex-shrink: 0;
  }
  .header__search-box .fa-search { color: #32afed; }

  body { padding-top: 60px !important; }
  .container { margin: 0 auto; padding: 22px 0 0; flex: 1 0 auto; width: 100%; box-sizing: border-box; }

  .sort-vpn-row {
    display: flex !important; flex-direction: row !important; align-items: center !important;
    padding: 33px 20px 4px !important; gap: 20px !important; box-sizing: border-box !important;
    width: 100% !important; max-width: 1200px; margin: 20px auto 0 !important;
  }
  .sort-vpn-link,
  .model-views-row {
    display: inline-flex !important; align-items: center !important; margin: 0 !important; padding: 0 !important;
  }
  .model-views-row::before {
    content: "Просмотры"; font-weight: 500; font-size: 1.2rem; color: #fff;
  }
  .sort-vpn-link .fa-shield-alt {
    margin-right: 0 !important; font-size: 1.25rem !important; vertical-align: middle !important; position: relative !important;
  }
  .sort-vpn-link { font-size: 1.15rem !important; gap: 12px; }
  .model-views-row { font-size: 1.15rem !important; }
  .model-views-row .fa-eye { font-size: 1.15rem !important; margin-bottom: 1px; }
  #model-views-count { font-size: 1.15rem !important; }

  .model-profile-row { margin-top: 5px !important; }
  .model-card-wrapper { display: flex !important; justify-content: center !important; }
  .model-card { box-sizing: border-box !important; width: 65% !important; max-width: 65% !important; margin: 0 auto !important; }

  .model-info .description {
    padding-left: 20px !important; padding-right: 20px !important; padding-top: 20px !important;
    overflow-y: visible !important; max-height: none !important;
  }

  .media-links {
    width: 100% !important; max-width: 85% !important; margin: 0 auto !important;
    box-sizing: border-box !important; display: flex !important; flex-direction: row !important;
    gap: 50px; margin-bottom: -15px !important; align-items: stretch;
  }
  .media-links a {
    flex: 1 1 0 !important; width: auto !important; max-width: none !important;
    display: flex !important; justify-content: center !important;
  }

  .model-info .description,
  .footer-text {
    padding-left: 20px !important; padding-right: 20px !important; font-size: 1.1rem !important;
  }
  .footer-text { margin-top: 10px; }

  .other-models-section { padding: 0 20px !important; box-sizing: border-box !important; }
  .other-models-list {
    overflow-x: auto !important; display: flex !important; gap: 16px;
    scrollbar-width: thin !important; scrollbar-color: #f46e8f transparent !important; scroll-snap-type: x mandatory;
  }
  .other-models-list::-webkit-scrollbar { height: 4px !important; }
  .other-models-list::-webkit-scrollbar-thumb { background-color: #f46e8f !important; border-radius: 5px !important; }
  .other-models-list::-webkit-scrollbar-track { background: transparent !important; }
  .other-models-list::-webkit-scrollbar-button { display: none !important; }
  .other-model-card { flex: 0 0 auto; width: 38%; scroll-snap-align: start; }

  .media-links a span { font-size: 1.2rem !important; }
  .media-links a i { font-size: 1.4rem !important; }
  #photo-count, #video-count, #like-count { font-size: 1.2rem !important; }
  .other-models-section h2 { font-size: 1.6rem !important; }
  .footer-black .footer-content p { font-size: 0.8rem !important; }
}
/* Подсказки браузеру для производительности */
.other-models-section,
.footer-text,
.footer-black{
  content-visibility:auto;
  contain-intrinsic-size: 1px 900px; /* примерная высота, чтобы не было CLS */
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.other-thumb.is-loading{
  background: linear-gradient(90deg,#2a2d33 25%,#30343a 37%,#2a2d33 63%);
  background-size: 400% 100%;
  animation: shimmer 1.2s linear infinite;
}

@media (max-width: 650px){
  /* Чуть приподнять иконку и счётчик */
  .mobile-views-row .fa-eye,
  .mobile-views-row #mobile-model-views-count{
    position: relative;
    top: -2px;          
  }
}
.header, .mobile-header{
  background-color: rgba(40, 43, 48, 0.92) !important;
  backdrop-filter: blur(8px) saturate(125%);
  -webkit-backdrop-filter: blur(8px) saturate(125%); /* Safari */
}
@supports not ((backdrop-filter: blur(1px))){
  .header, .mobile-header{ background-color: rgba(40,43,48,0.92) !important; }
}
/* is-liked — не меняем внешний вид при hover/focus, просто подсказка */
.vote-like.is-liked:hover,
.vote-like.is-liked:focus {
  background: inherit;
  color: inherit;
  transform: none;
}

/* лёгкий тактильный отклик при тапе */
.vote-like:active { transform: scale(.98); }

/* видимый фокус для клавиатуры (доступность) */
.vote-like:focus-visible{
  outline: 2px solid #32afed;
  outline-offset: 2px;
}

/* мобильные тапы – без задержек и без синего хайлайта */
.vote-like{
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* Пульс сердечка при успешном лайке */
@keyframes heart-pop {
  0% { transform: scale(1); }
  20% { transform: scale(1.25); }
  60% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
/* Небольшой «бумп» для повторного клика */
@keyframes bump {
  0%,100% { transform: translateY(0); }
  40% { transform: translateY(-2px); }
  60% { transform: translateY(1px); }
}

/* Вешаем анимации на кнопку */
.vote-like.pulse i { animation: heart-pop .45s ease; }
.vote-like.bump { animation: bump .25s ease; }

/* Tooltip на кнопке лайка — лёгкая прозрачность */
.vote-like { position: relative; }

.vote-like.tip-visible::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(34,37,42,.96); /* #22252a @ 96% */
  color: #fff;
  font-size: .9rem;
  padding: 6px 10px;
  border-radius: 7px;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.5),
              0 0 0 1px rgba(255,255,255,.06) inset;
  pointer-events: none;
  z-index: 40;
}

.vote-like.tip-visible::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(34,37,42,.96); /* стрелочка того же цвета */
}

/* --- Keep envelope icon white on hover (RU & EN contacts) --- */
.header__menu li a[href$="contacts.html"]:hover .fa-envelope,
.header__menu li a[href$="/en/contacts-en.html"]:hover .fa-envelope,
.header__menu li a[href$="contacts.html"]:focus .fa-envelope,
.header__menu li a[href$="/en/contacts-en.html"]:focus .fa-envelope {
  color: #fff !important;
  fill: #fff !important;
}

/* Telegram в ряду под шапкой — иконка остаётся белой и при hover/focus */
.sort-vpn-row .sort-vpn-link i.fa-paper-plane,
.sort-vpn-row .sort-vpn-link i.fa-paper-plane::before {
  color: #fff !important;
}

.sort-vpn-row .sort-vpn-link:hover i.fa-paper-plane,
.sort-vpn-row .sort-vpn-link:hover i.fa-paper-plane::before,
.sort-vpn-row .sort-vpn-link:focus i.fa-paper-plane,
.sort-vpn-row .sort-vpn-link:focus i.fa-paper-plane::before {
  color: #fff !important;
}

@media (min-width: 1251px) 
/* === Стили под заголовок h1 === */      
  .header { position: fixed; }
      body { padding-top: 108px; }       

  .page-title{
	  margin: 0 0 15px 0;	  
	  line-height:1.2;
	  letter-spacing: .2px;
	  text-align: center;
	  font-size: 1.5rem;          
	  color: #ffd700;
  }
	
  .model-info .description {
  margin: 0 0 40px 0 !important;  
  padding-top: 0 !important;     
  }
  .model-info { 
  gap: 0 !important;           
  }

/* ===== Планшеты: 651–1250px ===== */
@media (min-width: 651px) and (max-width: 1250px) {
   .model-info { gap: 0 !important; }
   .header { position: fixed; }
    body { padding-top: 105px; }   
 
  .page-title{
    display: flex;
    flex-direction: column; 
    align-items: center;
    margin-bottom: 15px;
    text-align: center;	
	font-size: 1.6rem;          
	color: #ffd700;
  }  
}

@media (max-width: 650px){ 
    .header { position: fixed; }
      body { padding-top: 96px; }	
    
	.sort-vpn-row{
	  display: flex !important;
	  justify-content: space-between;
	  align-items: center;
	  gap: 12px;
	  padding: 0 22px;          /* без верхнего паддинга — у нас уже есть body{padding-top} */
	  margin: 0 auto 1px;
	  box-sizing: border-box;
	  flex-direction: row;	  
	}
	.mobile-sort,
	.mobile-views-row{
	  display: none !important;
	}

	/* чтобы ничего не переносилось на новую строку */	
	.sort-vpn-link,
	.model-views-row{ white-space: nowrap; font-size: 1.13rem; }	  
	  
	 .page-title{
	  margin: 10px 0 15px;	  
	  line-height: 1.5;
	  letter-spacing: .2px;
	  text-align: center;
	  font-size: 1.5rem;          
	  color: #ffd700;
	}   
	.model-views-row::before {
    content: none !important;   
    display: none !important;
  }  
}

/* ==== Универсальная модалка .sp-modal (ровный крестик, тонкий скролл) ==== */

/* Без «прыжка» макета при фиксации body */
html { scrollbar-gutter: stable; }

/* Лок скролла без скрытия полосы */
body.modal-lock{
  position: fixed;
  top: var(--lock-top, 0);
  left: 0; right: 0;
  width: 100%;
}

/* Корень модалки */
.sp-modal{
  position: fixed; inset: 0; z-index: 4000;
  display: none;                       /* скрыта по умолчанию */
  align-items: center; justify-content: center;
}
.sp-modal.is-open{ display: flex; }

/* Затемнение */
.sp-modal .sp-modal__backdrop{
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(2px);
}

/* Диалог */
.sp-modal .sp-modal__dialog{
  position: relative;                   /* якорь для крестика */
  background: #282b30; color: #fff;
  width: min(920px, 94vw); max-height: 86vh;
  border: 1px solid #35363a; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  display: flex; flex-direction: column; overflow: hidden;
}

/* Заголовок */
.sp-modal .sp-modal__title{
  margin: 0; text-align: center;
  padding: 14px 56px;                  /* запас под крест справа */
  border-bottom: 1px solid #35363a;
  color: #e9eaec; font-size: 1.15rem; line-height: 1.3;
}

/* Тело + тонкий скролл как на странице */
.sp-modal .sp-modal__body{
  padding: 14px 16px 16px; overflow: auto;
  scrollbar-width: thin; scrollbar-color: #f46e8f #22252a;
}
.sp-modal .sp-modal__body::-webkit-scrollbar{ width: 7px; }
.sp-modal .sp-modal__body::-webkit-scrollbar-track{ background:#22252a; }
.sp-modal .sp-modal__body::-webkit-scrollbar-thumb{
  background-color:#f46e8f; border-radius:5px; border:2px solid #22252a;
}
.sp-modal .sp-modal__body::-webkit-scrollbar-thumb:hover{ background-color:#1f8cd1; }

/* Текст в теле */
.sp-modal__body .legal-copy p{ margin:0 0 10px; }
.sp-modal__body .legal-copy ul{ margin:0 0 10px 1.2em; padding-left:1.2em; }
.sp-modal__body .legal-copy li{ margin:6px 0; }

/* === Крестик без круга — ВСЕГДА в правом верхнем углу шапки === */
/* Позиционируем относительно .sp-modal__dialog, а не заголовка */
.sp-modal .sp-modal__close{
  --head-pad-x: 7px;                  /* правый отступ (ПК) */
  --head-pad-y: 9px;                  /* верхний отступ (ПК) */
  position: absolute;
  top: var(--head-pad-y);
  right: var(--head-pad-x);
  width: 36px; height: 36px;           /* удобная зона клика */
  background: transparent; border: 0; padding: 0; margin: 0;
  cursor: pointer; outline: none; appearance: none;
  color: transparent; font-size: 0; line-height: 0; text-indent: -9999px;
  --x-scale: 1;
}

/* Сам «Х» рисуем двумя полосками по центру кнопки */
.sp-modal .sp-modal__close::before,
.sp-modal .sp-modal__close::after{
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  transform-origin: center; transition: transform .14s ease;
}
.sp-modal .sp-modal__close::before{ transform: translate(-50%,-50%) rotate(45deg)  scale(var(--x-scale)); }
.sp-modal .sp-modal__close::after { transform: translate(-50%,-50%) rotate(-45deg) scale(var(--x-scale)); }

.sp-modal .sp-modal__close:hover,
.sp-modal .sp-modal__close:focus-visible{ --x-scale: 1.12; }
.sp-modal .sp-modal__close:active{ --x-scale: 1.06; }

/* Меньше анимаций, если пользователь так хочет */
@media (prefers-reduced-motion: reduce){
  .sp-modal .sp-modal__close::before,
  .sp-modal .sp-modal__close::after{ transition: none; }
}

/* Мобайл: больше зона клика, аккуратные одинаковые отступы */
@media (max-width: 650px){
  .sp-modal .sp-modal__dialog{ width: 96vw; max-height: 88vh; border-radius: 10px; }
  .sp-modal .sp-modal__title{ padding: 12px 48px; font-size: 1rem; }
  .sp-modal .sp-modal__close{
    --head-pad-x: 3px;
    --head-pad-y: 3px;
    width: 40px; height: 40px;
  }
  .sp-modal .sp-modal__close::before,
  .sp-modal .sp-modal__close::after{ width: 18px; height: 2px; }
}

/* после клика фокус-рамка на ссылках не «залипает» */
a:focus:not(:focus-visible){ outline: none; }

/* === Настройки === */
:root{
  --doodles-size: 420px;       /* плотность узора */
  --doodles-alpha: .065;        /* видимость узора */
  --doodles-color: #e3e3e4;    /* цвет узора (через маску) */
}

/* База */
body{
  position: relative;
  background:#1e2228;
}
body > *{ position: relative; z-index: 1; }

/* Узоры поверх фона — через маску (надёжно, longhand + префиксы) */
body::before{
  content:"";
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;

  /* цвет, который «проявится» маской */
  background-color: var(--doodles-color);
  opacity: var(--doodles-alpha);

  /* ВАЖНО: укажи реальный путь к файлу, который существует! */
  -webkit-mask-image: url("/assets/bg/silkpill-doodles.min.svg");
  -webkit-mask-repeat: repeat;
  -webkit-mask-size: var(--doodles-size) var(--doodles-size);
  -webkit-mask-position: 0 0;

          mask-image: url("/assets/bg/silkpill-doodles.min.svg");
          mask-repeat: repeat;
          mask-size: var(--doodles-size) var(--doodles-size);
          mask-position: 0 0;
}

/* Fallback: если маски нет — просто тайлим SVG (без перекраски) */
@supports not (-webkit-mask-image: url("")) {
  body::before{
    background-image: url("/assets/bg/silkpill-doodles.min.svg");
    background-repeat: repeat;
    background-size: var(--doodles-size) var(--doodles-size);
    background-position: 0 0;
    /* видимость регулируем тут тоже общей прозрачностью */
    opacity: var(--doodles-alpha);
  }
}

/* Мобилка: плотнее и тише */
@media (max-width:650px){
  :root{
    --doodles-size: 360px;
    --doodles-alpha: .1;
  }
}



