/* ==========================================================================
   Страница города /namoro/{slug} (resources/views/web/city/show.blade.php).
   Собрана на компонентах главной из lp/style.css (hero, section-offline,
   section-what, section-online, faq, news-card); здесь только то, чего на
   главной нет: коллаж, карточки мест, памятка, сетка отличий, чипы городов.
   ========================================================================== */

/* ---- Общее ---- */
.ic { width: 20px; height: 20px; flex-shrink: 0; }
.city-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.city-actions--center { justify-content: center; }
.city-btn-tg { gap: 10px; }
.city-link { display: inline-flex; align-items: center; gap: 8px; color: #8B32FF; font-weight: 600; text-decoration: none; }
.city-link .ic { width: 18px; height: 18px; transition: transform .15s; }
.city-link:hover .ic { transform: translateX(3px); }

/* Фото в наклонной рамке с сиреневой подложкой, как на главной */
.city-frame { position: relative; }
.city-frame::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: #B298DC; border-radius: 30px; transform: translate(-14px, 8px) rotate(-5deg);
}
.city-frame--left::before { transform: translate(14px, 8px) rotate(5deg); }
.city-frame img {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%;
  object-fit: cover; border-radius: 28px; box-shadow: 0 20px 50px rgba(31, 32, 46, .16);
}

/* ---- Первый экран ---- */
.city-hero { min-height: 820px; }
.city-hero .hero__text { max-width: 660px; }
.city-hero .h1 { margin-bottom: 22px; }
.city-hero p.text-lead { font-size: 20px; margin-bottom: 34px; }
.city-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; font-size: 14px; color: #6B6C79; }
.city-crumbs a { color: #6B6C79; text-decoration: none; }
.city-crumbs a:hover { color: #8B32FF; }
.city-crumbs span[aria-hidden] { opacity: .5; }
.city-perks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.city-perks li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: #222337; }
.city-perks .ic { color: #8B32FF; }

/* Коллаж: два фото в рамках, сердце и плашка встречи в этом городе */
.city-collage { position: relative; flex: 0 0 560px; height: 600px; }
.city-collage__a { position: absolute; right: 18px; top: 24px; width: 330px; height: 412px; transform: rotate(3deg); }
.city-collage__b { position: absolute; left: 8px; bottom: 44px; width: 250px; height: 312px; transform: rotate(-4deg); z-index: 2; }
.city-collage__heart {
  position: absolute; left: 228px; top: 122px; z-index: 3; width: 64px; height: 64px; border-radius: 20px;
  background: #fff; color: #8B32FF; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(31, 32, 46, .16);
}
.city-collage__heart .ic { width: 30px; height: 30px; fill: currentColor; }
.city-collage .city-collage__badge { left: auto; right: 0; bottom: 30px; z-index: 4; }

@media (max-width: 1280px) {
  .city-collage { flex-basis: 470px; height: 520px; }
  .city-collage__a { width: 280px; height: 350px; }
  .city-collage__b { width: 214px; height: 268px; }
  .city-collage__heart { left: 196px; top: 104px; }
}
@media (max-width: 900px) {
  .city-hero { padding-bottom: 170px; }
  .city-collage { flex: 0 0 auto; width: 100%; max-width: 440px; height: 480px; align-self: center; margin-top: 16px; }
}
@media (max-width: 480px) {
  .city-hero { padding-bottom: 120px; }
  .city-hero p.text-lead { font-size: 16px; margin-bottom: 26px; }
  .city-collage { height: 400px; }
  .city-collage__a { width: 214px; height: 268px; right: 10px; top: 16px; }
  .city-collage__b { width: 168px; height: 210px; left: 6px; bottom: 58px; }
  .city-collage__heart { left: 146px; top: 92px; width: 52px; height: 52px; border-radius: 16px; }
  .city-collage__heart .ic { width: 24px; height: 24px; }
  .city-collage .city-collage__badge { right: 0; left: auto; bottom: 4px; max-width: 250px; }
  .city-actions .btn { width: 100%; }
}

/* ---- Места для первого свидания ---- */
.city-spots-section { padding: 40px 0 100px; }
.city-spots-section .h2 { margin-bottom: 16px; }
.city-lead { max-width: 820px; margin: 0 0 40px; }
.city-spots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.city-spot { display: flex; flex-direction: column; gap: 16px; }
.city-spot__cover { display: block; width: 100%; height: auto; aspect-ratio: 400 / 250; border-radius: 16px; }
.city-spot__body { display: flex; flex-direction: column; gap: 10px; }
.city-spot__kind {
  align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: #F3EBFF; color: #7A22F0;
  font-weight: 600; font-size: 12px; line-height: 1; letter-spacing: .06em; text-transform: uppercase;
}
.city-spot .h3 { font-size: 22px; line-height: 1.15; }
.city-spot__bairro { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #6B6C79; }
.city-spot__bairro .ic { width: 16px; height: 16px; color: #8B32FF; }
.city-spot .text-small { font-size: 15px; }

.city-safety {
  margin-top: 56px; padding: 36px 40px; border-radius: 28px; background: #F3EBFF;
  display: grid; grid-template-columns: 280px 1fr; gap: 22px 48px; align-items: start;
}
.city-safety__head { display: flex; flex-direction: column; gap: 16px; }
.city-safety__head .h3 { line-height: 1.15; }
.city-safety__icon {
  width: 56px; height: 56px; border-radius: 16px; background: #fff; color: #8B32FF;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(42, 26, 94, .10);
}
.city-safety__icon .ic { width: 28px; height: 28px; }
.city-safety__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; }
.city-safety__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.45; color: #222337; }
.city-safety__list .ic { width: 22px; height: 22px; margin-top: 1px; color: #8B32FF; }
.city-safety .city-link { grid-column: 2; }

@media (max-width: 1100px) { .city-spots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .city-safety { grid-template-columns: 1fr; padding: 28px 24px; }
  .city-safety__head { flex-direction: row; align-items: center; }
  .city-safety .city-link { grid-column: 1; }
}
@media (max-width: 600px) {
  .city-spots-section { padding: 24px 0 64px; }
  .city-spots { grid-template-columns: 1fr; gap: 22px; }
  /* на телефоне карточка места в строку: маленькая плитка-обложка слева, текст справа */
  .city-spot { flex-direction: row; align-items: flex-start; gap: 14px; }
  .city-spot__cover { flex: 0 0 88px; width: 88px; height: 88px; aspect-ratio: auto; object-fit: cover; border-radius: 16px; }
  .city-spot__body { gap: 8px; min-width: 0; }
  .city-spot .h3 { font-size: 19px; }
  .city-safety__list { grid-template-columns: 1fr; }
}

/* ---- Как это работает (персиковая секция главной) ---- */
.city-dot--purple { background: #8B32FF; box-shadow: 0 0 0 4px rgba(139, 50, 255, .18); }
.city-how .section-offline__text > p.text-body { margin-bottom: 30px; }

/* ---- Почему TonMeet (секция «фото + текст» главной) ---- */
.city-why .section-what__photo { flex-basis: 440px; }
.city-why .city-frame { aspect-ratio: 840 / 1000; }
.city-why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 34px; }
.city-why__item { display: flex; align-items: flex-start; gap: 16px; }
.city-why__icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; background: #F3EBFF; color: #8B32FF;
  display: flex; align-items: center; justify-content: center;
}
.city-why__icon .ic { width: 24px; height: 24px; }
.city-why__title { margin: 2px 0 6px; font-weight: 700; font-size: 19px; line-height: 1.2; color: #222337; }
.city-why .text-small { font-size: 15px; }
@media (max-width: 1100px) { .city-why__grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .city-why .section-what__photo { max-width: 360px; padding: 14px; } }

/* ---- Telegram (сиреневая секция с волнами главной) ---- */
.city-tg .section-online__text { gap: 30px; }
.city-tg__media { position: relative; flex: 0 0 470px; height: 560px; }
.city-tg__media .city-frame { position: absolute; right: 12px; top: 12px; width: 400px; height: 500px; transform: rotate(3deg); }
.city-tg__badge {
  position: absolute; left: 0; bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px; border-radius: 16px; background: #fff; box-shadow: 0 14px 40px rgba(31, 32, 46, .18);
}
.city-tg__badge-icon {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #229ED9; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.city-tg__badge-icon .ic { width: 20px; height: 20px; margin-left: -2px; }
@media (max-width: 1280px) {
  .city-tg__media { flex-basis: 400px; height: 480px; }
  .city-tg__media .city-frame { width: 340px; height: 425px; }
}
@media (max-width: 900px) {
  .city-tg__media { flex: 0 0 auto; width: 100%; max-width: 420px; height: 470px; align-self: center; }
  .city-tg__media .city-frame { width: 78%; height: 86%; right: 6%; }
}
@media (max-width: 480px) { .city-tg__media { height: 400px; } }

/* ---- Вопросы ---- */
.city-faq { padding-top: 90px; }

/* ---- Ближайшие города и статьи ---- */
.city-more-section { padding: 20px 0 110px; }
.city-nearby .h2, .city-blog .h2 { margin-bottom: 28px; }
.city-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.city-chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: #fff; border: 1px solid #E1E4E7; color: #222337; text-decoration: none; font-weight: 600; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.city-chip:hover { border-color: #8B32FF; box-shadow: 0 6px 18px rgba(139, 50, 255, .12); }
.city-chip .ic { width: 16px; height: 16px; color: #8B32FF; }
.city-chip__km { color: #6B6C79; font-weight: 500; }
.city-chip--all { background: #222337; border-color: #222337; color: #fff; }
.city-chip--all:hover { border-color: #222337; }
.city-blog { margin-top: 80px; }
.city-related { margin-top: 64px; }
.city-related .h2 { margin-bottom: 28px; }
.city-posts { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .city-posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .city-more-section { padding: 0 0 64px; }
  .city-posts { grid-template-columns: 1fr; }
  .city-posts .news-card__img { aspect-ratio: 16 / 7; }
  .city-blog { margin-top: 56px; }
  .city-related { margin-top: 48px; }
  .city-chips { gap: 10px; }
  .city-chip { padding: 9px 14px; gap: 8px; font-size: 14px; }
}

/* ---- Финальный призыв ---- */
.city-final { position: relative; overflow: hidden; padding: 150px 0 110px; background: #E9D8FE; text-align: center; }
.city-final__wave { position: absolute; top: -1px; left: 0; width: 100%; height: 120px; }
.city-final__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.city-final .text-body { max-width: 640px; }
.city-final .city-actions { margin-top: 12px; }
@media (max-width: 600px) { .city-final { padding: 110px 0 70px; } }

/* ---- Блок городов на главной (web/index.blade.php) ---- */
.section-cities { padding: 40px 0 10px; }
.section-cities .h2 { margin-bottom: 14px; }
.section-cities__text { max-width: 760px; margin-bottom: 28px; }
@media (max-width: 600px) { .section-cities { padding: 24px 0 0; } }

/* ---- Список городов /namoro (web/city/index.blade.php) ---- */
.cities-hub-section { padding: 30px 0 110px; }
.cities-region + .cities-region { margin-top: 64px; }
.cities-region__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 26px; }
.cities-region__count { color: #6B6C79; font-weight: 600; font-size: 17px; }
.cities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cities-card {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px;
  border: 1px solid #E1E4E7; background: #fff; color: #222337; text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.cities-card:hover { border-color: #8B32FF; box-shadow: 0 10px 28px rgba(139, 50, 255, .12); }
.cities-card .city-why__icon { flex-basis: 44px; width: 44px; height: 44px; border-radius: 12px; }
.cities-card .city-why__icon .ic { width: 22px; height: 22px; }
.cities-card__body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cities-card__name { font-weight: 700; font-size: 17px; line-height: 1.2; }
.cities-card__state { font-size: 14px; line-height: 1.3; color: #6B6C79; }
.cities-card .cities-card__arrow { width: 18px; height: 18px; color: #8B32FF; opacity: 0; transition: opacity .15s, transform .15s; }
.cities-card:hover .cities-card__arrow { opacity: 1; transform: translateX(3px); }
@media (max-width: 1100px) { .cities-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .cities-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) {
  /* на телефоне две колонки без значков: 70 карточек в одну колонку - слишком длинная страница */
  .cities-hub-section { padding: 10px 0 70px; }
  .cities-region + .cities-region { margin-top: 44px; }
  .cities-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cities-card { padding: 12px 14px; border-radius: 14px; }
  .cities-card .city-why__icon, .cities-card .cities-card__arrow { display: none; }
  .cities-card__name { font-size: 15px; }
  .cities-card__state { font-size: 13px; }
}

/* ---- Вступление над вопросами (главная, список городов) ---- */
.section-faq__lead { max-width: 860px; margin: -6px 0 34px; }

/* ---- Как сходить на свидание в этом городе (web/city/show.blade.php, config/city_texts.php) ---- */
.city-about-section { padding: 0 0 100px; }
.city-about { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.city-about__text .h2 { margin-bottom: 22px; }
.city-about__text p + p { margin-top: 16px; }
.city-bairros { padding: 30px 32px; border-radius: 28px; border: 1px solid #E1E4E7; background: #fff; }
.city-bairros__title { margin: 0 0 20px; font-weight: 700; font-size: 20px; line-height: 1.2; color: #222337; }
.city-bairros ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.city-bairros li { display: flex; align-items: flex-start; gap: 14px; }
.city-bairros li .city-why__icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 12px; }
.city-bairros li .city-why__icon .ic { width: 21px; height: 21px; }
.city-bairros__name { display: block; font-weight: 700; font-size: 17px; line-height: 1.25; color: #222337; }
.city-bairros__note { display: block; margin-top: 3px; font-size: 15px; line-height: 1.4; color: #6B6C79; }
@media (max-width: 1000px) { .city-about { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) {
  .city-about-section { padding: 0 0 64px; }
  .city-bairros { padding: 22px 20px; border-radius: 22px; }
}
