/*
 * Nastrova International Limited Holdings
 * Home website — 2026
 */

:root {
    --nastrova-blue: #071a3d;
    --nastrova-blue-soft: #102b5f;
    --nastrova-blue-pale: #dfe7f1;
    --ink: #101820;
    --ink-soft: #52606d;
    --mist: #f2f4f6;
    --line: rgba(16, 24, 32, 0.18);
    --white: #ffffff;
    --shell: min(1320px, calc(100% - 80px));
    --serif: "Libre Caslon Display", Georgia, "Times New Roman", serif;
    --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body,
button,
a {
    font-family: var(--sans);
}

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

a {
    color: inherit;
}

button {
    color: inherit;
}

.page-shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 12px 16px;
    background: var(--white);
    color: var(--nastrova-blue);
    font-weight: 600;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    transition: background-color 220ms ease, border-color 220ms ease;
}

.site-header--scrolled,
.site-header.menu-is-open {
    background: rgba(7, 26, 61, 0.97);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.header-shell {
    width: var(--shell);
    min-height: 94px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.brand {
    flex: 0 0 auto;
}

.brand img {
    width: min(260px, 34vw);
    height: auto;
    filter: brightness(0) invert(1);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(22px, 2.4vw, 42px);
}

.primary-nav a {
    position: relative;
    padding: 34px 0 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.79rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 25px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.menu-toggle__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.menu-toggle__icon {
    width: 25px;
    height: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle__icon i {
    width: 100%;
    height: 1px;
    display: block;
    background: currentColor;
    transition: transform 180ms ease;
}

.hero {
    position: relative;
    min-height: 780px;
    height: 100svh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--nastrova-blue);
    background-image: url("https://nastrova.com/_assets/_img/7010d1e88b80578f3d4e6fc09c2a2379.jpeg?h=84c61102&itok=22V2AO1g");
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(3, 13, 33, 0.88) 0%, rgba(3, 13, 33, 0.48) 47%, rgba(3, 13, 33, 0.18) 75%),
        linear-gradient(0deg, rgba(3, 13, 33, 0.52) 0%, transparent 45%);
}

.hero__content {
    padding-bottom: clamp(88px, 12vh, 142px);
}

.eyebrow {
    margin: 0 0 26px;
    color: var(--nastrova-blue-soft);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.17em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero__eyebrow,
.eyebrow--light {
    color: rgba(255, 255, 255, 0.72);
}

.hero h1 {
    max-width: 850px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4.3rem, 9.2vw, 9.5rem);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 0.82;
}

.hero__statement {
    margin: 38px 0 34px;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.25;
}

.hero__legal-name {
    position: absolute;
    right: 28px;
    bottom: 34px;
    margin: 0;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 0 0 7px;
    border-bottom: 1px solid currentColor;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
}

.text-link span {
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translate(3px, 3px);
}

.text-link--light {
    color: var(--white);
}

.section {
    padding: clamp(92px, 11vw, 164px) 0;
}

.section--mist {
    background: var(--mist);
}

.intro__grid,
.history__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
    gap: clamp(70px, 10vw, 180px);
}

.intro h2,
.section-heading h2,
.history h2,
.contact-band h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.7rem, 5.1vw, 5.4rem);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.intro__copy {
    max-width: 720px;
    padding-top: 42px;
    border-top: 1px solid var(--ink);
}

.intro__copy p {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.25vw, 2.25rem);
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.intro__copy p + p {
    margin-top: 30px;
    color: var(--ink-soft);
    font-family: var(--sans);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    letter-spacing: 0;
    line-height: 1.7;
}

.section-heading {
    margin-bottom: 70px;
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: end;
    gap: 80px;
}

.section-heading > p {
    max-width: 470px;
    margin: 0 0 8px;
    color: var(--ink-soft);
    font-size: 1rem;
}

.institution-list {
    border-top: 1px solid var(--ink);
}

.institution-row {
    min-height: 130px;
    display: grid;
    grid-template-columns: 58px minmax(300px, 1.3fr) minmax(145px, 0.5fr) minmax(200px, 0.75fr) 26px;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
    transition: color 180ms ease, background-color 180ms ease, padding 180ms ease;
}

.institution-row:hover,
.institution-row:focus-visible {
    padding-inline: 18px;
    background: var(--nastrova-blue);
    color: var(--white);
    outline: none;
}

.institution-row__number,
.institution-row__date,
.institution-row__domain {
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.institution-row__number {
    color: var(--ink-soft);
}

.institution-row:hover .institution-row__number,
.institution-row:focus-visible .institution-row__number {
    color: rgba(255, 255, 255, 0.62);
}

.institution-row__identity {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.institution-row__identity strong {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.1vw, 2rem);
    font-weight: 400;
    line-height: 1.15;
}

.institution-row__identity small {
    color: var(--ink-soft);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.institution-row:hover .institution-row__identity small,
.institution-row:focus-visible .institution-row__identity small {
    color: rgba(255, 255, 255, 0.68);
}

.institution-row__domain {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.institution-row__arrow {
    font-size: 1.15rem;
    transition: transform 180ms ease;
}

.institution-row:hover .institution-row__arrow,
.institution-row:focus-visible .institution-row__arrow {
    transform: translate(4px, -4px);
}

.history__heading {
    position: sticky;
    top: 150px;
    align-self: start;
}

.timeline {
    border-top: 1px solid var(--ink);
}

.timeline__item {
    min-height: 180px;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 38px;
    padding: 40px 0;
    border-bottom: 1px solid var(--line);
}

.timeline__item time {
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.timeline__item h3 {
    margin: 0 0 12px;
    font-family: var(--serif);
    font-size: clamp(1.65rem, 2.4vw, 2.4rem);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

.timeline__item p {
    margin: 0;
    color: var(--ink-soft);
}

.timeline__item--primary {
    color: var(--nastrova-blue);
}

.timeline__item--primary time,
.timeline__item--primary p {
    color: var(--nastrova-blue-soft);
}

.contact-band {
    padding: clamp(84px, 9vw, 130px) 0;
    background: var(--nastrova-blue);
    color: var(--white);
}

.contact-band__grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 60px;
}

.contact-band h2 {
    max-width: 780px;
}

.button {
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 24px;
    border: 1px solid currentColor;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease;
}

.button--light:hover,
.button--light:focus-visible {
    background: var(--white);
    color: var(--nastrova-blue);
}

.site-footer {
    padding: 0 0 32px;
    background:
        radial-gradient(circle at 88% 24%, rgba(19, 48, 107, 0.78), transparent 34%),
        linear-gradient(110deg, #02060d 0%, #050d1c 48%, #081a42 100%);
    color: var(--white);
}

.footer-access {
    min-height: 270px;
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(330px, 0.9fr);
    align-items: center;
    gap: clamp(60px, 9vw, 150px);
    padding: 62px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-kicker {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.footer-access h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
}

.footer-access__copy > p:last-child {
    max-width: 610px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.94rem;
}

.footer-access__actions {
    display: grid;
    gap: 22px;
}

.footer-login {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 0 28px;
    background: var(--white);
    color: var(--nastrova-blue);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 180ms ease, color 180ms ease;
}

.footer-login span:last-child {
    font-size: 1.2rem;
    transition: transform 180ms ease;
}

.footer-login:hover,
.footer-login:focus-visible {
    background: var(--nastrova-blue-pale);
}

.footer-login:hover span:last-child,
.footer-login:focus-visible span:last-child {
    transform: translate(4px, -4px);
}

.footer-access__shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-access__shortcuts a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.footer-access__shortcuts a:hover,
.footer-access__shortcuts a:focus-visible {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-directory {
    display: grid;
    grid-template-columns: minmax(230px, 1.35fr) repeat(4, minmax(145px, 0.8fr));
    gap: clamp(34px, 4.5vw, 78px);
    padding: 78px 0 82px;
}

.footer-brand img {
    width: min(280px, 100%);
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    max-width: 300px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.56);
    font-family: var(--serif);
    font-size: 1.2rem;
}

.footer-domain {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-decoration: none;
}

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

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-column h2 {
    min-height: 34px;
    margin: 0 0 18px;
    color: var(--white);
    font-family: var(--serif);
    font-size: 1.02rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.57);
    font-size: 0.78rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color 160ms ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.footer-bottom p + p {
    margin-top: 3px;
}

.footer-bottom__links {
    display: flex;
    gap: 28px;
}

.footer-bottom__links a {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.71rem;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.footer-bottom__links a:hover,
.footer-bottom__links a:focus-visible {
    color: var(--white);
}

@media (max-width: 1040px) {
    :root {
        --shell: min(100% - 48px, 1320px);
    }

    .institution-row {
        grid-template-columns: 48px minmax(260px, 1fr) 145px 26px;
    }

    .institution-row__domain {
        display: none;
    }

    .footer-directory {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 20px;
    }
}

@media (max-width: 820px) {
    :root {
        --shell: calc(100% - 36px);
    }

    .header-shell {
        min-height: 76px;
    }

    .brand img {
        width: min(225px, 62vw);
    }

    .menu-toggle {
        display: flex;
    }

    .primary-nav {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: grid;
        gap: 0;
        padding: 8px 18px 24px;
        background: var(--nastrova-blue);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .menu-is-open .primary-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .menu-is-open .menu-toggle__icon i:first-child {
        transform: translateY(6.5px) rotate(45deg);
    }

    .menu-is-open .menu-toggle__icon i:last-child {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .primary-nav a {
        padding: 16px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .primary-nav a::after {
        display: none;
    }

    .hero {
        min-height: 680px;
        background-position: 58% center;
    }

    .hero__legal-name {
        display: none;
    }

    .intro__grid,
    .history__grid,
    .section-heading,
    .contact-band__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .intro__copy {
        padding-top: 30px;
    }

    .section-heading {
        margin-bottom: 50px;
    }

    .section-heading > p {
        max-width: 620px;
    }

    .institution-row {
        min-height: 116px;
        grid-template-columns: 36px 1fr 24px;
        gap: 16px;
    }

    .institution-row__date {
        display: none;
    }

    .history__heading {
        position: static;
    }

    .contact-band__grid {
        align-items: start;
    }

    .button {
        justify-self: start;
    }

    .footer-access {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-access__copy > p:last-child {
        max-width: 560px;
    }

    .footer-directory {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .hero {
        min-height: 640px;
    }

    .hero__content {
        padding-bottom: 72px;
    }

    .hero h1 {
        font-size: clamp(3.75rem, 18vw, 5.6rem);
    }

    .section {
        padding: 82px 0;
    }

    .institution-row:hover,
    .institution-row:focus-visible {
        padding-inline: 10px;
    }

    .timeline__item {
        grid-template-columns: 65px 1fr;
        gap: 18px;
    }

    .contact-band {
        padding: 76px 0;
    }

    .button {
        width: 100%;
        justify-content: space-between;
    }

    .footer-directory {
        grid-template-columns: 1fr;
        gap: 42px;
        padding: 64px 0;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-column h2 {
        min-height: 0;
        margin-bottom: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-bottom__links {
        width: 100%;
        justify-content: space-between;
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
