/* Детальная карточка объекта реестра */
.main {
    padding: 0;
    background: #F0F0F0;
}
ul.breadcrumbs > li:before {
    border-left: 6px solid #F0F0F0;
}
.registry-detail {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 0 auto;
    padding: 30px 0 30px;
    overflow-x: clip;
}

@media (min-width: 1366px) {
    .registry-detail {
        margin-left: calc(18px + 285px + 16px);
        margin-right: auto;
    }
}

.registry-detail-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

.registry-detail-header > div {
    width: 100%;
}

.registry-detail-header h2 {
    font-size: 1.75rem;
    color: #111;
    margin: 10px 0 0;
}

.registry-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.35fr) minmax(260px, 0.85fr);
    grid-template-areas:
        "media sidebar"
        "content sidebar";
    gap: 0;
    position: relative;
}

.registry-detail-media-wrapper {
    grid-area: media;
    display: flex;
    flex-direction: column;
}

.registry-profile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: none;
    border-bottom: 2px solid #F0F0F0;
    position: relative;
    overflow: visible;
    padding: 0 12px;
}
.registry-profile-bar .registry-profile-user {
    padding-left: 140px;
    flex: 1;
}
.registry-detail-content {
    grid-area: content;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.registry-detail-sidebar {
    grid-area: sidebar;
    display: flex;
    flex-direction: column;
    border: none;
    gap: 1.5rem;
    position: relative;
    margin-left: 15px;
    background: transparent;
}
.registry-detail-sidebar-inner {
    width: 100%;
}
.registry-detail-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 15px;
    background: #FFF;
}

/* Блок цены в сайдбаре — кликабельный, открывает модалку истории цен */
.registry-sidebar-actions .registry-detail-price-block {
    margin-bottom: 0;
}
.registry-detail-price-block {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: var(--bg-light, #f5f5f5);
    cursor: pointer;
    transition: opacity 0.2s;
}
.registry-detail-price-block:hover {
    opacity: 0.85;
}
.registry-detail-price-block .registry-detail-price-label {
    font-size: 0.8rem;
    color: #777;
}
.registry-detail-price-block .registry-price-main {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111;
}
.registry-contact-card {
    border: none;
    background: transparent;
    padding: 0;
}

.registry-contact-header {
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.registry-contact-header img {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    object-fit: cover;
}

.registry-contact-name {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.registry-contact-shortname {
    color: var(--primary, #2563eb);
    text-decoration: none;
    font-weight: 400;
    font-size: 13px;
    text-transform: uppercase;
}
.registry-contact-shortname:hover {
    text-decoration: underline;
}
.registry-contact-verified {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.registry-contact-verified img,
.registry-contact-verified svg {
    display: block;
    width: 16px;
    height: 16px;
}
.registry-contact-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-sizing: border-box;
}
.registry-contact-header {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.registry-contact-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.registry-contact-avatar {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}
.registry-contact-header-text {
    flex: 1;
    min-width: 0;
}
.registry-contact-registered {
    color: #BCBCBC;
    font-size: 12px;
    text-transform: lowercase;
}
.registry-contact-details {
    margin: 0.75rem 0 0;
    padding: 0;
}
.registry-contact-detail-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.2rem 0;
    font-size: 0.875rem;
    text-transform: lowercase;
}
.registry-contact-detail-row dt {
    margin: 0;
    color: #777;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.registry-contact-detail-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    opacity: 0.7;
}
.registry-contact-detail-row dd {
    margin: 0;
    color: #111;
}
.registry-contact-reveal-btn {
    font-size: 0.875rem;
    color: var(--primary, #2563eb);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-transform: lowercase;
}
.registry-contact-reveal-btn:hover {
    color: var(--primary-hover, #1d4ed8);
}
.registry-contact-reveal-btn--revealed,
.registry-contact-reveal-btn:disabled {
    text-decoration: none;
    cursor: default;
}
.registry-contact-hidden {
    font-size: 0.875rem;
    color: #888;
}
.registry-contact-channels-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0.75rem 0 0.35rem;
}

.registry-sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border, #e5e7eb);
}

.registry-contact-preferred {
    font-size: 0.8rem;
    color: #555;
    margin-top: 0.25rem;
}

.registry-contact-channels {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.registry-contact-channel {
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.registry-contact-channel-label {
    color: #777;
    flex-shrink: 0;
}

.registry-contact-channel a {
    color: var(--primary, #2563eb);
    text-decoration: none;
}

.registry-contact-channel a:hover {
    text-decoration: underline;
}

.registry-contact-channel--preferred .registry-contact-channel-label::after {
    content: ' (предпочтительно)';
    font-weight: 600;
    color: var(--primary, #2563eb);
}

.registry-contact-btn--cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
}
.registry-contact-btn--cart.registry-action-btn--in-cart {
    background: #fc5808;
    color: white;
    border-color: #fc5808;
}
.registry-contact-btn--cart.registry-action-btn--in-cart:hover {
    background: #e04a07;
    border-color: #e04a07;
}
.registry-contact-btn--cart.registry-action-btn--in-cart img {
    filter: brightness(0) invert(1);
}
.registry-detail-unavailable {
    display: block;
    font-size: 0.875rem;
    color: #777;
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-light, #f5f5f5);
    border-radius: 6px;
}

.registry-detail-media-tabs {
    display: none;
}

.registry-media-switcher {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: #FFF;
}
.registry-media-switcher-left {
    display: flex;
    gap: 6px;
}
.registry-media-switcher .registry-media-tab {
    padding: 15px 20px;
    border-bottom: 2px solid transparent;
    font-weight: 600;
    z-index: 100;
}
.registry-media-switcher .registry-media-tab.active {
    border-bottom-color: var(--primary);
}

.registry-media-switcher .registry-fullscreen-btn {
    padding: 8px 10px;
    margin: 0 10px 0 0;
    background: #fff;
}

.registry-media-switcher .registry-fullscreen-btn:hover {
    background: var(--bg-light);
}
.registry-profile-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    min-width: 0;
    position: relative;
}
.registry-profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 4px;
    padding: 5px;
    overflow: hidden;
    background: #FFF;
    border: 1px solid var(--border);
    flex-shrink: 0;
    position: absolute;
    left: 15px;
    top: -90px;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.registry-profile-avatar::after {
    content: '';
    position: absolute;
    /* Центр полосы в центре блока; размеры с запасом, чтобы при повороте -45° перекрыть всю картинку */
    left: 50%;
    top: 50%;
    width: 220%;
    height: 300%;
    margin-left: -110%;
    margin-top: -150%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0) 12%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 88%,
        transparent 100%
    );
    transform: rotate(-45deg);
    transform-origin: center center;
    animation: registry-avatar-shimmer 0.7s ease-out 0.3s both;
    pointer-events: none;
    z-index: 1;
}

@keyframes registry-avatar-shimmer {
    from {
        transform: rotate(-45deg) translateY(120%);
    }
    to {
        transform: rotate(-45deg) translateY(-120%);
    }
}

.registry-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.registry-profile-code {
    min-width: 0;
    padding-left: 0;
}

.structure-code {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.registry-media-tabs-left {
    display: flex;
    gap: 0;
}

.registry-fullscreen-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    transition: color 0.2s;
    margin: 0 10px;
}

.registry-fullscreen-btn:hover {
    color: var(--primary);
    background: var(--bg-light);
}

.registry-media-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: #111;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.registry-media-tab:hover {
    color: var(--primary);
}

.registry-media-tab:focus,
.registry-media-tab:focus-visible,
.registry-fullscreen-tab:focus,
.registry-fullscreen-tab:focus-visible {
    outline: none;
    box-shadow: none;
}

.registry-media-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--bg);
}

.registry-media-tab img {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.registry-media-content {
    position: relative;
    width: 100%;
}

/* Единая высота для табов Фото / Карта / Панорама — без дёргания при переключении */
.registry-detail-media-wrapper .registry-media-content {
    min-height: 450px;
}

.registry-detail-media-wrapper .registry-photos-card {
    height: 450px;
}

.registry-detail-media-wrapper .registry-photos-card > .registry-photo-placeholder {
    min-height: 450px;
}

.registry-detail-media-wrapper .registry-map-card {
    height: 450px;
}

.registry-detail-media-wrapper .registry-map-container {
    flex: 1;
    min-height: 0;
}

.registry-detail-media-wrapper .registry-map-placeholder {
    flex: 1;
    min-height: 0;
}

.registry-detail-media-wrapper .registry-view3d-card {
    height: 450px;
}

.registry-detail-media-wrapper #view3d-container {
    flex: 1;
    min-height: 0;
    height: auto;
}

.registry-media-panel {
    display: none;
}

.registry-media-panel.active {
    display: block;
}

/* Карточки в списке на странице карты */
.registry-map-card-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.registry-map-card {
    overflow: hidden;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.registry-map-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.registry-map-card--focused {
    box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.45), 0 8px 22px rgba(79, 124, 255, 0.22);
    transform: translateY(-1px);
}
.registry-map-card--marker-selected {
    box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.55), 0 8px 22px rgba(79, 124, 255, 0.2);
}
.registry-map-card--marker-selected:hover {
    box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.55), 0 8px 22px rgba(79, 124, 255, 0.2);
    transform: none;
}
.registry-map-card-image-wrap {
    position: relative;
    flex-shrink: 0;
    grid-area: image;
}
.registry-map-card-list .registry-map-card-image-wrap {
    width: 180px;
    min-height: 135px;
}
.registry-map-card-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    width: 36px;
    height: 36px;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.registry-map-card-favorite::before,
.registry-map-card-favorite::after {
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
}
/* Блок фото: 220px ширина колонки, соотношение 4:3 → 165px высота */
.registry-map-card-list .registry-photos-card {
    position: relative;
    width: 180px !important;
    height: 135px !important;
    min-height: 135px !important;
}
.registry-map-card-list .registry-photos-gallery {
    position: relative !important;
    width: 180px !important;
    height: 135px !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
}
.registry-map-card-list .registry-photos-viewport {
    width: 180px !important;
    height: 135px !important;
    min-height: 135px !important;
    display: flex !important;
}
.registry-map-card-list .registry-photos-card .image-wrapper {
    width: auto;
    height: 135px;
    min-height: 135px;
}
.registry-map-card-list .registry-photos-card .image-item {
    height: 135px;
}
.registry-map-card-list .registry-photos-card .image-wrapper:before {
    height: 135px;
}
.registry-map-card-list .registry-photos-card .registry-photo-image {
    width: 100%;
    height: 135px;
    object-fit: cover;
}
/* Нижняя full-width панель действий карточки */
.registry-map-card-actions-wrap {
    grid-area: actions;
    width: 100%;
    padding: 6px 8px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    min-width: 0;
}
.registry-map-card-body {
    grid-area: body;
    padding: 0.75rem 1rem;
    flex: 1;
    min-width: 0;
}
.registry-map-card-meta {
    margin-top: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    font-size: 0.8rem;
    color: var(--text-light);
}
.registry-map-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
}
.registry-map-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    border: none;
    background: #C9C9C9;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}
.registry-map-card-btn--history.registry-price-block {
    flex: 1;
    min-width: 0;
    min-height: 40px;
    padding: 0.35rem 0.5rem;
    color: #111;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2px;
    line-height: 1.15;
    border: 1px solid #d9dde3;
    background: #f9fafb;
}
.registry-map-card-btn--history.registry-price-block:hover {
    background: #f2f4f7;
    border-color: #b9c0cb;
}
.registry-map-card-btn--history .registry-price-main {
    width: 100%;
    font-size: 0.78rem;
    font-weight: 600;
    color: #111;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.registry-map-card-btn--history .registry-price-next-date {
    width: 100%;
    font-size: 0.68rem;
    color: #5b6470;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.registry-map-card-btn--cart {
    flex-shrink: 0;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    background: #fc5808;
    color: #fff;
}
.registry-map-card-btn--cart .registry-cart-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}
.registry-map-card-btn--cart:hover {
    background: #e04a07;
}

.registry-map-image {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
}

.registry-map-meta {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
}

.registry-map-container {
    flex: 1;
    min-height: 200px;
}

.registry-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1rem;
    min-height: 280px;
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
}

.registry-map-placeholder svg {
    opacity: 0.5;
}

.registry-map-placeholder p {
    margin: 0;
    font-size: 0.95rem;
}

.registry-map-placeholder-hint {
    font-size: 0.8rem !important;
    opacity: 0.8;
}

.registry-map-placeholder--fullscreen {
    min-height: 400px;
}

.registry-map-container--fullscreen {
    flex: 1;
    min-height: 0;
}

.registry-photos-card {
    background: var(--bg);
    padding: 0;
    position: relative;
    border-top: none;
    display: flex;
    flex-direction: column;
}

.registry-detail-media-wrapper .registry-photos-card {
    border: none;
}

.registry-photos-slider {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    isolation: isolate;
}

/* Слой поверх вьюпорта: стрелки и счётчик всегда получают клики (вьюпорт z-index ниже) */
.registry-slider-controls {
    position: absolute;
    inset: 0;
    z-index: 30;
    pointer-events: none;
}

.registry-slider-controls .registry-slider-btn,
.registry-slider-controls .registry-slider-indicator {
    pointer-events: auto;
}

.registry-slider-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.registry-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.registry-slider-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.registry-slider-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.registry-slide-label {
    position: absolute;
    width: 30px;
    height: 30px;
    text-align: center;
    background: rgba(255,255,255,  .6);
    border: #222 solid 2px;
    top: 20px;
    right: 20px;
    line-height: 27px;
    vertical-align: middle;
    color: #000;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.registry-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.registry-slider-btn img {
    width: 20px;
    height: 20px;
}

.registry-slider-btn--prev {
    left: 16px;
}

.registry-slider-btn--next {
    right: 16px;
}

.registry-slider-indicator {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.registry-slider-separator {
    opacity: 0.7;
}

.registry-photo-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.registry-photo-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    stroke: var(--text-light);
}

.registry-photo-placeholder p {
    margin: 0;
    font-size: 0.9rem;
}

.registry-detail-section {
    background: var(--bg);
    padding: 0 7px;
}

.registry-detail-section h3,
.registry-detail-section h4 {
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 1rem 0;
    color: #333;
}

.registry-specs-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
}

.registry-spec-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 5px 0;
}

.registry-spec-row:last-child {
    border-bottom: none;
}

.registry-spec-row dt {
    font-size: 13px;
    color: #777;
    font-weight: 400;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.registry-spec-dots {
    flex: 1;
    min-width: 0;
    height: 1px;
    border-bottom: 1px dotted #ccc;
    margin: 0 0.5rem;
    align-self: baseline;
}

.registry-spec-row dd {
    font-size: 0.875rem;
    color: #000;
    margin: 0;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    white-space: normal;
    flex-shrink: 1;
    flex-wrap: wrap;
    word-break: break-word;
    min-width: 0;
}

.registry-spec-row dd > span {
    word-break: break-word;
    white-space: normal;
    flex-shrink: 1;
    min-width: 0;
}

.registry-spec-dd--multiline {
    display: block;
    text-align: right;
    white-space: normal;
}

.registry-spec-multiline {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
}

.registry-spec-multiline-item {
    white-space: normal;
    word-break: break-word;
}

.registry-approval-download {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    max-width: 100%;
    padding: 0.2rem 0;
    color: var(--text, #1a1a1a);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.15s ease;
}

.registry-approval-download:hover {
    color: #000;
    text-decoration: underline;
}

.registry-approval-download__icon {
    flex-shrink: 0;
    display: inline-flex;
    color: #666;
}

.registry-approval-download:hover .registry-approval-download__icon {
    color: #000;
}

.registry-approval-download__label {
    white-space: nowrap;
}

.registry-spec-copy {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
}

.registry-spec-copy:hover {
    color: var(--primary);
}

.registry-specs-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--primary);
    text-decoration: none;
}

.registry-specs-more:hover {
    text-decoration: none;
    color: #fc5808;
}

.registry-detail-task p {
    margin: 0;
    color: var(--text);
    line-height: 1.5;
}

.registry-detail-campaign {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.registry-detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.registry-detail-list li::before {
    content: '— ';
    color: var(--text-light);
}
.registry-detail-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    padding: 0.75rem;
    background: var(--bg-light);
}
.registry-detail-tabs {
    display: flex;
    align-items: center;
    margin-bottom: -2px;
    margin-left: auto;
    padding: 0;
    border-bottom: 0;
}
.registry-detail-tab {
    border: none;
    background: transparent;
    padding: 16px 20px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    position: relative;
}
.registry-detail-tab:hover {
    color: #000;
}
.registry-detail-tab.active {
    background: transparent;
    color: #000;
    border-bottom-color:  #000;
    box-shadow: none;
}
.registry-detail-tab-panels {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.registry-detail-tab-panel {
    display: none;
    padding: 15px;
    background: #FFF;
}

.registry-detail-tab-panel.active {
    display: block;
}

.registry-detail-calendar-placeholder {
    padding: 1.5rem;
    border: 1px dashed var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
}

.registry-schedule-by-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.registry-schedule-side-block {
    padding: 0;
}

.registry-schedule-side-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem;
}

.registry-schedule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.registry-schedule-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border, #eee);
}

.registry-schedule-item:last-child {
    border-bottom: none;
}

.registry-schedule-period {
    font-weight: 500;
    color: #111;
}

.registry-schedule-days {
    color: var(--text-light, #666);
    font-size: 0.85rem;
}

.registry-schedule-status {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: var(--bg-light, #f0f0f0);
    color: var(--text-light, #555);
}

.registry-history-controls {
    margin-bottom: 1rem;
}

.registry-history-chart-wrap {
    margin-bottom: 1.5rem;
}

.registry-price-history-table-wrap {
    overflow-x: auto;
}

.registry-price-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.registry-price-history-table th,
.registry-price-history-table td {
    padding: 0.5rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border, #eee);
}

.registry-price-history-table th {
    font-weight: 600;
    color: var(--text-light, #666);
}

.registry-price-history-table td:not(:first-child) {
    text-align: right;
}

@media (max-width: 960px) {
    .registry-detail-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "media"
            "content"
            "sidebar";
        padding: 0 1rem;
    }

    .registry-detail-media-wrapper,
    .registry-detail-content,
    .registry-detail-sidebar {
        width: 100%;
    }
}

/* Действия в табах расписаний (иконка списка) */
#registry-schedule-calendar-view .schedule-tabs--full .schedule-tabs__actions {
    display: flex;
    align-items: center;
}

/* Кнопка открытия модалки расписаний (как fullscreen) */
.registry-schedule-list-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text);
    transition: color 0.2s, background 0.2s;
}
.registry-schedule-list-btn:hover {
    color: var(--primary);
    background: var(--bg-light);
}

/* Модальное окно для показа телефона/email */
.registry-reveal-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.registry-reveal-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}
.registry-reveal-modal-content {
    position: relative;
    background: #FFF;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 360px;
    width: 100%;
}
.registry-reveal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border, #e5e7eb);
}
.registry-reveal-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}
.registry-reveal-modal-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #777;
    padding: 0;
}
.registry-reveal-modal-close:hover {
    color: #000;
}
.registry-reveal-modal-body {
    padding: 1.25rem;
}
.registry-reveal-value {
    font-size: 1.1rem;
}
.registry-reveal-value--link {
    color: var(--primary, #2563eb);
    text-decoration: none;
}
.registry-reveal-value--link:hover {
    text-decoration: underline;
}

/* Модальное окно с календарём расписаний */
.registry-schedule-list-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    border-radius: 0;
}
.registry-schedule-list-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 1;
}
.registry-schedule-list-modal-scroll {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.registry-schedule-list-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border-radius: 0;
}
.registry-schedule-list-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border, #e5e7eb);
}
.registry-schedule-list-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}
.registry-schedule-list-modal-close {
    background: transparent;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #777;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}
.registry-schedule-list-modal-close:hover {
    color: #000;
}
.registry-schedule-list-modal-body {
    padding: 1.25rem;
}
.registry-schedule-list-modal .registry-schedule-modal-calendar,
.registry-schedule-list-modal .calendar-container {
    border-radius: 0;
}
/* Один скролл — только у модалки, без вложенного overflow */
.registry-schedule-list-modal .calendar-container {
    overflow: visible;
}
