:root {
    --navy: #0e2350;
    --navy-deep: #09173a;
    --navy-mid: #dfe9f3;
    --cyan: #25b8ff;
    --put-blue: #006288;
    --put-accent: #bf5327;
    --white: #ffffff;
    --paper: #f7fafc;
    --text: #14203a;
    --muted: #64708a;
    --line: #d8e1ec;
    --shadow: 0 24px 54px rgba(12, 31, 63, 0.10);
    --radius: 24px;
    --max-width: 1380px;
    --side-width: 230px;
    --content-offset: 192px;
    --content-width: 1280px;
    --training-width: 1040px;
}

@font-face {
    font-family: "SquareSlabPP";
    src: url("fonts/put-font/Square Slabserif 711/0410EU27.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SquareSlabPP";
    src: url("fonts/put-font/Square Slabserif 711/0411EU27.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "SquareSlabPP";
    src: url("fonts/put-font/Square Slabserif 711/0412EU27.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, "Helvetica Neue", sans-serif;
    background:
        linear-gradient(180deg, #f3f7fa 0%, #eef4f8 34%, #eaf1f6 68%, #e8eff4 100%);
    color: var(--text);
    overflow-x: hidden;
}

a,
button {
    color: inherit;
}

button {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

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

.shell {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(14, 35, 80, 0.08);
}

.header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-left: var(--content-offset);
    max-width: calc(var(--training-width) + var(--content-offset));
}

.brand img {
    width: clamp(170px, 21vw, 280px);
}

.top-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 10px 24px rgba(12, 31, 63, 0.08);
    backdrop-filter: blur(10px);
}

.top-link img {
    height: 24px;
    width: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(15%) sepia(29%) saturate(2208%) hue-rotate(195deg) brightness(93%) contrast(93%);
}

.top-link span {
    display: inline-block;
}

.top-link:hover,
.top-link:focus-visible {
    border-color: rgba(0, 98, 136, 0.18);
}

.side-nav {
    position: fixed;
    left: 12px;
    top: 160px;
    z-index: 25;
    width: var(--side-width);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.side-nav.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.side-nav-inner {
    padding: 8px 0 8px 22px;
    border-left: 1px solid rgba(14, 35, 80, 0.16);
}

.side-nav-label {
    margin-bottom: 14px;
    color: rgba(14, 35, 80, 0.50);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.side-link {
    display: grid;
    grid-template-columns: 28px auto;
    align-items: start;
    gap: 10px;
    color: rgba(14, 35, 80, 0.70);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    padding: 10px 0;
}

.side-link::before {
    content: "";
    position: absolute;
    left: -23px;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--put-accent);
    transform: translateY(-50%);
    transition: height 0.22s ease;
}

.side-link-index {
    color: rgba(14, 35, 80, 0.36);
    font-size: 1rem;
    letter-spacing: 0.08em;
}

.side-link-text {
    color: inherit;
    line-height: 1.2;
}

.side-link.is-active,
.side-link:hover,
.side-link:focus-visible {
    color: var(--navy);
}

.side-link.is-active::before,
.side-link:hover::before,
.side-link:focus-visible::before {
    height: 26px;
}

.side-link.is-active .side-link-index,
.side-link:hover .side-link-index,
.side-link:focus-visible .side-link-index {
    color: var(--put-accent);
}

.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-media,
.hero-overlay,
.section-overlay,
.hero-mark {
    position: absolute;
    inset: 0;
}

.parallax-media {
    transform: translate3d(0, 0, 0) scale(1.08);
    will-change: transform;
}

.hero-media {
    background:
        radial-gradient(circle at 78% 20%, rgba(0, 98, 136, 0.06), transparent 18%),
        linear-gradient(180deg, #f4f8fb 0%, #edf3f7 58%, #e9f0f5 100%);
}

.section-media {
    background:
        linear-gradient(180deg, rgba(0, 98, 136, 0.02) 0%, rgba(14, 35, 80, 0.03) 100%);
    opacity: 1;
}

.hero-overlay {
    background:
        radial-gradient(circle at 80% 42%, rgba(0, 98, 136, 0.05), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(14, 35, 80, 0.015));
}

.section-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(14, 35, 80, 0.015));
}

.hero {
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: center;
    position: relative;
}

.hero-mark {
    left: auto;
    right: -180px;
    top: auto;
    bottom: -180px;
    width: 820px;
    height: 820px;
    background: url("logo_znak.svg") center/contain no-repeat;
    opacity: 0.055;
    pointer-events: none;
    z-index: 1;
}

.hero-inner,
.training-layout {
    position: relative;
    z-index: 2;
}

.hero-inner {
    min-height: calc(100vh - 90px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: calc(var(--training-width) + var(--content-offset));
    padding: 72px 0 104px var(--content-offset);
}

.section-label {
    width: fit-content;
    min-height: 36px;
    padding: 0 16px;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    background: var(--put-blue);
    color: var(--white);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "SquareSlabPP", Rockwell, "Roboto Slab", Georgia, serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--navy);
}

.training-anchor-label .section-label {
    background: var(--put-blue);
}

.hero-name {
    margin-bottom: 1px;
    color: rgba(14, 35, 80, 0.78);
    font-size: 0.88rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 7px;
}

.hero-name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 76px;
    height: 2px;
    background: var(--put-accent);
}

h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 7vw, 5.1rem);
    line-height: 0.94;
    margin-bottom: -6px;
}

.hero-role,
.hero-text {
    max-width: 34ch;
}

.hero-role {
    margin-top: 0;
    font-size: 1.05rem;
    color: rgba(14, 35, 80, 0.84);
}

.hero-text {
    margin-top: 6px;
    font-size: 1.02rem;
    color: rgba(20, 32, 58, 0.70);
}

.scroll-next {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 2;
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.50);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 28px rgba(12, 31, 63, 0.10);
    backdrop-filter: blur(10px);
    transform: translateX(-50%);
    animation: pulseDown 3.2s ease-in-out infinite;
}

.scroll-next span,
.scroll-top span {
    width: 18px;
    height: 18px;
    border-right: 3px solid var(--put-blue);
    border-bottom: 3px solid var(--put-blue);
}

.scroll-next span {
    transform: rotate(45deg) translate(-2px, -2px);
}

.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 26px;
    z-index: 28;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 16px 34px rgba(12, 31, 63, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    transform: translateY(12px);
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top span {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.training-section {
    padding: 56px 0 88px;
}

.training-layout {
    padding-left: var(--content-offset);
    max-width: calc(var(--training-width) + var(--content-offset));
}

.training-card {
    background: rgba(245, 247, 251, 0.98);
    color: var(--text);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    max-width: var(--training-width);
}

.training-head {
    padding: 0;
    border-bottom: 1px solid rgba(216, 225, 236, 0.78);
    display: block;
}

.training-head-copy {
    padding: 34px 38px 28px;
}

.training-head h2 {
    max-width: none;
    font-size: clamp(1.9rem, 3.9vw, 3rem);
    line-height: 1.02;
}

.training-head p {
    margin-top: 12px;
    font-size: 1rem;
    color: var(--muted);
}

.materials-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.material-card {
    min-height: 154px;
    padding: 30px 38px;
    border-bottom: 1px solid rgba(216, 225, 236, 0.78);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255, 255, 255, 0.18);
}

.material-card:last-child {
    border-bottom: 0;
}

.material-type {
    color: var(--put-accent);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.material-card h3 {
    font-size: 1.15rem;
    line-height: 1.08;
}

.material-card p,
.material-card li {
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(20, 32, 58, 0.80);
}

.material-card p + p {
    margin-top: 10px;
}

.material-card ul {
    margin-left: 20px;
}

.material-card li + li {
    margin-top: 6px;
}

.material-card a {
    width: fit-content;
    color: var(--navy);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--put-accent);
    padding-bottom: 4px;
}

@keyframes pulseDown {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 28px rgba(12, 31, 63, 0.10), 0 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        transform: translateX(-50%) translateY(4px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 12px 28px rgba(12, 31, 63, 0.10), 0 0 0 8px rgba(255, 255, 255, 0);
    }
}

@media (max-width: 1100px) {
    .side-nav {
        left: 14px;
        width: 160px;
    }

    .hero-inner,
    .training-layout {
        padding-left: 138px;
    }

    .header-inner {
        padding-left: 138px;
        max-width: calc(var(--training-width) + 138px);
    }
}

@media (max-width: 860px) {
    .side-nav {
        display: none;
    }

    .top-links {
        display: none;
    }

    .hero-inner,
    .training-layout {
        padding-left: 0;
    }

    .header-inner {
        padding-left: 0;
        max-width: 100%;
    }

    .hero {
        min-height: auto;
    }

    .hero-mark {
        left: auto;
        right: -220px;
        bottom: -230px;
        width: 700px;
        height: 700px;
    }

    .hero-inner {
        min-height: auto;
        padding-top: 64px;
        padding-bottom: 110px;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(var(--max-width), calc(100% - 24px));
    }

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

    .brand img {
        width: 180px;
    }

    .hero-mark {
        left: auto;
        right: -260px;
        bottom: -240px;
        width: 620px;
        height: 620px;
        opacity: 0.045;
    }

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

    .training-head {
        grid-template-columns: 1fr;
    }

    .material-card,
    .material-card:nth-child(2n) {
        border-right: 0;
    }

    .material-card:nth-last-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .material-card:last-child {
        border-bottom: 0;
    }

    .training-head,
    .material-card {
        padding-left: 24px;
        padding-right: 24px;
    }

    .scroll-top {
        right: 18px;
        bottom: 18px;
        width: 52px;
        height: 52px;
    }
}

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

    .scroll-next {
        animation: none;
    }

    .scroll-top {
        transition: none;
    }
}
