/* Базовые стили */
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: #222;
  color: #fff;
  padding: 0;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0;
  padding: 16px 16px 0 16px;
  position: relative;
}

.logo {
  font-size: 2em;
  font-weight: bold;
  margin-right: 32px;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.search-wrap {
  display: flex;
  align-items: center;
  flex: 1 1 340px;
  max-width: 480px;
  min-width: 240px;
  margin-right: 32px;
}

.search-wrap input[type="text"] {
  padding: 10px 14px;
  border-radius: 8px 0 0 8px;
  border: none;
  font-size: 1em;
  outline: none;
  width: 100%;
  background: #fff;
  color: #222;
  box-sizing: border-box;
}

.search-btn {
  background: #ff3366;
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 1.1em;
  margin-left: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  transition: background 0.2s;
}
.search-btn:hover {
  background: #e62e5c;
}
.search-btn img {
  width: 22px;
  height: 22px;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 10px;
  margin: 0 10px 0 0;
  padding: 0;
  flex-wrap: wrap;
  align-items: center;
}
nav ul li {
  cursor: pointer;
  user-select: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 0.97em;
}
nav ul li:hover {
  background: rgba(255,255,255,0.1);
}
nav button, .add-profile, .filters {
  background: #ff3366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  margin-left: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1em;
  white-space: nowrap;
  transition: background 0.2s;
  align-self: flex-start;
}
nav button:hover, .add-profile:hover {
  background: #e62e5c;
}
.filters {
  display: flex;
  gap: 10px;
  margin-left: 12px;
  background: none;
  padding: 0;
}
.filters span {
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 0.97em;
  background: none;
}
.filters span:hover {
  background: rgba(255,255,255,0.1);
}

.burger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
  z-index: 1002;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  background-color: #333;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  display: block;
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  list-style: none;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: baseline;
}

.mobile-menu li {
  color: white;
  font-size: 1.2em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-menu li:hover {
  color: #ffcc00;
}

@media (max-width: 900px) {
  .burger {
    display: block;
  }

  .mobile-menu {
    position: fixed;
    background-color: #222;
    top: 60px;
    left: 0;
    right: 0;
    padding: 20px;
    border-top: 1px solid #444;
  }

  nav ul {
    display: none;
  }
}

.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;
}

.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;
}
.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: 600;
}

/* Теги */
.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;
}

/* Цены */
.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;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}
.order-btn.wide-btn {
  background: #ff3366;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex: 1;
}
.order-btn.wide-btn:hover {
  background: #e62e5c;
}
.tg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff3366;
  border-radius: 8px;
  padding: 10px;
  transition: background 0.2s;
  min-width: 44px;
}
.tg-btn img {
  width: 22px;
  height: 22px;
  display: block;
}

/* Кнопка "Смотреть все анкеты" */
.see-all-wrap {
  display: flex;
  justify-content: center;
  margin: 32px 0 0 0;
}
.see-all-btn {
  background: #ff3366;
  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(255,51,102,0.10);
  transition: background 0.2s;
}
.see-all-btn:hover {
  background: #e62e5c;
}

/* Футер */
.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;
}
/* Кнопка Telegram под 18+ */
.footer-18-col .footer-tg-btn {
  display: block;
  margin-top: 16px;
  margin-left: 0;
  width: 100%;
}
.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), 
  (max-width: 430px), 
  (max-width: 414px), 
  (max-width: 393px), 
  (max-width: 390px), 
  (max-width: 375px), 
  (max-width: 360px) {
  nav {
    flex-wrap: nowrap;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 0 8px;
    position: relative;
    justify-content: space-between;
  }
  .logo {
    font-size: 1.3em;
    margin: 0 8px 0 0;
    flex-shrink: 0;
  }
  .search-wrap {
    max-width: none;
    width: 100%;
    margin: 0 8px 0 0;
    flex: 1 1 0%;
  }
  .search-wrap input[type="text"] {
    width: 100%;
    min-width: 0;
    font-size: 1em;
    padding: 10px 14px;
  }
  .search-btn {
    min-width: 44px;
    padding: 10px 14px;
  }
  .burger {
    display: flex;
  }
  nav ul,
  nav button:not(.burger),
  .add-profile,
  .filters {
    /*display: none !important;*/
  }
  .profiles {
    margin: 12px auto;
    padding: 0 2px;
  }
  .profiles h2 {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 12px;
  }
  .profile-list {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .profile-card {
    max-width: 100vw;
    padding: 10px 2vw 10px 2vw;
    margin: 0 auto;
    border-radius: 12px;
  }
  .profile-img-wrap.large-img {
    height: 54vw;
    min-height: 160px;
    max-height: 260px;
  }
  .profile-name {
    font-size: 1.05em;
    text-align: center;
  }
  .profile-params {
    justify-content: center;
    font-size: 0.9em;
  }
  .tag {
    font-size: 0.9em;
    padding: 5px 12px;
  }
  .profile-actions {
    flex-direction: column;
    gap: 8px;
  }
  .order-btn.wide-btn, .tg-btn {
    width: 100%;
    padding: 10px 0;
  }
  .see-all-btn {
    padding: 12px 10px;
    font-size: 1em;
    width: 95%;
    max-width: 260px;
  }
  .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;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .search-wrap {
    width: 100%;
    flex: 0;
    padding: 0;
    margin-top: 10px;
  }

  .search-wrap input {
    width: 100%;
    font-size: 1em;
  }

  .burger {
    margin-left: 0;
    padding: 10px;
    width: 35px;
    height: 48px;
  }

  .mobile-menu {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #333;
    padding: 20px;
    display: none;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-menu.open {
    display: block;
    opacity: 1;
    pointer-events: all;
  }

  .mobile-menu ul {
    flex-direction: column;
    gap: 10px;
  }

  .profile-list {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 20px;
  }

  .profile-card {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .tag {
    font-size: 0.8em;
    padding: 4px 8px;
  }

  .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;
  }
}
