/* ==========================================================================
   ВИДЖЕТЫ
   ========================================================================== */

.trds-sidebar-wrap {
    container-type: inline-size;
    container-name: sidebar;
}

@container sidebar (max-width: 260px) {
    .widget { font-size: var(--trds-fs-sm); }
    .widget_recent_entries a { font-size: var(--trds-fs-sm); }
}

.trds-sidebar-wrap .widget {
    margin-bottom: var(--trds-space-lg);
    padding-bottom: var(--trds-space-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.trds-sidebar-wrap .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.trds-sidebar-wrap .widget-title {
    font-size: var(--trds-fs-lg);
    margin-bottom: var(--trds-space-md);
    color: var(--trds-primary);
}

.widget ul {
    margin: 0 !important;
    list-style: none;
}

/* ==========================================================================
   CTA-БЛОКИ В САЙДБАРЕ
   ========================================================================== */

.trds-cta-block {
    background: var(--trds-surface);
    border: var(--trds-border-default);
    border-radius: var(--trds-radius-lg);
    padding: var(--trds-space-lg);
    margin-bottom: var(--trds-space-lg);
    box-shadow: var(--trds-shadow-sm);
    transition: var(--trds-transition);
    transition-property: box-shadow, transform;
}

.trds-cta-block:hover {
    box-shadow: var(--trds-shadow-md);
    transform: translateY(-2px);
}

.trds-cta-block:last-child {
    margin-bottom: 0;
}

.trds-cta-header {
    display: flex;
    align-items: center;
    gap: var(--trds-space-sm);
    margin-bottom: var(--trds-space-md);
}

.trds-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--trds-primary);
    color: var(--trds-text-inverse);
    border-radius: var(--trds-radius-md);
    font-size: var(--trds-fs-icon-md);
    flex-shrink: 0;
}

.trds-cta-title {
    font-size: var(--trds-fs-h4);
    font-weight: var(--trds-fw-semibold);
    color: var(--trds-text-primary);
    line-height: var(--trds-lh-tight);
    margin: 0;
}

.trds-cta-text {
    font-size: var(--trds-fs-sm);
    color: var(--trds-text-secondary);
    line-height: var(--trds-lh-normal);
    margin-bottom: var(--trds-space-md);
}

.trds-cta-text p {
    margin: 0 0 var(--trds-space-sm);
}

.trds-cta-text p:last-child {
    margin-bottom: 0;
}

.trds-cta-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--trds-space-2);
    font-size: var(--trds-fs-lg);
    font-weight: var(--trds-fw-semibold);
    color: var(--trds-primary);
    text-decoration: none;
    transition: var(--trds-transition-colors);
}

.trds-cta-phone:hover {
    color: var(--trds-primary-dark);
}

.trds-cta-phone .ph-thin {
    font-size: var(--trds-fs-icon-md);
}

.trds-cta-phone-list {
    display: flex;
    flex-direction: column;
    gap: var(--trds-space-sm);
}

.trds-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--trds-space-2);
    width: 100%;
    padding: var(--trds-space-3) var(--trds-space-5);
    background: var(--trds-primary);
    color: var(--trds-text-inverse);
    font-size: var(--trds-fs-sm);
    font-weight: var(--trds-fw-semibold);
    text-decoration: none;
    border-radius: var(--trds-radius-md);
    box-sizing: border-box;
    transition: var(--trds-transition);
    transition-property: background-color, box-shadow;
}

.trds-cta-button:hover {
    background: var(--trds-primary-dark);
    box-shadow: var(--trds-shadow-primary);
}

.trds-cta-button .ph-thin {
    font-size: var(--trds-fs-icon-sm);
    transition: transform var(--trds-duration-fast) var(--trds-ease);
}

.trds-cta-button:hover .ph-thin {
    transform: translateX(3px);
}

/* ==========================================================================
   ВИДЖЕТ СВЯТЫХ (azbyka-saints)
   ========================================================================== */

.azbyka-saints .trds-content-wrap ul {
    margin: 0;
}

.azbyka-saints .next,
.azbyka-saints .prev {
    font-size: var(--trds-fs-sm);
    padding: 0 10px;
    opacity: 0.7;
    transition: opacity var(--trds-transition-slow) ease;
}

.azbyka-saints .next:hover,
.azbyka-saints .prev:hover {
    opacity: 1;
}

.azbyka-saints .today a {
    font-weight: bold;
    font-size: var(--trds-fs-lg);
    width: max-content;
    text-decoration: none;
}

body:not(.home) .azbyka-saints .today {
    width: max-content !important;
    text-align: left;
    /* margin-left: -5% !important; */
}

.azbyka-saints .today {
    width: max-content;
}

.days-image {
    text-align: center;
}

.azbyka-saints .main-block {
    line-height: 1;
    font-size: var(--trds-fs-sm);
    text-decoration: none;
}

.azbyka-saints hr {
    border-top: 1px solid var(--trds-secondary);
    margin: 0;
}

.azbyka-days a {
    text-decoration: none;
}
