.references-page { background: #fff; color: #11233e; }
.references-hero { position: relative; min-height: 560px; overflow: hidden; background: linear-gradient(90deg, rgba(4, 22, 48, 0.97) 0%, rgba(4, 22, 48, 0.8) 42%, rgba(4, 22, 48, 0.22) 76%, rgba(4, 22, 48, 0.34) 100%), url("https://z.commonsupport.com/php/nauka/assets/images/slides/slide-v1-3.jpg") center / cover; }
.references-hero::after { content: ""; position: absolute; right: 7%; bottom: -170px; width: 500px; aspect-ratio: 1; border: 1px solid rgba(242, 177, 29, 0.25); border-radius: 50%; box-shadow: 0 0 0 58px rgba(255, 255, 255, 0.035), 0 0 0 116px rgba(255, 255, 255, 0.025); }
.references-hero__content { position: relative; z-index: 1; min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 180px 0 60px; text-align: center; }
.references-hero__eyebrow, .section-kicker { margin: 0 0 18px; color: var(--logo-gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.references-hero h1, .reference-listing h2, .references-closing h2 { margin: 0; font-family: "Outfit", sans-serif; font-weight: 700; letter-spacing: -0.055em; }
.references-hero h1 { max-width: none; color: #fff; font-size: clamp(2.8rem, 3.4vw, 4.4rem); line-height: 0.92; text-transform: uppercase; white-space: nowrap; }
.references-hero h1 em { color: var(--logo-gold); font-style: normal; }
.references-hero__content > p:not(.references-hero__eyebrow) { max-width: none; margin: 28px 0 30px; color: rgba(255, 255, 255, 0.8); font-size: 1rem; line-height: 1.7; white-space: nowrap; text-align: center; }
.references-hero__cta { display: inline-flex; align-items: center; gap: 16px; min-height: 58px; padding: 0 26px; border-radius: 999px; background: var(--logo-gold); color: #071b38; font-weight: 700; transition: transform 180ms ease, background 180ms ease; }
.references-hero__cta:hover { background: #ffd05b; transform: translateY(-2px); }

.reference-listing { padding: 125px 0; }
.reference-listing__heading { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: end; gap: 60px; margin-bottom: 58px; }
.reference-listing h2 { max-width: 800px; font-size: clamp(2.7rem, 4.5vw, 4.8rem); line-height: 1.02; }
.reference-listing__heading > p { margin: 0; color: #647084; font-size: 1rem; line-height: 1.7; }
.reference-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.reference-card { position: relative; display: block; min-height: 370px; overflow: hidden; padding: 0; border: 0; border-radius: 10px; color: #fff; background: #092244; text-align: left; cursor: pointer; }
.reference-card--large { grid-row: auto; min-height: 370px; }
.reference-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; transition: transform 420ms ease; }
.reference-card:hover img { transform: scale(1.06); }
.reference-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 15, 34, 0.04) 15%, rgba(4, 15, 34, 0.92) 100%); }
.reference-card__tag { position: absolute; top: 22px; left: 22px; padding: 8px 11px; border: 1px solid rgba(242, 177, 29, 0.82); color: #fff; background: rgba(4, 22, 48, 0.82); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.reference-card__content { position: absolute; right: 28px; bottom: 26px; left: 28px; display: grid; gap: 14px; }
.reference-card__content strong { max-width: 430px; font-size: clamp(1.35rem, 2vw, 2.2rem); line-height: 1.1; }
.reference-card__content small { display: inline-flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.82); font-size: 0.82rem; font-weight: 600; }
.reference-card__content b { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--logo-gold); color: #071b38; font-size: 1rem; }
.references-closing { padding: 128px 0; text-align: center; background: #071b38; color: #fff; }
.references-closing .section-kicker { margin-bottom: 22px; }
.references-closing h2 { font-size: clamp(3rem, 5.4vw, 5.8rem); line-height: 1.02; }
.references-closing > .container > p:not(.section-kicker) { max-width: 620px; margin: 25px auto 34px; color: rgba(255, 255, 255, 0.74); line-height: 1.75; }
.references-closing a { display: inline-flex; align-items: center; gap: 16px; min-height: 58px; padding: 0 26px; border-radius: 999px; background: var(--logo-gold); color: #071b38; font-weight: 700; transition: transform 180ms ease, background 180ms ease; }
.references-closing a:hover { background: #ffd05b; transform: translateY(-2px); }

.reference-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 32px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 180ms ease, visibility 180ms ease; }
.reference-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.reference-modal__backdrop { position: absolute; inset: 0; background: rgba(3, 13, 29, 0.86); backdrop-filter: blur(8px); }
.reference-modal__dialog { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); width: min(1120px, 100%); max-height: min(760px, calc(100vh - 64px)); overflow: auto; background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42); }
.reference-modal__close { position: absolute; top: 16px; right: 16px; z-index: 3; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(4, 22, 48, 0.76); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.reference-modal__gallery { position: relative; min-height: 570px; background: #071b38; }
.reference-modal__image { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.reference-modal__gallery::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(3, 13, 29, 0.42)); }
.gallery-arrow { position: absolute; z-index: 2; top: 50%; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 50%; color: #fff; background: rgba(4, 22, 48, 0.42); font-size: 1.5rem; transform: translateY(-50%); cursor: pointer; }
.gallery-arrow--previous { left: 18px; }.gallery-arrow--next { right: 18px; }
.reference-modal__counter { position: absolute; z-index: 2; right: 22px; bottom: 20px; color: #fff; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; }
.reference-modal__details { padding: 62px 44px 38px; color: #172a45; }
.reference-modal__tag { margin: 0 0 16px; color: #a87510; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.reference-modal__details h2 { margin: 0; font-size: clamp(2rem, 3.2vw, 3.25rem); line-height: 1.02; letter-spacing: -0.05em; }
.reference-modal__description { margin: 23px 0 28px; color: #56657a; font-size: 0.96rem; line-height: 1.7; }
.reference-modal__scope { padding-top: 24px; border-top: 1px solid #dfe4e8; }
.reference-modal__scope h3 { margin: 0 0 15px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.reference-modal__scope ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.reference-modal__scope li { position: relative; padding-left: 20px; color: #495a70; font-size: 0.9rem; line-height: 1.4; }
.reference-modal__scope li::before { content: ""; position: absolute; top: 5px; left: 0; width: 8px; height: 8px; border: 2px solid var(--logo-gold); border-radius: 50%; }
.reference-modal__thumbs { display: flex; gap: 8px; margin-top: 28px; }
.reference-modal__thumbs button { width: 58px; height: 48px; padding: 0; overflow: hidden; border: 2px solid transparent; background: #092244; cursor: pointer; }
.reference-modal__thumbs button.is-active { border-color: var(--logo-gold); }.reference-modal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
