/* =================================
   Design system (Figma)
   ================================= */
:root {
  /* Core Colors */
  --c-bg: #F9F8F7;        /* page background */
  --c-card: #E7E7E7;      /* light cards / light surfaces */
  --c-muted: #A6A3A5;     /* muted text, borders */
  --c-dark: #383637;      /* dark blocks */
  --c-white: #ffffff;
  --c-black: #000000;
  /* Text */
  --c-text: #1f1f1f;
  --c-text-muted: #6f6f6f;
  /* Radius */
  --r-xl: 22px;   /* big blocks */
  --r-lg: 18px;   /* cards */
  --r-md: 14px;   /* buttons */
  --r-sm: 10px;
  --r-pill: 999px;
  /* Shadows */
  --shadow-lg: 0 20px 60px rgba(0,0,0,.18);
  --shadow-md: 0 12px 30px rgba(0,0,0,.18);
  /* Layout */
  --container-max: 1200px;
  /* =================================================
     Legacy aliases (чтобы старые var() не ломали CSS)
     ================================================= */
  --bg-light: var(--c-bg);
  --bg-gray: var(--c-card);
  --bg-dark: var(--c-dark);
  --text-main: var(--c-text);
  --surface-2: var(--c-card);
  --text-1: var(--c-text);
  --stroke-1: rgba(0,0,0,.10);
  --success-bg: rgba(34,197,94,.14);
  --success-text: #0f5132;
  --success-border: rgba(34,197,94,.35);
}
/* =================================
   Reset / Base
   ================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  overflow-x: hidden;
}
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: var(--c-text);
  background: var(--c-bg);
}
a {
  color: inherit;
  text-decoration: none;
}
/* =================================
   Container (single source of truth)
   ================================= */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) {
  .container { padding-inline: 32px; }
}
@media (min-width: 1200px) {
  .container { padding-inline: 64px; }
}
/* =================================
   Brand typography
   ================================= */
.hero-brand,
.logo a,
.site-logo,
.brand {
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}
/* =================================================
   Header
   ================================================= */
.site-header {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo a {
  font-size: 28px;
  color: var(--text-main);
}
.nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
}
.nav .menu a {
  font-weight: 600;
  opacity: .9;
}
.nav .menu a:hover {
  opacity: 1;
}
/* Header auth */
.header-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-login,
.btn-logout {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
}
.btn-login { background: #eee; }
.btn-logout { background: #c0392b; color: #fff; }
/* =================================================
   Main
   ================================================= */
.site-main {
  min-height: 60vh;
}
/* =================================================
   Buttons
   ================================================= */
.btn {
  font-family: inherit;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--r-pill);
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--bg-dark);
  color: #fff;
}
.btn-primary:hover { background: #222; }
.btn-outline {
  border-color: var(--bg-dark);
  color: var(--bg-dark);
  background: transparent;
}
.btn-outline:hover {
  background: var(--bg-dark);
  color: #fff;
}
.btn-small {
  padding: 12px 18px;
  font-size: 14px;
}
.btn-full {
  width: 100%;
}
/* =================================================
   Hero (First screen)
   ================================================= */
.hero {
  min-height: calc(100vh - 90px);
  display: flex;
  position: relative;
  overflow: hidden;
  align-items: center;
  padding: 160px 0 120px;
  background: var(--bg-light);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-content {
  max-width: 560px;
}
.hero-title {
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: clamp(64px, 9vw, 96px);
  line-height: 0.92;
  margin: 0 0 24px 0;
  letter-spacing: 0.5px;
}
.hero-text {
  font-size: 18px;
  color: #222;
  max-width: 460px;
  margin: 0;
}
.hero-actions {
  display: flex;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}
/* Hero visual (right side) */
.hero-visual {
  display: flex;
  justify-content: flex-end;
}
.hero-frame {
  position: relative;
  width: 100%;
  max-width: 520px;
}
.hero-img {
  width: 100%;
  height: 560px;
  display: block;
  border-radius: 28px;
  background: var(--bg-gray);
  box-shadow: 0 20px 60px rgba(0,0,0,.12);
  object-fit: cover;
}
/* Badge card */
.hero-badge {
  position: absolute;
  padding: 14px 16px;
  border-radius: 18px;
  background-color: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 150px;
}
.hero-badge__num {
  font-weight: 800;
  font-size: 18px;
  line-height: 1.1;
}
.hero-badge__text {
  font-size: 13px;
  opacity: .75;
  margin-top: 4px;
}
.hero-badge--top { top: 18px; left: 18px; }
.hero-badge--bottom { bottom: 18px; right: 18px; }
/* Small pill */
.hero-pill {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background-color: rgba(255,255,255,.9);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-weight: 600;
  font-size: 13px;
}
.hero-pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}
/* =================================================
   Sections
   ================================================= */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.section-head--center {
  flex-direction: column;
  align-items: flex-start;
}
.section-title {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}
.section-subtitle {
  margin: 0;
  max-width: 420px;
  opacity: .75;
}
/* =================================================
   Profiles / Cards
   ================================================= */
.profiles {
  padding: 80px 0;
  background: #fff;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: var(--bg-light);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}
.card-media {
  position: relative;
  height: 240px;
  background: var(--bg-gray);
}
.card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.card-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background-color: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  font-size: 13px;
  font-weight: 600;
}
.card-body { padding: 18px 18px 20px; }
.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.card-price {
  font-weight: 800;
  color: var(--bg-dark);
}
.card-meta {
  margin: 8px 0 14px;
  opacity: .75;
}
.card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--bg-dark);
  color: #fff;
  font-weight: 600;
}
.card-btn:hover { background: #222; }
/* =================================================
   Filters (single source)
   ================================================= */
.filters { margin: 18px 0 26px; }
.filters-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr auto;
  gap: 14px;
  align-items: center;
}
.search { position: relative; display: block; }
.search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: .6;
  font-size: 14px;
}
.search-input {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  padding: 0 16px 0 38px;
  background: #fff;
  outline: none;
}
.search-input:focus { border-color: rgba(0,0,0,.25); }
.select {
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  padding: 0 14px;
  background: #fff;
  outline: none;
}
/* =================================================
   How it works
   ================================================= */
.how {
  padding: 80px 0;
  background: var(--bg-light);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
}
.step {
  border-radius: 24px;
  padding: 22px;
  background-color: rgba(255,255,255,.75);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--bg-gray);
  font-weight: 800;
  margin-bottom: 14px;
}
.step-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 800;
}
.step-text { margin: 0; opacity: .75; }
/* =================================================
   CTA
   ================================================= */
.cta {
  padding: 70px 0 90px;
  background: #fff;
}
.cta-card {
  border-radius: 28px;
  padding: 26px;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cta-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
}
.cta-subtitle { margin: 0; opacity: .85; }
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cta .btn-outline {
  border-color: #fff;
  color: #fff;
}
.cta .btn-outline:hover {
  background: #fff;
  color: #111;
}
/* =================================================
   Profile page (basic)
   ================================================= */
.profile-page {
  padding: 70px 0;
  background: #fff;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.profile-img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  display: block;
  border-radius: 28px;
  background: var(--bg-gray);
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
}
.profile-title {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.05;
}
.profile-sub {
  margin: 0 0 18px;
  opacity: .75;
  font-size: 16px;
}
.profile-content { opacity: .9; margin-bottom: 22px; }
.profile-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
/* Request block */
.profile-request {
  padding: 0 0 90px;
  background: #fff;
}
.request-card {
  border-radius: 28px;
  padding: 24px;
  background: var(--bg-light);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}
.request-title {
  margin: 0 0 8px;
  font-size: 22px;
}
.request-text { margin: 0 0 16px; opacity: .75; }
.request-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.input,
.textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  outline: none;
}
.input:focus,
.textarea:focus { border-color: rgba(0,0,0,.25); }
.textarea {
  margin-bottom: 14px;
  resize: vertical;
}
.request-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke-1);
  background: var(--surface-2);
  color: var(--text-1);
  font-size: 14px;
}
/* Profile meta pills */
.profile-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.meta-pill {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  background: var(--surface-2);
  color: var(--text-1);
  border: 1px solid var(--stroke-1);
}
.meta-verified {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: var(--success-border);
}
/* =================================================
   AUTH / LOGIN PAGE
   ================================================= */
.auth-page {
  min-height: 100vh;
  display: flex;
}
.auth-wrapper {
  display: grid;
  grid-template-columns: 1fr 420px;
  width: 100%;
}
.auth-visual {
  background: #000;
  color: #fff;
  position: relative;
}
.auth-visual-inner {
  height: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-stats {
  display: flex;
  gap: 24px;
}
.auth-stat strong { font-size: 20px; }
.auth-logo {
  font-family: "Bagel Fat One", system-ui, sans-serif;
  font-size: 64px;
  line-height: 1;
}
.auth-form-wrap {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-form {
  width: 100%;
  max-width: 360px;
  padding: 32px;
}
.auth-title { text-align: center; margin-bottom: 20px; }
.auth-tabs { display: flex; margin-bottom: 20px; }
.auth-tab {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.auth-tab.is-active { border-bottom: 2px solid #000; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}
.field-checkbox label { font-size: 13px; }
.auth-divider {
  text-align: center;
  margin: 16px 0;
  font-size: 12px;
  color: #999;
}
.auth-note {
  margin-top: 16px;
  font-size: 11px;
  color: #777;
  text-align: center;
}
.auth-error {
  margin-top: 12px;
  padding: 10px;
  background: #ffe6e6;
  color: #900;
  font-size: 13px;
  border-radius: 6px;
}
/* =================================================
   Account requests (cabinet)
   ================================================= */
.account-requests { margin-top: 32px; }
.account-section-title { font-size: 20px; margin: 0 0 12px; }
.requests-list { display: grid; gap: 12px; }
.request-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.request-status { font-size: 13px; opacity: .9; }
.request-status.status-new,
.request-status.status-approved,
.request-status.status-rejected,
.request-status.status-done { opacity: 1; }
.request-datetime { margin-top: 6px; font-size: 13px; opacity: .75; }
.request-message { margin-top: 10px; opacity: .9; }
.request-meta { margin-top: 10px; font-size: 12px; opacity: .7; }
/* =================================================
   Personal Profile (Figma 8/16)
   ================================================= */
.pp { padding: 24px 0; }
.pp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.pp-title { margin: 0 0 8px; font-size: 28px; }
.pp-badge {
  margin-left: 10px;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  opacity: .9;
}
.pp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pp-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  margin-top: 18px;
}
.pp-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 16px;
}
.pp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pp-gallery-item {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.18);
}
/* =================================================
   Home (Figma 9/16)
   ================================================= */
.home-section { padding: 28px 0; }
.section-link { text-decoration: none; font-size: 22px; }
.section-muted { opacity: .8; }
/* HOME HERO */
.home-hero { padding: 18px 0 10px; }
.hero-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 16px;
  align-items: stretch;
}
.hero-left { display: grid; gap: 16px; }
.hero-card {
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background-color: rgba(0,0,0,.03);
  padding: 16px;
}
.hero-card__title { margin: 0 0 8px; font-size: 28px; }
.hero-card__text { margin: 0; opacity: .8; }
.hero-card__actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.hero-card__arrow { font-size: 22px; text-decoration: none; }
.hero-card--mini { padding: 0; overflow: hidden; }
.hero-mini__media { height: 210px; background-color: rgba(0,0,0,.08); }
.hero-mini__actions { padding: 14px; }
/* HERO banner (Figma layers) */
.hero-banner {
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  position: relative;
  background: #0b0b0b;
  color: #fff;
}
.hero-banner__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 600px at 30% 30%, rgba(255,255,255,.08), transparent 60%),
    radial-gradient(900px 500px at 80% 30%, rgba(255,255,255,.06), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.0));
}
.hero-banner__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 50% 40%, transparent 35%, rgba(0,0,0,.65) 85%),
    linear-gradient(
      90deg,
      rgba(0,0,0,.55),
      transparent 35%,
      transparent 65%,
      rgba(0,0,0,.55)
    );
  pointer-events: none;
}
.hero-banner__overlay {
  position: absolute;
  inset: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 2;
}
.hero-brand {
  font-size: 72px;
  line-height: .9;
  letter-spacing: -0.02em;
  text-shadow: 0 8px 40px rgba(0,0,0,.45);
}
.hero-stats {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
  flex-wrap: wrap;
}
.hero-stat__num {
  font-size: 44px;
  font-weight: 800;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.hero-stat__text {
  opacity: .95;
  text-shadow: 0 6px 30px rgba(0,0,0,.45);
}
.hero-stat__text span { opacity: .8; }
.cards-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.profile-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  min-width: 260px;
}
.profile-card__media {
  display: block;
  position: relative;
  text-decoration: none;
}
.profile-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}
.profile-card__img--placeholder {
  width: 100%;
  height: 260px;
  background-color: rgba(0,0,0,.08);
}
.profile-card__price {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: rgba(0,0,0,.6);
  color: #fff;
  font-size: 12px;
}
.profile-card__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background-color: rgba(0,0,0,.35);
  color: #fff;
}
.profile-card__body { padding: 12px 12px 14px; }
.profile-card__title { margin: 0 0 8px; font-size: 14px; }
.profile-card__title a { color: inherit; text-decoration: none; }
.profile-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: .85;
  font-size: 12px;
  margin-bottom: 10px;
}
.profile-card__badge {
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  font-size: 11px;
}
.profile-card__actions {
  display: flex;
  gap: 12px;
  font-size: 12px;
  opacity: .75;
}
/* =================================================
   Home – Recommendations (Figma)
   ================================================= */
.home-recommend { padding: 18px 0 28px; }
.recommend-wrap {
  background: var(--c-dark);
  border-radius: 22px;
  padding: 18px 18px 14px;
  color: #fff;
}
.recommend-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 12px;
}
.recommend-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}
.recommend-link {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background-color: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
}
.recommend-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 6px 10px;
  scroll-snap-type: x mandatory;
}
.recommend-row > .profile-card { scroll-snap-align: start; }
.home-recommend .profile-card {
  border: none;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
/* =================================================
   Home – City section + info card
   ================================================= */
.home-city { padding: 28px 0; }
.city-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 16px;
  align-items: start;
}
.city-info__card {
  border-radius: 22px;
  padding: 18px;
  background-color: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
}
.city-info__title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}
.city-info__subtitle {
  opacity: .8;
  line-height: 1.35;
}
.city-info__actions {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.city-info__arrow {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background-color: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  font-size: 22px;
}
.city-info__note {
  margin-top: 12px;
  font-size: 12px;
  opacity: .65;
}
.cards-grid--city { grid-template-columns: repeat(3, 1fr); }
/* =================================================
   Home – Videos section (Figma)
   ================================================= */
.home-videos { padding: 28px 0; }
.videos-wrap {
  background: #1f1f1f;
  border-radius: 22px;
  padding: 18px 18px 16px;
  color: #fff;
}
.videos-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.videos-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}
.videos-link {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background-color: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
}
.videos-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 6px 10px;
  scroll-snap-type: x mandatory;
}
.videos-row > .video-card { scroll-snap-align: start; }
.video-card {
  min-width: 260px;
  border-radius: 18px;
  overflow: hidden;
  background: #2a2a2a;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.video-card__body { padding: 12px 12px 14px; }
.video-card__title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.video-card__meta { font-size: 12px; opacity: .75; }
.videos-row::-webkit-scrollbar { height: 8px; }
.videos-row::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,.18); border-radius: 999px; }
.videos-row::-webkit-scrollbar-track { background: transparent; }
/* ✅ Video card media (SINGLE source of truth) */
.video-card__media {
  position: relative;
  height: 180px;
  width: 100%;
  border: 0;
  padding: 0;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  cursor: pointer;
  background:
    radial-gradient(500px 200px at 30% 30%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.0)),
    #3a3a3a;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.video-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background-color: rgba(0,0,0,.6);
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
}
.video-card__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background-color: rgba(0,0,0,.65);
  color: #fff;
}
/* =================================================
   Home – Reviews section (Figma)
   ================================================= */
.home-reviews { padding: 28px 0; }
.reviews-wrap {
  background: #2b2b2b;
  border-radius: 22px;
  padding: 18px 18px 16px;
  color: #fff;
}
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.reviews-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}
.reviews-link {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background-color: rgba(255,255,255,.08);
  color: #fff;
  font-size: 22px;
}
.reviews-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 6px 10px;
  scroll-snap-type: x mandatory;
}
.reviews-row > .review-card { scroll-snap-align: start; }
.review-card {
  min-width: 320px;
  border-radius: 18px;
  background-color: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.review-card__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background-color: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.10);
  flex: 0 0 auto;
}
.review-card__person { flex: 1 1 auto; min-width: 0; }
.review-card__name { font-weight: 700; line-height: 1.1; }
.review-card__stars {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 1px;
  opacity: .9;
}
.review-card__date { font-size: 12px; opacity: .7; flex: 0 0 auto; }
.review-card__text {
  font-size: 13px;
  line-height: 1.35;
  opacity: .92;
}
.reviews-row::-webkit-scrollbar { height: 8px; }
.reviews-row::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,.18); border-radius: 999px; }
.reviews-row::-webkit-scrollbar-track { background: transparent; }
/* =================================================
   Video modal
   ================================================= */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.video-modal.is-open { display: block; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,.65);
}
.video-modal__dialog {
  position: relative;
  max-width: 920px;
  margin: 60px auto;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.video-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background-color: rgba(255,255,255,.08);
  color: #fff;
  cursor: pointer;
  z-index: 2;
}
.video-modal__player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
#videoModalPlayer {
  width: 100%;
  height: 100%;
  display: block;
}
/* =================================================
   Single Profile (Figma)
   ================================================= */
.profile { padding: 32px 0; }
.profile-grid {
  display: grid;
  grid-template-columns: 1.6fr .9fr;
  gap: 24px;
}
/* LEFT */
.profile-gallery {
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: 24px;
}
.profile-gallery img { width: 100%; display: block; }
.profile-gallery-placeholder {
  height: 420px;
  background: var(--c-card);
}
.profile-card {
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 24px;
}
.profile-card h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
.profile-text {
  font-size: 14px;
  line-height: 1.5;
}
/* FORM */
.request-form {
  display: grid;
  gap: 12px;
}
.request-form input,
.request-form textarea {
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--c-muted);
  font-family: inherit;
}
.request-form textarea {
  min-height: 90px;
  resize: vertical;
}
/* RIGHT */
.profile-summary {
  background: var(--c-dark);
  color: var(--c-white);
  border-radius: var(--r-xl);
  padding: 24px;
  position: sticky;
  top: 24px;
}
.profile-name {
  margin: 0 0 8px;
  font-size: 28px;
}
.profile-badge {
  margin-left: 8px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background-color: rgba(255,255,255,.15);
  font-size: 12px;
}
.profile-city { opacity: .8; margin-bottom: 12px; }
.profile-price {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}
/* =================================================
   Profile gallery (Figma) – tiles
   ================================================= */
.profile-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 180px;
  gap: 12px;
  margin-bottom: 24px;
}
.profile-gallery-item {
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  border: 0;
  cursor: pointer;
}
.profile-gallery-item.is-main {
  grid-row: span 2;
  min-height: 372px;
}
/* =================================================
   Gallery lightbox
   ================================================= */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.gallery-lightbox.is-open { display: block; }
.gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,.8);
}
.gallery-lightbox img {
  position: absolute;
  max-width: 90vw;
  max-height: 90vh;
  inset: 0;
  margin: auto;
  border-radius: var(--r-lg);
}
.gallery-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background-color: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  cursor: pointer;
}
/* =================================================
   Profile videos (Figma)
   ================================================= */
.profile-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.profile-block-title {
  margin: 0;
  font-size: 20px;
}
.profile-videos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
/* card */
.pv-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-white);
  box-shadow: var(--shadow-md);
}
/* media */
.pv-media {
  position: relative;
  width: 100%;
  height: 170px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #3a3a3a;
}
.pv-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  background-color: rgba(0,0,0,.6);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
}
.pv-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 8px;
  border-radius: var(--r-pill);
  font-size: 12px;
  background-color: rgba(0,0,0,.65);
  color: #fff;
}
/* body */
.pv-body { padding: 12px; }
.pv-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.pv-meta { font-size: 12px; opacity: .7; }
/* =================================================
   Footer
   ================================================= */
.site-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 22px 0;
  background: #fff;
}
/* =================================================
   Responsive
   ================================================= */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { grid-template-columns: 1fr; }
  .cards-grid--city { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: flex-start; }
  .hero-frame { max-width: 560px; }
  .hero-img { height: 420px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .section-head { align-items: flex-start; flex-direction: column; }
  .steps { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-img { height: 420px; }
  .request-grid { grid-template-columns: 1fr; }
  .cta-card { flex-direction: column; align-items: flex-start; }
  .cta-actions .btn { width: 100%; }
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-visual { min-height: 260px; }
  .auth-logo { font-size: 48px; }
  .pp-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .site-header { padding: 14px 0; }
  .nav .menu { gap: 12px; flex-wrap: wrap; }
  .hero { padding: 120px 0 80px; }
  .hero-title { font-size: clamp(48px, 12vw, 72px); }
  .hero-text { font-size: 16px; }
  .btn { width: 100%; }
  .hero-actions { gap: 12px; }
  .filters-row { grid-template-columns: 1fr 1fr; }
  .profile-gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
  .profile-gallery-item.is-main {
    grid-column: span 2;
    min-height: 280px;
  }
  .hero-brand { font-size: 52px; }
  .hero-stat__num { font-size: 34px; }
}
@media (max-width: 700px) {
  .video-modal__dialog { margin: 40px 12px; }
}
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid--city { grid-template-columns: 1fr; }
  .hero-brand { font-size: 48px; }
  .profile-card { min-width: 240px; }
  .video-card { min-width: 240px; }
  .review-card { min-width: 280px; }
  .profile-videos { grid-template-columns: 1fr; }
  .recommend { padding: 16px; }
  .recommend-title { font-size: 22px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .filters-row { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  /* reserved for micro tweaks */
}
<?php get_header(); ?>
<main class="site-main">
  <section class="profiles-page">
    <div class="container">
      <header class="section-head">
        <h1 class="section-title"><?php post_type_archive_title(); ?></h1>
        <p class="section-subtitle">All profiles</p>
      </header>
      <?php if ( have_posts() ) : ?>
        <div class="cards-grid cards-grid--profiles">
          <?php while ( have_posts() ) : the_post(); ?>
            <article class="profile-card">
              <a class="profile-card__media" href="<?php the_permalink(); ?>">
                <?php if ( has_post_thumbnail() ) : ?>
                  <?php the_post_thumbnail('large', ['class' => 'profile-card__img']); ?>
                <?php else : ?>
                  <div class="profile-card__img profile-card__img--placeholder"></div>
                <?php endif; ?>
                <?php
                  $price = get_post_meta(get_the_ID(), 'price', true);
                  if ($price !== ''):
                ?>
                  <span class="profile-card__price"><?php echo esc_html($price); ?></span>
                <?php endif; ?>
              </a>
              <div class="profile-card__body">
                <h3 class="profile-card__title">
                  <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
                </h3>
                <div class="profile-card__meta">
                  <?php
                    $city = get_post_meta(get_the_ID(), 'city', true);
                    if ($city) echo esc_html($city);
                  ?>
                </div>
              </div>
            </article>
          <?php endwhile; ?>
        </div>
        <div class="pagination" style="margin-top:24px;">
          <?php the_posts_pagination(); ?>
        </div>
      <?php else : ?>
        <p>No profiles found.</p>
      <?php endif; ?>
    </div>
  </section>
</main>
<?php get_footer(); ?>
/* === Profile Gallery Upload === */
.pp-upload-form {
  margin: 15px 0;
}
.upload-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px dashed #ccc;
  border-radius: 14px;
  padding: 28px;
  cursor: pointer;
  transition: 0.2s ease;
  background: #fafafa;
  text-align: center;
}
.upload-box:hover {
  border-color: #000;
  background: #f5f5f5;
}
.upload-icon {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 8px;
}
.upload-text {
  font-size: 14px;
  color: #333;
}
.upload-submit {
  margin-top: 12px;
  padding: 10px 22px;
  border-radius: 30px;
  border: none;
  background: #000;
  color: #fff;
  cursor: pointer;
}
.upload-submit:hover {
  opacity: 0.9;
}
/* Gallery grid */
.pp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 15px;
}
.pp-gallery-item {
  position: relative;
  width: 100%;
  padding-top: 120%;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
}
/* ===== Personal Profile: Upload UI ===== */
.pp-upload-form { margin: 12px 0 18px; }
.pp-upload-row{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.pp-file-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border:1px solid #d7d7d7;
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  font-weight:600;
  line-height:1;
  transition:.2s ease;
  user-select:none;
}
.pp-file-btn:hover{
  border-color:#111;
}
.pp-files-label{
  font-size:14px;
  color:#777;
  min-width:140px;
}
.pp-upload-submit{
  border-radius:999px;
  padding:12px 22px;
}
/* Gallery grid (аккуратно) */
.pp-gallery{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:14px;
}
@media (max-width: 900px){
  .pp-gallery{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .pp-gallery{ grid-template-columns:1fr; }
}
.pp-gallery-item{
  display:block;
  border-radius:16px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  aspect-ratio: 1 / 1.15;
}
/* ===== Upload UI ===== */
.pp-upload-form {
  margin: 16px 0;
}
.pp-upload-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
/* Choose files */
.pp-upload-select {
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px dashed #bbb;
  cursor: pointer;
  font-weight: 600;
  color: #222;
  transition: all .2s ease;
  background: #fff;
}
.pp-upload-select:hover {
  border-color: #111;
  background: #f7f7f7;
}
/* Upload button */
.pp-upload-btn {
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  background: #1f1f1f;
  color: #fff;
  transition: 0.2s ease;
}
.pp-upload-btn:hover {
  background: #000;
}
.pp-upload-select {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.pp-upload-btn {
  background: #111;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
/* полностью скрываем стандартный file input */
.pp-upload-select input[type="file"] {
  display: none;
}
/* кнопка выбора файлов */
.pp-upload-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: #f2f2f2;
  border: 2px solid #ddd;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}
.pp-upload-select:hover {
  background: #eee;
  border-color: #000;
}
/* кнопка отправки */
.pp-upload-btn {
  margin-left: 12px;
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  background: #111;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.pp-upload-btn:hover {
  background: #000;
}
.pp-gallery-item{
  position: relative;
  border-radius:16px;
  overflow:hidden;
}
.pp-gallery-open{
  position:absolute;
  inset:0;
  display:block;
}
/* delete overlay */
.pp-photo-del-form{
  position:absolute;
  top:10px;
  right:10px;
  opacity:0;
  transform: translateY(-4px);
  transition: .15s ease;
  z-index: 2;
}
.pp-gallery-item:hover .pp-photo-del-form{
  opacity:1;
  transform: translateY(0);
}
.pp-photo-del-btn{
  border:0;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-weight:600;
  background-color: rgba(0,0,0,0.65);
  color:#fff;
  backdrop-filter: blur(6px);
}
.pp-photo-del-btn:hover{
  background-color: rgba(0,0,0,0.85);
}
.profile-gallery{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:16px;
}
.profile-gallery-item{
  display:block;
  border-radius:16px;
  overflow:hidden;
  background-size:cover;
  background-position:center;
  aspect-ratio: 1 / 1.15;
}
@media (max-width: 900px){
  .profile-gallery{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .profile-gallery{ grid-template-columns:1fr; }
}
/* Request result (success/error) */
.request-result{
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
}
.request-result.is-success{
  background: #e9f8ee;
  border: 1px solid #bde5c8;
  color: #1d6b34;
}
.request-result.is-error{
  background: #ffecec;
  border: 1px solid #f5b5b5;
  color: #8a1f1f;
}
/* =========================
   Personal Profile: City select
   ========================= */
.pp-right .pp-card .pp-info-row + select,
.pp-right .pp-card select[name="profile_city"]{
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  font: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #111 50%),
    linear-gradient(135deg, #111 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.pp-right .pp-card select[name="profile_city"]:focus{
  border-color: rgba(0,0,0,.45);
  box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}
.pp-right .pp-card .pp-alert{
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.12);
}
.pp-right .pp-card .pp-alert--success{
  background: #eaf7ee;
}
.pp-right .pp-card .pp-alert--error{
  background: #fdecec;
}
/* make the Save button align nicely under select */
.pp-right .pp-card form .btn{
  width: 100%;
}
/* === HERO IMAGE FIX === */
.hero {
  overflow: hidden;
}
.hero .hero-bg {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}
.hero .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 768px) {
  .hero .hero-bg {
    height: 320px;
  }
}
/* === HERO SIZES OVERRIDE (FIGMA) === */
.hero .hero-inner{
  display:grid !important;
  grid-template-columns: 360px 1fr !important;
  gap:24px !important;
  align-items:start !important;
}
/* LEFT preview image (small card) */
.hero .hero-preview{
  display:block !important;
  margin-top:16px !important;
  border-radius:24px !important;
  overflow:hidden !important;
  position:relative !important;
  width:100% !important;
  height:210px !important;
}
.hero .hero-preview img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
}
/* RIGHT banner image (big) */
.hero .hero-right{
  position:relative !important;
}
.hero .hero-right .hero-bg{
  position:relative !important;
  width:100% !important;
  height:360px !important;
  border-radius:28px !important;
  overflow:hidden !important;
}
.hero .hero-right .hero-bg img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  display:block !important;
}
/* Mobile */
@media (max-width: 768px){
  .hero .hero-inner{
    grid-template-columns:1fr !important;
    gap:16px !important;
  }
  .hero .hero-preview{
    height:170px !important;
    border-radius:20px !important;
  }
  .hero .hero-right .hero-bg{
    height:260px !important;
    border-radius:22px !important;
  }
}
/* === MOBILE HERO FIX (CUSTOM) === */
.hero .hero-preview {
  height: 200px !important;
}
.hero .hero-right .hero-bg {
  height: 280px !important;
}
.hero .hero-inner {
  gap: 12px !important;
}
/* === RECOMMENDATIONS SIZE FIX (FIGMA) === */
.home-recommend .recommend-row{
  display:flex !important;
  gap:16px !important;
  overflow-x:auto !important;
  padding-bottom:6px !important;
  scroll-snap-type:x mandatory !important;
}
.home-recommend .recommend-row::-webkit-scrollbar{
  height:6px;
}
.home-recommend .profile-card{
  flex:0 0 260px !important;
  scroll-snap-align:start !important;
  background:#fff !important;
  border-radius:18px !important;
  overflow:hidden !important;
  text-decoration:none !important;
}
.home-recommend .profile-card img{
  width:100% !important;
  height:190px !important;
  object-fit:cover !important;
  display:block !important;
}
.home-recommend .profile-card__info{
  padding:10px 12px !important;
}
.home-recommend .profile-card__name{
  font-weight:700 !important;
  font-size:14px !important;
  line-height:1.2 !important;
}
@media (max-width: 768px){
  .home-recommend .profile-card{
    flex-basis:220px !important;
  }
  .home-recommend .profile-card img{
    height:170px !important;
  }
}
/* === FIX HEADER LAYOUT === */
.topbar {
  padding: 8px 0 !important;
  background: #fff;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
}
/* Лого */
.topbar__logo {
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}
/* Поиск */
.topbar__search {
  max-width: 360px;
  height: 40px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: #f3f3f3;
}
.topbar__search input {
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
}
/* Кнопки справа */
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.topbar__btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
}
/* Убираем лишние отступы сверху */
body {
  padding-top: 0 !important;
}
/* Мобилка */
@media (max-width: 768px) {
  .topbar__search {
    max-width: 100%;
  }
  .topbar__btn {
    display: none;
  }
}
/* === TOPBAR: STICKY === */
.topbar{
  position:sticky;
  top:0;
  z-index:9999;
}
/* чтобы контент не прилипал вплотную */
.site-main{
  padding-top:16px;
}
/* === TOPBAR: MOBILE (FIGMA) === */
@media (max-width: 768px){
  .topbar__inner{
    min-height:52px;
    padding:10px 0;
    gap:10px;
  }
  .topbar__logo{
    font-size:18px;
    max-width:120px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .topbar__search{
    max-width:none;
    flex:1;
    height:38px;
    padding:0 12px;
  }
  .topbar__actions{
    gap:8px;
  }
  .topbar__icon{
    width:32px;
    height:32px;
    font-size:14px;
  }
  .topbar__btn{
    display:none !important;
  }
}
/* === TOPBAR: FIGMA TUNING (DESKTOP) === */
.topbar__inner{
  gap:18px;
}
.topbar__search{
  height:42px;
  padding:0 16px;
  background:#f1f1f1;
}
.topbar__search-ico{
  opacity:.6;
}
.topbar__actions{
  gap:14px;
}
.topbar__icon{
  background:#f1f1f1;
}
/* кнопки как в макете */
.topbar__actions .btn{
  border-radius:999px;
}
.topbar__actions .btn.topbar__btn:not(.btn-primary){
  background:#fff;
  border:1px solid rgba(0,0,0,.12);
}
.topbar__actions .btn.btn-primary.topbar__btn{
  background:#2b2b2b;
  color:#fff;
  border:0;
}
/* ===== FIX GLOBAL SPACING ===== */
.site-main {
  padding-top: 0 !important;
  margin-top: 0 !important;
}
header + .site-main {
  margin-top: 0 !important;
}
/* === HERO FIX === */
.hero {
  padding-top: 24px !important;
  padding-bottom: 32px !important;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
}
/* Левая часть */
.hero-left {
  max-width: 520px;
}
/* Картинка справа */
.hero-right {
  max-width: 520px;
  margin-left: auto;
}
.hero-right img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .hero {
    padding-top: 12px;
  }
  .hero .container {
    flex-direction: column;
    gap: 24px;
  }
  .hero-right {
    order: 2;
    width: 100%;
  }
  .hero-left {
    order: 1;
    width: 100%;
  }
  .hero-right img {
    border-radius: 20px;
  }
}
/* === PIXEL PERFECT BASE (FIGMA) === */
:root{
  --container:1200px;
  --pad:24px;
  --radius:24px;
  --radius-lg:28px;
  --fg:#111;
  --muted:#6b6b6b;
  --line:rgba(0,0,0,.06);
  --chip:#f1f1f1;
  --btn:#2b2b2b;
}
.container{
  max-width:var(--container);
  padding-left:var(--pad);
  padding-right:var(--pad);
}
.site-main{
  padding-top:0 !important;
  margin-top:0 !important;
}
.hero{
  padding:24px 0 32px !important;
}
.hero .hero-inner{
  align-items:center;
  gap:48px !important;
}
.hero-left{
  max-width:520px;
}
.hero-right{
  margin-left:auto;
  max-width:560px;
}
.hero-right .hero-bg img{
  width:100%;
  height:280px;
  object-fit:cover;
  border-radius:var(--radius-lg);
  display:block;
}
.hero-preview{
  display:block;
  height:200px;
  border-radius:var(--radius);
  overflow:hidden;
}
.hero-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
@media (max-width:768px){
  :root{--pad:16px;}
  .hero .hero-inner{
    flex-direction:column;
    align-items:stretch;
    gap:16px !important;
  }
  .hero-left,.hero-right{
    max-width:none;
  }
  .hero-right .hero-bg img{
    height:220px;
    border-radius:20px;
  }
  .hero-preview{
    height:180px;
    border-radius:20px;
  }
}
/* === STICKY TOPBAR + BLUR === */
.topbar{
  position:sticky;
  top:0;
  z-index:9999;
  background-color:rgba(255,255,255,.78);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
/* === CARDS: HOVER === */
.profile-card{
  transition:transform .18s ease, box-shadow .18s ease;
  will-change:transform;
}
.profile-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
}
.profile-card__media{
  border-radius:18px;
  overflow:hidden;
}
.profile-card__img{
  transition:transform .25s ease;
}
.profile-card:hover .profile-card__img{
  transform:scale(1.03);
}
/* === FADE-IN ON SCROLL === */
.reveal{
  opacity:0;
  transform:translateY(10px);
  transition:opacity .45s ease, transform .45s ease;
}
.reveal.is-visible{
  opacity:1;
  transform:none;
}
@media (prefers-reduced-motion: reduce){
  .reveal{opacity:1;transform:none;transition:none;}
}
/* === SKELETON === */
.skeleton{
  background:linear-gradient(90deg,#eee,#f7f7f7,#eee);
  background-size:200% 100%;
  animation:skeleton 1.1s infinite linear;
}
@keyframes skeleton{
  0%{background-position:200% 0;}
  100%{background-position:-200% 0;}
}
.profile-card__media{
  position:relative;
}
.profile-card__media.skeleton::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  pointer-events:none;
}
.profile-card__media.skeleton::before{
  background:linear-gradient(90deg,#eee,#f7f7f7,#eee);
  background-size:200% 100%;
  animation:skeleton 1.1s infinite linear;
}
/* === CWV: reduce CLS with fixed ratio === */
.profile-card__img{
  width:100%;
  aspect-ratio: 3 / 4;
  object-fit:cover;
  display:block;
}
/* === CITY GRID FIX: prevent “linked” first card === */
.home-city .city-row,
.home-city .profiles-row,
.home-city .city-grid,
.home-city .profiles-grid{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px !important;
  align-items:start;
}
/* каждая карточка строго в своей ячейке */
.home-city .profile-card{
  width:100%;
  max-width:none;
  margin:0 !important;
  grid-column:auto !important;
}
/* если у первой карточки есть спец-класс (промо/каталог) — дадим ей отдельное правило */
.home-city .city-intro,
.home-city .catalog-card,
.home-city .profiles-intro{
  grid-column:1 / span 1 !important;
}
@media (max-width:1024px){
  .home-city .city-row,
  .home-city .profiles-row,
  .home-city .city-grid,
  .home-city .profiles-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:768px){
  .home-city .city-row,
  .home-city .profiles-row,
  .home-city .city-grid,
  .home-city .profiles-grid{
    grid-template-columns:1fr;
    gap:14px !important;
  }
}
/* === CITY SECTION (FIGMA GRID) === */
.home-city .city-grid{
  display:grid !important;
  grid-template-columns: 420px 1fr;
  gap:24px !important;
  align-items:start;
}
.home-city .city-info{
  position:sticky;
  top:88px; /* ниже sticky header */
}
.home-city .cards-grid--city{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px !important;
}
.home-city .cards-grid--city .profile-card{
  margin:0 !important;
  width:100%;
  max-width:none;
}
@media (max-width:1100px){
  .home-city .city-grid{
    grid-template-columns:360px 1fr;
  }
  .home-city .cards-grid--city{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:768px){
  .home-city .city-grid{
    grid-template-columns:1fr;
    gap:16px !important;
  }
  .home-city .city-info{
    position:static;
  }
  .home-city .cards-grid--city{
    grid-template-columns:1fr;
    gap:14px !important;
  }
}
/* === OVERRIDE: ensure cards-grid is always grid (fix linked cards) === */
.cards-grid{
  display:grid !important;
  gap:18px !important;
  align-items:start;
}
.cards-grid--city{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
}
@media (max-width:1100px){
  .cards-grid--city{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media (max-width:768px){
  .cards-grid--city{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }
}
/* === CITY PROMO CARD (glued like Figma) === */
.cards-grid--city .profile-card--promo{
  background:#ededed;
  border-radius:18px;
  overflow:hidden;
}
.cards-grid--city .profile-card--promo .profile-card__body{
  padding:18px;
}
.cards-grid--city .profile-card--promo .profile-card__title{
  font-size:22px;
  margin:0 0 10px;
}
.cards-grid--city .profile-card--promo .profile-card__meta .profile-card__city{
  display:block;
  color:#333;
  line-height:1.45;
}
/* === HOME CITY (FIGMA 1:1) === */
.home-city .city-grid{
  display:grid !important;
  grid-template-columns: 640px 1fr; /* широкий левый блок как в Figma */
  gap:32px !important;
  align-items:start;
}
.home-city .city-info__card{
  background:#ededed;
  border-radius:22px;
  padding:26px;
  border:1px solid rgba(0,0,0,.08);
}
.home-city .city-info__title{
  font-size:34px;
  font-weight:800;
  margin:0 0 12px;
}
.home-city .city-info__subtitle{
  font-size:20px;
  line-height:1.45;
  margin:0 0 22px;
  color:rgba(0,0,0,.75);
}
.home-city .city-info__actions{
  display:flex;
  align-items:center;
  gap:18px;
}
.home-city .city-info__actions .btn{
  height:64px;
  padding:0 34px;
  border-radius:999px;
  font-size:18px;
}
.home-city .city-info__arrow{
  width:56px;
  height:56px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background-color:rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.08);
  color:#111;
  text-decoration:none;
}
.home-city .city-info__note{
  margin-top:16px;
  font-size:14px;
  opacity:.65;
}
.home-city .cards-grid--city{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px !important;
}
@media (max-width:1100px){
  .home-city .city-grid{
    grid-template-columns:420px 1fr;
    gap:22px !important;
  }
  .home-city .cards-grid--city{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:768px){
  .home-city .city-grid{
    grid-template-columns:1fr;
    gap:16px !important;
  }
  .home-city .cards-grid--city{
    grid-template-columns:1fr;
    gap:14px !important;
  }
  .home-city .city-info__title{font-size:26px;}
  .home-city .city-info__subtitle{font-size:16px;}
  .home-city .city-info__actions .btn{width:100%;}
}
/* === HOME CITY FIX (prevent overlap, Figma grid) === */
.home-city .container{overflow:hidden;}
.home-city .city-grid{
  display:grid !important;
  grid-template-columns: 640px minmax(0,1fr) !important;
  gap:32px !important;
  align-items:start;
}
.home-city .city-cards{min-width:0;}
.home-city .cards-grid--city{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:20px !important;
}
.home-city .profile-card{max-width:100%;}
@media (max-width:1100px){
  .home-city .city-grid{grid-template-columns:420px minmax(0,1fr) !important; gap:22px !important;}
  .home-city .cards-grid--city{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:768px){
  .home-city .city-grid{grid-template-columns:1fr !important; gap:16px !important;}
  .home-city .cards-grid--city{grid-template-columns:1fr !important; gap:14px !important;}
}
/* === HOME CITY (FIGMA 1:1 FIX) === */
.home-city .container{overflow:hidden;}
.home-city .city-grid{
  display:grid !important;
  grid-template-columns: 640px minmax(0,1fr) !important;
  gap:32px !important;
  align-items:start !important;
}
.home-city .city-info{position:sticky; top:110px;}
.home-city .city-cards{min-width:0;}
.home-city .cards-grid--city{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:20px !important;
}
.home-city .profile-card{max-width:100%;}
@media (max-width:1100px){
  .home-city .city-grid{grid-template-columns:420px minmax(0,1fr) !important; gap:22px !important;}
  .home-city .cards-grid--city{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:768px){
  .home-city .city-info{position:static; top:auto;}
  .home-city .city-grid{grid-template-columns:1fr !important; gap:16px !important;}
  .home-city .cards-grid--city{grid-template-columns:1fr !important; gap:14px !important;}
}
/* =========================
   Figma 1:1 overrides — Home City
   ========================= */
/* 2 колонки: слева инфо, справа чистый грид карточек */
.home-city .city-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}
/* ВАЖНО: справа НЕ должен быть “серый контейнер”
   убираем фон/паддинги/рамки у .cards-grid--city если они есть */
.home-city .cards-grid--city{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
/* Сам грид карточек — как в Figma */
.home-city .cards-grid.cards-grid--city{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
/* Левый инфо-блок — отдельная карточка */
.home-city .city-info{
  position: relative;
}
.home-city .city-info__card{
  border-radius: var(--r-xl);
  background: var(--c-card);
  border: 1px solid rgba(0,0,0,.10);
  padding: 26px;
}
/* Desktop: 1 инфо + 3 карточки в ряд */
@media (min-width: 1100px){
  .home-city .city-grid{
    grid-template-columns: 380px 1fr;
    gap: 26px;
  }
  .home-city .cards-grid.cards-grid--city{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}
/* Mobile: инфо первым, затем карточки */
@media (max-width: 720px){
  .home-city .city-info{ order: 1; }
  .home-city .cards-grid--city{ order: 2; }
  .home-city .cards-grid.cards-grid--city{
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
/* =========================
   Figma 1:1 overrides — Home City
   ========================= */
/* Layout: left info + right grid (без лишних обёрток) */
.home-city .city-grid{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 26px !important;
  align-items: start !important;
}
/* ВАЖНО: справа НЕ должно быть серой плашки-контейнера */
.home-city .cards-grid--city{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
/* Сам грид карточек */
.home-city .cards-grid.cards-grid--city{
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
/* Left info card */
.home-city .city-info__card{
  background: var(--c-card) !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  border-radius: var(--r-xl) !important;
  padding: 26px !important;
}
/* Desktop */
@media (min-width: 1100px){
  .home-city .city-grid{
    grid-template-columns: 380px 1fr !important;
    gap: 26px !important;
  }
  .home-city .cards-grid.cards-grid--city{
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
/* Mobile */
@media (max-width: 720px){
  .home-city .cards-grid.cards-grid--city{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}
/* =================================================
   FINAL OVERRIDE — HOME CITY (single source of truth)
   Put at the VERY END of file.
   ================================================= */
/* layout: left info + right cards grid */
.home-city .city-grid{
  display:grid !important;
  grid-template-columns: 420px 1fr !important;
  gap: 24px !important;
  align-items: start !important;
}
/* no sticky in Figma (если нужно — потом включим отдельно) */
.home-city .city-info{
  position: static !important;
  top: auto !important;
}
/* right side must be CLEAN grid (no gray wrapper) */
.home-city .cards-grid,
.home-city .cards-grid--city{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
}
/* cards grid columns */
.home-city .cards-grid.cards-grid--city{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
/* left info card visuals */
.home-city .city-info__card{
  background: #ededed !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  border-radius: 22px !important;
  padding: 26px !important;
}
/* responsive */
@media (max-width: 1100px){
  .home-city .city-grid{
    grid-template-columns: 360px 1fr !important;
    gap: 22px !important;
  }
  .home-city .cards-grid.cards-grid--city{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px){
  .home-city .city-grid{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .home-city .cards-grid.cards-grid--city{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}
/* =================================================
   PIXEL OVERRIDE — HOME CITY (final)
   (put at very end)
   ================================================= */
/* Title size (if it looks too huge) */
.home-city .section-title{
  font-size: 44px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  margin: 0 !important;
}
/* Layout: left info + right cards */
.home-city .city-grid{
  display: grid !important;
  grid-template-columns: 420px 1fr !important;
  gap: 24px !important;
  align-items: start !important;
}
/* LEFT card sizing */
.home-city .city-info__card{
  background: #ededed !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  border-radius: 22px !important;
  padding: 26px !important;
}
/* IMPORTANT: kill any "big gray wrapper" on the RIGHT side */
.home-city .city-grid > .cards-grid.cards-grid--city{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
/* cards grid */
.home-city .cards-grid.cards-grid--city{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}
/* If some rule adds background to each grid item wrapper (rare) */
.home-city .cards-grid.cards-grid--city > *{
  background: transparent !important;
}
/* Responsive */
@media (max-width: 1100px){
  .home-city .city-grid{
    grid-template-columns: 360px 1fr !important;
    gap: 22px !important;
  }
  .home-city .cards-grid.cards-grid--city{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 768px){
  .home-city .section-title{
    font-size: 34px !important;
  }
  .home-city .city-grid{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .home-city .cards-grid.cards-grid--city{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}
/* =================================================
   FIGMA: first promo card is glued to grid
   ================================================= */
/* Base grid for city */
.cards-grid--city{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
/* Promo spans like in Figma */
.cards-grid--city .profile-card--promo{
  grid-column: 1 / span 2 !important;  /* 2 columns wide */
  grid-row: span 2 !important;         /* taller (usually = 2 normal rows) */
  display: flex;
}
/* Make promo content fill nicely */
.cards-grid--city .profile-card--promo .profile-card__body{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* Responsive */
@media (max-width: 1100px){
  .cards-grid--city{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .cards-grid--city .profile-card--promo{
    grid-column: 1 / -1 !important;    /* full width on 2-col layout */
    grid-row: auto !important;
  }
}
@media (max-width: 768px){
  .cards-grid--city{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .cards-grid--city .profile-card--promo{
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
/* === FIX: promo card should NOT span 2 cols/rows (Figma) === */
.cards-grid--city .profile-card--promo{
  grid-column: auto !important;
  grid-row: auto !important;
  height: auto !important;
  min-height: 0 !important;
}
/* keep grid stable */
.cards-grid--city{
  grid-auto-flow: row !important;
}
/* === HOME CITY: FIGMA GRID 1v1 (promo + cards) === */
.home-city .cards-grid--city{
  display:grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important; /* как на Figma: плотная 4-колонка */
  gap: 18px !important;
  align-items: start !important;
}
/* promo card занимает 2 колонки (как в макете) */
.home-city .cards-grid--city .profile-card--promo{
  grid-column: 1 / span 2 !important;
  grid-row: auto !important;
  min-height: 0 !important;
}
/* обычные карточки */
.home-city .cards-grid--city .profile-card{
  grid-column: auto !important;
}
/* адаптив */
@media (max-width: 1100px){
  .home-city .cards-grid--city{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
  .home-city .cards-grid--city .profile-card--promo{
    grid-column: 1 / -1 !important; /* на 2 колонках промо на всю ширину */
  }
}
@media (max-width: 768px){
  .home-city .cards-grid--city{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .home-city .cards-grid--city .profile-card--promo{
    grid-column: auto !important;
  }
}
/* === CITY: FIRST CARD COMPOSITE (FIGMA) === */
.home-city .cards-grid--city{
  display:grid !important;
  grid-template-columns: repeat(4, minmax(0,1fr)) !important;
  gap: 18px !important;
  align-items: start !important;
}
/* PROMO spans 2 columns */
.home-city .profile-card--promo{
  grid-column: 1 / span 2 !important;
  display:grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 18px;
  background: #ededed;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
  padding: 18px;
  overflow: hidden;
}
/* left */
.home-city .profile-card--promo .profile-card__promo-left{
  display:flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
}
.home-city .profile-card--promo .profile-card__promo-top{
  display:flex;
  gap: 12px;
  align-items: flex-start;
}
.home-city .profile-card--promo .profile-card__promo-avatar{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: rgba(0,0,0,.08);
  flex: 0 0 auto;
  margin-top: 2px;
}
.home-city .profile-card--promo .profile-card__promo-name{
  font-weight: 800;
  font-size: 16px;
}
.home-city .profile-card--promo .profile-card__promo-sub{
  margin-top: 6px;
  font-size: 13px;
  opacity: .75;
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap: wrap;
}
.home-city .profile-card--promo .profile-card__promo-dot{
  opacity: .6;
}
.home-city .profile-card--promo .profile-card__promo-text{
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 320px;
  color: rgba(0,0,0,.80);
}
.home-city .profile-card--promo .profile-card__promo-btn{
  margin-top: 18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background-color: rgba(0,0,0,.65);
  color: #fff;
  font-weight: 700;
}
/* right media */
.home-city .profile-card--promo .profile-card__promo-media{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  display:block;
  min-height: 360px;
}
.home-city .profile-card--promo .profile-card__promo-media img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}
.home-city .profile-card--promo .profile-card__chip{
  position:absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(0,0,0,.65);
  color:#fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.home-city .profile-card--promo .profile-card__fav{
  position:absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-color: rgba(0,0,0,.55);
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 16px;
}
/* responsive */
@media (max-width: 1100px){
  .home-city .cards-grid--city{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .home-city .profile-card--promo{ grid-column: 1 / -1 !important; }
}
@media (max-width: 768px){
  .home-city .cards-grid--city{ grid-template-columns: 1fr !important; gap: 14px !important; }
  .home-city .profile-card--promo{
    grid-column: auto !important;
    grid-template-columns: 1fr;
  }
  .home-city .profile-card--promo .profile-card__promo-left{ min-height: auto; }
  .home-city .profile-card--promo .profile-card__promo-media{ min-height: 320px; }
}
/* === HOME CITY: PROMO FIRST CARD LIKE FIGMA === */
.home-city .cards-grid--city{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:18px !important;
  align-items:start !important;
}
.home-city .profile-card--promo{
  grid-column:1 / span 2 !important;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) !important;
  gap:18px !important;
  background:#ededed !important;
  border:1px solid rgba(0,0,0,.08) !important;
  border-radius:22px !important;
  overflow:hidden !important;
}
.home-city .profile-card--promo .profile-card__body{
  padding:22px !important;
  display:flex !important;
  flex-direction:column !important;
  min-height:360px !important;
}
.home-city .profile-card--promo .profile-card__media{
  position:relative !important;
  border-radius:18px !important;
  overflow:hidden !important;
  min-height:360px !important;
  background-color:rgba(0,0,0,.08) !important;
}
.home-city .profile-card--promo .profile-card__img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}
@media (max-width:1100px){
  .home-city .cards-grid--city{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
  .home-city .profile-card--promo{
    grid-column:1 / -1 !important;
  }
}
@media (max-width:768px){
  .home-city .cards-grid--city{
    grid-template-columns:1fr !important;
    gap:14px !important;
  }
  .home-city .profile-card--promo{
    grid-template-columns:1fr !important;
  }
  .home-city .profile-card--promo .profile-card__media,
  .home-city .profile-card--promo .profile-card__body{
    min-height:auto !important;
  }
  .home-city .profile-card--promo .profile-card__media{
    min-height:320px !important;
  }
}
/* ================================
   CITY PROMO (FIGMA 1:1) FINAL
   ================================ */
.home-city .cards-grid--city{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}
/* промо занимает 2 колонки как в Figma */
.home-city .cards-grid--city .profile-card--promo{
  grid-column: 1 / span 2 !important;
  display: grid !important;
  grid-template-columns: 360px 1fr !important;
  gap: 18px !important;
  align-items: stretch !important;
  background: #ededed !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  box-shadow: none !important;
}
/* левый блок */
.home-city .profile-card--promo .profile-card__promo-left{
  padding: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}
.home-city .profile-card--promo .profile-card__promo-top{
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
}
.home-city .profile-card--promo .profile-card__promo-avatar{
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background-color: rgba(0,0,0,.08) !important;
  flex: 0 0 auto !important;
}
.home-city .profile-card--promo .profile-card__promo-name{
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1f1f1f !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.home-city .profile-card--promo .profile-card__promo-sub{
  font-size: 12px !important;
  color: rgba(0,0,0,.65) !important;
  margin-top: 2px !important;
}
.home-city .profile-card--promo .profile-card__promo-dot{
  margin: 0 6px !important;
  opacity: .6 !important;
}
.home-city .profile-card--promo .profile-card__promo-text{
  font-size: 14px !important;
  line-height: 1.45 !important;
  color: rgba(0,0,0,.75) !important;
  margin-top: 6px !important;
  max-width: 100% !important;
}
/* кнопка как в Figma */
.home-city .profile-card--promo .profile-card__promo-btn{
  margin-top: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 52px !important;
  padding: 0 18px !important;
  border-radius: 14px !important;
  background: #5b5b5b !important;
  color: #fff !important;
  font-weight: 700 !important;
  gap: 10px !important;
  max-width: 220px !important;
}
/* правый блок (фото) */
.home-city .profile-card--promo .profile-card__promo-media{
  position: relative !important;
  display: block !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  margin: 12px !important;
  background-color: rgba(0,0,0,.08) !important;
}
/* ВАЖНО: перебиваем общий aspect-ratio у .profile-card__img */
.home-city .profile-card--promo .profile-card__promo-media img{
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  display: block !important;
}
.home-city .profile-card--promo .profile-card__chip{
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  background-color: rgba(0,0,0,.65) !important;
  color: #fff !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.home-city .profile-card--promo .profile-card__fav{
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  background-color: rgba(0,0,0,.55) !important;
  color: #fff !important;
}
/* адаптив */
@media (max-width: 1100px){
  .home-city .cards-grid--city{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .home-city .cards-grid--city .profile-card--promo{
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 768px){
  .home-city .cards-grid--city{
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .home-city .cards-grid--city .profile-card--promo{
    grid-column: auto !important;
    grid-template-columns: 1fr !important;
  }
  .home-city .profile-card--promo .profile-card__promo-media{
    margin: 0 12px 12px !important;
    min-height: 260px !important;
  }
}
.home-city .profile-card--promo .profile-card__promo-media{
  min-height: 420px !important;
}
/* === CITY PROMO (FIGMA) – FIX SIZES === */
.home-city .cards-grid--city{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
}
/* promo занимает 2 колонки как в макете */
.home-city .cards-grid--city .profile-card--promo{
  grid-column: span 2 !important;
  display: grid !important;
  grid-template-columns: 1fr 420px !important; /* left text + right photo */
  gap: 24px !important;
  padding: 0 !important;
  border-radius: 22px !important;
  background: #ededed !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  overflow: hidden !important;
  min-height: 420px !important;
  align-items: stretch !important;
}
/* левая часть */
.home-city .profile-card--promo .profile-card__promo-left{
  padding: 26px !important;
  display: flex !important;
  flex-direction: column !important;
}
/* кнопка внизу слева */
.home-city .profile-card--promo .profile-card__promo-btn{
  margin-top: auto !important;
}
/* правая часть (медиа) – фикс: фото должно заполнять блок */
.home-city .profile-card--promo .profile-card__promo-media{
  position: relative !important;
  display: block !important;
  height: 100% !important;
  min-height: 420px !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  margin: 18px !important; /* как inner padding справа */
  background: #dcdcdc !important;
}
.home-city .profile-card--promo .profile-card__promo-media img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
/* fav + chip поверх фото */
.home-city .profile-card--promo .profile-card__fav{
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 3 !important;
}
.home-city .profile-card--promo .profile-card__chip{
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 3 !important;
}
/* адаптив */
@media (max-width: 1100px){
  .home-city .cards-grid--city{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .home-city .cards-grid--city .profile-card--promo{
    grid-column: 1 / -1 !important; /* на 2 колонки = во всю ширину */
    grid-template-columns: 1fr 360px !important;
  }
}
@media (max-width: 768px){
  .home-city .cards-grid--city{
    grid-template-columns: 1fr !important;
  }
  .home-city .cards-grid--city .profile-card--promo{
    grid-column: auto !important;
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .home-city .profile-card--promo .profile-card__promo-media{
    margin: 0 !important;
    border-radius: 0 !important;
    min-height: 320px !important;
  }
}
/* === CITY PROMO – SIZE TUNE (fix too tall) === */
@media (min-width: 769px){
  .home-city .cards-grid--city .profile-card--promo{
    min-height: 360px !important;
    height: 360px !important;
    grid-template-columns: 1fr 360px !important; /* было 420 */
  }
  .home-city .profile-card--promo .profile-card__promo-media{
    height: calc(360px - 36px) !important; /* высота карточки минус margin 18+18 */
    min-height: 0 !important;
  }
  .home-city .profile-card--promo .profile-card__promo-media img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}
/* === CITY PROMO (FIGMA): 2-col card + tighter left text === */
.home-city .cards-grid--city{
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
/* promo занимает 2 колонки как в примере */
.home-city .cards-grid--city .profile-card--promo{
  grid-column: span 2;
  display: grid;
  grid-template-columns: 340px 1fr; /* <-- делает левую часть короче */
  gap: 22px;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}
/* левая часть */
.home-city .profile-card__promo-left{
  padding: 26px;
  display: flex;
  flex-direction: column;
  min-height: 420px; /* чтобы кнопка была внизу как в Figma */
}
/* ограничиваем текст, чтобы не было "пустоты" */
.home-city .profile-card__promo-text{
  margin-top: 14px;
  color: rgba(0,0,0,.72);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 6;      /* <-- можно 5-7 */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* кнопка вниз */
.home-city .profile-card__promo-btn{
  margin-top: auto;
}
/* правая часть (картинка) */
.home-city .profile-card__promo-media{
  position: relative;
  margin: 18px 18px 18px 0;  /* немного воздуха справа/сверху/снизу */
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
}
.home-city .profile-card__promo-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* адаптив */
@media (max-width: 1100px){
  .home-city .cards-grid--city .profile-card--promo{
    grid-column: span 2;
    grid-template-columns: 320px 1fr;
  }
}
@media (max-width: 768px){
  .home-city .cards-grid--city .profile-card--promo{
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
  .home-city .profile-card__promo-media{
    margin: 0 18px 18px 18px;
    min-height: 320px;
  }
  .home-city .profile-card__promo-left{
    min-height: auto;
  }
}
/* === PROMO CARD FIX (AUTO) === */
.home-city .cards-grid--city{grid-template-columns:repeat(3,1fr)}
.home-city .profile-card--promo{grid-column:1 / span 2;display:grid;grid-template-columns:360px 1fr;gap:24px;align-items:stretch;background:#ededed;border-radius:22px;overflow:hidden;}
.home-city .profile-card__promo-left{padding:28px;display:flex;flex-direction:column}
.home-city .profile-card__promo-text{margin-top:12px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.home-city .profile-card__promo-btn{margin-top:auto;height:52px;border-radius:999px;font-weight:700}
.home-city .profile-card__promo-media{position:relative;min-height:420px;overflow:hidden;border-radius:20px}
.home-city .profile-card__promo-media img{width:100%;height:100%;object-fit:cover}
.home-city .profile-card__chip{position:absolute;top:14px;left:14px;background-color:rgba(0,0,0,.7);color:#fff;padding:6px 12px;border-radius:999px;font-weight:700}
@media(max-width:1024px){.home-city .profile-card--promo{grid-column:1/-1;grid-template-columns:1fr}}
/* === PERSONAL PROFILE LAYOUT (AUTO) === */
.pp-head{padding:24px 0;}
.pp-head__grid{
  display:grid;
  grid-template-columns: 70px 520px 1fr;
  gap:24px;
  align-items:stretch;
}
.pp-photo{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  min-height:420px;
  background:#eee;
}
.pp-photo__cta{
.pp-photo__cta:hover{transform:translateX(-50%) translateY(-1px) !important;box-shadow:0 18px 44px rgba(0,0,0,.22) !important;background-color:rgba(255,255,255,.98) !important;}
.pp-photo__cta:active{transform:translateX(-50%) translateY(0) !important;box-shadow:0 12px 28px rgba(0,0,0,.16) !important;}
.pp-photo__cta:focus-visible{outline:3px solid rgba(0,0,0,.18) !important;outline-offset:3px !important;}
position:absolute !important;
bottom:20px !important;
left:50% !important;
transform:translateX(-50%) !important;
padding:10px 22px !important;
border-radius:14px !important;
background:#fff !important;
box-shadow:0 8px 24px rgba(0,0,0,.15) !important;
}
.pp-card{
background:#fff !important;
border-radius:20px !important;
padding:22px !important;
box-shadow:0 12px 28px rgba(0,0,0,.06) !important;
}
.pp-card__title{font-size:18px;font-weight:800;margin-bottom:12px;}
.pp-field{display:flex;flex-direction:column;margin-bottom:10px;}
.pp-label{font-size:12px;opacity:.6;font-weight:700;}
.pp-value{font-size:14px;font-weight:700;}
.pp-btn-wide{width:100%;margin-top:14px;}
.pp-plan__price{display:flex;align-items:baseline;gap:8px;}
.pp-plan__num{font-size:40px;font-weight:900;}
.pp-plan__per{font-size:12px;opacity:.6;}
.pp-head__grid{
  display:grid;
  grid-template-columns: 70px 520px 1fr;
  gap:24px;
  align-items:stretch;
}
/* === PERSONAL PROFILE (FIGMA OVERRIDE) === */
.pp-head{padding:24px 0;}
/* left sidebar */
/* photo card */
.pp-photo{
position:relative !important;
display:flex !important;
align-items:center !important;
justify-content:center !important;
padding:32px 24px !important;
min-height:420px !important;
border-radius:20px !important;
background:#f3f3f3 !important;
}
.pp-photo__media{width:100%;height:100%;}
.pp-photo__media img{width:100%;height:100%;display:block;object-fit:cover;}
.pp-photo__cta{
.pp-photo__cta:hover{transform:translateX(-50%) translateY(-1px) !important;box-shadow:0 18px 44px rgba(0,0,0,.22) !important;background-color:rgba(255,255,255,.98) !important;}
.pp-photo__cta:active{transform:translateX(-50%) translateY(0) !important;box-shadow:0 12px 28px rgba(0,0,0,.16) !important;}
.pp-photo__cta:focus-visible{outline:3px solid rgba(0,0,0,.18) !important;outline-offset:3px !important;}
position:absolute !important;
bottom:20px !important;
left:50% !important;
transform:translateX(-50%) !important;
padding:10px 22px !important;
border-radius:14px !important;
background:#fff !important;
box-shadow:0 8px 24px rgba(0,0,0,.15) !important;
}
/* right cards */
.pp-card{
background:#fff !important;
border-radius:20px !important;
padding:22px !important;
box-shadow:0 12px 28px rgba(0,0,0,.06) !important;
}
.pp-card__title{margin:0 0 14px;font-size:18px;font-weight:800;}
.pp-fields{display:flex;flex-direction:column;gap:14px;}
.pp-field{display:flex;flex-direction:column;gap:6px;}
.pp-label{font-size:12px;opacity:.65;font-weight:700;}
.pp-value{font-size:14px;font-weight:700;}
.pp-btn-wide{margin-top:16px;width:100%;display:inline-flex;justify-content:center;border-radius:14px;}
/* plan */
.pp-plan__price{display:flex;align-items:baseline;gap:8px;margin:6px 0 12px;}
.pp-plan__num{font-size:40px;font-weight:900;line-height:1;}
.pp-plan__per{font-size:12px;opacity:.6;font-weight:700;}
.pp-plan__list{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:8px;font-size:12px;opacity:.75;}
/* responsive like Figma */
@media (max-width: 900px){
  .pp-head__grid{grid-template-columns:70px 1fr;grid-template-areas:"side photo" "info info" "plan plan";}
  .pp-photo{
position:relative !important;
display:flex !important;
align-items:center !important;
justify-content:center !important;
padding:32px 24px !important;
min-height:420px !important;
border-radius:20px !important;
background:#f3f3f3 !important;
}
  .pp-card--info{grid-area:info;}
  .pp-card--plan{grid-area:plan;}
}
@media (max-width: 640px){
  .pp-head__grid{grid-template-columns:64px 1fr;gap:14px;}
}
/* === PERSONAL PROFILE FINAL OVERRIDE (FIGMA) === */
.page-template-page-personal-profile .container{max-width:1180px !important;}
.page-template-page-personal-profile .pp{padding-top:26px;}
.pp-head{margin-bottom:26px;}
/* Desktop layout: side | photo | info | plan */
.pp-head__grid{
  display:grid !important;
  grid-template-columns:84px 560px 1fr 1fr !important;
  grid-template-areas:"side photo info plan" !important;
  gap:22px !important;
  align-items:stretch !important;
}
.pp-photo{
position:relative !important;
display:flex !important;
align-items:center !important;
justify-content:center !important;
padding:32px 24px !important;
min-height:420px !important;
border-radius:20px !important;
background:#f3f3f3 !important;
}
.pp-photo__media{width:100% !important;height:100% !important;display:block !important;}
.pp-photo__media img{width:100% !important;height:100% !important;display:block !important;object-fit:cover !important;}
.pp-photo__cta{
.pp-photo__cta:hover{transform:translateX(-50%) translateY(-1px) !important;box-shadow:0 18px 44px rgba(0,0,0,.22) !important;background-color:rgba(255,255,255,.98) !important;}
.pp-photo__cta:active{transform:translateX(-50%) translateY(0) !important;box-shadow:0 12px 28px rgba(0,0,0,.16) !important;}
.pp-photo__cta:focus-visible{outline:3px solid rgba(0,0,0,.18) !important;outline-offset:3px !important;}
position:absolute !important;
bottom:20px !important;
left:50% !important;
transform:translateX(-50%) !important;
padding:10px 22px !important;
border-radius:14px !important;
background:#fff !important;
box-shadow:0 8px 24px rgba(0,0,0,.15) !important;
}
.pp-card{
background:#fff !important;
border-radius:20px !important;
padding:22px !important;
box-shadow:0 12px 28px rgba(0,0,0,.06) !important;
}
.pp-card__title{margin:0 0 14px !important;font-size:18px !important;font-weight:800 !important;}
.pp-card--info{grid-area:info !important;min-height:auto !important;display:flex !important;flex-direction:column !important;}
.pp-card--plan{grid-area:plan !important;min-height:auto !important;display:flex !important;flex-direction:column !important;}
.pp-card--plan .pp-btn-wide{margin-top:auto !important;}
.pp-fields{display:flex !important;flex-direction:column !important;gap:14px !important;}
.pp-btn-wide{margin-top:auto !important;width:100% !important;display:inline-flex !important;justify-content:center !important;border-radius:14px !important;}
/* Plan */
.pp-plan__price{display:flex !important;align-items:baseline !important;gap:8px !important;margin:6px 0 12px !important;}
.pp-plan__num{font-size:40px !important;font-weight:900 !important;line-height:1 !important;}
.pp-plan__per{font-size:12px !important;opacity:.6 !important;font-weight:700 !important;}
.pp-plan__list{margin:0 !important;padding-left:18px !important;display:flex !important;flex-direction:column !important;gap:8px !important;font-size:12px !important;opacity:.75 !important;}
/* Tablet/Mobile like Figma */
@media (max-width: 900px){
  .pp-head__grid{grid-template-columns:70px 1fr !important;grid-template-areas:"side photo" "info info" "plan plan" !important;gap:14px !important;}
  .pp-card--info,.pp-card--plan{min-height:auto !important;}
}
@media (max-width: 640px){
  .pp-head__grid{grid-template-columns:64px 1fr !important;gap:12px !important;}
}
/* === PP UI Kit polish + Photo hover + Gallery tiles + Mobile swipe === */
:root{
  --pp-gap:24px;
  --pp-gap-sm:14px;
  --pp-radius:22px;
  --pp-radius-sm:16px;
  --pp-shadow:0 12px 28px rgba(0,0,0,.06);
  --pp-shadow-strong:0 18px 40px rgba(0,0,0,.10);
}
/* spacing kit */
.pp{padding-top:18px !important;padding-bottom:46px !important;}
.pp-head{margin-bottom:24px !important;}
.pp-head__grid{gap:var(--pp-gap) !important;}
.pp-card,.pp-photo{border-radius:var(--pp-radius) !important;box-shadow:var(--pp-shadow) !important;}
.pp-card{padding:22px !important;}
.pp-card__title{font-size:18px !important;font-weight:800 !important;margin:0 0 14px !important;}
.pp-fields{gap:14px !important;}
.pp-field{display:flex !important;flex-direction:column !important;gap:6px !important;}
.pp-label{font-size:12px !important;opacity:.65 !important;font-weight:700 !important;}
.pp-value{font-size:14px !important;font-weight:700 !important;}
.pp-btn-wide{border-radius:14px !important;}
/* PHOTO: hover overlay + icon (desktop only) */
.pp-photo{position:relative !important;overflow:hidden !important;}
.pp-photo__media{position:absolute !important;inset:0 !important;}
.pp-photo__media img{width:100% !important;height:100% !important;object-fit:cover !important;}
.pp-photo::before{content:"";position:absolute;inset:0;background-color:rgba(0,0,0,0);transition:all .18s ease;z-index:2;}
  width:56px;height:56px;border-radius:18px;display:grid;place-items:center;
  background-color:rgba(255,255,255,.92);box-shadow:0 10px 26px rgba(0,0,0,.20);font-size:22px;}
.pp-photo:hover::before{background-color:rgba(0,0,0,.28);}
.pp-photo:hover::after{opacity:1;transform:translate(-50%,-50%) scale(1);}
.pp-photo__cta{
.pp-photo__cta:hover{transform:translateX(-50%) translateY(-1px) !important;box-shadow:0 18px 44px rgba(0,0,0,.22) !important;background-color:rgba(255,255,255,.98) !important;}
.pp-photo__cta:active{transform:translateX(-50%) translateY(0) !important;box-shadow:0 12px 28px rgba(0,0,0,.16) !important;}
.pp-photo__cta:focus-visible{outline:3px solid rgba(0,0,0,.18) !important;outline-offset:3px !important;}
position:absolute !important;
left:50% !important;
bottom:18px !important;
transform:translateX(-50%) !important;
padding:12px 22px !important;
border-radius:999px !important;
border:1px solid rgba(255,255,255,.55) !important;
background-color:rgba(255,255,255,.92) !important;
color:#111 !important;
font-weight:800 !important;
cursor:pointer !important;
box-shadow:0 14px 34px rgba(0,0,0,.18) !important;
backdrop-filter:blur(10px) !important;
-webkit-backdrop-filter:blur(10px) !important;
transition:transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}
/* GALLERY: tiles like Figma */
.pp-gallery{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:14px !important;margin-top:14px !important;}
.pp-gallery-item{border-radius:18px !important;overflow:hidden !important;background-size:cover !important;background-position:center !important;aspect-ratio:1/1 !important;position:relative !important;box-shadow:0 10px 26px rgba(0,0,0,.06) !important;}
.pp-gallery-open{position:absolute !important;inset:0 !important;z-index:1 !important;}
.pp-photo-del-form{position:absolute !important;right:10px !important;top:10px !important;z-index:2 !important;opacity:0;transform:translateY(-2px);transition:all .15s ease;}
.pp-gallery-item:hover .pp-photo-del-form{opacity:1;transform:translateY(0);}
.pp-photo-del-btn{border:0 !important;border-radius:12px !important;padding:8px 10px !important;background-color:rgba(0,0,0,.65) !important;color:#fff !important;cursor:pointer !important;font-weight:700 !important;font-size:12px !important;}
/* MOBILE: swipe gallery (horizontal scroll), cards stacked */
@media (max-width: 900px){
  .pp{padding-top:12px !important;}
  .pp-head__grid{grid-template-columns:1fr !important;grid-template-areas:"photo" "info" "plan" !important;gap:var(--pp-gap-sm) !important;}
  .pp-card,.pp-photo{border-radius:var(--pp-radius-sm) !important;}
  .pp-photo{min-height:260px !important;}
  .pp-gallery{display:flex !important;gap:12px !important;overflow-x:auto !important;overflow-y:hidden !important;padding-bottom:6px !important;
    scroll-snap-type:x mandatory !important;-webkit-overflow-scrolling:touch !important;}
  .pp-gallery::-webkit-scrollbar{height:6px;}
  .pp-gallery-item{flex:0 0 72% !important;max-width:72% !important;aspect-ratio:4/5 !important;scroll-snap-align:start !important;}
  .pp-photo-del-form{opacity:1 !important;}
}
@media (max-width: 640px){
  .pp-gallery-item{flex-basis:82% !important;max-width:82% !important;}
}
/* === Active profiles block (Figma) === */
.pp-active{background:#3a3a3a !important;border-radius:22px !important;padding:22px !important;margin:24px 0 34px !important;}
.pp-active__title{color:#fff !important;margin:0 0 16px !important;font-size:18px !important;font-weight:900 !important;}
.pp-active__grid{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:18px !important;}
.pp-active-card{background:#fff !important;border-radius:18px !important;overflow:hidden !important;box-shadow:0 14px 34px rgba(0,0,0,.20) !important;position:relative !important;}
.pp-active-card__link{position:absolute !important;inset:0 !important;z-index:1 !important;}
.pp-active-card__media{aspect-ratio:4/5 !important;background-size:cover !important;background-position:center !important;position:relative !important;}
.pp-active-card__price{position:absolute !important;left:12px !important;top:12px !important;z-index:2 !important;background-color:rgba(0,0,0,.70) !important;color:#fff !important;padding:6px 10px !important;border-radius:999px !important;font-size:12px !important;font-weight:900 !important;}
.pp-active-card__fav{position:absolute !important;right:12px !important;top:12px !important;z-index:2 !important;width:34px !important;height:34px !important;border-radius:12px !important;border:0 !important;background-color:rgba(255,255,255,.88) !important;cursor:pointer !important;font-weight:900 !important;}
.pp-active-card__body{padding:12px 14px !important;position:relative !important;z-index:2 !important;}
.pp-active-card__name{font-weight:800 !important;font-size:13px !important;line-height:1.2 !important;}
.pp-active-add{background:#fff !important;border-radius:18px !important;display:flex !important;flex-direction:column !important;align-items:center !important;justify-content:center !important;gap:10px !important;text-decoration:none !important;color:#111 !important;min-height:100% !important;box-shadow:0 14px 34px rgba(0,0,0,.20) !important;padding:18px !important;}
.pp-active-add__plus{width:56px !important;height:56px !important;border-radius:18px !important;display:grid !important;place-items:center !important;border:2px solid rgba(0,0,0,.18) !important;font-size:28px !important;font-weight:900 !important;}
.pp-active-add__text{font-weight:800 !important;font-size:14px !important;}
@media (max-width:900px){
  .pp-active__grid{display:flex !important;gap:14px !important;overflow-x:auto !important;scroll-snap-type:x mandatory !important;-webkit-overflow-scrolling:touch !important;padding-bottom:6px !important;}
  .pp-active__grid::-webkit-scrollbar{height:6px;}
  .pp-active-card,.pp-active-add{flex:0 0 74% !important;max-width:74% !important;scroll-snap-align:start !important;}
}
@media (max-width:640px){
  .pp-active-card,.pp-active-add{flex-basis:84% !important;max-width:84% !important;}
}
/* === Card stats (likes / views / rating) === */
.pp-active-stats{
  display:flex !important;
  gap:14px !important;
  font-size:13px !important;
  font-weight:600 !important;
  color:#444 !important;
  margin-top:10px !important;
}
.pp-stat{
  display:flex !important;
  align-items:center !important;
  gap:6px !important;
  background:#f3f3f3 !important;
  padding:6px 10px !important;
  border-radius:12px !important;
}
.pp-stat i{
  font-style:normal !important;
  font-size:14px !important;
}
/* === Main photo picker modal === */
.pp-modal{position:fixed;inset:0;display:none;z-index:9999;}
.pp-modal.is-open{display:block;}
.pp-modal__backdrop{position:absolute;inset:0;background-color:rgba(0,0,0,.45);}
.pp-modal__panel{position:relative;max-width:920px;width:92%;margin:6vh auto;background:#fff;border-radius:18px;padding:14px 14px 18px;box-shadow:0 20px 60px rgba(0,0,0,.25);}
.pp-modal__head{display:flex;align-items:center;justify-content:space-between;padding:8px 8px 12px;}
.pp-modal__title{font-weight:900;font-size:16px;}
.pp-modal__close{border:0;background:transparent;font-size:18px;cursor:pointer;padding:8px;border-radius:10px;}
.pp-modal__grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;padding:8px;}
.pp-pick{border:0;cursor:pointer;border-radius:16px;aspect-ratio:1/1;background-size:cover;background-position:center;box-shadow:0 10px 26px rgba(0,0,0,.10);}
.pp-pick:hover{transform:translateY(-1px);}
@media (max-width:900px){
  .pp-modal__grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
/* === PP overrides: remove pencil + realistic button === */
.pp-photo::after{content:none !important;opacity:0 !important;display:none !important;}
.pp-photo__cta{
position:absolute !important;
left:50% !important;
bottom:18px !important;
transform:translateX(-50%) !important;
padding:12px 22px !important;
border-radius:999px !important;
border:1px solid rgba(255,255,255,.55) !important;
background-color:rgba(255,255,255,.92) !important;
color:#111 !important;
font-weight:800 !important;
cursor:pointer !important;
box-shadow:0 14px 34px rgba(0,0,0,.18) !important;
backdrop-filter:blur(10px) !important;
-webkit-backdrop-filter:blur(10px) !important;
transition:transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}
.pp-photo__cta:hover{transform:translateX(-50%) translateY(-1px) !important;box-shadow:0 18px 44px rgba(0,0,0,.22) !important;background-color:rgba(255,255,255,.98) !important;}
.pp-photo__cta:active{transform:translateX(-50%) translateY(0) !important;box-shadow:0 12px 28px rgba(0,0,0,.16) !important;}
.pp-photo__cta:focus-visible{outline:3px solid rgba(0,0,0,.18) !important;outline-offset:3px !important;}
/* === Fix: make Change Photo button clickable === */
.pp-photo::before{pointer-events:none !important;}
.pp-photo__cta{z-index:9999 !important;pointer-events:auto !important;}
/* === Single Profile (Figma) layout fix === */
.single-profile .container{max-width:1200px !important;}
.sp-head{display:grid !important;grid-template-columns:1.35fr .65fr !important;gap:24px !important;align-items:start !important;margin:22px 0 18px !important;}
.sp-hero img{width:100% !important;height:100% !important;object-fit:cover !important;display:block !important;}
.sp-aside{border-radius:22px !important;background:#3a3a3a !important;color:#fff !important;padding:22px !important;min-height:460px !important;display:flex !important;flex-direction:column !important;gap:12px !important;}
.sp-aside__name{font-size:44px !important;font-weight:900 !important;line-height:1.05 !important;margin:4px 0 0 !important;}
.sp-aside__city{opacity:.75 !important;font-weight:700 !important;}
.sp-aside__price{font-size:40px !important;font-weight:900 !important;margin:8px 0 14px !important;}
.sp-aside__btn{margin-top:auto !important;width:100% !important;border-radius:16px !important;padding:14px 18px !important;font-weight:900 !important;display:inline-flex !important;justify-content:center !important;}
.sp-tabs{display:flex !important;gap:10px !important;align-items:center !important;margin:14px 0 10px !important;}
.sp-tab{padding:10px 16px !important;border-radius:999px !important;background:#fff !important;border:1px solid rgba(0,0,0,.10) !important;font-weight:800 !important;}
.sp-tab.is-active{background:#111 !important;color:#fff !important;border-color:#111 !important;}
.sp-about{background:#3a3a3a !important;color:#fff !important;border-radius:18px !important;padding:16px 18px !important;margin:10px 0 22px !important;}
.sp-gallery{display:grid !important;grid-template-columns:repeat(4,minmax(0,1fr)) !important;gap:18px !important;margin:16px 0 24px !important;}
.sp-gallery__item{border-radius:18px !important;overflow:hidden !important;aspect-ratio:4/5 !important;background-size:cover !important;background-position:center !important;box-shadow:0 10px 26px rgba(0,0,0,.08) !important;}
.sp-gallery__item a{display:block !important;width:100% !important;height:100% !important;}
@media (max-width: 900px){
  .sp-head{grid-template-columns:1fr !important;}
  .sp-aside{min-height:auto !important;}
  .sp-gallery{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:12px !important;}
}
/* === Single Profile UI Kit: gallery(1+2) + badges + tabs === */
body.single-profile .sp-gallery-wrap{position:relative !important;}
/* Desktop: 1 big + 2 small */
@media (min-width: 901px){
  body.single-profile .profile-left .profile-gallery{
    display:grid !important;
    grid-template-columns: 1fr 280px !important;
    grid-template-rows: 1fr 1fr !important;
    gap:18px !important;
    height:460px !important;
    align-items:stretch !important;
  }
  body.single-profile .profile-left .profile-gallery-item{
    width:100% !important;
    height:100% !important;
    border-radius:22px !important;
    background-size:cover !important;
    background-position:center !important;
    background-repeat:no-repeat !important;
    box-shadow:0 12px 28px rgba(0,0,0,.08) !important;
  }
  body.single-profile .profile-left .profile-gallery-item.is-main{
    grid-column:1 !important;
    grid-row:1 / span 2 !important;
  }
  body.single-profile .profile-left .profile-gallery-item:nth-child(2){
    grid-column:2 !important;
    grid-row:1 !important;
  }
  body.single-profile .profile-left .profile-gallery-item:nth-child(3){
    grid-column:2 !important;
    grid-row:2 !important;
  }
}
/* Mobile: horizontal swipe */
@media (max-width: 900px){
  body.single-profile .profile-left .profile-gallery{
    display:flex !important;
    gap:12px !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
    scroll-snap-type:x mandatory !important;
    padding-bottom:6px !important;
  }
  body.single-profile .profile-left .profile-gallery-item{
    flex:0 0 84% !important;
    max-width:84% !important;
    height:360px !important;
    scroll-snap-align:start !important;
    border-radius:22px !important;
  }
}
/* Badges over main photo */
.single-profile .profile-gallery-item.is-main{position:relative !important;overflow:hidden !important;}
.single-profile .sp-badges{position:absolute !important;left:18px !important;top:18px !important;z-index:5 !important;display:flex !important;flex-direction:column !important;gap:12px !important;pointer-events:none !important;}
.single-profile .sp-badge{width:132px !important;border-radius:18px !important;padding:14px 14px 12px !important;color:#fff !important;background-color:rgba(0,0,0,.55) !important;backdrop-filter:blur(10px) !important;-webkit-backdrop-filter:blur(10px) !important;box-shadow:0 14px 34px rgba(0,0,0,.22) !important;}
.single-profile .sp-badge span{display:block !important;font-size:34px !important;font-weight:900 !important;line-height:1 !important;}
.single-profile .sp-badge small{display:block !important;margin-top:6px !important;font-size:12px !important;font-weight:800 !important;opacity:.9 !important;}
.single-profile .sp-tabs{display:flex !important;gap:10px !important;align-items:center !important;margin:14px 0 12px !important;}
.single-profile .sp-tab{border:1px solid rgba(0,0,0,.10) !important;background:#fff !important;border-radius:999px !important;padding:10px 16px !important;font-weight:900 !important;cursor:pointer !important;}
.single-profile .sp-tab.is-active{background:#111 !important;color:#fff !important;border-color:#111 !important;}
/* Mobile */
@media (max-width: 900px){
  .single-profile .profile-left .profile-gallery{height:auto !important;display:flex !important;gap:12px !important;overflow-x:auto !important;-webkit-overflow-scrolling:touch !important;padding-bottom:6px !important;}
  .single-profile .profile-gallery-item{flex:0 0 84% !important;max-width:84% !important;height:360px !important;}
  .single-profile .sp-badges{left:12px !important;top:12px !important;}
  .single-profile .sp-badge{width:120px !important;padding:12px !important;border-radius:16px !important;}
  .single-profile .sp-badge span{font-size:30px !important;}
}
/* Single Profile: right card polish */
.single-profile .profile-name{margin:0 0 10px !important;font-size:34px !important;font-weight:900 !important;}
.single-profile .profile-city{opacity:.75 !important;margin-bottom:16px !important;}
.single-profile .profile-price{font-size:40px !important;font-weight:900 !important;margin:6px 0 18px !important;}
.single-profile .profile-summary .btn{width:100% !important;border-radius:16px !important;padding:14px 16px !important;font-weight:900 !important;}
/* ============ SINGLE PROFILE — FIGMA FINAL (OVERRIDE) ============ */
.sp-fav.is-active{ background:rgba(0,0,0,.12); }
/* === PROFILE TOP (FINAL) === */
.single-profile .sp-top{display:grid;grid-template-columns:1.6fr 1fr;gap:24px;align-items:stretch;margin-bottom:22px;}
.single-profile .sp-hero{position:relative;height:520px;border-radius:28px;overflow:hidden;background:#eee;}
.single-profile .sp-hero-img{width:100%;height:100%;object-fit:cover;display:block;}
.single-profile .sp-side{display:grid;grid-template-rows:1fr 1fr;gap:20px;}
.single-profile .sp-side-item{border-radius:24px;overflow:hidden;background-size:cover;background-position:center;background-color:#eee;}
@media (max-width:900px){
  .single-profile .sp-top{grid-template-columns:1fr;}
  .single-profile .sp-hero{height:360px;}
  .single-profile .sp-side{grid-template-columns:1fr 1fr;grid-template-rows:auto;gap:12px;}
}
/* ============ SINGLE PROFILE — RESPONSIVE + POLISH ============ */
.single-profile .sp-top{
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 24px !important;
}
@media (max-width: 1100px){
  .single-profile .sp-top{ grid-template-columns: minmax(0,1fr) 300px !important; }
  .single-profile .sp-hero{ height: 500px !important; min-height: 500px !important; }
  .single-profile .sp-side-item{ height: calc((500px - 18px)/2) !important; }
}
@media (max-width: 900px){
  .single-profile .sp-top{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .single-profile .sp-hero{
    height: 420px !important;
    min-height: 420px !important;
    border-radius: 24px !important;
  }
  .single-profile .sp-side{
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }
  .single-profile .sp-side-item{
    height: 180px !important;
    border-radius: 18px !important;
  }
}
/* Mobile like Figma: one big + two small under */
@media (max-width: 520px){
  .single-profile .sp-hero{
    height: 360px !important;
    min-height: 360px !important;
    border-radius: 20px !important;
  }
  .single-profile .sp-side{
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .single-profile .sp-side-item{
    height: 150px !important;
    border-radius: 16px !important;
  }
}
/* Make images cover nicely */
.single-profile .sp-hero-img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
/* clickable thumbs */
.single-profile .sp-hero,
.single-profile .sp-side-item{ cursor: pointer; }
/* ============ SINGLE PROFILE — GALLERY GRID ============ */
.single-profile .sp-gallery{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
@media (max-width: 1100px){ .single-profile .sp-gallery{ grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 900px){  .single-profile .sp-gallery{ grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 520px){  .single-profile .sp-gallery{ grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.single-profile .sp-gitem{
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  background-color: rgba(0,0,0,.06);
  background-size: cover;
  background-position: center;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.single-profile .sp-gitem:hover{ transform: translateY(-2px); filter: brightness(1.03); }
.single-profile .sp-gitem:active{ transform: translateY(0); }
/* ============ LIGHTBOX ============ */
.te-lb{
  position: fixed; inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.te-lb.is-open{ display: flex; }
.te-lb__panel{
  width: min(980px, 100%);
  background: rgba(20,20,20,.9);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 80px rgba(0,0,0,.35);
}
.te-lb__img{
  width: 100%;
  height: min(74vh, 720px);
  object-fit: contain;
  display: block;
  background: #111;
}
.te-lb__close,
.te-lb__prev,
.te-lb__next{
  position: absolute;
  top: 14px;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.te-lb__close{ right: 14px; }
.te-lb__prev{ left: 14px; top: 50%; transform: translateY(-50%); }
.te-lb__next{ right: 14px; top: 50%; transform: translateY(-50%); }
.te-lb__close:hover,
.te-lb__prev:hover,
.te-lb__next:hover{ background: rgba(255,255,255,.18); }
.te-lb__close:active,
.te-lb__prev:active,
.te-lb__next:active{ transform: translateY(-50%) scale(.98); }
.te-lb__count{
  position: absolute;
  left: 14px;
  bottom: 14px;
  color: rgba(255,255,255,.92);
  font-size: 14px;
  background: rgba(255,255,255,.12);
  padding: 8px 10px;
  border-radius: 12px;
}
/* reduced motion */
@media (prefers-reduced-motion: reduce){
  .single-profile .sp-gitem,
  .te-lb__close,
  .te-lb__prev,
  .te-lb__next{ transition: none !important; }
  .single-profile .sp-gitem:hover{ transform: none; }
}
/* ============ SINGLE PROFILE — RIGHT CARD ALIGN (FIGMA) ============ */
/* общий грид страницы: слева блок фото, справа карточка */
.single-profile .profile-grid{
  align-items: start !important;
}
/* правый столбец */
.single-profile .profile-right{
  display: block !important;
}
/* сама карточка справа: фикс высота как у hero (540) */
.single-profile .profile-right .profile-card,
.single-profile .profile-right .sp-card,
.single-profile .profile-right .profile-info-card{
  height: 540px !important;
  min-height: 540px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 26px !important;
  border-radius: 28px !important;
}
/* на планшете чуть ниже */
@media (max-width: 900px){
  .single-profile .profile-right .profile-card,
  .single-profile .profile-right .sp-card,
  .single-profile .profile-right .profile-info-card{
    height: auto !important;
    min-height: 0 !important;
    padding: 18px !important;
    border-radius: 24px !important;
  }
}
/* “низ карточки” (кнопки) — всегда вниз */
.single-profile .profile-right .profile-actions,
.single-profile .profile-right .sp-actions,
.single-profile .profile-right .profile-buttons{
  margin-top: auto !important;
}
/* аккуратные отступы между секциями */
.single-profile .profile-right .profile-card > * + *,
.single-profile .profile-right .sp-card > * + *,
.single-profile .profile-right .profile-info-card > * + *{
  margin-top: 14px !important;
}
/* выравнивание “чипсов/параметров” */
.single-profile .profile-right .sp-pills,
.single-profile .profile-right .profile-pills,
.single-profile .profile-right .profile-sizes{
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}
/* блоки “цена/условия” в две колонки */
.single-profile .profile-right .sp-prices,
.single-profile .profile-right .profile-prices{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}
@media (max-width: 520px){
  .single-profile .profile-right .sp-prices,
  .single-profile .profile-right .profile-prices{
    grid-template-columns: 1fr !important;
  }
}
.single-profile .profile-right > * + *{ margin-top:14px !important; }
/* ============ SINGLE PROFILE — GRID FIX (NO OVERFLOW) ============ */
.single-profile .profile-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 420px !important;
  gap:24px !important;
  align-items:start !important;
}
/* важно: иначе колонка может “вылезать” */
.single-profile .profile-left,
.single-profile .profile-right{
  min-width:0 !important;
}
/* правая колонка строго в пределах */
.single-profile .profile-right{
  width:100% !important;
  max-width:420px !important;
  justify-self:end !important;
  overflow:hidden !important;
}
/* ============ SINGLE PROFILE — RIGHT CARD (PROFILE-SUMMARY) ============ */
.single-profile .profile-right .profile-summary{
  background:#f3f3f3 !important;
  border-radius:28px !important;
  padding:26px !important;
  box-shadow:0 20px 50px rgba(0,0,0,.08) !important;
  height:540px !important;
  min-height:540px !important;
  display:flex !important;
  flex-direction:column !important;
  box-sizing:border-box !important;
}
/* кнопки вниз */
.single-profile .profile-right .sp-actions{
  margin-top:auto !important;
  display:flex !important;
  flex-direction:column !important;
  gap:12px !important;
}
/* ссылка “Редактировать профиль” тоже вниз и красиво */
.single-profile .profile-right .profile-summary > a.btn{
  margin-top:12px !important;
}
/* чуть аккуратнее отступы */
.single-profile .profile-right .profile-summary > * + *{
  margin-top:14px !important;
}
/* адаптив */
@media (max-width:900px){
  .single-profile .profile-right .profile-summary{
    height:auto !important;
    min-height:0 !important;
    padding:18px !important;
    border-radius:24px !important;
  }
}
/* ============ SINGLE PROFILE — RIGHT CARD INSIDE (FIGMA) ============ */
/* шапка: имя слева, избранное справа, город на новой строке */
.single-profile .profile-right .profile-summary .sp-head{
  display:flex !important;
  flex-wrap:wrap !important;
  align-items:flex-start !important;
  justify-content:space-between !important;
  gap:12px 14px !important;
}
.single-profile .profile-right .profile-summary .profile-name{
  margin:0 !important;
  font-size:44px !important;
  line-height:1.05 !important;
  font-weight:800 !important;
  order:1 !important;
}
.single-profile .profile-right .profile-summary .sp-fav{
  order:2 !important;
  margin-left:auto !important;
  align-self:flex-start !important;
  background:#e9e9e9 !important;
  border:0 !important;
  border-radius:18px !important;
  padding:10px 14px !important;
  font-weight:600 !important;
  display:inline-flex !important;
  align-items:center !important;
  gap:8px !important;
  cursor:pointer !important;
}
.single-profile .profile-right .profile-summary .profile-city{
  order:3 !important;
  width:100% !important;
  margin-top:6px !important;
  color:rgba(0,0,0,.55) !important;
  font-size:16px !important;
}
/* контакты */
.single-profile .profile-right .profile-summary .sp-contacts{
  display:flex !important;
  gap:10px !important;
}
.single-profile .profile-right .profile-summary .sp-icon-btn{
  width:46px !important;
  height:46px !important;
  border-radius:16px !important;
  background:#e7e7e7 !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-decoration:none !important;
  font-weight:700 !important;
}
/* цена */
.single-profile .profile-right .profile-summary .profile-price{
  font-size:56px !important;
  font-weight:900 !important;
  letter-spacing:-0.02em !important;
  line-height:1 !important;
}
/* размеры — “пилюли” */
.single-profile .profile-right .profile-summary .sp-sizes{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:10px !important;
}
.single-profile .profile-right .profile-summary .sp-sizes .sp-chip{
  border:0 !important;
  background:#e2e2e2 !important;
  border-radius:999px !important;
  padding:10px 14px !important;
  font-weight:700 !important;
  cursor:default !important;
}
/* выезд/апартаменты — 2 колонки как в фигме */
.single-profile .profile-right .profile-summary .sp-services{
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  gap:12px !important;
}
.single-profile .profile-right .profile-summary .sp-service{
  background:#e9e9e9 !important;
  border-radius:18px !important;
  padding:14px 16px !important;
}
.single-profile .profile-right .profile-summary .sp-service-title{
  font-weight:800 !important;
  margin-bottom:6px !important;
}
.single-profile .profile-right .profile-summary .sp-service-meta{
  color:rgba(0,0,0,.6) !important;
  font-weight:600 !important;
}
@media (max-width:520px){
  .single-profile .profile-right .profile-summary .sp-services{grid-template-columns:1fr !important;}
}
/* кнопки: одинаковая ширина/радиусы */
.single-profile .profile-right .profile-summary .sp-actions .btn{
  width:100% !important;
  border-radius:18px !important;
  padding:16px 18px !important;
  font-weight:800 !important;
}
/* ================= MOBILE FIX: PHOTO FIRST ================= */
/* Перестраиваем сетку на мобильных */
@media (max-width: 768px) {
  .single-profile .profile-grid {
    display: flex !important;
    flex-direction: column !important;
  }
  /* фото блок выше инфо */
  .single-profile .profile-left {
    order: 1 !important;
    width: 100% !important;
  }
  .single-profile .profile-right {
    order: 2 !important;
    width: 100% !important;
    margin-top: 16px !important;
  }
  /* сама фотосекция */
  .single-profile .sp-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  /* главное фото */
  .single-profile .sp-hero {
    height: auto !important;
    aspect-ratio: 4 / 5 !important;
    border-radius: 22px !important;
  }
  /* миниатюры под фото */
  .single-profile .sp-side {
    display: flex !important;
    gap: 12px !important;
  }
  .single-profile .sp-side-item {
    flex: 1 1 0 !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 16px !important;
  }
  /* правая карточка */
  .single-profile .profile-summary {
    padding: 18px !important;
    border-radius: 22px !important;
  }
}
/* ============ SINGLE PROFILE — BUTTONS LIKE FIGMA ============ */
.single-profile .sp-actions{
  margin-top:auto !important;
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
}
.single-profile .sp-actions .btn{
  width:100% !important;
  height:64px !important;
  border-radius:18px !important;
  font-weight:700 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:10px !important;
  line-height:1 !important;
}
.single-profile .sp-actions .btn.btn-secondary{
  background:#111 !important;
  color:#fff !important;
  border:0 !important;
}
.single-profile .sp-actions .btn.btn-primary{
  background:#111 !important;
  color:#fff !important;
  border:0 !important;
}
/* ссылка "Редактировать профиль" тоже как кнопка */
.single-profile .profile-right .profile-summary > a.btn{
  width:100% !important;
  height:64px !important;
  border-radius:18px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}
/* ============ SINGLE PROFILE — STICKY RIGHT CARD (DESKTOP) ============ */
@media (min-width: 1024px){
  .single-profile .profile-right{
    position: sticky !important;
    top: 110px !important; /* под хедер, при необходимости поменяем */
    align-self: start !important;
  }
}
/* ============ SINGLE PROFILE — SWIPE GALLERY (MOBILE) ============ */
/* Предполагаем что элементы галереи: .sp-gallery и .sp-gitem (у тебя уже встречалось в CSS) */
@media (max-width: 900px){
  .single-profile .sp-gallery{
    display:flex !important;
    gap:12px !important;
    overflow-x:auto !important;
    overflow-y:hidden !important;
    scroll-snap-type:x mandatory !important;
    -webkit-overflow-scrolling:touch !important;
    padding-bottom:6px !important;
  }
  .single-profile .sp-gallery::-webkit-scrollbar{ display:none !important; }
  .single-profile .sp-gitem{
    flex:0 0 auto !important;
    width: 72vw !important;
    max-width: 360px !important;
    scroll-snap-align:start !important;
    border-radius:18px !important;
    overflow:hidden !important;
    transform: translateZ(0);
    transition: transform .25s ease, opacity .25s ease !important;
    opacity:.95;
  }
  .single-profile .sp-gitem.is-inview{
    transform: scale(1.00) !important;
    opacity:1 !important;
  }
  .single-profile .sp-gallery.is-dragging .sp-gitem{
    transition:none !important;
  }
}

/* --- FIX: prevent overlay/redirect when clicking Favorite button --- */
.profile-right .sp-actions{ position:relative; z-index:20; }
.profile-right .sp-actions .btn{ position:relative; z-index:20; }
.profile-right a.btn.btn-primary{ position:relative; z-index:1; }
/* optional: keep edit link below buttons */
.profile-right .sp-edit-profile{ display:block; margin-top:12px; }
