/* =========================================================================
   SPb Bridges Realtime Styles (mos77.ru)
   ========================================================================= */

.spb-mosty-page {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 60px !important;
    box-sizing: border-box !important;
}

.sm-hero {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #0f172a 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 32px 28px;
    margin-bottom: 24px;
    box-shadow: 0 16px 36px rgba(49, 46, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.sm-hero::after {
    content: "🌉";
    position: absolute;
    right: 20px;
    bottom: -15px;
    font-size: 110px;
    opacity: 0.14;
    pointer-events: none;
}

.sm-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
}

.sm-badge-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.4);
    animation: smPulse 1.8s infinite;
}

@keyframes smPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.sm-hero__title {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 12px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.sm-hero__ico {
    font-size: 28px;
}

.sm-hero__desc {
    font-size: 15px;
    line-height: 1.55;
    color: #e0e7ff;
    margin: 0;
    max-width: none !important;
}

/* Live Ticker */
.sm-live-ticker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 16px 22px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    flex-wrap: wrap;
    gap: 12px;
}

.sm-live-ticker__status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sm-status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sm-status-indicator--green {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.sm-status-indicator--yellow {
    background: #eab308;
    box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.2);
}

.sm-status-indicator--red {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

.sm-global-text {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.sm-live-ticker__timer {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sm-timer-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

.sm-timer-clock {
    font-size: 15px;
    font-weight: 800;
    color: #312e81;
    font-family: monospace;
}

/* Map Card */
.sm-map-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.sm-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}

.sm-section-desc {
    font-size: 13.5px;
    color: #64748b;
    margin: 0 0 16px;
}

.sm-river-scheme {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sm-detour-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid #cbd5e1;
    background: #f8fafc;
}

.sm-detour-banner--zsd {
    border-color: #818cf8;
    background: #f5f3ff;
}

.sm-detour-banner--vantovy {
    border-color: #93c5fd;
    background: #eff6ff;
}

.sm-db-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.sm-db-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sm-db-content strong {
    font-size: 14.5px;
    color: #0f172a;
}

.sm-db-content span {
    font-size: 12.5px;
    color: #475569;
}

.sm-db-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: #e0e7ff;
    color: #3730a3;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.sm-db-tag--free {
    background: #dcfce7;
    color: #15803d;
}

/* Bridges Visual Nodes Strip */
.sm-bridge-map-nodes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 6px 0;
}

.sm-node-chip {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    transition: all 0.15s ease;
}

.sm-node-chip.is-open {
    border-color: #ef4444;
    background: #fef2f2;
}

.sm-node-chip.is-soon {
    border-color: #eab308;
    background: #fefce8;
}

.sm-node-chip.is-closed {
    border-color: #22c55e;
    background: #f0fdf4;
}

.sm-node-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Bridges Grid */
.sm-bridges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 14px;
}

.sm-bridge-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.sm-bridge-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.sm-bridge-card.is-open {
    border-color: #fca5a5;
    background: #fffafa;
}

.sm-bc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.sm-bc-name {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 2px;
}

.sm-bc-river {
    font-size: 12px;
    color: #64748b;
}

.sm-bc-status-pill {
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.sm-bc-status-pill--closed {
    background: #dcfce7;
    color: #15803d;
}

.sm-bc-status-pill--soon {
    background: #fef08a;
    color: #854d0e;
    animation: smPulseSoon 1.2s infinite;
}

.sm-bc-status-pill--open {
    background: #fee2e2;
    color: #b91c1c;
}

@keyframes smPulseSoon {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.sm-bc-times-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
    gap: 10px;
}

.sm-bc-hours {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sm-bc-span {
    font-size: 13px;
}

.sm-bc-span-num {
    color: #64748b;
    margin-right: 4px;
}

.sm-bc-span-time {
    color: #0f172a;
}

.sm-bc-countdown {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.sm-bc-countdown small {
    font-size: 11px;
    color: #64748b;
}

.sm-bc-timer {
    font-size: 16px;
    font-weight: 800;
    color: #312e81;
    font-family: monospace;
}

.sm-bc-desc {
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
    margin: 0 0 10px;
}

.sm-bc-tip {
    background: #eff6ff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    color: #1e40af;
    line-height: 1.4;
}

/* Guide Card */
.sm-guide-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    margin-top: 24px;
    margin-bottom: 24px;
}

.sm-guide-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
}

.sm-guide-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sm-gc-item h4 {
    font-size: 14.5px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}

.sm-gc-item p {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}

/* FAQ */
.sm-faq-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
}

.sm-faq-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
}

.sm-faq-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 0;
}

.sm-faq-item:last-child {
    border-bottom: none;
}

.sm-faq-item summary {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    outline: none;
}

.sm-faq-item summary:hover {
    color: #312e81;
}

.sm-faq-item p {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
    margin: 8px 0 0;
}

/* Quick Answer / Featured Snippet Box */
.sm-quick-answer {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1.5px solid #86efac;
    border-radius: 20px;
    padding: 22px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 18px rgba(34, 197, 94, 0.08);
}
.sm-qa-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #15803d;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.sm-qa-lead {
    font-size: 15.5px;
    font-weight: 500;
    color: #14532d;
    line-height: 1.6;
    margin: 0 0 16px;
}
.sm-qa-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    background: #ffffff;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 14px 18px;
}
.sm-qa-fact-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.sm-qa-fact-label {
    font-size: 11.5px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.sm-qa-fact-val {
    font-size: 14px;
    color: #0f172a;
    font-weight: 800;
}

/* Single Bridge Details Grid */
.sm-single-details-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (max-width: 768px) {
    .sm-single-details-grid {
        grid-template-columns: 1fr;
    }
}
.sm-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}
.sm-card-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 16px;
}
.sm-single-times-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sm-single-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}
.sm-single-time-row--highlight {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}
.sm-str-label {
    font-size: 13.5px;
    font-weight: 600;
}
.sm-str-val strong {
    font-size: 15px;
    font-weight: 800;
}
.sm-single-tip {
    margin-top: 14px;
    padding: 12px 14px;
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.5;
}
.sm-specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sm-specs-list li {
    display: flex;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13.5px;
}
.sm-specs-list li span {
    color: #64748b;
}
.sm-specs-list li strong {
    color: #0f172a;
    font-weight: 700;
}
/* Viewpoints */
.sm-card--viewpoints, .sm-card--detour {
    margin-bottom: 24px;
}
.sm-viewpoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.sm-vp-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    color: #334155;
    line-height: 1.45;
}
.sm-vp-ico {
    font-size: 16px;
    flex-shrink: 0;
}
.sm-detour-desc {
    font-size: 14.5px;
    line-height: 1.6;
    color: #334155;
    margin: 0 0 14px;
}
.sm-detour-pill-link {
    display: inline-flex;
    align-items: center;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.sm-detour-pill-link:hover {
    background: #dbeafe;
    color: #1e40af;
}

/* Related Bridges Chips */
.sm-related-bridges {
    margin-top: 30px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
}
.sm-related-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 14px;
}
.sm-related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sm-related-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 7px 12px;
    text-decoration: none;
    color: #1e293b;
    font-size: 13px;
    transition: all 0.2s;
}
.sm-related-chip:hover {
    border-color: #312e81;
    background: #312e81;
    color: #ffffff;
}
.sm-rc-name {
    font-weight: 600;
}
.sm-rc-time {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}
.sm-related-chip:hover .sm-rc-time {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Card Foot Links */
.sm-bc-foot {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
}
.sm-bc-detail-btn {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    color: #312e81;
    text-decoration: none;
    transition: color 0.15s;
}
.sm-bc-detail-btn:hover {
    color: #1e1b4b;
    text-decoration: underline;
}
.sm-bc-name-link {
    color: inherit;
    text-decoration: none;
}
.sm-bc-name-link:hover {
    color: #312e81;
}

/* Mobile */
@media (max-width: 650px) {
    .sm-bridges-grid {
        grid-template-columns: 1fr;
    }
    .sm-guide-cols {
        grid-template-columns: 1fr;
    }
    .sm-bridge-map-nodes {
        grid-template-columns: 1fr 1fr;
    }
}
