/* Блок бизнес-профиля: шаблон profile_work_strip.html */
.my-domiki-strip {
  margin-top: 0;
  margin-bottom: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.profile-design-page .profile-work-strip {
  border-color: var(--rdx-line, #e8ebe6);
  border-radius: 18px;
  box-shadow: var(--rdx-shadow-card, 0 8px 20px rgba(26, 31, 28, 0.05));
}

.profile-design-page .profile-work-strip .my-domiki-strip-title {
  font-family: var(--rdx-serif, "Literata", serif);
  color: var(--rdx-ink, #1a1f1c);
}

.profile-design-page .profile-work-strip .my-domiki-strip-action {
  color: var(--rdx-muted, #6b736c);
}

.profile-design-page #my-profi-strip {
  background: linear-gradient(135deg, #fff 0%, #f7f0e8 100%);
}

.profile-design-page #my-profi-strip .my-domiki-card {
  border-color: rgba(26, 31, 28, 0.1);
  background: #fff;
}
.my-domiki-strip-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
}
.my-domiki-strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}
.my-domiki-strip-head .my-domiki-strip-title {
  margin: 0;
  min-width: 0;
}
.my-domiki-strip-action {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  line-height: 1.2;
}
.sp-create {
  flex-shrink: 0;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  color: #223757 !important;
  text-decoration: none !important;
  font-family: "Caveat", "Segoe Print", cursive !important;
  font-size: clamp(1.35rem, 2.1vw, 1.6rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}
.sp-create__arrow {
  font-family: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.72em;
  font-weight: 500;
}
.sp-create:hover {
  color: #19304d;
  text-decoration: none;
}
.my-domiki-strip-action:hover {
  color: var(--primary);
  text-decoration: underline;
}
.my-domiki-strip-action--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.my-domiki-strip-title span {
  color: inherit;
}
.my-domiki-strip-title a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.my-domiki-strip-title a:hover {
  color: var(--primary);
  text-decoration: none;
}
.profile-work-strip-hint {
  margin: -6px 0 10px;
  font-size: 13px;
}
.my-domiki-row {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.my-domiki-row--grid8 {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  overflow-x: visible;
  flex-wrap: unset;
}
.my-domiki-row--grid8 .my-domiki-card-wrap {
  min-width: 0;
}
.my-domiki-row--grid8 .my-domiki-card {
  width: 100%;
  min-width: 0;
  max-width: none;
}
.my-domiki-row--grid8 .my-domiki-card-body {
  padding: 6px 6px 8px;
  gap: 6px;
}
.my-domiki-row--grid8 .my-domiki-card-avatar {
  width: clamp(22px, 2.4vw, 34px);
  height: clamp(22px, 2.4vw, 34px);
  font-size: clamp(10px, 1.1vw, 14px);
}
.my-domiki-row--grid8 .my-domiki-card-title {
  font-size: clamp(10px, 1.05vw, 13px);
}
.my-domiki-row--grid8 .my-domiki-card-meta {
  font-size: clamp(8px, 0.85vw, 10px);
}

/* Сторис над баннером — как «А что было?» на главной */
.pwc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.pwc-stories {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  padding: 6px 6px 4px;
  scrollbar-width: none;
  min-height: 38px;
  align-items: center;
  background: #fff;
}
.pwc-stories--empty {
  min-height: 0;
  padding: 0;
  display: none;
}
.pwc-stories--stub {
  min-height: 38px;
}
.pwc-story-stub {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #d5dbd6;
  box-shadow: 0 0 0 1.5px #fff;
  border: 1.5px solid rgba(18, 32, 24, 0.18);
}
.pwc-stories::-webkit-scrollbar { display: none; }
.pwc-stories .story-item {
  flex: 0 0 auto;
  width: 30px;
  margin: 0;
}
.pwc-stories .story-preview {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(18, 32, 24, 0.35);
  box-shadow: 0 0 0 1.5px #fff;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.pwc-stories .story-preview-hit { border-radius: 50%; }
.pwc-stories .story-overlay,
.pwc-stories .story-title,
.pwc-stories .story-strip-manage,
.pwc-stories .story-strip-manage-controls {
  display: none !important;
}
.pwc-banner-link {
  display: block;
  text-decoration: none !important;
}
.pwc-banner {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e8ece8;
}
.pwc-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pwc-banner__empty {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 72px;
  background: linear-gradient(145deg, #e8ece8 0%, #cfd6d0 100%);
}
.my-domiki-row--grid8 .pwc-stories .story-item,
.my-domiki-row--grid8 .pwc-stories .story-preview {
  width: clamp(24px, 2.6vw, 30px);
  height: clamp(24px, 2.6vw, 30px);
}

.my-domiki-card-wrap {
  position: relative;
  min-width: 0;
}
.profile-work-strip .my-domiki-card-delete-form,
.profile-work-strip .tb-events-card-wrap .my-domiki-card-delete-form,
.profile-work-strip .tb-rental-card-wrap .my-domiki-card-delete-form {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 5;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
}
.profile-work-strip .my-domiki-card-delete-form .profile-work-card-delete,
.profile-work-strip .my-domiki-card-delete-form button[type="submit"],
.profile-work-strip .tb-events-card-wrap .my-domiki-card-delete-form button[type="submit"],
.profile-work-strip .tb-rental-card-wrap .my-domiki-card-delete-form button[type="submit"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: clamp(22px, 2.2vw, 28px) !important;
  height: clamp(22px, 2.2vw, 28px) !important;
  min-width: clamp(22px, 2.2vw, 28px) !important;
  min-height: clamp(22px, 2.2vw, 28px) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #0f172a !important;
  text-decoration: none !important;
  text-underline-offset: 0 !important;
  font-size: clamp(16px, 1.6vw, 20px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  -webkit-appearance: none;
  appearance: none;
}
.profile-work-strip .my-domiki-card-delete-form .profile-work-card-delete:hover,
.profile-work-strip .my-domiki-card-delete-form button[type="submit"]:hover,
.profile-work-strip .tb-events-card-wrap .my-domiki-card-delete-form button[type="submit"]:hover,
.profile-work-strip .tb-rental-card-wrap .my-domiki-card-delete-form button[type="submit"]:hover {
  color: #dc2626 !important;
  text-decoration: none !important;
}

/* Карусель (редизайн профиля) */
.profile-work-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}
.profile-work-carousel__viewport {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.profile-work-carousel__viewport::-webkit-scrollbar {
  display: none;
}
.profile-work-carousel__track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px;
  overflow: visible !important;
  grid-template-columns: none !important;
  padding-bottom: 0;
  margin-bottom: 0;
}
.profile-work-carousel__track .my-domiki-card-wrap {
  flex: 0 0 min(168px, 42vw);
  max-width: min(168px, 42vw);
}
.profile-work-carousel__btn {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(26, 31, 28, 0.14);
  background: #fff;
  color: #1a1f1c;
  font-size: 22px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(26, 31, 28, 0.08);
}
.profile-work-carousel__btn:hover:not(:disabled) {
  border-color: rgba(26, 31, 28, 0.35);
}
.profile-work-carousel__btn:disabled {
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

/* Упрощённая карточка: обложка + название */
.pwc-card--simple {
  width: 100%;
  min-width: 0;
  max-width: none;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.pwc-card-wrap--simple {
  gap: 0 !important;
}
.pwc-card--simple .pwc-simple-link {
  display: block;
  text-decoration: none !important;
  color: inherit;
}
.pwc-card--simple .pwc-banner {
  aspect-ratio: 4 / 3;
}
.pwc-card--simple .pwc-simple-title {
  padding: 8px 10px 10px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  color: #1a1f1c;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pwc-card-wrap--simple .my-domiki-card-delete-form {
  top: 8px;
  right: 8px;
  z-index: 12;
}
.pwc-card-wrap--simple .my-domiki-card-delete-form button[type="submit"] {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
  color: #1a1f1c !important;
  font-size: 16px !important;
}

.my-domiki-card {
  width: 160px;
  min-width: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #f8fafc;
  color: inherit;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.my-domiki-card a {
  text-decoration: none;
  color: inherit;
}
a.my-domiki-card {
  text-decoration: none;
  color: inherit;
}
.my-domiki-card-cover-link {
  display: block;
}
.my-domiki-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
}
.my-domiki-card--static {
  cursor: default;
}
.my-domiki-card--static:hover {
  transform: none;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.my-domiki-card-cover-link--static,
.my-domiki-card-body--static {
  cursor: default;
  text-decoration: none;
  color: inherit;
}
.tb-events-card--static {
  cursor: default;
  text-decoration: none;
  color: inherit;
}
.tb-events-card--static:hover {
  transform: none;
  box-shadow: none;
}
.my-domiki-card-cover {
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
}
.my-domiki-card-cover--singledom {
  aspect-ratio: 1 / 1;
}
.my-domiki-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.my-domiki-card-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 10px;
}
.my-domiki-card-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e0e7ef;
  color: #334155;
  font-weight: 900;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.my-domiki-card-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.my-domiki-card-title {
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.my-domiki-card-meta {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-top: 2px;
}
.my-domiki-add-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  color: #334155;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.my-domiki-add-cta:hover {
  background: #f1f5f9;
  border-color: rgba(100, 116, 139, 0.5);
  color: #0f172a;
}
.my-domiki-add-cta--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.my-domiki-work-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.my-domiki-work-cta-row .my-domiki-add-cta {
  flex: 1 1 220px;
  width: auto;
}

.profile-work-strip--blue {
  background: #d9e6f2;
  border-color: #b9cddd;
  color: #1f2937;
}
.profile-work-strip--blue .my-domiki-strip-action {
  color: #475569;
}
.profile-work-strip--blue .my-domiki-strip-action:hover {
  color: var(--primary);
}

.tb-events-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 8px;
  scrollbar-width: thin;
}
.tb-events-row::-webkit-scrollbar {
  height: 4px;
}
.tb-events-row--completed {
  margin-bottom: 0;
}
.tb-events-completed-label {
  margin: 4px 0 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}
.tb-events-card-wrap {
  position: relative;
  flex-shrink: 0;
}
.tb-events-card {
  display: block;
  width: 106px;
  min-width: 106px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.tb-events-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}
.tb-events-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  background: #cbd5e1;
}
.tb-events-card-title {
  display: block;
  padding: 6px 6px 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tb-events-draft-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
}
.tb-events-card-wrap .tb-events-card {
  position: relative;
}
.tb-events-empty {
  margin: 0 0 8px;
  font-size: 13px;
}
.tb-events-strip .tb-events-card-meta {
  display: block;
  padding: 0 6px 8px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  color: #64748b;
}

/* Блок «События» на бизнес-странице организатора — крупнее, до 8 карточек */
.organizer-events-strip .tb-events-row {
  gap: 10px;
}
.organizer-events-strip .tb-events-card {
  width: 132px;
  min-width: 132px;
  border-radius: 12px;
}
.organizer-events-strip .tb-events-card-title {
  padding: 8px 8px 4px;
  font-size: 13px;
  line-height: 1.3;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
}
.organizer-events-strip .tb-events-card-meta,
.profile-organizer-events-strip .tb-events-card-meta {
  display: block;
  padding: 0 8px 8px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  color: #64748b;
}

.profile-organizer-events-head {
  align-items: center;
}
.profile-work-strip-head-right,
.profile-organizer-events-head-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 12px;
  flex-shrink: 0;
}
.profile-organizer-events-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e2e8f0;
  color: #334155;
  font-weight: 900;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.profile-organizer-events-avatar:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}
.profile-organizer-events-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tb-rental-strip {
  margin-top: 12px;
}
.tb-rental-card {
  cursor: default;
}
.tb-rental-card--editable {
  cursor: pointer;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
}
.tb-rental-card-price {
  display: block;
  padding: 0 6px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #2563eb;
  line-height: 1.2;
}
.tb-strip-title-edit-btn {
  margin-left: 6px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
}
.tb-strip-title-edit-btn:hover {
  color: var(--primary);
}

@media (max-width: 360px) {
  .my-domiki-strip-title {
    font-size: 17px;
  }
  .my-domiki-card {
    width: 100%;
    min-width: 0;
  }
}
