/* cmsms stylesheet: infographic modified: 17.11.2025 09:18:33 */
.container-infographic {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    /* Убираем горизонтальный скролл */
    overflow-x: hidden;
}

/* Header */
.header-infographic {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #4A90E2;
    padding-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
    gap: 10px;
}

.issue-number {
    background: #4A90E2;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.website {
    color: #333;
}

.title {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.subtitle {
    font-size: 18px;
    color: #555;
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

.law-label {
    display: inline-block;
    background: #34495e;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

/* Main Infographic */
.infographic {
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

/* Section Titles */
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4A90E2;
}

/* Income and Expense Groups */
.income-group {
    margin-bottom: 30px;
}

.group-title {
    font-size: 14px;
    font-weight: bold;
    color: #4A90E2;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.group-title.federal {
    color: #E74C3C;
}

/* Budget Items */
.budget-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.budget-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.budget-item.expense {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.budget-item.expense:hover {
    transform: translateX(-5px);
}

.budget-item.federal-item {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.budget-item.large {
    font-size: 18px;
    padding: 20px 25px;
    font-weight: bold;
}

.budget-item.medium {
    font-size: 16px;
}

.budget-item.small {
    font-size: 14px;
    padding: 12px 18px;
}

.item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.item-label {
    flex: 1;
}

.item-value {
    font-weight: bold;
    font-size: 1.2em;
    white-space: nowrap;
}

/* Expandable Details */
.item-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9em;
}

.sub-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    opacity: 0.9;
}

.sub-item span:first-child {
    padding-left: 15px;
    position: relative;
}

.sub-item span:first-child::before {
    content: "—";
    position: absolute;
    left: 0;
}

/* Total Boxes */
.total-box {
    background: #2c3e50;
    color: white;
    padding: 20px 25px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
flex-direction: column;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    margin-top: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.total-value {
    font-size: 22px;
    color: #4A90E2;
}

/* River Container */
.river-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url('/uploads/2025/47/river.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    min-height: 1000px;
}

.river-svg {
    width: 100%;
    height: 100%;
    min-height: 1000px;
}

/* River Animations */
.river-path {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

.flow-line {
    stroke-dasharray: 20 10;
    animation: flow 3s linear infinite;
}

.flow-1 {
    animation-delay: 0s;
}

.flow-2 {
    animation-delay: 1s;
}

.flow-3 {
    animation-delay: 2s;
}

@keyframes flow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 300;
    }
}

.droplet {
    animation: droplet-fall 4s ease-in infinite;
}

.droplet-1 {
    animation-delay: 0s;
}

.droplet-2 {
    animation-delay: 1s;
}

.droplet-3 {
    animation-delay: 2s;
}

.droplet-4 {
    animation-delay: 3s;
}

@keyframes droplet-fall {
    0% {
        cy: 0;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        cy: 1200;
        opacity: 0;
    }
}

/* Deficit Box */
.deficit-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 25px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    border: 3px solid white;
    z-index: 10;
}

.deficit-label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deficit-value {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2;
}

.deficit-value span {
    font-size: 16px;
    display: block;
    margin-top: 5px;
}

/* Important Note */
.important-note {
    background: #FFF3CD;
    border-left: 5px solid #FFC107;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.important-note h3 {
    color: #856404;
    margin-bottom: 12px;
    font-size: 20px;
}

.important-note p {
    color: #856404;
    line-height: 1.8;
}

/* Footer */
.footer {
    border-top: 2px solid #4A90E2;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.category {
    background: #4A90E2;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

.credits {
    text-align: right;
    color: #666;
    font-size: 14px;
}

.credits p {
    margin-bottom: 5px;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .infographic {
        grid-template-columns: 1fr 200px 1fr;
        gap: 20px;
    }
    
    .title {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .infographic {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .river-container {
        order: 2;
        /* Убираем минимальную высоту и делаем контейнер более гибким */
        min-height: auto;
        width: 100%;
        max-width: 100%;
        padding: 30px 0;
    }
    
    .river-svg {
        /* Убираем поворот реки, оставляем вертикальной */
        width: 100%;
        max-width: 100%;
        height: 400px;
        min-height: 400px;
    }
    
    .income-section {
        order: 1;
    }
    
    .expense-section {
        order: 3;
    }
    
    .deficit-box {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
        /* Делаем блок дефицита адаптивным */
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    /* Уменьшаем padding на мобильных */
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .title {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 15px;
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    /* Уменьшаем высоту реки на мобильных */
    .river-svg {
        height: 300px;
        min-height: 300px;
    }
    
    .budget-item.large {
        font-size: 16px;
        padding: 15px 18px;
    }
    
    .budget-item.medium {
        font-size: 14px;
    }
    
    .budget-item.small {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .item-value {
        font-size: 1.1em;
    }
    
    .total-box {
        font-size: 16px;
        padding: 15px 20px;
    }
    
    .total-value {
        font-size: 18px;
    }
    
    .deficit-value {
        font-size: 28px;
    }
    
    .footer {
        flex-direction: column;
        text-align: center;
    }
    
    .credits {
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    /* Оптимизируем расположение элементов на маленьких экранах */
    .item-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-value {
        align-self: flex-end;
    }
    
    /* Уменьшаем высоту реки на очень маленьких экранах */
    .river-svg {
        height: 250px;
        min-height: 250px;
    }
    
    .deficit-box {
        padding: 20px;
    }
    
    .deficit-value {
        font-size: 24px;
    }
    
    .important-note {
        padding: 15px;
    }
    
    .important-note h3 {
        font-size: 18px;
    }
}
/* cmsms stylesheet: infographicMobile modified: 17.11.2025 09:35:33 */
.container-infographic {
    max-width: 100%;
    margin: 0 auto;
    background: white;
    padding: 0;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    /* Убираем горизонтальный скролл */
    overflow-x: hidden;
}

/* Header */
.header-infographic {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid #4A90E2;
    padding-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
    gap: 10px;
}

.issue-number {
    background: #4A90E2;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
}

.website {
    color: #333;
}

.title {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: bold;
}

.subtitle {
    font-size: 18px;
    color: #555;
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 1.8;
}

.law-label {
    display: inline-block;
    background: #34495e;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

/* Main Infographic */
.infographic {
    display: grid;
    grid-template-columns: 1fr 300px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

/* Section Titles */
.section-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4A90E2;
}

/* Income and Expense Groups */
.income-group {
    margin-bottom: 30px;
}

.group-title {
    font-size: 2rem !important;
    font-weight: bold;
    color: #4A90E2;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.group-title.federal {
    color: #E74C3C;
}

/* Budget Items */
.budget-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin-bottom: 12px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.budget-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.budget-item.expense {
    background: linear-gradient(135deg, #91359c 0%, #1b2282 100%);
}

.budget-item.expense:hover {
    transform: translateX(-5px);
}

.budget-item.federal-item {
    background: linear-gradient(135deg, #fab270 0%, #877823 100%);
}

.budget-item.large {
    font-size: 18px;
    padding: 20px 25px;
    font-weight: bold;
}

.budget-item.medium {
    font-size: 16px;
}

.budget-item.small {
    font-size: 14px;
    padding: 12px 18px;
}

.item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.item-label {
    flex: 1;
}

.item-value {
    font-weight: bold;
    font-size: 1.2em;
    white-space: nowrap;
}

/* Expandable Details */
.item-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9em;
}

.sub-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    opacity: 0.9;
}

.sub-item span:first-child {
    padding-left: 15px;
    position: relative;
}

.sub-item span:first-child::before {
    content: "—";
    position: absolute;
    left: 0;
}

/* Total Boxes */
.total-box {
    background: #2c3e50;
    color: white;
    padding: 20px 25px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
flex-direction: column;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.total-value {
    font-size: 22px;
    color: #4A90E2;
}

/* River Container */
.river-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.river-svg {
    width: 100%;
    height: 100%;
    min-height: 1000px;
}

/* River Animations */
.river-path {
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.8;
    }
}

.flow-line {
    stroke-dasharray: 20 10;
    animation: flow 3s linear infinite;
}

.flow-1 {
    animation-delay: 0s;
}

.flow-2 {
    animation-delay: 1s;
}

.flow-3 {
    animation-delay: 2s;
}

@keyframes flow {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: 300;
    }
}

.droplet {
    animation: droplet-fall 4s ease-in infinite;
}

.droplet-1 {
    animation-delay: 0s;
}

.droplet-2 {
    animation-delay: 1s;
}

.droplet-3 {
    animation-delay: 2s;
}

.droplet-4 {
    animation-delay: 3s;
}

@keyframes droplet-fall {
    0% {
        cy: 0;
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        cy: 1200;
        opacity: 0;
    }
}

/* Deficit Box */
.deficit-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(231, 76, 60, 0.95);
    color: white;
    padding: 25px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    border: 3px solid white;
    z-index: 10;
}

.deficit-label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.deficit-value {
    font-size: 36px;
    font-weight: bold;
    line-height: 1.2;
}

.deficit-value span {
    font-size: 16px;
    display: block;
    margin-top: 5px;
}

/* Important Note */
.important-note {
    background: #FFF3CD;
    border-left: 5px solid #FFC107;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 8px;
}

.important-note h2 {
    color: #856404;
    margin-bottom: 12px;
    font-size: 20px;
}

.important-note p {
    color: #856404;
    line-height: 1.8;
}

/* Footer */
.footer {
    border-top: 2px solid #4A90E2;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.category {
    background: #4A90E2;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
}

.credits {
    text-align: right;
    color: #666;
    font-size: 14px;
}

.credits p {
    margin-bottom: 5px;
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .infographic {
        grid-template-columns: 1fr 200px 1fr;
        gap: 20px;
    }
    
    .title {
        font-size: 32px;
    }
    
    .subtitle {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .infographic {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .river-container {
        order: 2;
        /* Убираем минимальную высоту и делаем контейнер более гибким */
        min-height: auto;
        width: 100%;
        max-width: 100%;
    }
    
    .river-svg {
        /* Убираем поворот реки, оставляем вертикальной */
        width: 100%;
        max-width: 100%;
        height: 400px;
        min-height: 400px;
    }
    
    .income-section {
        order: 1;
    }
    
    .expense-section {
        order: 3;
    }
    
    .deficit-box {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        /* Делаем блок дефицита адаптивным */
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    /* Уменьшаем padding на мобильных */
    body {
        padding: 10px;
    }
    
    .container {
        padding: 20px;
    }
    
    .title {
        font-size: 28px;
width: 100%;
    }
    
    .subtitle {
        font-size: 15px;
    }
    
    .header-top {
        flex-direction: column;
        text-align: center;
    }
    
    /* Уменьшаем высоту реки на мобильных */
    .river-svg {
        height: 300px;
        min-height: 300px;
    }
    
    .budget-item.large {
        font-size: 16px;
        padding: 15px 18px;
    }
    
    .budget-item.medium {
        font-size: 16px;
        line-height: 1.4;
    }
    
    .budget-item.small {
        font-size: 13px;
        padding: 10px 15px;
    }
    
    .item-value {
        font-size: 1.1em;
    }
    
    .total-box {
        font-size: 16px;
        padding: 15px 20px;
width: 87%;
    }
    
    .total-value {
        font-size: 18px;
    }
    
    .deficit-value {
        font-size: 28px;
    }
    
    .footer {
        flex-direction: column;
        text-align: center;
    }
    
    .credits {
        text-align: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 15px;
    }
    
    .title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    /* Оптимизируем расположение элементов на маленьких экранах */
    .item-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-value {
        align-self: flex-end;
    }
    
    /* Уменьшаем высоту реки на очень маленьких экранах */
    .river-svg {
        height: 250px;
        min-height: 250px;
    }
    
    .deficit-box {
        padding: 20px;
    }
    
    .deficit-value {
        font-size: 24px;
    }
    
    .important-note {
        padding: 15px;
    }
    
    .important-note h3 {
        font-size: 18px;
    }
}
