/* ======================================================
   ОВК Мануфактуринг — Refined Landing Styles
   ====================================================== */

:root {
    --blue-dark: #0e1932;
    --blue-hero: #0b1a3a;
    --green-primary: #5ba62b;
    --green-primary-dark: #4c8d23;
    --green-light: #e6f4ea;
    --green-text: #1e8e3e;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --bg-light: #f7f9fc;
    --bg-light-strong: #f1f5fa;
    --border-soft: rgba(17, 66, 140, 0.1);
    --white: #ffffff;
    --shadow-soft: 0 16px 40px rgba(11, 31, 71, 0.08);
    --shadow-card: 0 24px 60px rgba(9, 27, 66, 0.12);
    --shadow-lift: 0 28px 60px rgba(9, 27, 66, 0.2);
    --radius-lg: 28px;
    --radius-md: 24px;
    --font: "Inter", sans-serif;
    --container-w: 1240px;
    --header-h: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow-x: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

section[id],
footer[id] {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100%, var(--container-w));
    margin: 0 auto;
    padding: 0 40px;
}

/* ================== BUTTONS ================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 14px 32px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn--primary {
    background-color: var(--green-primary);
    color: var(--white);
    border: 2px solid var(--green-primary);
    box-shadow: 0 14px 30px rgba(91, 166, 43, 0.24);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background-color: var(--green-primary-dark);
    border-color: var(--green-primary-dark);
}

.btn--outline-white {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(8px);
}

.btn--outline-white:hover,
.btn--outline-white:focus-visible {
    border-color: rgba(255, 255, 255, 0.9);
    background-color: rgba(255, 255, 255, 0.12);
}

.btn--outline-green {
    background-color: var(--white);
    color: var(--green-primary);
    border: 1px solid var(--green-primary);
    box-shadow: 0 12px 28px rgba(91, 166, 43, 0.08);
}

.btn--outline-green:hover,
.btn--outline-green:focus-visible {
    background-color: var(--green-primary);
    color: var(--white);
}

/* ================== HEADER ================== */
.header {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(12, 29, 62, 0.06);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.header.scrolled {
    border-color: rgba(12, 29, 62, 0.1);
    box-shadow: 0 16px 36px rgba(12, 29, 62, 0.08);
}

.header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header__logo-img {
    height: 40px;
}

.header__logo-text {
    font-size: 15px;
    font-weight: 800;
    color: #11428c;
    line-height: 1.1;
}

.header__logo-sub {
    font-size: 11px;
    font-weight: 500;
    color: #4a5b71;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 36px;
    min-width: 0;
}

.header__link {
    position: relative;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.25s ease;
}

.header__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--green-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.header__link:hover,
.header__link:focus-visible {
    color: var(--green-primary);
}

.header__link:hover::after,
.header__link:focus-visible::after {
    transform: scaleX(1);
}

.header__cta {
    flex-shrink: 0;
    min-height: 42px;
    padding: 10px 24px;
    font-size: 13px;
}

.header__menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid rgba(17, 66, 140, 0.12);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(17, 66, 140, 0.08);
    cursor: pointer;
}

.header__menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue-hero);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.header.nav-open .header__menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header.nav-open .header__menu-toggle span:nth-child(2) {
    opacity: 0;
}

.header.nav-open .header__menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ================== HERO ================== */
.hero {
    position: relative;
    padding-top: var(--header-h);
    background: var(--white);
    padding-bottom: clamp(108px, 8vw, 138px);
}

.hero__stage {
    position: relative;
    background: linear-gradient(135deg, #091b40 0%, #133d96 100%);
    overflow: visible;
}

.hero__shell {
    position: relative;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero__container {
    position: relative;
    z-index: 6;
    display: flex;
    align-items: flex-start;
    min-height: clamp(520px, 40vw, 640px);
    padding-top: clamp(36px, 3.8vw, 62px);
    padding-bottom: clamp(74px, 5.8vw, 98px);
}

.hero__content {
    position: relative;
    z-index: 2;
    flex: 0 1 640px;
    padding-top: 0;
}

.hero__title {
    font-size: clamp(38px, 4.35vw, 60px);
    font-weight: 800;
    color: var(--white);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    max-width: 13ch;
}

.hero__title-line {
    display: block;
}

.hero__subtitle {
    max-width: 620px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 34px;
    line-height: 1.62;
}

.hero__subtitle strong {
    color: var(--white);
    font-weight: 700;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero__image {
    position: absolute;
    right: clamp(8px, 3vw, 56px);
    bottom: clamp(-56px, -3.4vw, -34px);
    z-index: 6;
    width: min(27.8vw, 326px);
    pointer-events: none;
}

.hero__landing-shadow {
    position: absolute;
    left: 55%;
    bottom: 18px;
    width: min(72%, 230px);
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(5, 18, 46, 0.42) 0%, rgba(5, 18, 46, 0.18) 46%, rgba(5, 18, 46, 0) 74%);
    filter: blur(6px);
    opacity: 0;
    transform: translateX(-50%) scale(0.72);
    transition: opacity 0.9s ease, transform 1.1s ease;
}

.hero__kns {
    width: 100%;
    height: auto;
    filter: drop-shadow(-14px 26px 38px rgba(0, 0, 0, 0.28));
    opacity: 0;
    transform: translate3d(0, -170px, 0) scale(0.98);
}

.hero__image.visible .hero__landing-shadow {
    opacity: 0.95;
    transform: translateX(-50%) scale(1);
}

.hero__image.visible .hero__kns {
    animation: equipment-drop 1.35s cubic-bezier(0.22, 1, 0.24, 1) forwards;
}

@keyframes equipment-drop {
    0% {
        opacity: 0;
        transform: translate3d(0, -170px, 0) scale(0.98);
    }
    68% {
        opacity: 1;
        transform: translate3d(0, 20px, 0) scale(1.01);
    }
    82% {
        transform: translate3d(0, -10px, 0) scale(1);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }
}

.hero__stats-shell {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    transform: translateY(50%);
}

.stats-bar {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 clamp(22px, 4vw, 56px);
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.stats-bar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr) 1px minmax(0, 1fr);
    align-items: center;
    width: min(calc(100% - clamp(220px, 22vw, 312px)), 860px);
    padding: 38px 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    min-height: 126px;
}

.stat-item__icon {
    width: clamp(42px, 2.8vw, 48px);
    height: clamp(42px, 2.8vw, 48px);
    min-width: 42px;
    min-height: 42px;
    flex: 0 0 auto;
    margin-bottom: 8px;
    object-fit: contain;
}

.stat-item__number-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.stat-item__number,
.stat-item__plus {
    font-size: clamp(34px, 3.2vw, 42px);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.stat-item__label {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.45;
}

.stat-divider {
    width: 1px;
    height: 74px;
    background: linear-gradient(180deg, rgba(17, 66, 140, 0) 0%, rgba(17, 66, 140, 0.14) 18%, rgba(17, 66, 140, 0.14) 82%, rgba(17, 66, 140, 0) 100%);
    justify-self: center;
}

/* ================== SHARED SECTIONS ================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.section-header__left {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.section-header a.btn {
    align-self: center;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    font-size: clamp(16px, 1.35vw, 18px);
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.01em;
}

.section-tag--text {
    color: var(--green-primary);
}

.section-tag--pill {
    width: fit-content;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--green-light);
    color: var(--green-text);
}

.section-title {
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

/* ================== CLIENTS ================== */
.clients {
    padding: 40px 0 90px;
}

.clients .section-header {
    justify-content: space-between;
}

.clients .section-header__left {
    align-items: flex-start;
}

.clients__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.clients__row {
    display: contents;
}

.client-logo {
    flex: 0 0 calc(25% - 17px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 124px;
    padding: 22px 24px;
    border-radius: 24px;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    outline: none;
    transition: transform 0.35s ease;
}

.client-logo img {
    width: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
    filter: grayscale(1) saturate(0.2);
    opacity: 0.66;
    transform: translateY(0) scale(1);
    transition: filter 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
}

.client-logo:hover,
.client-logo:focus-visible {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: none;
    background: transparent;
}

.client-logo:hover img,
.client-logo:focus-visible img {
    filter: grayscale(0) saturate(1);
    opacity: 1;
    transform: scale(1.05);
}

/* ================== MAP SECTION ================== */
.map-section {
    --map-height: clamp(418px, 36.3vw, 484px);
    position: relative;
    overflow: hidden;
    min-height: var(--map-height);
    padding: 0;
    background: #e9f1ed;
}

.map-section__container {
    position: relative;
    width: 100%;
    min-height: var(--map-height);
}

.map-section__content {
    position: relative;
    z-index: 3;
    min-height: var(--map-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: min(100%, var(--container-w));
    margin: 0 auto;
    padding: 0 40px;
    pointer-events: none;
}

.map-section__content > * {
    pointer-events: auto;
}

.map-section__copy {
    max-width: 460px;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

.map-btn {
    margin-top: 34px;
    align-self: flex-start;
    width: auto;
    background-color: var(--blue-hero);
    border-color: var(--blue-hero);
    box-shadow: 0 14px 30px rgba(17, 66, 140, 0.22);
}

.map-btn:hover,
.map-btn:focus-visible {
    background-color: #11428c;
    border-color: #11428c;
}

.map-section__map {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.projects-map {
    width: 100%;
    height: 100%;
    min-height: var(--map-height);
    background: #dfe8f2;
}

.projects-map.map-fallback {
    background: url("КАРТА.png") center / cover no-repeat;
}

.map-section__map::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 27%, rgba(255, 255, 255, 0.54) 50%, rgba(255, 255, 255, 0) 76%);
}

.project-marker {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    padding: 0;
    border-radius: 50%;
    background: var(--green-primary);
    border: 4px solid var(--white);
    box-shadow: 0 8px 24px rgba(7, 56, 47, 0.28);
    appearance: none;
    line-height: 0;
    flex: 0 0 18px;
    cursor: pointer;
}

.project-marker::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(91, 166, 43, 0.34);
    opacity: 0.6;
    animation: marker-pulse 2.4s ease-out infinite;
}

@keyframes marker-pulse {
    0% {
        transform: scale(0.7);
        opacity: 0.72;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.maplibregl-map,
.maplibregl-canvas-container,
.maplibregl-canvas {
    width: 100%;
    height: 100%;
}

.maplibregl-canvas {
    filter: saturate(0.98) contrast(1.02);
}

.maplibregl-popup-content {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(11, 26, 58, 0.94);
    color: var(--white);
    box-shadow: 0 18px 32px rgba(11, 26, 58, 0.22);
}

.maplibregl-popup-content strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.maplibregl-popup-content span {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.35;
}

.maplibregl-popup-tip {
    border-top-color: rgba(11, 26, 58, 0.94) !important;
}

.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-bottom-left {
    z-index: 4;
}

.maplibregl-ctrl-attrib {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(8px);
    border-radius: 8px 0 0 0;
}

.maplibregl-ctrl-attrib a {
    color: #205fb6;
}

/* ================== CATALOG ================== */
.catalog {
    padding: 108px 0 65px 0;
    background: var(--white);
    overflow: hidden;
}

.catalog .section-header {
    justify-content: space-between;
}

.catalog .section-header__left {
    align-items: flex-start;
}

.catalog__slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 25px;
    padding: 30px 0 80px;
    overflow: hidden; /* Changed from visible to hidden to constrain the gradient pseudo-elements */
}

.catalog__slider-wrapper::before,
.catalog__slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 15vw;
    z-index: 10;
    pointer-events: none;
}

.catalog__slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.catalog__slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
}

.catalog__slider {
    display: flex;
    align-items: stretch;
    position: relative;
    will-change: transform;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

.catalog__slider:active {
    cursor: grabbing;
}

.catalog-slide-wrapper {
    flex: 0 0 auto;
    width: clamp(305px, 28.5vw, 400px);
    padding: 0 15px;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    opacity: 0.2;
    transform: scale(0.7);
    z-index: 1;
}

.catalog-slide-wrapper.active {
    opacity: 1;
    transform: scale(1.1);
    z-index: 4;
}

.catalog-slide-wrapper.prev-1,
.catalog-slide-wrapper.next-1 {
    opacity: 0.6;
    transform: scale(0.9);
    z-index: 3;
}

.catalog-slide-wrapper.prev-2,
.catalog-slide-wrapper.next-2 {
    opacity: 0.35;
    transform: scale(0.8);
    z-index: 2;
}

.catalog-card {
    position: relative;
    height: 100%;
    min-height: 405px;
    border-radius: 26px;
    overflow: hidden;
    background: #edf4fb;
    box-shadow: 0 14px 36px rgba(12, 29, 62, 0.08);
    border: 1px solid rgba(17, 66, 140, 0.08);
    isolation: isolate;
    outline: none;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.catalog-slide-wrapper:not(.active) .catalog-card {
    pointer-events: none;
}

.catalog-card__media,
.catalog-card__media img {
    width: 100%;
    height: 100%;
}

.catalog-card__media {
    position: absolute;
    inset: 0;
}

.catalog-card__media img {
    object-fit: cover;
    transition: transform 0.9s ease;
}

.catalog-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(9, 27, 66, 0.02) 0%, rgba(9, 27, 66, 0.16) 38%, rgba(9, 27, 66, 0.92) 100%);
    transition: opacity 0.4s ease, background 0.4s ease;
}

.catalog-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 430px;
    padding: 28px 28px 30px;
    color: var(--white);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.catalog-card__title {
    max-width: 15ch;
    font-size: clamp(24px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.catalog-card__facts {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.45s ease;
}

.catalog-card__facts li {
    position: relative;
    padding-left: 18px;
}

.catalog-card__facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.56em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-primary);
}

.catalog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 15px;
    font-weight: 700;
    color: #d8f3bf;
}

.catalog-card__link::after {
    content: "→";
    transition: transform 0.3s ease;
}

.catalog-card:hover,
.catalog-card:focus-visible {
    transform: translateY(-8px);
    border-color: rgba(91, 166, 43, 0.24);
    box-shadow: var(--shadow-lift);
}

.catalog-card:hover .catalog-card__media img,
.catalog-card:focus-visible .catalog-card__media img {
    transform: scale(1.06);
}

.catalog-card:hover .catalog-card__overlay,
.catalog-card:focus-visible .catalog-card__overlay {
    background: linear-gradient(180deg, rgba(9, 27, 66, 0.02) 0%, rgba(9, 27, 66, 0.12) 28%, rgba(9, 27, 66, 0.96) 100%);
}

.catalog-card:hover .catalog-card__content,
.catalog-card:focus-visible .catalog-card__content {
    transform: translateY(-6px);
}

.catalog-card:hover .catalog-card__facts,
.catalog-card:focus-visible .catalog-card__facts {
    opacity: 1;
    max-height: 220px;
}

.catalog-card:hover .catalog-card__link::after,
.catalog-card:focus-visible .catalog-card__link::after {
    transform: translateX(4px);
}

.company {
    padding: 0 0 112px;
    background: var(--white);
}

.company__card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: center;
    gap: clamp(34px, 5vw, 72px);
    padding: clamp(42px, 5vw, 68px);
    border: 1px solid rgba(17, 66, 140, 0.08);
    border-radius: 34px;
    background: linear-gradient(135deg, #f6f9ff 0%, #eef7ef 100%);
    box-shadow: 0 24px 70px rgba(11, 26, 58, 0.1);
    overflow: hidden;
}

.company__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
}

.company__text {
    max-width: 600px;
    margin-top: 22px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.75;
}

.company__facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 520px;
    margin-top: 28px;
}

.company__fact {
    padding: 18px;
    border: 1px solid rgba(17, 66, 140, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
}

.company__fact strong {
    display: block;
    color: var(--blue-hero);
    font-size: 24px;
    line-height: 1;
}

.company__fact span {
    display: block;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

.company__media {
    display: flex;
    flex-direction: column;
    align-self: center;
    align-items: flex-end;
    justify-content: center;
    min-height: 100%;
}

.company__details-btn {
    align-self: flex-end;
    margin-bottom: 24px;
}

.company__media img {
    display: block;
    width: min(100%, 560px);
    height: auto;
    margin: 0;
    border-radius: 28px;
    box-shadow: 0 22px 48px rgba(11, 26, 58, 0.14);
}

/* ================== FOOTER ================== */
.footer {
    background-color: var(--blue-dark);
    color: #a9b5c6;
    padding: 82px 0 30px;
    font-size: 14px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer__logo-img {
    height: 48px;
}

.footer__logo-text {
    color: var(--white);
    font-weight: 800;
    font-size: 18px;
    line-height: 1.1;
}

.footer__logo-sub {
    font-size: 11px;
    font-weight: 500;
}

.footer__desc,
.footer__address {
    line-height: 1.65;
}

.footer__title {
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer__link {
    display: block;
    margin-bottom: 14px;
    transition: color 0.25s ease;
}

.footer__link:hover,
.footer__link:focus-visible {
    color: var(--white);
}

.footer__link--bold {
    font-weight: 700;
    color: var(--white);
    font-size: 16px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
}

/* ================== ANIMATIONS ================== */
.reveal-text,
.reveal-stat,
.scroll-reveal {
    opacity: 0;
}

.reveal-text {
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-stat {
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.scroll-reveal {
    transform: translateY(42px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.client-logo.scroll-reveal {
    transform: translateY(44px) scale(0.96);
}

.catalog-card.scroll-reveal {
    transform: translateY(44px) scale(0.98);
}

.reveal-text.visible,
.reveal-stat.visible,
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================== RESPONSIVE ================== */
@media (max-width: 1180px) {
    .container {
        padding: 0 28px;
    }

    .header__nav {
        gap: 26px;
    }

    .hero__image {
        right: 34px;
        bottom: -46px;
        width: min(26.8vw, 298px);
    }

    .clients__row--3 {
        padding: 0;
    }
}

@media (max-width: 1536px) and (min-width: 1025px) {
    .hero {
        padding-bottom: clamp(126px, 9vw, 154px);
    }

    .hero__container {
        min-height: clamp(480px, 36vw, 560px);
        padding-top: clamp(34px, 3vw, 48px);
        padding-bottom: clamp(88px, 7vw, 116px);
    }

    .hero__title {
        font-size: clamp(42px, 4vw, 54px);
        margin-bottom: 20px;
    }

    .hero__subtitle {
        margin-bottom: 24px;
    }

    .hero__image {
        right: clamp(18px, 3.8vw, 58px);
        bottom: clamp(-76px, -5vw, -48px);
        width: min(24.5vw, 300px);
    }

    .hero__stats-shell {
        transform: translateY(57%);
    }

    .stats-bar__inner {
        width: min(calc(100% - clamp(214px, 22vw, 300px)), 820px);
        padding: 30px 0;
    }

    .stat-item {
        min-height: 110px;
    }
}

@media (max-width: 1024px) {
    .hero__container {
        min-height: 620px;
        padding-bottom: 68px;
    }

    .hero__content {
        flex-basis: 560px;
    }

    .hero__image {
        right: 22px;
        width: min(25.8vw, 250px);
        bottom: -38px;
    }

    .hero__landing-shadow {
        bottom: 18px;
    }

    .stats-bar__inner {
        width: min(calc(100% - 220px), 720px);
        padding: 34px 0;
    }

    .clients__grid {
        gap: 30px;
    }

    .client-logo {
        flex: 0 0 calc(50% - 15px);
        min-height: 160px;
        padding: 30px;
    }

    .client-logo img {
        max-height: 110px;
        max-width: 90%;
        filter: grayscale(0) saturate(1);
        opacity: 1;
    }

    .map-section {
        --map-height: 440px;
    }

    .map-section__content {
        padding: 0 28px;
    }

    .catalog__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company__card {
        grid-template-columns: 1fr;
    }

    .company__media {
        order: -1;
        align-items: center;
        min-height: auto;
    }

    .company__media img {
        max-height: 520px;
        object-fit: cover;
        margin: 0 auto;
    }

    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 30px;
    }
}

@media (max-width: 920px) {
    :root {
        --header-h: 70px;
    }

    .header__inner {
        justify-content: space-between;
        height: 100%;
    }

    .header__nav {
        position: absolute;
        top: calc(100% + 12px);
        right: 28px;
        z-index: 1001;
        display: flex;
        width: min(360px, calc(100vw - 40px));
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        border: 1px solid rgba(17, 66, 140, 0.1);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 24px 60px rgba(9, 27, 66, 0.16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    .header.nav-open .header__nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .header__link {
        display: flex;
        align-items: center;
        min-height: 46px;
        padding: 0 14px;
        border-radius: 14px;
        font-size: 15px;
        font-weight: 700;
    }

    .header__link::after {
        display: none;
    }

    .header__link:hover,
    .header__link:focus-visible {
        background: var(--green-light);
    }

    .header__menu-toggle {
        display: flex;
    }

    .hero__container {
        min-height: 580px;
    }

    .hero__image {
        right: 10px;
        width: min(25.8vw, 214px);
        bottom: -28px;
    }

    .clients__grid {
        gap: 40px 20px;
    }
    
    .client-logo {
        min-height: 180px;
        padding: 40px;
    }

    .client-logo img {
        max-height: 130px;
        max-width: 100%;
    }

    .client-logo.scroll-reveal {
        transform: translateY(34px) scale(1);
    }

    .map-section {
        --map-height: 430px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 70px;
    }

    .container {
        padding: 0 20px;
    }

    .header__cta {
        min-height: 40px;
        padding: 9px 18px;
        font-size: 12px;
        display: none;
    }

    .hero__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 10px;
    }

    .hero__content {
        display: flex;
        width: 100%;
        max-width: 560px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero__title {
        max-width: 12ch;
        font-size: clamp(34px, 7vw, 46px);
    }

    .hero__subtitle {
        font-size: 16px;
        max-width: 32ch;
    }

    .hero__buttons {
        width: min(100%, 360px);
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .hero__image {
        position: relative;
        right: auto;
        bottom: auto;
        align-self: center;
        width: min(72vw, 330px);
        margin: 26px auto 0;
    }

    .hero__landing-shadow {
        left: 50%;
        bottom: 18px;
        width: 68%;
    }

    .hero__stats-shell {
        position: relative;
        transform: none;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 18px;
    }

    .stats-bar {
        border-radius: 24px;
    }

    .stats-bar__inner {
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        padding: 26px 0;
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        min-height: auto;
        padding: 12px 0;
    }

    .stat-item__icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
    }

    .section-header {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        margin-bottom: 40px;
    }

    .clients .section-header__left {
        align-items: center;
        text-align: center;
    }

    .catalog {
        padding: 84px 0;
    }

    .company {
        padding-bottom: 84px;
    }

    .company__card {
        padding: 28px;
        border-radius: 28px;
        gap: 28px;
    }

    .company__facts {
        grid-template-columns: 1fr;
    }

    .map-section {
        --map-height: 462px;
    }

    .map-section__content {
        justify-content: flex-start;
        padding: 22px 20px 0;
    }

    .map-section__copy {
        max-width: 360px;
    }

    .catalog__grid {
        grid-template-columns: 1fr;
    }

    .catalog-card,
    .catalog-card__content {
        min-height: 400px;
    }

    .catalog-card__facts {
        opacity: 1;
        max-height: 220px;
    }

    .company__details-btn {
        margin-top: 2px;
    }

    .footer {
        padding-top: 72px;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 770px) {
    .hero__container {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 10px;
    }

    .hero__content {
        display: flex;
        width: 100%;
        max-width: 560px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero__image {
        display: none;
    }

    .hero__stats-shell {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        transform: translateY(-5%);
        opacity: 1;
        border-radius: 24px;
        background: transparent;
        margin-top: 18px;
    }

    .stats-bar {
        padding: 0;
        border: 0;
        border-radius: 24px;
        background: transparent;
        box-shadow: none;
    }

    .stats-bar__inner {
        grid-template-columns: 1fr;
        gap: 13.4px;
        width: 100%;
        padding: 0;
        background: transparent !important;
        box-shadow: none !important;
        transform: translateY(-5%);
    }

    .stat-divider {
        display: none;
    }

    .stat-item {
        min-height: auto;
        gap: 5px;
        padding: 15px 18px 16px;
        border: 1px solid rgba(17, 66, 140, 0.08);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 12px 28px rgba(12, 29, 62, 0.08);
    }

    .stat-item__icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
        margin-bottom: 6px;
    }

    .stat-item__number,
    .stat-item__plus {
        font-size: clamp(30px, 7vw, 32px);
    }

    .stat-item__label {
        font-size: 13px;
        line-height: 1.4;
    }

    .clients {
        margin-top: -11%;
    }
}

@media (max-width: 560px) {
    :root {
        --header-h: 70px;
    }

    .header__inner {
        gap: 10px 14px;
    }

    .header__logo-img {
        height: 34px;
    }

    .header__logo-text {
        font-size: 14px;
    }

    .header__cta {
        display: none;
    }

    .hero__container {
        padding-top: 36px;
        padding-bottom: 16px;
    }

    .hero__subtitle br {
        display: none;
    }

    .hero__buttons {
        width: 100%;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .hero__image {
        width: min(84vw, 310px);
        margin-top: 18px;
    }

    .hero__stats-shell {
        margin-top: 16px;
    }

    .clients {
        padding-bottom: 76px;
    }

    .clients__grid {
        gap: 16px 12px;
    }

    .client-logo {
        flex: 0 0 calc(50% - 6px);
        min-height: 100px;
        padding: 14px;
    }

    .client-logo img {
        max-width: 100%;
        max-height: 60px;
    }

    .client-logo.scroll-reveal {
        transform: translateY(28px) scale(1);
    }

    .map-section {
        --map-height: 430px;
    }

    .map-section__map::after {
        background: linear-gradient(180deg, rgba(241, 245, 250, 0.56) 0%, rgba(241, 245, 250, 0.28) 28%, rgba(241, 245, 250, 0.02) 56%), linear-gradient(90deg, rgba(241, 245, 250, 0.995) 0%, rgba(241, 245, 250, 0.99) 48%, rgba(241, 245, 250, 0.92) 68%, rgba(241, 245, 250, 0.52) 84%, rgba(241, 245, 250, 0) 98%);
    }

    .catalog-card,
    .catalog-card__content {
        min-height: 370px;
    }

    .catalog-card__content {
        padding: 24px 22px 24px;
    }

    .catalog-card__facts {
        font-size: 13px;
    }

    .company__card {
        padding: 22px;
        border-radius: 24px;
    }

    .company__media img {
        width: 100%;
        border-radius: 20px;
    }

    .company__details-btn {
        width: auto;
        align-self: center;
        margin-bottom: 18px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 0 14px;
    }
}

@media (max-width: 768px) {
    .clients__grid {
        gap: 16px 12px;
    }

    .client-logo {
        flex: 0 0 calc(50% - 6px);
        min-height: 100px;
        padding: 14px;
    }

    .client-logo img {
        max-width: 100%;
        max-height: 60px;
        width: auto;
        transform: none;
    }
    
    .client-logo.scroll-reveal {
        transform: translateY(28px) scale(1);
    }
}

/* ================== TOUCH AND REDUCED MOTION ================== */
body.is-touch .client-logo.visible img {
    filter: grayscale(0) saturate(1);
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .client-logo.visible img {
        filter: grayscale(0) saturate(1);
        opacity: 1;
    }

    .client-logo:hover,
    .client-logo:focus-visible {
        transform: translateY(0);
    }

    .catalog-card:hover {
        transform: none;
    }

    .catalog-card:hover .catalog-card__media img {
        transform: none;
    }

    .catalog-card:hover .catalog-card__content {
        transform: none;
    }

    .catalog-card:hover .catalog-card__facts {
        opacity: 1;
        max-height: 220px;
    }
}

body.reduced-motion *,
body.reduced-motion *::before,
body.reduced-motion *::after {
    scroll-behavior: auto !important;
}

body.reduced-motion .hero__kns,
body.reduced-motion .hero__landing-shadow,
body.reduced-motion .reveal-text,
body.reduced-motion .reveal-stat,
body.reduced-motion .scroll-reveal {
    animation: none !important;
    transition: none !important;
}

body.reduced-motion .hero__image.visible .hero__kns {
    opacity: 1;
    transform: none;
}

body.reduced-motion .hero__image.visible .hero__landing-shadow {
    opacity: 0.95;
    transform: translateX(-50%) scale(1);
}

body.reduced-motion .project-marker::after {
    animation: none !important;
}

body.reduced-motion .reveal-text,
body.reduced-motion .reveal-stat,
body.reduced-motion .scroll-reveal {
    opacity: 1;
    transform: none;
}


/* ==========================================
   PROJECTS PAGE
   ========================================== */
.page-projects {
    background-color: #f7f9fc;
}

.page-projects .header {
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.projects-section {
    padding: 60px 0 100px;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.projects-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.projects-subtitle {
    font-size: clamp(16px, 1.35vw, 18px);
    font-weight: 700;
    color: #5ba62b;
}

.projects-title {
    font-size: 52px;
    font-weight: 900;
    color: #111;
    margin: 0;
    line-height: 1;
}

.page-catalog .projects-title-wrap,
.page-catalog .projects-filters-top-wrap {
    min-width: 0;
}

.page-catalog #catalog-page-title {
    max-width: 100%;
}

.projects-filters-top-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.projects-filters-label {
    font-size: 11px;
    font-weight: 700;
    color: #9aa3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.projects-filters-top {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.region-filter-btn {
    background: #ffffff;
    border: 1px solid #e0e5eb;
    border-radius: 40px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #667085;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.region-filter-btn:hover,
.region-filter-btn.active {
    color: #00529F;
    border-color: #00529F;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 82, 159, 0.08);
}

.projects-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

.projects-sidebar-wrap {
    position: sticky;
    top: 100px;
}

.projects-sidebar-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.projects-sidebar {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.object-filter-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f2f4f7;
    padding: 16px 0;
    font-size: 15px;
    color: #667085;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    font-family: inherit;
    position: relative;
    padding-left: 20px;
}

.object-filter-btn:last-child {
    border-bottom: none;
}

.object-filter-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.object-filter-btn:hover,
.object-filter-btn.active {
    color: #101828;
    font-weight: 700;
}

.object-filter-btn:hover::before,
.object-filter-btn.active::before {
    background-color: #5ba62b;
}

.object-filter-count {
    color: #5ba62b;
    font-weight: 700;
    font-size: 14px;
}

.projects-status-bar {
    background: #ffffff;
    border-radius: 40px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    margin-bottom: 30px;
    font-size: 15px;
    color: #667085;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.projects-status-bar strong {
    color: #101828;
    font-size: 18px;
    margin-right: 6px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

#full-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)) !important;
}

.project-card {
    background-color: #f9fbf9;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s forwards ease-out;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.06);
}

.project-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.project-card__content {
    padding: 24px 28px 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card__tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.project-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.project-tag--type {
    background-color: #eef7e8;
    color: #4b8c22;
}

.project-tag--region {
    background-color: #eef4f9;
    color: #00529F;
}

.project-card__city {
    font-size: 11px;
    font-weight: 800;
    color: #8895a7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.project-card__title {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin: 0 0 24px 0;
    line-height: 1.25;
}

.project-card__specs {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    border-top: 1px solid #eaeeeb;
    padding-top: 20px;
}

.project-card__spec {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}

.project-card__spec-label {
    color: #8895a7;
}

.project-card__spec-value {
    color: #111;
    font-weight: 700;
}

@media (max-width: 920px) {
    .projects-layout {
        grid-template-columns: 1fr;
    }
    .projects-sidebar-wrap {
        position: static;
    }
    .projects-filters-top-wrap {
        align-items: flex-start;
    }
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 600px) {
    .projects-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-catalog #catalog-page-title {
        font-size: clamp(34px, 10vw, 44px);
        line-height: 0.98;
    }

    .page-catalog .projects-filters-top-wrap {
        width: 100%;
        align-items: flex-start !important;
    }

    .page-catalog .projects-filters-top {
        width: 100%;
    }

    .page-catalog .region-filter-btn {
        padding: 10px 24px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    }
}

/* ==========================================
   SCROLL TO TOP BUTTON & HEADER ACTIVE LINK
   ========================================== */
.header__link.active {
    color: var(--green-primary);
}
.header__link.active::after {
    transform: scaleX(1);
}

.scroll-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--green-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 4px 12px rgba(91, 166, 43, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #4c8e23;
    transform: translateY(-5px);
}

/* ==========================================
   PAGINATION
   ========================================== */
.projects-pagination {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    border-color: var(--green-primary);
    color: var(--green-primary);
}

.pagination-btn.active {
    background-color: var(--green-primary);
    border-color: var(--green-primary);
    color: white;
    font-weight: bold;
}

/* ==========================================
   DOCUMENTS PAGE
   ========================================== */
.page-documents {
    background-color: #f7f9fc;
}

.page-documents .header {
    position: relative;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.documents-section {
    padding: 58px 0 108px;
}

.documents-hero {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.documents-hero__text {
    min-width: 0;
}

.documents-title {
    margin-top: 8px;
}

.documents-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
    color: #9aa3af;
    font-size: 14px;
}

.documents-breadcrumbs a {
    transition: color 0.2s ease;
}

.documents-breadcrumbs a:hover,
.documents-breadcrumbs a:focus-visible {
    color: var(--green-primary);
}

.documents-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.documents-sidebar {
    position: sticky;
    top: 96px;
    overflow: hidden;
    border: 1px solid rgba(17, 66, 140, 0.08);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(12, 29, 62, 0.04);
}

.documents-sidebar__title {
    padding: 20px 22px 16px;
    color: #111827;
    font-size: 15px;
    font-weight: 800;
}

.documents-sidebar__links {
    display: grid;
}

.documents-sidebar__link {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 22px;
    border-top: 1px solid #eef1f5;
    color: #667085;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.documents-sidebar__link:hover,
.documents-sidebar__link:focus-visible,
.documents-sidebar__link.active {
    color: #00529F;
    background-color: #f3f8ff;
}

.documents-sidebar__link.active {
    font-weight: 800;
    box-shadow: inset 4px 0 0 var(--green-primary);
}

.documents-sidebar__group {
    border-top: 1px solid #eef1f5;
}

.documents-sidebar__group-title {
    padding: 18px 22px 10px;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
}

.documents-sidebar__sublinks {
    display: grid;
    padding: 0 0 10px;
}

.documents-sidebar__sublink {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 22px 0 34px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.documents-sidebar__sublink:hover,
.documents-sidebar__sublink:focus-visible {
    color: #00529F;
    background-color: #f3f8ff;
}

.documents-content {
    min-width: 0;
}

.documents-content__header {
    margin-bottom: 28px;
}

.documents-content__header h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.15;
}

.documents-content__header p {
    max-width: 820px;
    margin: 0;
    color: #596579;
    font-size: 16px;
    line-height: 1.65;
}

.documents-content__header a {
    color: #00529F;
    font-weight: 700;
}

.documents-list {
    overflow: hidden;
    border: 1px solid rgba(17, 66, 140, 0.08);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(12, 29, 62, 0.05);
}

.document-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 18px;
    align-items: center;
    min-height: 104px;
    padding: 24px 28px;
    border-bottom: 1px solid #eef1f5;
    transition: background-color 0.2s ease;
}

.document-card:last-child {
    border-bottom: none;
}

.document-card:hover {
    background-color: #fbfdff;
}

.document-card__icon {
    position: relative;
    width: 38px;
    height: 46px;
    border: 2px solid #ccd3dc;
    border-radius: 6px;
    background: #ffffff;
}

.document-card__icon::before {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-left: 2px solid #ccd3dc;
    border-bottom: 2px solid #ccd3dc;
    border-radius: 0 4px 0 3px;
    background: linear-gradient(135deg, #f7f9fc 50%, #ffffff 50%);
}

.document-card__icon span {
    position: absolute;
    left: 50%;
    bottom: 9px;
    transform: translateX(-50%);
    padding: 3px 6px;
    border-radius: 5px;
    background: #00529F;
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
}

.document-card__body {
    min-width: 0;
}

.document-card__body h3 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.document-card__body p {
    margin: 0;
    color: #8a94a3;
    font-size: 14px;
    font-weight: 700;
}

.document-card__download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dde3eb;
    border-radius: 12px;
    color: #00529F;
    background: #ffffff;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.document-card__download:hover,
.document-card__download:focus-visible {
    transform: translateY(-2px);
    border-color: var(--green-primary);
    background-color: var(--green-primary);
    color: #ffffff;
}

.documents-empty {
    padding: 34px;
    color: #667085;
    font-weight: 700;
}

@media (max-width: 920px) {
    .documents-layout {
        grid-template-columns: 1fr;
    }

    .documents-sidebar {
        position: static;
    }
}

@media (max-width: 600px) {
    .documents-section {
        padding: 44px 0 84px;
    }

    .documents-title {
        font-size: clamp(34px, 10vw, 44px);
    }

    .documents-layout {
        gap: 24px;
    }

    .documents-content__header h2 {
        font-size: 24px;
    }

    .documents-content__header p {
        font-size: 15px;
    }

    .document-card {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 15px;
        padding: 22px 18px;
    }

    .document-card__download {
        grid-column: 2;
        width: 100%;
        height: 42px;
        margin-top: 6px;
    }

    .document-card__body h3 {
        font-size: 16px;
    }
}
