:root {
  --accent-blue: #4b59f7;
}

/* Базовые стили */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f7f7f7;
  margin: 0;
  color: #222;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

header {
  background: #1c1c21;
  color: #fff;
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-main {
  flex-wrap: nowrap;
}

.nav-left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  flex-shrink: 0;
  width: 100%;
  position: relative;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 14px;
  background: #26262f;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
  flex-shrink: 0;
  z-index: 1002;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  margin: 0 auto;
}

.burger:hover {
  background: #30303a;
}

.logo {
  font-size: 2.0em;
  font-weight: 700;
  letter-spacing: 0.6px;
  position: absolute;
  left: calc(50% - 20px);
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.nav-search {
  display: flex;
  align-items: center;
  flex: 1 1 420px;
  max-width: 520px;
  min-width: 260px;
  background: #26262f;
  border: 1px solid #30303a;
  border-radius: 16px;
  padding: 0 12px 0 18px;
  height: 50px;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav-search:focus-within {
  border-color: #ff4d84;
  background: #2f2f38;
}

.nav-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1em;
  padding: 0;
  outline: none;
}

.nav-search input::placeholder {
  color: rgba(255,255,255,0.5);
}

.nav-search .search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #30303a;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-search .search-btn:hover {
  background: #ff4d84;
}

.nav-search .search-btn img {
  width: 18px;
  height: 18px;
  display: block;
  filter: invert(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.search-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid #30303a;
  background: #26262f;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.search-icon-btn img {
  width: 20px;
  height: 20px;
  filter: invert(1);
}

.search-icon-btn:hover {
  background: #35353f;
  border-color: #41414d;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #26262f;
  color: rgba(255,255,255,0.85);
  border: 1px solid #30303a;
  border-radius: 14px;
  padding: 11px 18px;
  font-size: 0.97em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.action-btn .icon {
  font-size: 1.1em;
  line-height: 1;
}

.action-btn:hover {
  background: #35353f;
  border-color: #41414d;
  color: #fff;
}

.action-btn.add-profile {
  background: #ff4d84;
  border-color: #ff4d84;
  color: #fff;
  font-weight: 600;
}

.action-btn.add-profile:hover {
  background: #ff2f70;
  border-color: #ff2f70;
}

.nav-secondary {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 10px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  color: rgba(255,255,255,0.75);
}

.nav-links li {
  cursor: pointer;
  font-size: 0.95em;
  transition: color 0.2s ease;
}

.nav-links li:hover {
  color: #fff;
}

.nav-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.meta-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #26262f;
  color: rgba(255,255,255,0.85);
  border: 1px solid #30303a;
  border-radius: 14px;
  padding: 9px 14px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.meta-btn .icon {
  font-size: 1.05em;
  line-height: 1;
}

.meta-btn .caret {
  font-size: 0.75em;
  opacity: 0.7;
}

.meta-btn:hover {
  background: #35353f;
  border-color: #41414d;
  color: #fff;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: row-reverse;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1100;
}

.mobile-menu .services-overlay {
  flex: 1;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu .services-drawer {
  width: 360px;
  max-width: 88vw;
  background: #fff;
  color: #1c1c21;
  box-shadow: 6px 0 24px rgba(0, 0, 0, 0.35);
  transform: translateX(-110%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu.open .services-overlay {
  opacity: 1;
}

.mobile-menu.open .services-drawer {
  transform: translateX(0);
}

.services-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 12px 22px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.services-close {
  background: none;
  border: none;
  font-size: 1.8em;
  line-height: 1;
  cursor: pointer;
  color: #1c1c21;
}

.services-title {
  font-size: 1.2em;
  font-weight: 700;
}

.services-content {
  padding: 18px 22px 24px 22px;
  overflow-y: auto;
  flex: 1;
}

.services-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 18px 24px;
}

.services-section-title {
  font-size: 0.95em;
  font-weight: 700;
  margin-bottom: 10px;
}

.services-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.92em;
}

.services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.services-tags span {
  background: #eef3ff;
  color: #3356ff;
  border-radius: 14px;
  padding: 6px 12px;
  font-size: 0.85em;
  font-weight: 600;
}

body.services-open {
  overflow: hidden;
}

@media (max-width: 1180px) {
  .top-nav {
    padding: 18px 20px;
  }

  .nav-main {
    flex-wrap: wrap;
    gap: 14px;
  }

  .nav-actions {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .action-btn {
    flex: 0 0 auto;
  }

  .nav-search {
    flex: 1 1 100%;
    max-width: none;
  }

  .nav-secondary {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-meta {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .top-nav {
    padding: 16px 16px;
    gap: 14px;
  }

  .nav-main {
    flex-direction: column;
    align-items: stretch;
    position: relative;
  }

  .nav-left {
    width: 100%;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    grid-template-rows: 44px;
    align-items: center;
    justify-items: center;
    padding: 0;
    gap: 0;
    position: relative;
  }

  .nav-search {
    width: 100%;
    display: none;
    order: 3;
    margin-top: 12px;
  }

  .nav-actions {
    width: 100%;
    gap: 10px;
    order: 4;
    flex-direction: column;
    align-items: stretch;
  }

  .action-btn {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .nav-secondary {
    display: block;
    order: 5;
    width: 100%;
    margin-top: 12px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px 18px;
    justify-content: center;
    width: 100%;
  }

  .search-icon-btn {
    display: flex;
    position: static;
    transform: none;
    grid-column: 3;
    top: auto;
    right: auto;
  }

  .nav-left .burger {
    position: static;
    transform: none;
    grid-column: 1;
    top: auto;
    left: auto;
  }

  .nav-left .logo {
    grid-column: 2;
    margin: 0;
    padding: 0;
  }

  .nav-search.active {
    display: flex;
  }

  .logo {
    margin: 0 auto;
    font-size: 1.7em;
    text-align: center;
  }

  .action-btn {
    background: #26262f;
    border: 1px solid #30303a;
  }

  .action-btn.add-profile {
    justify-content: center;
    background: #ff4d84;
    border-color: #ff4d84;
  }

  .nav-meta {
    display: none;
  }
}

@media (max-width: 600px) {
  .top-nav {
    padding: 14px 14px;
  }

  .mobile-menu .services-drawer {
    width: min(340px, 88vw);
  }

  .search-icon-btn {
    width: 44px;
    height: 44px;
  }
}

.profiles {
  max-width: 1200px;
  margin: 32px auto 0 auto;
  padding: 0 10px;
}

.profiles h2 {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: left;
  margin-left: 0;
  letter-spacing: 0.5px;
}

.online {
  color: #00c800;
  font-weight: bold;
  font-size: 0.9em;
  margin-left: 10px;
  letter-spacing: 0.5px;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: flex-start;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.profile-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.09);
  padding: 18px 16px 16px 16px;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s;
  justify-content: space-between;
}

.profile-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.profile-img-wrap.large-img {
  width: 100%;
  height: 220px;
  margin-bottom: 14px;
  align-self: center;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: #f5f5f5;
}

.profile-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-name {
  font-size: 1.2em;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
  margin-top: 2px;
  text-align: left;
}

.profile-params {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.97em;
  color: #555;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.profile-params span {
  background: #f5f5f5;
  padding: 3px 7px;
  border-radius: 6px;
}

.profile-params span b {
  color: #222;
  font-weight: 700;
  display: block;
}

/* Теги */
.tags-custom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
  gap: 6px;
}

.tag {
  border-radius: 10px;
  font-weight: 500;
  color: #fff;
  border: none;
  display: inline-block;
  text-align: center;
  font-size: 0.97em;
  padding: 7px 18px;
  margin: 2px 0;
}

.tags-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.tag-darkpink {
  background: #c2185b;
}

.tag-lightpink {
  background: #f06292;
}

.tag-darkblue {
  background: #2c3e7f;
}

.tag-lightblue {
  background: #5b7cfa;
}

/* Цены */
.profile-price {
  width: 100%;
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.profile-price.thin-price div {
  font-weight: 500;
  font-size: 0.97em;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fa;
  padding: 7px 10px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.price-value {
  font-weight: 700;
  color: #ff3366;
  margin-left: auto;
}

/* Действия */
.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
}

.profile-actions > * {
  min-width: 0;
}

.order-btn.wide-btn {
  flex: 1 1 auto;
  background: #4b59f7;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  width: 100%;
}

.order-btn.wide-btn img {
  width: 13px;
  height: 13px;
  display: block;
  flex-shrink: 0;
}

.order-btn.wide-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-btn.wide-btn:hover {
  background: #3a47d5;
}

.tg-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4b59f7;
  border-radius: 8px;
  padding: 0;
  transition: background 0.2s;
  min-width: 40px;
  height: 40px;
  width: 40px;
}

.tg-btn img {
  width: 20px;
  height: 20px;
  display: block;
  filter: invert(1);
}

/* Для планшетов 601-1200px: сжатие */
@media (min-width: 601px) and (max-width: 1200px) {
  .profile-actions {
    gap: 6px;
  }

  .order-btn.wide-btn {
    padding: 8px 10px;
    font-size: 0.9em;
    gap: 4px;
  }

  .order-btn.wide-btn img {
    width: 12px;
    height: 12px;
  }

  .tg-btn {
    padding: 6px;
    min-width: 36px;
    height: 36px;
  }

  .tg-btn img {
    width: 18px;
    height: 18px;
  }
}

/* Для <600px */
@media (max-width: 600px) {
  .profile-actions {
    gap: 4px;
  }

  .order-btn.wide-btn {
    height: 38px;
    font-size: 0.8em;
    padding: 6px 6px;
    flex: 1 1 auto;
  }

  .order-btn.wide-btn img {
    width: 12px;
    height: 12px;
  }

  .tg-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 6px;
  }

  .tg-btn img {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .profile-actions {
    gap: 3px;
  }

  .order-btn.wide-btn {
    height: 34px;
    font-size: 0.75em;
    padding: 4px 4px;
  }

  .order-btn.wide-btn img {
    width: 11px;
    height: 11px;
  }

  .tg-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    padding: 4px;
  }

  .tg-btn img {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 360px) {
  .profile-actions {
    gap: 2px;
  }

  .order-btn.wide-btn {
    height: 32px;
    font-size: 0.7em;
    padding: 3px 4px;
  }

  .order-btn.wide-btn img {
    width: 11px;
    height: 11px;
  }

  .tg-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }

  .tg-btn img {
    width: 16px;
    height: 16px;
  }
}

/* Кнопка "Смотреть все анкеты" */
.see-all-wrap {
  display: flex;
  justify-content: center;
  margin: 32px 0 0 0;
}

.see-all-btn {
  background: #4b59f7;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(75,89,247,0.15);
  transition: background 0.2s;
}

.see-all-btn:hover {
  background: #3a47d5;
}

/* Футер */
.footer-pink {
  background: #ef5a71;
  color: #fff;
  padding: 0;
  margin-top: 40px;
}

.footer-pink-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

.footer-pink-main {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding: 40px 0 20px 0;
}

.footer-pink-left {
  min-width: 0;
  margin-right: 18px;
}

.footer-pink-title {
  font-size: 2em;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.footer-pink-desc {
  font-size: 1em;
  margin-bottom: 18px;
  line-height: 1.3;
  opacity: 0.9;
}

.footer-pink-cols {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-right: 18px;
}

.footer-pink-cols > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 1em;
}

.footer-link {
  cursor: pointer;
  color: #fff;
  font-size: 1em;
  font-weight: 400;
  transition: opacity 0.2s;
  text-decoration: none;
  line-height: 1.1;
  user-select: none;
  opacity: 0.9;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-18-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-left: 18px;
  position: relative;
  flex-wrap: wrap;
}

.footer-18 {
  cursor: pointer;
  border-radius: 12px;
  transition: box-shadow 0.2s;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  align-items: center;
  height: 44px;
}

.footer-18:hover {
  box-shadow: 0 0 0 3px #fff;
}

.footer-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid #fff;
  border-radius: 22px;
  color: #ef5a71;
  font-size: 1em;
  font-weight: 600;
  padding: 10px 18px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255,255,255,0.2);
  margin-bottom: 30px;
}

.footer-tg-btn svg {
  width: 18px;
  height: 18px;
  stroke: #ef5a71;
  transition: stroke 0.2s;
}

.footer-tg-btn:hover {
  background: #fff;
  color: #ff3366;
  border-color: #fff;
}

.footer-tg-btn:hover svg {
  stroke: #ff3366;
}

/* Мобильная верстка */
@media (max-width: 900px) {
  .nav-search {
    height: 46px;
    padding: 0 10px 0 14px;
  }

  .nav-search .search-btn {
    width: 38px;
    height: 38px;
  }

  .profiles {
    margin: 12px auto;
    padding: 0 2px;
  }

  .profiles h2 {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 12px;
  }

  .profile-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 2vw 12px 2vw;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pan-x;
    scrollbar-width: none;
  }

  .profile-list::-webkit-scrollbar {
    display: none;
  }

  .profile-card {
    max-width: 100vw;
    padding: 14px;
    margin: 0 auto;
    border-radius: 16px;
    flex: 0 0 88vw;
    display: grid;
    grid-template-columns: minmax(40%, 1fr) 1fr;
    grid-auto-rows: auto;
    gap: 12px 16px;
    scroll-snap-align: center;
    background: #fff;
    align-items: start;
    justify-items: start;
  }

  .profile-info {
    display: contents;
  }

  .profile-name {
    font-size: 1.08em;
    text-align: left;
    margin: 0;
    grid-column: 1 / -1;
  }

  .profile-params {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    font-size: 0.9em;
    grid-column: 1 / -1;
  }

  .profile-params span {
    background: transparent;
    padding: 0;
    border-radius: 0;
  }

  .profile-img-wrap.large-img {
    grid-column: 1;
    grid-row: 3 / span 2;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .profile-img-wrap img {
    height: 100%;
  }

  .tags-custom {
    grid-column: 2;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .tags-custom .tags-row {
    display: contents;
  }

  .tag {
    font-size: 0.86em;
    padding: 7px 10px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.2;
  }

  .tags-custom .tag-darkpink {
    background: #c93d87;
  }

  .tags-custom .tag-lightpink {
    background: #f18aaa;
  }

  .profile-price {
    grid-column: 2;
    grid-row: 4;
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .profile-price.thin-price div {
    border-radius: 10px;
  }

  .profile-actions {
    grid-column: 1 / -1;
    grid-row: 5;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 4px;
    align-items: stretch;
    margin-top: 0;
  }

  .order-btn.wide-btn {
    width: 100%;
    padding: 10px 4px;
    justify-content: center;
    flex-grow: 1;
  }

  .tg-btn {
    width: 44px;
    padding: 0;
    flex-shrink: 0;
  }

  .see-all-btn {
    font-size: 1em;
    padding: 8px 16px;
  }

  .footer-pink-main {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 0 10px 0;
    gap: 10px;
  }

  .footer-pink-title {
    font-size: 1.2em;
  }

  .footer-pink-desc {
    font-size: 0.95em;
  }

  .footer-pink-cols {
    flex-direction: column;
    gap: 10px;
    margin: 0;
  }

  .footer-pink-cols > div {
    font-size: 0.95em;
    gap: 0.1px;
  }

  .footer-18-col {
    flex-direction: column;
    align-items: center;
    margin-left: 0;
    margin-top: 10px;
    gap: 10px;
  }

  .footer-18-col .footer-tg-btn {
    margin-top: 10px;
    width: 100%;
  }
}

/* Модальное окно */
.modal-bg {
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.modal-window {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  padding: 24px 12px 18px 12px;
  min-width: 0;
  max-width: 98vw;
  width: 100%;
  text-align: center;
  position: relative;
}

.modal-title {
  font-size: 1.2em;
  font-weight: 700;
  color: #ff3366;
  margin-bottom: 12px;
}

.modal-text {
  color: #555;
  font-size: 1em;
  margin-bottom: 18px;
  line-height: 1.4;
}

.modal-write-btn {
  background: #ff3366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  max-width: 220px;
}

.modal-write-btn:hover {
  background: #e62e5c;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.7em;
  color: #ff3366;
  cursor: pointer;
}

@media (max-width: 900px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .profile-list {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    padding: 10px;
    gap: 20px;
  }

  .see-all-btn {
    font-size: 1em;
    padding: 8px 16px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 20px 10px;
  }

  .footer-left, .footer-right {
    align-items: center;
    justify-content: center;
  }

  .modal-window {
    width: 95%;
    padding: 20px 15px;
    font-size: 0.95em;
  }

  .modal-title {
    font-size: 1.3em;
  }

  .modal-text {
    font-size: 1em;
  }

  button, .tag, .footer-link, .profile-actions > * {
    min-height: 44px;
    font-size: 1em;
  }

  .scroll-button {
    right: 10px;
    bottom: 10px;
  }
}

/* Styling for Intim-Map section */
.intim-map {
  text-align: center;
  margin: 30px 0;
}

.intim-map .action-btn.map-btn {
  display: inline-block;
  margin: 0 auto;
  padding: 12px 24px;
  font-size: 18px;
  position: relative;
  left: auto;
  transform: none;
}

/* Ensure all profile sections have consistent styling */
.profile-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  align-items: flex-start;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

@media (max-width: 900px) {
  .profile-list {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 2vw 12px 2vw;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pan-x;
    scrollbar-width: none;
  }

  .profile-list::-webkit-scrollbar {
    display: none;
  }

  .profile-card {
    max-width: 100vw;
    padding: 14px;
    margin: 0 auto;
    border-radius: 16px;
    flex: 0 0 88vw;
    display: grid;
    grid-template-columns: minmax(40%, 1fr) 1fr;
    grid-auto-rows: auto;
    gap: 12px 16px;
    scroll-snap-align: center;
    background: #fff;
    align-items: start;
    justify-items: start;
  }

  .profile-info {
    display: contents;
  }

  .profile-name {
    font-size: 1.08em;
    text-align: left;
    margin: 0;
    grid-column: 1 / -1;
  }

  .profile-params {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 10px;
    font-size: 0.9em;
    grid-column: 1 / -1;
  }

  .profile-params span {
    background: transparent;
    padding: 0;
    border-radius: 0;
  }

  .profile-img-wrap.large-img {
    grid-column: 1;
    grid-row: 3 / span 2;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .profile-img-wrap img {
    height: 100%;
  }

  .tags-custom {
    grid-column: 2;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .tags-custom .tags-row {
    display: contents;
  }

  .tag {
    font-size: 0.86em;
    padding: 7px 10px;
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    line-height: 1.2;
  }

  .tags-custom .tag-darkpink {
    background: #c93d87;
  }

  .tags-custom .tag-lightpink {
    background: #f18aaa;
  }

  .profile-price {
    grid-column: 2;
    grid-row: 4;
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .profile-price.thin-price div {
    border-radius: 10px;
  }

  .profile-actions {
    grid-column: 1 / -1;
    grid-row: 5;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 4px;
    align-items: stretch;
    margin-top: 0;
  }

  .order-btn.wide-btn {
    width: 100%;
    padding: 10px 4px;
    justify-content: center;
    flex-grow: 1;
  }

  .tg-btn {
    width: 44px;
    padding: 0;
    flex-shrink: 0;
  }
}