:root {
  /* Розово-чёрная палитра под баннеры */
  --accent-blue: #ff4d84; /* оставил имя переменной чтобы не ломать старые стили */
  --accent-pink: #ff4d84;
  --accent-pink-2: #ff2f70;
  --ink-dark: #0b0b10;
}

/* Fix mobile horizontal drift / overflow */
html {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

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

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

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

/* ===== НОВОГОДНЯЯ ТЕМА ===== */

/* Гирлянда с ёлочными шарами */
.xmas-garland {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 100;
  overflow: visible;
}

.garland-string {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #2d5a27 5%, 
    #3d7a37 50%, 
    #2d5a27 95%, 
    transparent 100%
  );
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Ёлочные ветки на нитке */
.garland-branch {
  position: absolute;
  top: 0;
  width: 100%;
  height: 25px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path d="M0,5 Q10,0 20,8 Q30,2 40,10 Q50,4 60,8 Q70,1 80,9 Q90,3 100,5" stroke="%232d5a27" stroke-width="3" fill="none"/><path d="M5,8 L8,15 M15,6 L18,13 M25,9 L28,16 M35,7 L38,14 M45,10 L48,17 M55,8 L58,15 M65,9 L68,16 M75,7 L78,14 M85,9 L88,16 M95,6 L98,13" stroke="%233d7a37" stroke-width="1.5"/></svg>');
  background-repeat: repeat-x;
  background-size: 150px 25px;
}

/* Мигающие огоньки гирлянды */
.xmas-lights {
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 10px;
}

.xmas-light {
  width: 6px;
  height: 10px;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  animation: blink 1s ease-in-out infinite;
  box-shadow: 0 0 6px currentColor, 0 0 12px currentColor;
}

.xmas-light.red { background: #ff3333; color: #ff3333; }
.xmas-light.yellow { background: #ffdd00; color: #ffdd00; animation-delay: 0.2s; }
.xmas-light.green { background: #00ff66; color: #00ff66; animation-delay: 0.4s; }
.xmas-light.blue { background: #3399ff; color: #3399ff; animation-delay: 0.6s; }
.xmas-light.pink { background: #ff66b2; color: #ff66b2; animation-delay: 0.8s; }

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

/* Контейнер шаров */
.xmas-balls {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  padding: 0 20px;
}

/* Отдельный шар */
.xmas-ball {
  width: 24px;
  height: 28px;
  position: relative;
  animation: swing 3s ease-in-out infinite;
}

.xmas-ball::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #c9a227;
  border-radius: 1px;
}

.xmas-ball::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 6px;
  background: #888;
}

.ball-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 
    inset -3px -3px 6px rgba(0,0,0,0.3),
    inset 3px 3px 6px rgba(255,255,255,0.4),
    0 2px 4px rgba(0,0,0,0.3);
}

/* Блик на шаре */
.ball-body::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
}

/* Цвета шаров */
.xmas-ball.red .ball-body { background: linear-gradient(135deg, #ff6b6b 0%, #c0392b 100%); }
.xmas-ball.gold .ball-body { background: linear-gradient(135deg, #f4d03f 0%, #c9a227 100%); }
.xmas-ball.green .ball-body { background: linear-gradient(135deg, #58d68d 0%, #27ae60 100%); }
.xmas-ball.blue .ball-body { background: linear-gradient(135deg, #5dade2 0%, #2980b9 100%); }
.xmas-ball.pink .ball-body { background: linear-gradient(135deg, #ff85a2 0%, #ff4d84 100%); }
.xmas-ball.silver .ball-body { background: linear-gradient(135deg, #ecf0f1 0%, #95a5a6 100%); }
.xmas-ball.purple .ball-body { background: linear-gradient(135deg, #bb8fce 0%, #6c3483 100%); }

/* Анимация покачивания */
@keyframes swing {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

.xmas-ball:nth-child(odd) { animation-delay: -1.5s; }
.xmas-ball:nth-child(3n) { animation-duration: 2.5s; }
.xmas-ball:nth-child(4n) { animation-duration: 3.5s; }

/* Ёлочные ветки по углам */
.xmas-corner {
  position: absolute;
  width: 120px;
  height: 80px;
  pointer-events: none;
  z-index: 99;
  background-size: contain;
  background-repeat: no-repeat;
}

.xmas-corner-left {
  top: 0;
  left: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 80"><g fill="%232d5a27"><path d="M-10,0 Q20,20 60,15 Q40,25 70,30 Q50,35 80,45 L60,50 Q30,40 10,60 L0,40 Q-5,20 -10,0"/></g><g fill="%233d7a37"><path d="M0,5 Q15,15 40,12 Q25,22 50,27 L35,32 Q15,28 5,45"/></g><circle cx="45" cy="25" r="6" fill="%23c0392b"/><circle cx="25" cy="35" r="5" fill="%23f4d03f"/><circle cx="55" cy="40" r="5" fill="%23ff4d84"/></svg>');
}

.xmas-corner-right {
  top: 0;
  right: 0;
  transform: scaleX(-1);
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 80"><g fill="%232d5a27"><path d="M-10,0 Q20,20 60,15 Q40,25 70,30 Q50,35 80,45 L60,50 Q30,40 10,60 L0,40 Q-5,20 -10,0"/></g><g fill="%233d7a37"><path d="M0,5 Q15,15 40,12 Q25,22 50,27 L35,32 Q15,28 5,45"/></g><circle cx="45" cy="25" r="6" fill="%2327ae60"/><circle cx="25" cy="35" r="5" fill="%235dade2"/><circle cx="55" cy="40" r="5" fill="%23f4d03f"/></svg>');
}

/* ===== ШАПКА САНТЫ НА ЛОГОТИП ===== */
.logo {
  position: relative;
}

.logo::before {
  content: '';
  position: absolute;
  top: -22px;
  left: -5px;
  width: 40px;
  height: 28px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 35"><ellipse cx="25" cy="32" rx="25" ry="5" fill="%23fff" opacity="0.9"/><path d="M5,30 Q8,15 25,8 Q42,15 45,30 Z" fill="%23e74c3c"/><path d="M5,30 Q8,15 25,8 Q42,15 45,30" fill="%23c0392b" opacity="0.3"/><circle cx="42" cy="8" r="6" fill="%23fff"/><path d="M25,8 Q35,5 42,8" stroke="%23c0392b" stroke-width="2" fill="none"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 101;
  pointer-events: none;
  animation: hat-bounce 2s ease-in-out infinite;
}

@keyframes hat-bounce {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-2px); }
}

/* ===== ДОПОЛНИТЕЛЬНЫЙ НОВОГОДНИЙ ДЕКОР ===== */

/* Праздничная рамка для карточек */
.profile-card {
  position: relative;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #c0392b, #27ae60, #f39c12, #c0392b);
  background-size: 400% 400%;
  border-radius: 18px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
  animation: xmas-border 3s ease infinite;
}

.profile-card:hover::before {
  opacity: 1;
}

@keyframes xmas-border {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== ЁЛОЧКИ ПО БОКАМ ЭКРАНА ===== */
.xmas-tree-left,
.xmas-tree-right {
  position: fixed;
  bottom: 20px;
  width: 80px;
  height: 120px;
  pointer-events: none;
  z-index: 50;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 80 120"><polygon points="40,5 10,45 20,45 5,75 18,75 0,105 80,105 62,75 75,75 60,45 70,45" fill="%231e8449"/><polygon points="40,5 10,45 20,45 5,75 18,75 0,105 40,105 40,5" fill="%2327ae60"/><rect x="32" y="105" width="16" height="15" fill="%238B4513"/><circle cx="25" cy="55" r="4" fill="%23e74c3c"/><circle cx="50" cy="65" r="4" fill="%23f4d03f"/><circle cx="35" cy="80" r="4" fill="%233498db"/><circle cx="55" cy="85" r="4" fill="%23e74c3c"/><circle cx="20" cy="90" r="4" fill="%23f4d03f"/><circle cx="40" cy="30" r="3" fill="%23ff69b4"/><polygon points="40,0 37,8 43,8" fill="%23f4d03f"/></svg>');
}

.xmas-tree-left {
  left: 10px;
}

.xmas-tree-right {
  right: 10px;
  transform: scaleX(-1);
}

/* ===== ПОДАРКИ ВНИЗУ ЭКРАНА ===== */
.xmas-gifts {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  pointer-events: none;
  z-index: 49;
}

.xmas-gift {
  width: 50px;
  height: 50px;
  background-size: contain;
  background-repeat: no-repeat;
}

.xmas-gift-1 {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><rect x="5" y="18" width="40" height="32" fill="%23e74c3c" rx="3"/><rect x="5" y="18" width="40" height="32" fill="%23c0392b" rx="3" opacity="0.3"/><rect x="20" y="18" width="10" height="32" fill="%23f4d03f"/><rect x="5" y="12" width="40" height="10" fill="%23c0392b" rx="2"/><rect x="20" y="12" width="10" height="10" fill="%23d4ac0d"/><ellipse cx="18" cy="8" rx="8" ry="6" fill="%23f4d03f"/><ellipse cx="32" cy="8" rx="8" ry="6" fill="%23f4d03f"/></svg>');
}

.xmas-gift-2 {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><rect x="8" y="20" width="34" height="30" fill="%232980b9" rx="3"/><rect x="8" y="20" width="34" height="30" fill="%231a5276" rx="3" opacity="0.3"/><rect x="22" y="20" width="6" height="30" fill="%23e74c3c"/><rect x="8" y="14" width="34" height="10" fill="%231a5276" rx="2"/><rect x="22" y="14" width="6" height="10" fill="%23c0392b"/><ellipse cx="20" cy="10" rx="6" ry="5" fill="%23e74c3c"/><ellipse cx="30" cy="10" rx="6" ry="5" fill="%23e74c3c"/></svg>');
}

.xmas-gift-3 {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><rect x="10" y="22" width="30" height="28" fill="%2327ae60" rx="3"/><rect x="10" y="22" width="30" height="28" fill="%231e8449" rx="3" opacity="0.3"/><rect x="22" y="22" width="6" height="28" fill="%23fff"/><rect x="10" y="16" width="30" height="10" fill="%231e8449" rx="2"/><rect x="22" y="16" width="6" height="10" fill="%23ecf0f1"/><ellipse cx="20" cy="12" rx="6" ry="5" fill="%23fff"/><ellipse cx="30" cy="12" rx="6" ry="5" fill="%23fff"/></svg>');
}

/* ===== КОНФЕТТИ ===== */
.confetti {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 48;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  animation: confetti-fall linear infinite;
}

.confetti-piece:nth-child(1) { left: 5%; background: #e74c3c; animation-duration: 6s; animation-delay: 0s; border-radius: 50%; }
.confetti-piece:nth-child(2) { left: 15%; background: #f4d03f; animation-duration: 8s; animation-delay: 1s; }
.confetti-piece:nth-child(3) { left: 25%; background: #27ae60; animation-duration: 7s; animation-delay: 2s; border-radius: 50%; }
.confetti-piece:nth-child(4) { left: 35%; background: #3498db; animation-duration: 9s; animation-delay: 0.5s; }
.confetti-piece:nth-child(5) { left: 45%; background: #9b59b6; animation-duration: 6.5s; animation-delay: 1.5s; border-radius: 50%; }
.confetti-piece:nth-child(6) { left: 55%; background: #e74c3c; animation-duration: 8.5s; animation-delay: 2.5s; }
.confetti-piece:nth-child(7) { left: 65%; background: #f4d03f; animation-duration: 7.5s; animation-delay: 0.3s; border-radius: 50%; }
.confetti-piece:nth-child(8) { left: 75%; background: #27ae60; animation-duration: 9.5s; animation-delay: 1.8s; }
.confetti-piece:nth-child(9) { left: 85%; background: #ff69b4; animation-duration: 6.8s; animation-delay: 2.2s; border-radius: 50%; }
.confetti-piece:nth-child(10) { left: 95%; background: #3498db; animation-duration: 7.2s; animation-delay: 0.8s; }

@keyframes confetti-fall {
  0% {
    top: -20px;
    transform: rotate(0deg) translateX(0);
    opacity: 1;
  }
  100% {
    top: 100vh;
    transform: rotate(720deg) translateX(50px);
    opacity: 0.5;
  }
}

/* ===== ЗВЕЗДА ВВЕРХУ ===== */
.xmas-star {
  position: fixed;
  top: 80px;
  right: 30px;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 51;
  animation: star-twinkle 2s ease-in-out infinite;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40"><polygon points="20,0 25,15 40,15 28,24 33,40 20,30 7,40 12,24 0,15 15,15" fill="%23f4d03f"/><polygon points="20,5 23,15 32,15 25,21 28,32 20,26 12,32 15,21 8,15 17,15" fill="%23fff" opacity="0.5"/></svg>');
  background-size: contain;
}

@keyframes star-twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.1) rotate(10deg); opacity: 0.8; }
}

/* ===== СНЕЖНЫЙ ТЕКСТ ДЛЯ ЗАГОЛОВКОВ ===== */
.profiles h2,
.profiles .section-title {
  text-shadow: 0 2px 4px rgba(255,255,255,0.3);
}

/* Снежный фон для секции баннеров */
.banners {
  position: relative;
}

.banners::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, transparent 100%);
  pointer-events: none;
}

/* ===== СНЕЖИНКА-КУРСОР (опционально) ===== */
@media (hover: hover) {
  body {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="4" y="18" font-size="16">❄</text></svg>') 12 12, auto;
  }
}

/* Снежинки (фоновая анимация) */
.snowflakes {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 50; /* ниже модальных окон */
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: #fff;
  font-size: 1rem;
  opacity: 0.7;
  animation: snowfall linear infinite;
  text-shadow: 0 0 3px rgba(255,255,255,0.8);
}

@keyframes snowfall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0.3;
  }
}

.snowflake:nth-child(1) { left: 3%; animation-duration: 8s; animation-delay: 0s; font-size: 1rem; }
.snowflake:nth-child(2) { left: 10%; animation-duration: 12s; animation-delay: 2s; font-size: 1.4rem; }
.snowflake:nth-child(3) { left: 17%; animation-duration: 10s; animation-delay: 4s; font-size: 1.1rem; }
.snowflake:nth-child(4) { left: 24%; animation-duration: 14s; animation-delay: 1s; font-size: 1.2rem; }
.snowflake:nth-child(5) { left: 31%; animation-duration: 9s; animation-delay: 3s; font-size: 1.3rem; }
.snowflake:nth-child(6) { left: 38%; animation-duration: 11s; animation-delay: 5s; font-size: 0.9rem; }
.snowflake:nth-child(7) { left: 45%; animation-duration: 13s; animation-delay: 0.5s; font-size: 1.5rem; }
.snowflake:nth-child(8) { left: 52%; animation-duration: 10s; animation-delay: 2.5s; font-size: 1rem; }
.snowflake:nth-child(9) { left: 59%; animation-duration: 15s; animation-delay: 4.5s; font-size: 1.2rem; }
.snowflake:nth-child(10) { left: 66%; animation-duration: 8s; animation-delay: 1.5s; font-size: 1.1rem; }
.snowflake:nth-child(11) { left: 73%; animation-duration: 11s; animation-delay: 3.5s; font-size: 1.3rem; }
.snowflake:nth-child(12) { left: 80%; animation-duration: 9s; animation-delay: 0.8s; font-size: 1rem; }
.snowflake:nth-child(13) { left: 87%; animation-duration: 13s; animation-delay: 2.2s; font-size: 1.4rem; }
.snowflake:nth-child(14) { left: 93%; animation-duration: 10s; animation-delay: 4s; font-size: 1.1rem; }
.snowflake:nth-child(15) { left: 97%; animation-duration: 12s; animation-delay: 1s; font-size: 1.2rem; }

/* ===== КОНЕЦ НОВОГОДНЕЙ ТЕМЫ ===== */

.top-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 55px 24px 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: 55px 20px 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: 50px 16px 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: row;
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .action-btn {
    flex: 1 1 100%;
    justify-content: center;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    border-radius: 14px;
    padding: 0 10px;
    min-width: 0;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .action-btn.login-btn {
    background: #15151c;
    border-color: rgba(255, 255, 255, 0.10);
    color: rgba(255,255,255,0.9);
  }

  .action-btn.add-profile {
    height: 44px;
    min-height: 44px;
    max-height: 44px;
  }

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

  .nav-links {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex: 0 0 auto;
    white-space: nowrap;
    background: #15151c;
    border: 1px solid rgba(255, 77, 132, 0.25);
    color: rgba(255,255,255,0.9);
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.82em;
    letter-spacing: 0.1px;
  }

  .nav-links li.nav-pill {
    background: rgba(255, 77, 132, 0.16);
    border-color: rgba(255, 77, 132, 0.40);
    color: #fff;
  }

  .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: 50px 14px 14px 14px;
  }

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

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

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

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

/* Баннеры (горизонтальная лента) */
.banners {
  max-width: 1200px;
  margin: 18px auto 0 auto;
  padding: 0 10px;
}

.banner-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 14px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 77, 132, 0.5) rgba(0,0,0,0.08);
}

.banner-strip::-webkit-scrollbar {
  height: 8px;
}

.banner-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 77, 132, 0.55);
  border-radius: 999px;
}

.banner-strip::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.06);
  border-radius: 999px;
}

.banner-card {
  flex: 0 0 240px; /* на ПК влезает сколько может, остальное листается */
  border-radius: 16px;
  overflow: hidden;
  display: block;
  position: relative;
  border: 1px solid rgba(255, 77, 132, 0.22);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
  scroll-snap-align: start;
  background: #0b0b10;
  transform: translateZ(0);
}

.banner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 77, 132, 0.12);
  pointer-events: none;
}

.banner-card:hover {
  box-shadow: 0 16px 44px rgba(0,0,0,0.18);
  border-color: rgba(255, 77, 132, 0.40);
}

.banner-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

@media (max-width: 900px) {
  .banners {
    margin-top: 10px;
    padding: 0 8px;
  }

  .banner-card {
    /* на телефоне: по 3 в экран */
    flex: 0 0 calc((100% - 16px) / 3);
    border-radius: 12px;
  }

  .banner-card img {
    aspect-ratio: 16 / 9;
  }

  .banner-strip {
    gap: 8px;
    padding-bottom: 8px;
  }
}

.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: stretch;
  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;
  height: 100%;
}

.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: #15151c;
  border: 1px solid rgba(255, 77, 132, 0.55);
  color: #fff;
}

.tag-lightpink {
  background: rgba(255, 77, 132, 0.92);
  border: 1px solid rgba(255, 77, 132, 0.25);
  color: #fff;
}

.tag-darkblue {
  /* legacy class: now in pink-on-black theme */
  background: #15151c;
  border: 1px solid rgba(255, 77, 132, 0.55);
  color: #fff;
}

.tag-lightblue {
  /* legacy class: now in pink-on-black theme */
  background: rgba(255, 77, 132, 0.92);
  border: 1px solid rgba(255, 77, 132, 0.25);
  color: #fff;
}

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

.profile-price + .profile-actions {
  margin-top: 10px;
}

.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: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-2) 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 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: linear-gradient(135deg, #ff2f70 0%, #ff4d84 100%);
}

.tg-btn {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #15151c;
  border: 1px solid rgba(255, 77, 132, 0.28);
  border-radius: 8px;
  padding: 0;
  transition: background 0.2s, border-color 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: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-2) 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 77, 132, 0.22);
  transition: background 0.2s;
}

.see-all-btn:hover {
  background: linear-gradient(135deg, #ff2f70 0%, #ff4d84 100%);
}

/* Футер */
.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;
    overflow: visible;
    max-width: 100%;
  }

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

  .profile-list {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px;
    overflow-x: scroll !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 0 12px 12px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: auto;
    overscroll-behavior-x: contain;
  }

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

  .profile-card {
    flex: 0 0 85vw !important;
    min-width: 85vw !important;
    max-width: 85vw !important;
    width: 85vw !important;
    align-self: stretch;
    padding: 14px;
    margin: 0;
    border-radius: 16px;
    display: flex !important;
    flex-direction: column;
    background: #fff;
    align-items: stretch;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .profile-info {
    display: flex !important;
    flex-direction: column;
    width: 100%;
  }

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

  .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: stretch;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

@media (max-width: 900px) {
  /* Removed duplicate horizontal carousel styles - using vertical list instead */
  .profile-info {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  .profile-name {
    font-size: 1.08em;
    text-align: left;
    margin: 0 0 8px 0;
  }

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

  .profile-img-wrap.large-img {
    width: 100%;
    height: auto;
    min-height: 200px;
    aspect-ratio: 4 / 3;
  }

  .tags-custom {
    width: 100%;
    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;
  }
}

/* ============================
   Profile cards refresh (UI)
   ============================ */

:root {
  --card-radius: 18px;
  --card-border: rgba(15, 23, 42, 0.08);
  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --card-shadow-hover: 0 18px 50px rgba(15, 23, 42, 0.14);
  --ink: #0f172a;
  --muted: #64748b;
  --soft: #f6f7ff;
}

.profile-card {
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  height: 100%;
}

.profile-card:hover {
  box-shadow: var(--card-shadow-hover);
}

.profile-img-wrap.large-img {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.profile-img-wrap.large-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 55%, rgba(0,0,0,0.22) 100%);
  pointer-events: none;
}

.profile-name {
  color: var(--ink);
  letter-spacing: 0.2px;
}

.ui-ico {
  width: 18px;
  height: 18px;
  display: block;
  color: var(--accent-blue);
  overflow: visible;
  flex-shrink: 0;
}

/* Params with icons (JS enhances markup) */
.profile-params {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.param-item {
  border: 1px solid rgba(255, 77, 132, 0.14);
  background: var(--soft);
  padding: 10px 10px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 20px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
}

.param-icon {
  grid-row: 1 / span 2;
  opacity: 0.95;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.param-icon .ui-ico {
  width: 18px;
  height: 18px;
}

.param-label {
  font-size: 0.78em;
  color: var(--muted);
  line-height: 1.1;
}

.param-value {
  font-size: 0.98em;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.param-unit {
  font-weight: 700;
  color: var(--muted);
}

/* Prices */
.profile-price.thin-price div {
  border: 1px solid rgba(255, 77, 132, 0.12);
  background: #fbfcff;
  border-radius: 14px;
  padding: 10px 12px;
}

.price-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 700;
}

.price-meta .ui-ico {
  width: 16px;
  height: 16px;
  color: #ff3366;
}

.price-text {
  white-space: nowrap;
}

/* Tags: clean chips layout (wrap, aligned) */
.profile-card .tags-custom {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

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

.profile-card .tag {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  letter-spacing: 0.15px;
  margin: 0;
  width: auto;
  max-width: 100%;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
  white-space: nowrap;
}

.profile-card .tag.tag-big {
  padding: 10px 16px;
  font-size: 0.95em;
}

.profile-card .tag.tag-small {
  padding: 8px 12px;
  font-size: 0.88em;
  font-weight: 750;
}

/* Actions: button polish + SVG phone icon */
.order-btn.wide-btn {
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-pink-2) 100%);
  box-shadow: 0 8px 22px rgba(255, 77, 132, 0.28);
}

.order-btn.wide-btn:hover {
  background: linear-gradient(135deg, #ff2f70 0%, #ff4d84 100%);
}

.order-btn.wide-btn .btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-btn.wide-btn .btn-ico .ui-ico {
  width: 18px;
  height: 18px;
  color: #fff;
}

.order-btn.wide-btn .btn-ico-img {
  display: none;
}

.tg-btn {
  background: #15151c;
  border: 1px solid rgba(255, 77, 132, 0.28);
}

.tg-btn:hover {
  background: #1c1c24;
  border-color: rgba(255, 77, 132, 0.55);
}

/* Mobile: horizontal carousel for profiles */
@media (max-width: 900px) {
  .profile-card {
    flex: 0 0 85vw;
    max-width: 85vw;
  }

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

  .profile-img-wrap.large-img {
    height: 260px;
    margin-bottom: 12px;
  }

  .profile-card .tags-custom {
    gap: 8px;
  }

  .profile-card .tag {
    min-height: 34px;
    padding: 8px 12px;
    font-size: 0.9em;
  }

  .profile-actions {
    display: grid;
    grid-template-columns: 1fr 44px 44px;
    gap: 8px;
  }

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

@media (max-width: 420px) {
  .profile-img-wrap.large-img {
    height: 240px;
  }

  .profile-actions {
    grid-template-columns: 1fr 40px 40px;
    gap: 6px;
  }

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

/* FINAL: Mobile horizontal carousel (highest priority) */
@media (max-width: 900px) {
  .profiles {
    overflow: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-1 * (100vw - 100%) / 2) !important;
    padding: 0 !important;
  }

  .profile-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory !important;
    touch-action: pan-x pan-y !important;
    overscroll-behavior-x: contain;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }

  .profile-card {
    flex: 0 0 100vw !important;
    width: 100vw !important;
    min-width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }
}