/* Контейнер скролл-снэпа */
.scroll-container {
    position: absolute;
    top: 80px;          /* высота навигации */
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
    -webkit-overflow-scrolling: touch; /* для плавности на iOS */
}

/* Каждая секция – на полный экран */
.scroll-container > * {
    scroll-snap-align: start;
    min-height: calc(100vh + 80px);   /* 100% от высоты контейнера (100vh - 80px) */
    height: 100%;
}

.hero-container,
.calculator-section,
.library-section,
.analytics-section,
.map-section,
.union-section,
.companies-widget-section {
    margin: 0;
    padding: 0;
}

/* ---------- ОБЩИЙ СТИЛЬ ДЛЯ ЛЕВЫХ ВЕРТИКАЛЬНЫХ ЗАГОЛОВКОВ ---------- */
.side-title {
    display: flex;
    justify-content: center;
    padding-top: 80px;
    font-family: 'Raleway Black', sans-serif;
    font-size: 14px;
    color: #4b5563;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 2px;
}

/* ---------- HERO ---------- */
.hero-container {
    display: grid;
    grid-template-columns: 80px 1fr 400px;
    grid-template-rows: 1fr 100px;
    width: 100%;
    height: calc(100vh - 80px); /* учитываем навигацию */
    min-height: 600px;
    scroll-snap-align: start;
}
.main-manifest {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 60px;
    padding-right: 40px;
}
.main-manifest h1 {
    font-family: 'Raleway Black', sans-serif;
    font-size: clamp(40px, 6vw, 85px);
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 30px;
}
.main-manifest p {
    font-size: 18px;
    line-height: 1.6;
    color: #8a92a6;
    max-width: 600px;
}
.sidebar-box {
    grid-column: 3;
    grid-row: 1 / span 2;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.stat-block {
    /*border-top: 1px solid #1f242e;*/
    padding-top: 20px;
    margin-bottom: 40px;
}
.stat-number {
    font-family: 'Raleway Black', sans-serif;
    font-size: 55px;
    color: #991b1b;
    line-height: 1;
    margin-bottom: 5px;
}
.stat-desc {
    font-size: 14px;
    color: #8a92a6;
    line-height: 1.4;
}
.bottom-box {
    grid-column: 1 / span 2;
    grid-row: 2;
    display: flex;
    align-items: center;
    padding-left: 140px;
    color: #4b5563;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---------- КАЛЬКУЛЯТОР ---------- */
.calculator-section {
    display: grid;
    grid-template-columns: 80px 1fr 1fr;
    width: 100%;
    min-height: 100vh;
    border-top: 1px solid #1f242e;
}
.calc-form-side {
    grid-column: 2;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.calc-form-side h2 {
    font-family: 'Raleway Black', sans-serif;
    font-size: 40px;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: -1px;
}
.calc-submit-btn {
    background: #1f242e;
    border: 1px solid #4b5563;
    color: #ffffff;
    padding: 20px;
    font-family: 'Raleway Black', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
    width: 100%;
    max-width: 300px;
}
.calc-submit-btn:hover {
    background: #991b1b;
    border-color: #991b1b;
}
.calc-result-side {
    grid-column: 3;
    padding: 80px 60px;
    background-color: #0d0f13;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: 100vh;
}
.result-placeholder {
    font-size: 16px;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin: auto;
}
.result-display {
    display: none;
}
.result-row {
    margin-bottom: 40px;
    border-bottom: 1px solid #1f242e;
    padding-bottom: 20px;
}
.result-value {
    font-family: 'Raleway Black', sans-serif;
    font-size: 48px;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 5px;
}
.result-value.danger {
    color: #991b1b;
}
.result-label {
    font-size: 14px;
    color: #8a92a6;
    line-height: 1.5;
}
.result-value.accent-time {
    color: #d97706;
}
.comparison-row {
    background-color: #11141a;
    padding: 25px !important;
    margin-top: 20px;
    border-left: 2px solid #d97706;
}
.methodology-footnote {
    margin-top: 50px;
    padding-top: 20px;
    font-size: 11px;
    line-height: 1.5;
    color: #4b5563;
    text-transform: none;
    letter-spacing: 0;
}
.methodology-footnote em {
    color: #8a92a6;
    font-style: normal;
    font-family: 'Raleway Black', sans-serif;
}

.methodology-section {
    width: 100%;
    background-color: #0b0d10;
}
.methodology-trigger {
    padding: 30px 80px;
    font-family: 'Raleway Black', sans-serif;
    font-size: 13px;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: color 0.3s;
}
.methodology-trigger:hover {
    color: #efefef;
}
.methodology-content {
    display: none;
    padding: 0 80px 60px 80px;
    max-width: 900px;
}
.methodology-inner h3 {
    font-family: 'Raleway Black', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}
.methodology-inner p {
    font-size: 14px;
    line-height: 1.6;
    color: #8a92a6;
    margin-bottom: 15px;
}
.formula-block {
    background-color: #0d0f13;
    border-left: 2px solid #991b1b;
    padding: 15px 20px;
    font-family: monospace;
    color: #efefef !important;
}
.methodology-inner ul {
    margin-left: 20px;
    color: #8a92a6;
    font-size: 14px;
    line-height: 1.6;
}
.methodology-inner li {
    margin-bottom: 10px;
}
.methodology-inner strong {
    color: #ffffff;
}

/* ---------- БИБЛИОТЕКА ---------- */
.library-section {
    display: grid;
    grid-template-columns: 80px 1fr;
    width: 100%;
    min-height: 100vh;
    background-color: #0b0d10;
}
.lib-grid {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
}
.book-card {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background-color 0.4s ease;
    background-color: transparent;
}
.book-meta {
    font-size: 11px;
    text-transform: uppercase;
    color: #4b5563;
    letter-spacing: 1px;
    margin-bottom: 20px;
    transition: color 0.3s;
}
.book-title {
    font-family: 'Raleway Black', sans-serif;
    font-size: 36px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: -1px;
    line-height: 1;
}
.book-thesis {
    font-size: 15px;
    line-height: 1.6;
    color: #8a92a6;
    margin-bottom: 40px;
    transition: color 0.3s;
}
.book-download {
    font-family: 'Raleway Black', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    color: #991b1b;
    text-decoration: none;
    letter-spacing: 1px;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
    margin-right: 15px;
}
.book-card:hover {
    background-color: #991b1b;
}
.book-card:hover .book-meta,
.book-card:hover .book-thesis {
    color: #ffffff;
}
.book-card:hover .book-download {
    color: #ffffff;
    transform: translateX(5px);
}

/* ---------- АНАЛИТИКА ---------- */
.analytics-section {
    display: grid;
    grid-template-columns: 80px 1fr;
    width: 100%;
    min-height: calc( 100vh - 80px);
    background-color: #0b0d10;
}
.analytics-content {
    grid-column: 2;
    padding: 100px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc( 100vh - 80px);
}
.analytics-header h2 {
    font-family: 'Raleway Black', sans-serif;
    font-size: 44px;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.analytics-header p {
    font-size: 16px;
    line-height: 1.6;
    color: #8a92a6;
    max-width: 700px;
    margin-bottom: 60px;
}
.charts-container {
    max-width: 800px;
    width: 100%;
}
.chart-item {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.chart-label {
    font-size: 13px;
    text-transform: uppercase;
    color: #8a92a6;
    letter-spacing: 1px;
}
.bar-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}
.bar-fill {
    height: 12px;
    background-color: #4b5563;
    transition: width 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.bar-fill.danger {
    background-color: #991b1b;
}
.bar-value {
    font-family: 'Raleway Black', sans-serif;
    font-size: 16px;
    color: #ffffff;
}
.analytics-footer {
    margin-top: 60px;
    max-width: 700px;
    border-left: 3px solid #991b1b;
    padding-left: 25px;
}
.analytics-footer p {
    font-size: 15px;
    line-height: 1.6;
    color: #8a92a6;
}
.analytics-footer strong {
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- КАРТА ---------- */
.map-section {
    display: grid;
    grid-template-columns: 80px 1fr;
    width: 100%;
    min-height: 100vh;
    background-color: #0b0d10;
}
.map-content-grid {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    width: 100%;
    min-height: calc(100vh - 80px);
    height: auto;
}
.map-visual-box {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border-right: 1px solid #1f242e;
    min-height: 600px;
}
.map-header h2 {
    font-family: 'Raleway Black', sans-serif;
    font-size: clamp(28px, 3vw, 40px);
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: #ffffff;
}
.map-header p {
    font-size: clamp(14px, 1.2vw, 16px);
    line-height: 1.6;
    color: #8a92a6;
    max-width: 600px;
    margin-bottom: 20px;
}
.svg-map-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    min-height: 300px;
    overflow: hidden;
}
#map-container {
    width: 100%;
    max-width: 900px;
    height: auto;
    max-height: 70vh;
}
#map-container svg {
    width: 100% !important;
    height: auto !important;
    max-height: 65vh;
    display: block;
}
.map-info-box {
    padding: 80px 40px;
    background-color: #0d0f13;
    overflow-y: auto;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}
.timeline-region {
    font-family: 'Raleway Black', sans-serif;
    font-size: 13px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    border-bottom: 2px solid #991b1b;
    padding-bottom: 10px;
}
.strike-card {
    border: 1px solid #1f242e;
    padding: 25px;
    background-color: #0b0d10;
    margin-bottom: 20px;
    border-left: 3px solid #991b1b;
}
.strike-card.success {
    border-left-color: #10b981;
}
.strike-meta {
    font-size: 11px;
    text-transform: uppercase;
    color: #4b5563;
    letter-spacing: 1px;
    margin-bottom: 10px;
}
.strike-meta a {
    color: #991b1b;
    text-decoration: none;
}
.strike-company {
    font-family: 'Raleway Black', sans-serif;
    font-size: 20px;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
}
.strike-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #8a92a6;
}
#region-filter {
    width: 100%;
    background: #0b0d10;
    border: 1px solid #1f242e;
    color: #efefef;
    padding: 10px;
    font-family: 'Raleway Regular', sans-serif;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    margin-bottom: 25px;
}
/* Цвета регионов на карте */
[id^="RU-"] {
    fill: #4b5563;
    stroke: #1f242e;
    stroke-width: 1.2;
    cursor: pointer;
    transition: fill 0.3s, stroke 0.3s;
}
[id^="RU-"].has-content {
    fill: #991b1b !important;
}
[id^="RU-"].group-active:not(.has-content) {
    fill: #2b6cb0 !important;
}
[id^="RU-"].active {
    stroke: #ffffff !important;
    stroke-width: 3 !important;
}
[id^="RU-"]:hover:not(.active) {
    fill: #b91c1c !important;
    stroke: #ffffff !important;
    stroke-width: 1.5;
}

/* ---------- ПОЛОСЫ ПРОКРУТКИ ---------- */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #0d0f13;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb {
    background: #2a303a;
    border-radius: 4px;
    border: 1px solid #1f242e;
    transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover {
    background: #4b5563;
}
* {
    scrollbar-width: thin;
    scrollbar-color: #2a303a #0d0f13;
}

/* ---------- ПРОФСОЮЗ (с вашими правками) ---------- */
.union-section {
    display: grid;
    grid-template-columns: 80px 1fr;
    width: 100%;
    min-height: 100vh;
    background-color: #0b0d10;
    scroll-snap-align: start;
}

.union-content-side {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc( 100vh - 80px);
}

.union-content-inner {
    width: 100%;
    height: 100%;
}

.union-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    height: 100%;
    padding: 0 60px;
}

.union-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    padding: 100px 60px;
}

.union-heading {
    font-family: 'Raleway Black', sans-serif;
    font-size: clamp(32px, 3.5vw, 44px);
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    letter-spacing: -1px;
}

.union-heading .red-accent {
    color: #991b1b;
}

.union-intro {
    font-size: 18px;
    line-height: 1.6;
    color: #c5c5c5;
    margin: 0;
}

.union-intro strong {
    color: #efefef;
}

.union-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 5px;
}

.union-item h4 {
    font-family: 'Raleway Black', sans-serif;
    font-size: 17px;
    color: #ffffff;
    margin: 0 0 4px 0;
}

.union-item p {
    font-size: 14px;
    line-height: 1.5;
    color: #8a92a6;
    margin: 0;
}

.union-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.union-scenarios {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.union-scenario {
    background: #0d0f13;
    padding: 16px 20px;
    border-radius: 4px;
    border-left: 3px solid #991b1b;
}

.union-scenario h4 {
    font-family: 'Raleway Black', sans-serif;
    font-size: 16px;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.union-scenario p {
    font-size: 14px;
    line-height: 1.6;
    color: #c5c5c5;
    margin: 0 0 6px 0;
}

.union-scenario-list {
    margin: 6px 0 0 0;
    padding-left: 20px;
    color: #8a92a6;
    font-size: 14px;
    line-height: 1.6;
}

.union-scenario-list li {
    margin-bottom: 3px;
}

.union-quote {
    background: #0d0f13;
    padding: 14px 20px;
    border-radius: 4px;
}

.union-quote p {
    font-size: 15px;
    line-height: 1.6;
    color: #efefef;
    font-style: italic;
    margin: 0;
}

.union-quote p strong {
    color: #991b1b;
    font-style: normal;
}

.union-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.union-main-btn {
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 30px;
    font-family: 'Raleway Black', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #991b1b;
    border-radius: 4px;
    transition: background 0.3s;
    display: inline-block;
}

.union-main-btn:hover {
    background: #991b1b;
}

.union-secondary-btn {
    background: transparent;
    color: #8a92a6;
    text-decoration: none;
    padding: 14px 25px;
    font-family: 'Raleway Black', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid #4b5563;
    border-radius: 4px;
    transition: all 0.3s;
    display: inline-block;
}

.union-secondary-btn:hover {
    border-color: #991b1b;
    color: #ffffff;
}

/* ---------- НАРУШИТЕЛИ (виджет) ---------- */
.companies-widget-section {
    display: grid;
    grid-template-columns: 80px 1fr;
    width: 100%;
    min-height: 100vh;
    background-color: #0b0d10;
    border-top: 1px solid #1f242e;
    scroll-snap-align: start;
}

.widget-content-side {
    grid-column: 2;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

.widget-content-inner {
    width: 100%;
}

.widget-header {
    margin-bottom: 40px;
}

.widget-title {
    font-family: 'Raleway Black', sans-serif;
    font-size: clamp(32px, 3.5vw, 44px);
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 6px 0;
    letter-spacing: -1px;
}

.widget-subtitle {
    font-size: 16px;
    color: #8a92a6;
    margin: 0;
}

#top-companies-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.company-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #1a1e26;
    transition: border-color 0.2s;
}

.company-item:last-child {
    border-bottom: none;
}

.company-item:hover {
    border-bottom-color: #991b1b;
}

.company-rank {
    font-family: 'Raleway Black', sans-serif;
    font-size: 14px;
    color: #4b5563;
    margin-right: 16px;
    min-width: 28px;
}

.company-name {
    font-family: 'Raleway Regular', sans-serif;
    font-size: 16px;
    color: #efefef;
    text-decoration: none;
    transition: color 0.3s;
}

.company-name:hover {
    color: #991b1b;
}

.company-violations {
    font-family: 'Raleway Black', sans-serif;
    font-size: 16px;
    color: #991b1b;
    white-space: nowrap;
}

.empty-message {
    color: #8a92a6;
    text-align: center;
    padding: 30px 0;
    font-size: 16px;
}

.widget-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1f242e;
    display: flex;
    justify-content: flex-end;
}

.widget-report-link {
    font-family: 'Raleway Black', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #991b1b;
    text-decoration: none;
    transition: color 0.3s;
}

.widget-report-link:hover {
    color: #ffffff;
}

/* ---------- ВЕРТИКАЛЬНАЯ НАВИГАЦИЯ ПО СЕКЦИЯМ ---------- */
.section-nav-vertical {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 1000; /* выше навигации */
    background: rgba(11, 13, 16, 0.7);
    backdrop-filter: blur(6px);
    padding: 14px 6px;
    border-radius: 0px;
}

.section-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    font-family: 'Raleway Black', sans-serif;
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.section-nav-item:hover {
    color: #ffffff;
    border-color: #4b5563;
}

.section-nav-item.active {
    color: #991b1b;
    border-color: #991b1b;
    background: rgba(153, 27, 27, 0.15);
}

.calculator-section,
.library-section,
.analytics-section,
.map-section,
.union-section,
.companies-widget-section {
    min-height: calc(100vh - 80px);
    scroll-snap-align: start;
}


/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 1400px) {
    .calculator-section,
    .library-section,
    .analytics-section,
    .map-section,
    .union-section,
    .companies-widget-section {
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 60px 1fr 300px;
    }
    .main-manifest {
        padding-left: 30px;
        padding-right: 20px;
    }
    .main-manifest h1 {
        font-size: clamp(30px, 5vw, 55px);
    }
    .sidebar-box {
        padding: 30px 20px;
    }
    .stat-number {
        font-size: 40px;
    }
    .calc-form-side {
        padding: 40px 30px;
    }
    .calc-form-side h2 {
        font-size: 30px;
    }
    .calc-result-side {
        padding: 40px 30px;
    }
    .result-value {
        font-size: 36px;
    }
    .book-card {
        padding: 40px 30px;
    }
    .book-title {
        font-size: 28px;
    }
    .analytics-content {
        padding: 60px 30px;
    }
    .analytics-header h2 {
        font-size: 32px;
    }
    .map-visual-box {
        padding: 40px 30px;
        min-height: 400px;
    }
    .map-info-box {
        padding: 40px 30px;
        max-height: 80vh;
    }
    .map-content-grid {
        grid-template-columns: 1fr 1fr;
        min-height: auto;
        height: auto;          /* добавлено */
    }
    .map-section {
        height: auto;          /* добавлено */
        min-height: auto;      /* добавлено */
    }
    #map-container {
        max-height: 50vh;
    }
    #map-container svg {
        max-height: 45vh;
    }
    .methodology-trigger {
        padding: 30px 40px;
        font-size: 12px;
    }
    .methodology-content {
        padding: 0 40px 40px 40px;
    }
    .union-two-col {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .union-left.border-r {
        border-right: none;
    }
    .union-content-side {
        padding: 40px 40px 60px 40px;
        min-height: auto;      /* добавлено */
    }
    .union-section {
        height: auto;          /* добавлено */
        min-height: auto;      /* добавлено */
    }
    .widget-content-side {
        padding: 40px 40px 60px 40px;
        min-height: auto;      /* добавлено */
    }
    .companies-widget-section {
        height: auto;          /* добавлено */
        min-height: auto;      /* добавлено */
    }
    .section-nav-vertical {
        left: 15px;
        gap: 10px;
        padding: 12px 4px;
    }
    .section-nav-item {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    .calculator-section,
    .library-section,
    .analytics-section,
    .map-section,
    .union-section,
    .companies-widget-section {
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 768px) {
    /* ----- ОБЩИЕ ПРАВКИ ДЛЯ ВСЕХ СЕКЦИЙ ----- */
    .scroll-container > * {
        min-height: auto; /* убираем принудительную высоту, контент сам определяет */
        height: auto;
    }

    /* ----- HERO ----- */
    .hero-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
        height: auto;
        min-height: 100vh;
    }
    .logo-box {
        /*display: none;*/
    }
    .main-manifest {
        grid-column: 1;
        grid-row: 2;
        padding: 40px 20px;
    }
    .main-manifest h1 {
        font-size: clamp(28px, 8vw, 42px);
    }
    .main-manifest p {
        font-size: 16px;
    }
    .sidebar-box {
        grid-column: 1;
        grid-row: 3;
        padding: 30px 20px;
        border-top: 1px solid #1f242e;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    .stat-block {
        flex: 1 1 100%;
        margin-bottom: 10px;
    }
    .stat-number {
        font-size: 32px;
    }
    .cta-btn {
        padding: 15px 30px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }
    .bottom-box {
        grid-column: 1;
        grid-row: 4;
        padding: 15px 20px;
        font-size: 10px;
        justify-content: center;
        border-top: 1px solid #1f242e;
    }

    /* ----- КАЛЬКУЛЯТОР ----- */
    .calculator-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .calc-form-side {
        grid-column: 1;
        padding: 40px 20px;
        border-bottom: 1px solid #1f242e;
    }
    .calc-form-side h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }
    .calc-submit-btn {
        max-width: 100%;
    }
    .calc-result-side {
        grid-column: 1;
        padding: 40px 20px;
        max-height: none;
        overflow-y: visible;
        justify-content: center;
    }
    .result-value {
        font-size: 30px;
    }
    .comparison-row {
        padding: 15px !important;
    }

    /* ----- БИБЛИОТЕКА ----- */
    .library-section {
        grid-template-columns: 1fr;
    }
    .lib-grid {
        grid-column: 1;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .book-card {
        padding: 30px 20px;
        border-bottom: 1px solid #1f242e;
    }
    .book-card:last-child {
        border-bottom: none;
    }
    .book-title {
        font-size: 24px;
    }

    /* ----- АНАЛИТИКА ----- */
    .analytics-section {
        grid-template-columns: 1fr;
    }
    .analytics-content {
        grid-column: 1;
        padding: 40px 20px;
    }
    .analytics-header h2 {
        font-size: 28px;
    }
    .analytics-header p {
        font-size: 14px;
        margin-bottom: 30px;
    }
    .chart-label {
        font-size: 11px;
    }
    .bar-value {
        font-size: 14px;
    }
    .analytics-footer {
        margin-top: 30px;
        padding-left: 15px;
    }
    .analytics-footer p {
        font-size: 13px;
    }

    /* ----- КАРТА ----- */
    .map-section {
        grid-template-columns: 1fr;
        height: auto;        /* убираем фиксированную высоту */
        min-height: auto;
    }
    .map-content-grid {
        grid-column: 1;
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
    }
    .map-visual-box {
        padding: 30px 20px;
        min-height: 300px;
        border-right: none;
        border-bottom: 1px solid #1f242e;
    }
    .map-header h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .map-header p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    .svg-map-wrapper {
        padding: 10px 0;
        min-height: 200px;
        max-height: 50vh;
    }
    #map-container {
        max-height: 45vh;
        max-width: 100%;
    }
    #map-container svg {
        max-height: 40vh;
    }
    .map-info-box {
        padding: 20px 15px;
        max-height: 60vh;    /* ограничиваем высоту */
        overflow-y: auto;    /* включаем прокрутку */
    }
    .strike-card {
        padding: 15px;
    }
    .strike-company {
        font-size: 16px;
    }
    .strike-desc {
        font-size: 13px;
    }
    .timeline-region {
        font-size: 12px;
        margin-bottom: 20px;
    }
    #region-filter {
        font-size: 13px;
        padding: 8px;
        margin-bottom: 20px;
    }

    /* ----- МЕТОДОЛОГИЯ ----- */
    .methodology-trigger {
        padding: 20px 20px;
        font-size: 11px;
        text-align: left;
        letter-spacing: 0.5px;
    }
    .methodology-content {
        padding: 0 20px 30px 20px;
    }
    .methodology-inner h3 {
        font-size: 14px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    .methodology-inner p {
        font-size: 13px;
        line-height: 1.5;
    }
    .methodology-inner ul {
        font-size: 13px;
        padding-left: 15px;
    }
    .formula-block {
        padding: 10px 15px;
        font-size: 13px;
        overflow-x: auto;
    }

    /* ----- ПРОФСОЮЗ ----- */
    .union-section {
        grid-template-columns: 1fr;
        height: auto;         /* убираем height: 100% */
        min-height: auto;
    }
    .union-content-side {
        grid-column: 1;
        padding: 30px 20px 50px 20px;
        min-height: auto;
    }
    .union-two-col {
        gap: 25px;
        padding: 0;
    }
    .union-left {
        padding: 20px 0;
    }
    .union-right {
        padding: 0;
    }
    .union-heading {
        font-size: 28px;
    }
    .union-intro {
        font-size: 16px;
    }
    .union-scenario {
        padding: 14px 16px;
    }
    .union-quote p {
        font-size: 14px;
    }
    .union-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .union-main-btn,
    .union-secondary-btn {
        text-align: center;
        padding: 12px 20px;
        font-size: 13px;
    }

    /* ----- НАРУШИТЕЛИ (виджет) ----- */
    .companies-widget-section {
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
    }
    .widget-content-side {
        grid-column: 1;
        padding: 30px 20px 50px 20px;
        min-height: auto;
    }
    .widget-title {
        font-size: 28px;
    }
    .widget-subtitle {
        font-size: 14px;
    }
    .company-name {
        font-size: 14px;
    }
    .company-violations {
        font-size: 14px;
    }
    .company-rank {
        font-size: 12px;
        min-width: 22px;
        margin-right: 10px;
    }
    .company-item {
        padding: 8px 0;
    }

    /* ----- СКРЫТИЕ ЭЛЕМЕНТОВ ----- */
    .side-title {
        display: none;
    }
    .section-nav-vertical {
        position: fixed;
        left: 50%;
        top: -5px;
        transform: translateX(-50%);
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
    }
    .calculator-section,
    .library-section,
    .analytics-section,
    .map-section,
    .union-section,
    .companies-widget-section {
        min-height: auto;
        height: auto;
    }
}

@media (max-width: 480px) {
    .main-manifest h1 {
        font-size: clamp(22px, 6vw, 32px);
    }
    .main-manifest p {
        font-size: 14px;
    }
    .stat-number {
        font-size: 28px;
    }
    .calc-form-side h2 {
        font-size: 22px;
    }
    .result-value {
        font-size: 26px;
    }
    .book-title {
        font-size: 20px;
    }
    .analytics-header h2 {
        font-size: 24px;
    }
    .map-visual-box {
        padding: 20px 15px;
        min-height: 250px;
    }
    .map-header h2 {
        font-size: 20px;
    }
    .svg-map-wrapper {
        max-height: 40vh;
        min-height: 150px;
        padding: 5px 0;
    }
    #map-container {
        max-height: 35vh;
    }
    #map-container svg {
        max-height: 30vh;
    }
    .map-info-box {
        padding: 15px 10px;
        max-height: 60vh;
    }
    .strike-card {
        padding: 12px;
    }
    .strike-company {
        font-size: 14px;
    }
    .strike-desc {
        font-size: 12px;
    }
    .strike-meta {
        font-size: 10px;
    }
    .methodology-trigger {
        padding: 15px 15px;
        font-size: 10px;
    }
    .methodology-content {
        padding: 0 15px 20px 15px;
    }
    .methodology-inner h3 {
        font-size: 13px;
    }
    .methodology-inner p,
    .methodology-inner ul {
        font-size: 12px;
    }
    .formula-block {
        padding: 8px 12px;
        font-size: 12px;
    }
    .union-content-side {
        padding: 20px 15px 40px 15px;
    }
    .union-heading {
        font-size: 22px;
    }
    .union-intro {
        font-size: 14px;
    }
    .union-item h4 {
        font-size: 14px;
    }
    .union-item p {
        font-size: 13px;
    }
    .union-scenario h4 {
        font-size: 15px;
    }
    .union-scenario p,
    .union-scenario-list {
        font-size: 13px;
    }
    .union-quote p {
        font-size: 13px;
    }
    .widget-content-side {
        padding: 20px 15px 40px 15px;
    }
    .widget-title {
        font-size: 22px;
    }
    .company-name {
        font-size: 13px;
    }
    .company-violations {
        font-size: 13px;
    }
    .nav-links {
        gap: 5px;
        padding-top: 23px;
    }
    .section-nav-vertical {
        gap: 0px;
    }

    .calculator-section,
    .library-section,
    .analytics-section,
    .map-section,
    .union-section,
    .companies-widget-section {
        min-height: auto;
        height: auto;
    }
}

