/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #f5f5f5;
    --color-bg-alt: #ebebeb;
    --color-text: #1a1a1a;
    --color-text-muted: #888888;
    --color-text-light: #b0b0b0;
    --color-border: #e0e0e0;
    --color-border-dark: #1a1a1a;
    --color-accent: #1a1a1a;
    --color-white: #ffffff;
    --color-nav-glass: rgba(245, 245, 245, 0.55);
    --color-hover-subtle: rgba(0, 0, 0, 0.05);
    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1400px;
    --container-narrow: 900px;
    --radius: 0px;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.2s ease;
}

[data-theme="dark"] {
    --color-bg: #111111;
    --color-bg-alt: #1a1a1a;
    --color-text: #e8e8e8;
    --color-text-muted: #888888;
    --color-text-light: #555555;
    --color-border: #2a2a2a;
    --color-border-dark: #e8e8e8;
    --color-accent: #e8e8e8;
    --color-white: #111111;
    --color-nav-glass: rgba(17, 17, 17, 0.55);
    --color-hover-subtle: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .article-content blockquote,
[data-theme="dark"] .article-content blockquote p,
[data-theme="dark"] .article-content blockquote cite {
    color: var(--color-text) !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

::selection {
    background: var(--color-text);
    color: var(--color-white);
}

a {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 3px;
}

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

/* === Custom Cursor === */
.cursor {
    position: fixed;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-text);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: difference;
    opacity: 0;
}

.cursor.is-visible {
    opacity: 1;
}

.cursor.is-active {
    width: 48px;
    height: 48px;
    background: var(--color-white);
}

/* === Layout === */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 48px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* === Header === */
.site-header {
    position: relative;
    z-index: 100;
    padding: 28px 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* === Floating Nav === */
.floating-nav {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    padding: 4px 4px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    gap: 2px;
}

.floating-nav.is-fixed {
    position: fixed;
    top: 24px;
    transform: translateX(-50%);
    background: var(--color-nav-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.site-logo {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.site-logo img {
    height: 28px;
    width: auto;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-contact-link {
    font-size: 12px;
    color: var(--color-text-muted);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
}

.header-contact-link:hover {
    color: var(--color-text);
}

.main-nav {
    display: none;
}

.mobile-nav-contacts {
    display: none;
}

/* Nav */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2px;
}

.nav-list li a {
    display: block;
    font-family: var(--font-body);
    color: var(--color-text);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 8px 18px;
    border-radius: 100px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
    background: var(--color-hover-subtle);
    color: var(--color-text);
}

.nav-list li.current-menu-item a,
.nav-list li.current_page_item a {
    background: var(--color-text);
    color: var(--color-bg);
}

.language-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: transparent;
    flex-shrink: 0;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.language-switcher:hover {
    border-color: var(--color-text);
    background: var(--color-hover-subtle);
}

.language-switcher-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.language-switcher-link:hover {
    color: var(--color-text);
}

.language-switcher--mobile {
    display: none;
}

/* Hamburger */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--color-text);
    transition: all var(--transition);
    position: absolute;
    left: 6px;
}

.hamburger {
    top: 17px;
}

.hamburger::before {
    content: '';
    top: -7px;
}

.hamburger::after {
    content: '';
    top: 7px;
}

.menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* === Theme Toggle === */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
    flex-shrink: 0;
    color: var(--color-text);
}

.theme-toggle:hover {
    background: var(--color-hover-subtle);
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.theme-toggle:hover svg {
    transform: rotate(15deg);
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

/* Dark theme: inverted sections keep dark background */

[data-theme="dark"] .page-loader {
    background: #111111;
}

[data-theme="dark"] .page-loader-text {
    color: #e8e8e8;
}

[data-theme="dark"] .page-loader-bar-track {
    background: rgba(255,255,255,0.1);
}

[data-theme="dark"] .page-loader-bar-fill {
    background: #e8e8e8;
}

[data-theme="dark"] .error-code {
    color: #1a1a1a;
}

.theme-toggle--mobile {
    display: none;
}

.header-actions {
    display: none;
    align-items: center;
    gap: 8px;
}

/* === Main === */
.site-main {
    margin-top: 20px;
}

.footer-adjacent {
    background: var(--color-bg);
    border-radius: 0 0 24px 24px;
    position: relative;
    z-index: 1;
    margin-bottom: -24px;
}

/* === Hero: text and framed photo side by side === */
.hero {
    padding: 40px 0 0;
}

.home .hero {
    padding: 0;
}

.hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: center;
    min-height: calc(100vh - 112px);
    min-height: calc(100svh - 112px);
    padding-top: 16px;
    padding-bottom: 48px;
}

.hero-text {
    min-width: 0;
}

.hero-subtitle {
    font-size: 13px;
    color: var(--color-text-muted);
    max-width: 380px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    margin-bottom: clamp(24px, 4vh, 40px);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 4.8vw, 4.6rem);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.06;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero-media {
    position: relative;
    height: min(calc(100svh - 176px), 760px);
    min-height: 420px;
}

.hero-photo {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.hero-photo.no-image {
    display: none;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 35%;
}

/* Spinning badge on the left edge of the photo */
.hero-spinner {
    width: 160px;
    height: 160px;
    position: absolute;
    left: -80px;
    bottom: 48px;
    border-radius: 50%;
    background: var(--color-bg);
}

.spinner-svg {
    width: 100%;
    height: 100%;
    animation: spin 20s linear infinite;
}

.spinner-text {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    word-spacing: 0.3em;
    fill: var(--color-text-muted);
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    color: var(--color-text-muted);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* === Services: three soft cards right after the first screen; hover darkens a card and reveals its text === */
.services {
    padding: 24px 0 96px;   /* the first screen already ends with 48px of air */
}

/* a quiet caption like the site's section labels, so the cards stay the focus (also titles «Работы») */
.services-title {
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.svc-list {
    list-style: none;
    display: flex;
    gap: 16px;
}

.svc {
    flex: 1 1 0;
    min-width: 0;
}

.svc-card {
    /* the site has no button reset */
    font: inherit;
    color: inherit;
    border: 0;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: block;
    width: 100%;
    height: var(--svc-h, 360px);   /* every card gets the height of the fullest open one (set in main.js) */
    min-height: 360px;
    padding: 28px;
    border-radius: 12px;
    background: var(--color-bg-alt);
    overflow: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

.svc-card:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
}

.svc-plus {
    position: absolute;
    top: 22px;
    right: 24px;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.svc-body {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 28px;
}

.svc-title {
    display: block;
    max-width: 14ch;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.1vw, 2.1rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-wrap: balance;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* the description waits under the title; the title rises to make room */
.svc-more {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.35s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.svc-more-in {
    display: grid;
    gap: 16px;
}

.svc-desc {
    display: block;
    max-width: 40ch;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.7;
}

.svc.is-open .svc-card {
    background: var(--color-text);
    color: var(--color-bg);
}

.svc.is-open .svc-plus {
    transform: rotate(45deg);
}

.svc.is-open .svc-title {
    transform: translateY(calc(-1 * var(--svc-shift, 150px)));
}

.svc.is-open .svc-more {
    opacity: 1;
    transform: none;
    transition-delay: 0.12s;
}

/* phones: still one row − cards side by side, swipe sideways, text always shown */
@media (max-width: 768px) {
    .services {
        padding: 32px 0 56px;
    }

    .services-title {
        margin-bottom: 16px;
    }

    .svc-list {
        gap: 12px;
        margin: 0 -20px;
        padding: 0 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 20px;
        scrollbar-width: none;
    }

    .svc-list::-webkit-scrollbar {
        display: none;
    }

    .svc {
        flex: 0 0 84%;
        scroll-snap-align: start;
    }

    .svc-card,
    .svc.is-open .svc-card {
        height: 100%;
        min-height: 0;
        padding: 24px 20px 28px;
        background: var(--color-bg-alt);
        color: inherit;
        cursor: default;
    }

    .svc-plus {
        display: none;
    }

    .svc-body,
    .svc-more {
        position: static;
    }

    .svc.is-open .svc-title {
        transform: none;
    }

    .svc-more {
        display: block;   /* a span: without this the top padding does nothing */
        padding-top: 20px;
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .svc-card,
    .svc-plus,
    .svc-title,
    .svc-more {
        transition: none;
    }
}

/* === Technologies: dark band, rows of names drifting in alternating directions === */
.home-tech {
    overflow: clip;
    padding: 104px 0 112px;
    background: #1a1a1a;   /* dark in both themes, like the about band */
    color: #f5f5f5;
}

[data-theme="dark"] .home-tech {
    background: #0a0a0a;
}

.home-tech .home-head {
    margin-bottom: 40px;
}

.home-tech-count {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.3);
    font-variant-numeric: tabular-nums;
}

.home-tech-rows {
    display: grid;
    gap: 4px;
}

.home-tech-row {
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.home-tech-track {
    display: inline-flex;
    animation: techDrift var(--t, 60s) linear infinite;
    will-change: transform;   /* own layer: iOS Safari may not repaint the drift under the row mask otherwise */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.home-tech-row:nth-child(even) .home-tech-track {
    animation-direction: reverse;
}


.home-tech-set {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
}

/* a dim fill, not an outline: stroked Manrope shows the variable font's inner overlaps */
.home-tech-name {
    padding-inline: 28px;
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.2vw, 5rem);
    font-weight: 300;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.16);
    transition: color 0.3s ease;
}

/* pause and light up only with a mouse: on phones a tap leaves :hover stuck and the rows would freeze */
@media (hover: hover) and (pointer: fine) {
    .home-tech-row:hover .home-tech-track {
        animation-play-state: paused;
    }

    .home-tech-name:hover {
        color: #f5f5f5;
    }
}

.home-tech-dot {
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
}

@keyframes techDrift {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (max-width: 768px) {
    .home-tech {
        padding: 64px 0 72px;
    }

    .home-tech .home-head {
        margin-bottom: 24px;
    }

    .home-tech-name {
        padding-inline: 16px;
    }

    .home-tech-dot {
        width: 7px;
        height: 7px;
    }
}

/* phones often report reduce (battery saver, «Remove animations»): keep the drift, just slower */
@media (prefers-reduced-motion: reduce) {
    .home-tech-track {
        animation-duration: calc(var(--t, 60s) * 2.5);
    }
}

/* === Blog on the homepage: the pinned special project as a dark banner, then the latest three === */
.home-blog {
    padding: 96px 0 120px;
}

/* caption + «Все …» link, shared by «Работы» and «Блог» */
.home-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-bottom: 20px;
}

.home-head .services-title {
    margin-bottom: 0;
}

.home-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text);
    text-decoration: none;
}

.home-all svg {
    width: 14px;
    height: 14px;
    transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-all:hover svg {
    transform: translateX(4px);
}

.home-blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}

.home-blog-meta i {
    font-style: normal;
    color: var(--color-text-light);
}

/* same badge as on the blog page (.blog-card-badge), just in the meta line; .blog-card-badge comes later in this file and is absolutely positioned */
.home-blog-meta .home-blog-badge {
    position: static;
    top: auto;
    right: auto;
}

.home-blog-feat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border-radius: 12px;
    background: #1a1a1a;   /* dark in both themes, like the about band */
    color: #f5f5f5;
    text-decoration: none;
}

[data-theme="dark"] .home-blog-feat {
    background: #0a0a0a;
}

.home-blog-feat-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 40px;
}

.home-blog-feat .home-blog-meta {
    color: rgba(255, 255, 255, 0.5);
}

.home-blog-feat .home-blog-meta i {
    color: rgba(255, 255, 255, 0.3);
}

/* on the dark banner the dark badge would vanish, so it is light there */
.home-blog-feat .home-blog-badge {
    background: #f5f5f5;
    color: #1a1a1a;
}

.home-blog-feat-title {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 2.6vw, 2.6rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.home-blog-feat-excerpt {
    display: block;
    max-width: 52ch;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.55);
}

.home-blog-feat-image {
    position: relative;
    min-height: 320px;
    overflow: hidden;
}

.home-blog-feat-image picture,
.home-blog-feat-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.home-blog-feat:hover .home-blog-feat-image img {
    transform: scale(1.04);
}

.home-blog-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.home-blog-list a {
    display: grid;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
}

.home-blog-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.02em;
    text-wrap: balance;
    transition: color 0.3s ease;
}

.home-blog-list:hover .home-blog-title {
    color: var(--color-text-muted);
}

.home-blog-list a:hover .home-blog-title {
    color: var(--color-text);
}

@media (max-width: 768px) {
    .home-blog {
        padding: 56px 0 72px;
    }

    .home-blog-feat {
        grid-template-columns: 1fr;
    }

    .home-blog-feat-text {
        gap: 24px;
        padding: 28px 24px;
    }

    .home-blog-feat-image {
        order: -1;
        min-height: 200px;
    }

    /* phones: the latest posts swipe sideways */
    .home-blog-list {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 80%;
        gap: 16px;
        margin: 32px -20px 0;
        padding: 0 20px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 20px;
        scrollbar-width: none;
    }

    .home-blog-list::-webkit-scrollbar {
        display: none;
    }

    .home-blog-list li {
        scroll-snap-align: start;
    }
}

/* === About on the homepage: dark band after the services − statement, text, link, metrics, client map === */
.home-about {
    position: relative;
    overflow: clip;   /* keeps the glow inside the band */
    padding: 120px 0 96px;
    background: #1a1a1a;   /* stays dark in both themes, like the site's other dark bands */
    color: #f5f5f5;
}

[data-theme="dark"] .home-about {
    background: #0a0a0a;
}

.home-about::before,
.home-about::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: aboutGlow 12s ease-in-out infinite alternate;
}

.home-about::before {
    top: 6%;
    right: 0;
    width: 520px;
    height: 600px;
    background: radial-gradient(circle, rgba(120, 80, 200, 0.14) 0%, rgba(80, 140, 220, 0.09) 40%, transparent 70%);
}

.home-about::after {
    top: 55%;
    left: 0;
    width: 420px;
    height: 500px;
    background: radial-gradient(circle, rgba(60, 140, 220, 0.11) 0%, rgba(140, 80, 200, 0.07) 40%, transparent 70%);
    animation-delay: 6s;
}

.home-about > .container {
    position: relative;
    z-index: 1;
}

/* same quiet caption as «Услуги» */
.home-about-caption {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.home-about .home-head {
    margin-bottom: 0;
}

.home-about .home-all {
    color: #f5f5f5;
}

.home-about-intro {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: 32px;
    row-gap: 48px;
    align-items: end;
    margin-top: 40px;
}

.home-about-title {
    grid-column: 1 / 9;
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5.6vw, 5.6rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.home-about-title span {
    display: block;
}

/* every second line is quieter and steps right */
.home-about-title span:nth-child(even) {
    color: rgba(255, 255, 255, 0.32);
}

.home-about-title span:nth-child(2) {
    padding-left: 14%;
}

.home-about-title span:nth-child(4) {
    padding-left: 34%;
}

.home-about-side {
    grid-column: 9 / 13;
    display: grid;
    gap: 32px;
    justify-items: start;
    padding-bottom: 8px;
}

.home-about-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    text-wrap: pretty;
}

.home-about-text p + p {
    margin-top: 12px;
}

.home-about-text strong,
.home-about-text b {
    font-weight: 400;
    color: #f5f5f5;
}

/* the four numbers sit as one group in the middle of the band */
.home-about-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: center;
    column-gap: clamp(40px, 6vw, 112px);
    row-gap: 48px;
    margin-top: 120px;
}

.home-about-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 4.6vw, 4.6rem);
    font-weight: 200;
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
}

.home-about-stat-num {
    display: inline-block;
}

.home-about-stat-value sup {
    position: relative;
    top: 0.25em;
    margin-left: 4px;
    font-size: 0.42em;
    font-weight: 300;
    vertical-align: top;
    color: rgba(255, 255, 255, 0.45);
}

.home-about-stat-label {
    display: block;
    max-width: 17ch;   /* longer labels wrap into two lines */
    margin-top: 14px;
    line-height: 1.5;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* the client map is its own dark band after the works */
.home-geo {
    padding: 96px 0 104px;
}

.home-about-geo .home-about-caption {
    text-align: center;   /* lines up with the centred metrics above */
}

.home-about-map {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    margin-top: 24px;
}

.home-about-map canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.home-about-tip {
    position: absolute;
    z-index: 3;
    padding: 6px 12px;
    border-radius: 100px;
    background: #f5f5f5;
    color: #1a1a1a;
    font: 500 12px var(--font-heading);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, calc(-100% - 14px));
    transition: opacity 0.15s ease;
}

.home-about-tip span {
    margin-left: 6px;
    opacity: 0.5;
}

.home-about-tip.is-on {
    opacity: 1;
}

@media (max-width: 1024px) {
    .home-about-title {
        grid-column: 1 / -1;
    }

    .home-about-side {
        grid-column: 5 / 13;
    }
}

@media (max-width: 768px) {
    .home-about {
        padding: 72px 0 64px;
    }

    .home-about-intro {
        row-gap: 32px;
        margin-top: 28px;
    }

    .home-about-title {
        font-size: clamp(2.2rem, 10vw, 3rem);
    }

    .home-about-title span:nth-child(2) {
        padding-left: 10%;
    }

    .home-about-title span:nth-child(4) {
        padding-left: 22%;
    }

    .home-about-side {
        grid-column: 1 / -1;
        gap: 24px;
    }

    .home-about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        gap: 40px 20px;
        margin-top: 72px;
    }

    .home-geo {
        padding: 56px 0 64px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-about::before,
    .home-about::after {
        animation: none;
    }
}

/* === Section === */
.section {
    padding: 100px 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-muted);
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 64px;
}

.section-footer {
    margin-top: 48px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-link {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 4px;
    transition: all var(--transition-fast);
}

.section-link:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

/* === Work Grid === */
.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.work-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.work-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg-alt);
    border-radius: 8px;
    position: relative;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-card:hover .work-card-image img,
.work-card-image:hover img {
    transform: scale(1.04);
}

.work-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-alt);
}

.work-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.work-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 400;
    color: #fff;
    letter-spacing: -0.01em;
}

.work-card-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.work-card-ext {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 2;
}

.work-card-ext:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

/* === Portfolio List (archive) === */
.portfolio-list {
    list-style: none;
}

.portfolio-item {
    border-top: 1px solid var(--color-border);
    display: grid;
    grid-template-columns: 1fr 36px;
    align-items: center;
    gap: 16px;
}

.portfolio-item .portfolio-link {
    min-width: 0;
}

.portfolio-ext-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    text-decoration: none;
    flex-shrink: 0;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.portfolio-ext-link:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

.portfolio-item:not(:has(.portfolio-ext-link)) {
    grid-template-columns: 1fr;
}

.portfolio-item:last-child {
    border-bottom: 1px solid var(--color-border);
}

.portfolio-link {
    display: grid;
    grid-template-columns: 60px auto 1fr auto;
    align-items: center;
    column-gap: 32px;
    padding: 32px 0;
    transition: all var(--transition);
    position: relative;
}

.portfolio-link-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.portfolio-link:hover {
    padding-left: 16px;
}

.portfolio-number {
    grid-row: 1 / 3;
    align-self: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1.2;
    transition: letter-spacing var(--transition);
}

.portfolio-link:hover .portfolio-title {
    letter-spacing: 0.02em;
}

.portfolio-meta {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.portfolio-year {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--color-text-light);
    min-width: 50px;
    text-align: right;
}

/* Portfolio hover image preview */
.portfolio-preview {
    position: fixed;
    width: 360px;
    height: 240px;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-preview.is-visible {
    opacity: 1;
    transform: scale(1);
}

.portfolio-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Clients === */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
}

.client-item {
    padding: 40px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    margin: -0.5px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-muted);
    letter-spacing: -0.01em;
    transition: all var(--transition);
}

.client-item:hover {
    color: var(--color-text);
    background: var(--color-bg-alt);
}

/* === About Section === */

@keyframes aboutGlow {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate(-20px, 15px) scale(0.95);
        opacity: 0.7;
    }
}

/* Certificates grid */

.about-edu-num {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.05em;
    line-height: 1.6;
    flex-shrink: 0;
}

.about-edu-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-edu-place {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.03em;
}

.about-edu-desc {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.01em;
}

.about-edu-year {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
    line-height: 1;
}

/* === Awards === */
.awards-list {
    list-style: none;
}

/* World map */

.award-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 32px;
    align-items: baseline;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-border);
}

.award-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
}

.award-org {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.award-year {
    font-size: 0.85rem;
    color: var(--color-text-light);
    min-width: 50px;
    text-align: right;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-text);
    color: var(--color-white);
    border-color: var(--color-text);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-text);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn-outline:hover {
    background: var(--color-text);
    color: var(--color-white);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-text);
    border-color: var(--color-white);
}

.btn-white:hover {
    background: transparent;
    color: var(--color-white);
}

/* === Page Title === */
.page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--color-text);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 64px;
}

.portfolio-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    align-items: start;
    gap: 48px;
    margin-bottom: 64px;
}

.portfolio-hero .page-title {
    margin-bottom: 0;
}

.portfolio-hero-note {
    align-self: end;
    font-size: 0.85rem;
    line-height: 1.6;
    color: color-mix(in srgb, var(--color-text) 40%, transparent);
    margin: 0;
    max-width: 440px;
}

.page-description,
.archive-description {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-top: -48px;
    margin-bottom: 64px;
    max-width: 600px;
}

/* === Works Grid (archive page) === */
.works-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.work-card {
    overflow: hidden;
    transition: transform var(--transition);
}

.work-card:hover {
    transform: translateY(-4px);
}

.work-card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.work-card:hover .work-card-image img,
.work-card-image:hover img {
    transform: scale(1.04);
}

.work-card-content {
    padding: 24px 0;
}

.work-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.work-card-title a {
    color: var(--color-text);
}

.work-card-title a:hover {
    text-decoration: underline;
}

.work-card-excerpt {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.work-card-link {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2px;
    transition: all var(--transition-fast);
}

.work-card-link:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

/* === Blog Page === */
.blog-page {
    padding: clamp(100px, 14vh, 160px) 0 clamp(48px, 6vh, 80px);
}

.blog-page-header {
    margin-bottom: clamp(48px, 6vh, 72px);
}

.blog-page-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--color-text);
    line-height: 1.1;
    margin-bottom: 12px;
}

.blog-page-desc {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.blog-hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    text-decoration: none;
    color: inherit;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.blog-hero-card-img {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    background: var(--color-bg-alt);
    position: relative;
}

.blog-hero-pin {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: #fff;
    z-index: 2;
}

.blog-hero-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.blog-hero-card:hover .blog-hero-card-img img {
    transform: scale(1.03);
}

.blog-hero-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-hero-card .blog-card-meta {
    margin-bottom: 16px;
}

.blog-hero-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-text);
    line-height: 1.5;
    margin-bottom: 16px;
}

.blog-hero-card-excerpt {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 24px;
}

.blog-hero-card-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    transition: opacity var(--transition-fast);
}

.blog-hero-card:hover .blog-hero-card-link {
    opacity: 0.6;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.blog-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
}

.blog-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 10px;
    background: var(--color-bg-alt);
    margin-bottom: 16px;
}

.blog-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 1;
}

.blog-card-meta .blog-card-badge {
    position: static;
    top: auto;
    right: auto;
    margin-left: 0;
}

.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-img img {
    transform: scale(1.03);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-light);
}

.blog-card-meta-sep {
    color: var(--color-border);
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: -0.02em;
    line-height: 1.45;
}

/* === Load More === */
.load-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 48px;
}

.load-more-btn {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    background: none;
    padding: 14px 40px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.load-more-btn:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

.load-more-btn:disabled {
    opacity: 0.5;
    cursor: default;
}

/* === Single Project === */
.pj-hero {
    padding: clamp(100px, 14vh, 160px) 0 clamp(48px, 6vh, 64px);
}

.pj-breadcrumbs {
    padding-top: clamp(100px, 14vh, 140px);
    padding-bottom: 0;
    font-size: 13px;
    color: var(--color-text-light);
}

.pj-breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pj-breadcrumbs + .pj-hero,
.pj-breadcrumbs + .blog-page,
.pj-breadcrumbs + .section,
.pj-breadcrumbs + .article-single,
.pj-breadcrumbs + .contacts-hero {
    padding-top: clamp(24px, 3vh, 40px);
}

.pj-breadcrumbs a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.pj-breadcrumbs a:hover {
    color: var(--color-text);
}

.pj-breadcrumbs-sep {
    color: var(--color-border);
    font-size: 11px;
}

.pj-hero-row {
    display: flex;
    gap: clamp(40px, 6vw, 80px);
    align-items: flex-start;
}

.pj-hero-left {
    flex: 1;
    min-width: 0;
}

.pj-hero-right {
    flex: 0 0 340px;
    padding-top: 8px;
}

.pj-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: clamp(16px, 2vh, 24px);
}

.pj-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pj-label {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    background: var(--color-bg-alt);
    padding: 6px 14px;
    border-radius: 100px;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.pj-label--tag {
    background: transparent;
    border: 1px solid var(--color-border);
}

.pj-label--link:hover {
    color: var(--color-text);
}

.pj-subtitle {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.portfolio-link .pj-subtitle {
    grid-column: 2 / -1;
    grid-row: 2;
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.6;
    color: color-mix(in srgb, var(--color-text) 40%, transparent);
    max-width: 440px;
}
.pj-cover {
    padding: 0 0 clamp(48px, 6vh, 80px);
}

.pj-cover-img {
    border-radius: 16px;
    overflow: hidden;
    background: var(--color-bg-alt);
    position: relative;
}

.pj-cover-link {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.pj-cover-link:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}

.pj-cover-img img {
    width: 100%;
    height: auto;
    display: block;
}

.pj-details {
    padding-bottom: clamp(48px, 6vh, 80px);
}

.pj-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
}

.pj-details-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pj-details-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.pj-details-value {
    font-size: 15px;
    color: var(--color-text);
}

.pj-details-link {
    text-decoration: none;
    border-bottom: 1px solid var(--color-border);
    transition: border-color var(--transition-fast);
}

.pj-details-link:hover {
    border-color: var(--color-text);
}

.pj-body {
    padding: 0 0 clamp(64px, 10vh, 120px);
}

.pj-share {
    padding-bottom: clamp(48px, 8vh, 80px);
}

.pj-more {
    padding: clamp(48px, 8vh, 80px) 0 clamp(64px, 10vh, 100px);
    border-top: 1px solid var(--color-border);
}

.pj-more-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: clamp(32px, 5vh, 48px);
}

.pj-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pj-more-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}

.pj-more-card:hover {
    transform: translateY(-6px);
}

.pj-more-card-img {
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg-alt);
    margin-bottom: 20px;
    aspect-ratio: 3 / 2;
}

.pj-more-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.pj-more-card:hover .pj-more-card-img img {
    transform: scale(1.03);
}

.pj-more-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pj-more-card-cat {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-light);
}

.pj-more-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.pj-more-card-desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.pj-back-wrap {
    margin-top: clamp(40px, 6vh, 64px);
    text-align: center;
}

.pj-back-btn {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 12px 28px;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    transition: all var(--transition-fast);
    display: inline-block;
}

.pj-back-btn:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

/* === 404 === */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    padding: 80px 0;
}

.error-code {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(6rem, 20vw, 14rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--color-bg-alt);
    margin-bottom: 16px;
}

.error-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: 12px;
}

.error-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: 40px;
}

.error-btn {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-white);
    background: var(--color-text);
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.error-btn:hover {
    opacity: 0.8;
}

/* === Article Single === */
.article-single {
    padding-top: 40px;
}

.article-header {
    margin-bottom: 48px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.article-meta-sep {
    color: var(--color-border);
}

.article-meta-cat {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article-meta-cat:hover {
    color: var(--color-text);
}

.article-meta-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 4px 9px 4px 11px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: none;
    font: inherit;
    font-size: 0.625rem;
    letter-spacing: inherit;
    text-transform: inherit;
    color: var(--color-text-muted);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.article-meta-share:hover,
.article-meta .article-meta-share.is-copied {
    color: var(--color-text);
    border-color: var(--color-text);
}

.article-meta .article-meta-share.is-copied {
    color: #22c55e;
    border-color: #22c55e;
}

.article-meta-share:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
}

.article-meta-share svg {
    flex: none;
    width: 11px;
    height: 11px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.article-meta-share-done,
.article-meta-share.is-copied .article-meta-share-label {
    display: none;
}

.article-meta-share.is-copied .article-meta-share-done {
    display: inline;
}

@media (max-width: 480px) {
    .article-meta-share {
        padding: 6px;
    }

    .article-meta-share-label,
    .article-meta-share.is-copied .article-meta-share-done {
        display: none;
    }
}

.article-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .article-title {
        line-height: 1.3;
    }
}

.article-excerpt {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 600px;
}

/* --- Listen to the article (assets/js/listen.js) --- */
.listen {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
}

.listen[hidden] {
    display: none;
}

.listen :where(button) {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.listen-play {
    flex: none;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.listen-play:hover {
    border-color: var(--color-text);
}

.listen-play:active {
    transform: scale(0.96);
}

.listen-play svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.listen-i-pause,
.listen.is-playing .listen-i-play {
    display: none;
}

.listen.is-playing .listen-i-pause {
    display: block;
}

.listen-time {
    flex: none;
    min-width: 3.2em;
}

.listen-left {
    flex: none;
    min-width: 3.6em;
    text-align: right;
    color: var(--color-text-muted);
}

.listen-track {
    position: relative;
    flex: 1 1 auto;
    min-width: 60px;
    height: 24px;
    cursor: pointer;
    touch-action: none;
}

.listen-track::before,
.listen-fill {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 2px;
    margin-top: -1px;
    border-radius: 2px;
}

.listen-track::before {
    right: 0;
    background: var(--color-text-light);
}

.listen-fill {
    width: 0;
    background: var(--color-text);
}

.listen-knob {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--color-text);
    transition: transform var(--transition-fast);
}

.listen-track:hover .listen-knob,
.listen-track:focus-visible .listen-knob {
    transform: scale(1.25);
}

.listen-track:focus-visible {
    outline: none;
}

.listen-track:focus-visible::before {
    box-shadow: 0 0 0 4px var(--color-hover-subtle);
}

.listen-side {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.listen-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 14px;
    transition: border-color var(--transition-fast);
}

.listen-chip:hover {
    border-color: var(--color-text);
}

.listen-play:focus-visible,
.listen-chip:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
}

.article-content .is-speaking {
    background: var(--color-hover-subtle);
    box-shadow: 0 0 0 8px var(--color-hover-subtle);
    border-radius: 2px;
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

@media (max-width: 640px) {
    .listen {
        gap: 10px;
        font-size: 14px;
    }

    .listen-play,
    .listen-chip {
        width: 44px;
        min-width: 0;
        height: 44px;
        padding: 0;
    }

    .listen-time {
        min-width: 2.8em;
    }

    .listen-left {
        min-width: 3.2em;
    }

    .listen-track {
        min-width: 40px;
    }

    .listen-chip {
        font-size: 13px;
    }
}

.article-featured-image {
    position: relative;
    margin-bottom: 56px;
    overflow: hidden;
    border-radius: 10px;
}

.article-featured-image img {
    width: 100%;
    display: block;
}

.back-link {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--color-text);
}

/* === Article Content === */
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text);
}

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 40px 0 10px;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 10px 0 10px;
}

.article-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 32px 0 12px;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content ul,
.article-content ol {
    margin: 0 0 15px 24px;
}

.article-content li {
    margin-bottom: 4px;
}

.article-content blockquote {
    border-left: 2px solid var(--color-text);
    padding: 16px 32px;
    margin: 40px 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.85;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.wp-block-pullquote {
    box-sizing: border-box;
    margin: 0 0 1em;
    overflow-wrap: break-word;
    padding: 1em 0;
    text-align: center;
}

.article-content blockquote p,
.article-content blockquote cite {
    color: inherit;
}

.article-content pre {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 24px;
    overflow-x: auto;
    margin: 32px 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.7;
}

.article-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: var(--color-bg-alt);
    padding: 2px 6px;
    font-size: 0.9em;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content img {
    margin: 32px 0;
    border-radius: 12px;
}

.article-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Gutenberg buttons */
.article-content .wp-block-button {
    margin: 32px 0;
}

.article-content .wp-block-button__link,
.article-content .wp-element-button {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--color-bg);
    background: var(--color-text);
    padding: 16px 40px;
    border: 1px solid var(--color-text);
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.article-content .wp-block-button__link:hover,
.article-content .wp-element-button:hover {
    background: transparent;
    color: var(--color-text);
}

.article-content .wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: var(--color-text);
}

.article-content .wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--color-text);
    color: var(--color-bg);
}

/* Gutenberg tables */
.article-content .wp-block-table {
    margin: 32px 0;
    border-radius: 12px;
    box-shadow: 0 0 0 1px #d0d0d0;
}

.article-content .wp-block-table table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.article-content .wp-block-table th,
.article-content .wp-block-table td {
    padding: 12px 16px;
    text-align: left;
    border: none;
    border-bottom: 1px solid #d0d0d0;
}

.article-content .wp-block-table th + th,
.article-content .wp-block-table td + td {
    border-left: 1px solid #d0d0d0;
}

.article-content .wp-block-table tbody tr:last-child td {
    border-bottom: none;
}

.article-content .wp-block-table thead th {
    font-weight: 500;
    background: var(--color-text);
    color: var(--color-bg);
    border-bottom-color: var(--color-text);
}

.article-content .wp-block-table thead th + th {
    border-left-color: rgba(255, 255, 255, 0.15);
}

.article-content .wp-block-table figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

[data-theme="dark"] .article-content .wp-block-table {
    box-shadow: 0 0 0 1px #333;
}

[data-theme="dark"] .article-content .wp-block-table th,
[data-theme="dark"] .article-content .wp-block-table td {
    border-color: #333;
}

[data-theme="dark"] .article-content .wp-block-table thead th {
    border-bottom-color: var(--color-text);
}

/* Gutenberg video & embeds */
.article-content .wp-block-video,
.article-content .wp-block-embed {
    margin: 32px 0;
}

.article-content .wp-block-video video,
.article-content .wp-block-embed .wp-block-embed__wrapper iframe,
.article-content .wp-block-embed .wp-block-embed__wrapper video {
    border-radius: 12px;
    overflow: hidden;
}

.article-content .wp-block-embed .wp-block-embed__wrapper {
    border-radius: 12px;
    overflow: hidden;
}

/* === Article Telegram CTA === */
.tg-cta {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px 28px;
    margin-top: 64px;
    padding: 32px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

[data-theme="dark"] .tg-cta {
    background: #161616;
}

.tg-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.tg-cta-body {
    min-width: 0;
}

.tg-cta-label {
    margin: 0 0 6px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
}

.tg-cta-title {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--color-text);
}

.tg-cta-text {
    margin: 0;
    max-width: 52ch;
    font-size: 0.98rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.tg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-bg);
    background: var(--color-text);
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: opacity var(--transition-fast), transform 0.3s ease;
}

.tg-cta-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.tg-cta-btn small {
    font-size: 14px;
    font-weight: 400;
    opacity: 0.6;
}

@media (max-width: 640px) {
    .tg-cta {
        grid-template-columns: auto 1fr;
        grid-template-areas:
            "icon label"
            "icon title"
            "text text"
            "btn  btn";
        gap: 0 14px;
        padding: 24px;
    }

    .tg-cta-body {
        display: contents;
    }

    .tg-cta-icon {
        grid-area: icon;
        width: 44px;
        height: 44px;
    }

    .tg-cta-label {
        grid-area: label;
        align-self: end;
        margin-bottom: 2px;
    }

    .tg-cta-title {
        grid-area: title;
        align-self: start;
        margin: 0;
        font-size: 1.15rem;
    }

    .tg-cta-text {
        grid-area: text;
        margin-top: 16px;
    }

    .tg-cta-btn {
        grid-area: btn;
        justify-content: center;
        margin-top: 20px;
    }
}

/* === Article Footer === */
.article-footer {
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.article-footer-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.article-share-label {
    font-size: 12px;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.article-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: none;
    color: var(--color-text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.article-share-btn:hover {
    color: var(--color-text);
    border-color: var(--color-text);
}

.article-share-copy.is-copied {
    color: #22c55e;
    border-color: #22c55e;
}

a.tag,
span.tag {
    display: inline-block;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--color-border);
    border-radius: 100px;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

a.tag:hover,
span.tag:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

/* === Post Navigation === */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all var(--transition);
}

.post-nav-link:hover {
    border-color: var(--color-text);
}

.post-nav-next {
    text-align: right;
    grid-column: 2;
}

.post-nav-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.post-nav-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
}

/* === Related Posts === */
.related-posts {
    padding: clamp(48px, 8vh, 80px) 0 clamp(64px, 10vh, 100px);
    border-top: 1px solid var(--color-border);
}

.related-posts-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-text);
    margin-bottom: clamp(32px, 5vh, 48px);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.related-post-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}

.related-post-card:hover {
    transform: translateY(-6px);
}

.related-post-img {
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg-alt);
    margin-bottom: 16px;
    aspect-ratio: 3 / 2;
}

.related-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.related-post-card:hover .related-post-img img {
    transform: scale(1.03);
}

.related-post-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.related-post-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

/* === Pagination === */
.pagination {
    margin-top: 64px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-muted);
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.page-numbers:hover {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.page-numbers.current {
    background: var(--color-text);
    color: var(--color-white);
}

.page-numbers.dots {
    background: none;
    color: var(--color-text-light);
}

.page-numbers.prev,
.page-numbers.next {
    padding: 0 16px;
    font-weight: 500;
    gap: 4px;
}

/* === Contacts === */
.contacts-hero {
    padding: 0 0 50px;
}

.contacts-hero .page-title {
    margin-bottom: 24px;
}

.contacts-sub {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.contacts-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 600px;
}

.contacts-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.contacts-link {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.contacts-link:hover {
    color: var(--color-text-muted);
}

/* Contacts content row */
.contacts-content {
    padding: 80px 0 120px;
}

.contacts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contacts-photo-col img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* FAQ */
.contacts-faq-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 32px;
}

.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-top: 1px solid var(--color-border);
}

.faq-item:last-child {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 400;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 0 24px;
}

.faq-answer p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

/* === Footer === */
.site-footer {
    background: #111111;
    color: #ffffff;
    padding: 0;
}

.footer-cta {
    text-align: center;
    padding: 140px 0 120px;
}

.footer-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 48px;
}

.footer-cta-btn {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0.05em;
    color: #111111;
    background: #ffffff;
    padding: 18px 48px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-copy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.2);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: #ffffff;
}

.footer-legal-dot {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.15);
}

/* === No Content === */
.no-content {
    color: var(--color-text-muted);
    font-size: 1rem;
    text-align: center;
    padding: 80px 0;
}

/* === Scroll Animations === */
.will-animate {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.will-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.will-animate-photo {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.will-animate-photo.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* stagger children */
.will-animate-children > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.will-animate-children.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.will-animate-children.is-visible > *:nth-child(1) { transition-delay: 0s; }
.will-animate-children.is-visible > *:nth-child(2) { transition-delay: 0.06s; }
.will-animate-children.is-visible > *:nth-child(3) { transition-delay: 0.12s; }
.will-animate-children.is-visible > *:nth-child(4) { transition-delay: 0.18s; }
.will-animate-children.is-visible > *:nth-child(5) { transition-delay: 0.24s; }
.will-animate-children.is-visible > *:nth-child(6) { transition-delay: 0.3s; }
.will-animate-children.is-visible > *:nth-child(7) { transition-delay: 0.36s; }
.will-animate-children.is-visible > *:nth-child(8) { transition-delay: 0.42s; }
.will-animate-children.is-visible > *:nth-child(9) { transition-delay: 0.48s; }
.will-animate-children.is-visible > *:nth-child(n+10) { transition-delay: 0.54s; }

/* === Page Loader === */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.is-loaded {
    opacity: 0;
    visibility: hidden;
}

.page-loader-text {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 300;
    color: var(--color-white);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 16px;
}

.page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.page-loader-bar-track {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    overflow: hidden;
}

.page-loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--color-white);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .contacts-row {
        gap: 40px;
    }
}

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

    .site-main {
        margin-top: 20px;
    }

    .floating-nav {
        display: none;
    }

    .header-contacts {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions {
        display: flex;
        position: relative;
        z-index: 101;
    }

    .theme-toggle--mobile {
        display: flex;
    }

    .language-switcher--mobile {
        display: flex;
    }

    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        padding: 120px 20px 40px;
        transform: translateX(100%);
        transition: transform var(--transition);
        z-index: 99;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    /* Mobile Nav − Max Pratt style */
    .nav-list li a {
        display: block;
        padding: 16px 0;
        font-size: 10vw;
        text-transform: none;
        letter-spacing: -0.03em;
        font-family: var(--font-heading);
        font-weight: 300;
        color: var(--color-text);
        border: none;
        border-radius: 0;
        line-height: 1.1;
    }

    .nav-list li a:hover {
        background: none;
    }

    .nav-list li.current-menu-item a,
    .nav-list li.current_page_item a {
        background: none;
        color: var(--color-text);
        border-radius: 0;
        border: none;
    }

    .mobile-nav-contacts {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 40px;
    }

    .mobile-nav-contact {
        font-size: 6vw;
        font-family: var(--font-heading);
        font-weight: 300;
        color: var(--color-text-muted);
        text-decoration: none;
        transition: color var(--transition-fast);
    }

    .mobile-nav-contact:hover {
        color: var(--color-text);
    }

    .page-loader-text {
        font-size: 0.6rem;
    }

    .page-loader-bar-track {
        width: 140px;
    }

    .spinner-text {
        font-size: 18px !important;
    }

    /* Hero − text, then the photo */
    .hero-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        min-height: 0;
        padding-top: 8px;
        padding-bottom: 32px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3rem);
        line-height: 1.08;
        margin-bottom: 28px;
    }

    .hero-subtitle {
        font-size: 14px;
        max-width: none;
        margin-bottom: 20px;
    }

    .hero-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 4 / 5;
        max-height: 70svh;
    }

    .hero-spinner {
        width: 110px;
        height: 110px;
        left: 12px;
        bottom: 12px;
    }

    /* Work grid */
    .work-grid {
        grid-template-columns: 1fr;
    }

    /* Project single */
    .pj-hero-row {
        flex-direction: column;
        gap: 20px;
    }

    .pj-hero-right {
        flex: none;
    }

    .pj-title {
        font-size: 8vw;
        line-height: 1.35;
    }

    .pj-more-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pj-cover-img {
        border-radius: 10px;
    }

    /* About section */

    .about-edu-year {
        font-size: 2rem;
    }

    .about-edu-card {
        padding: 16px 18px;
    }

    /* Blog section */
    

    .blog-br-desktop {
        display: none;
    }

    

    

    

    

    .blog-page-title br {
        display: none;
    }

    .pj-breadcrumbs {
        padding-top: 70px;
    }

    .pj-breadcrumbs .container {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .pj-breadcrumbs-sep {
        margin: 0 6px;
    }

    .article-footer-row {
        flex-direction: column;
        gap: 16px;
    }

    .article-share {
        flex-wrap: wrap;
    }

    

    

    

    

    

    /* Section */
    .section {
        padding: 64px 0;
    }

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

    .portfolio-link {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 24px 0;
    }

    .portfolio-number {
        display: none;
    }

    .portfolio-link-meta {
        grid-column: 1;
        grid-row: auto;
    }

    .portfolio-link .pj-subtitle {
        grid-column: 1;
        grid-row: auto;
        max-width: none;
    }

    .portfolio-year {
        text-align: left;
    }

    .blog-hero-card {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .page-title {
        font-size: 10vw;
        margin-bottom: 40px;
    }

    .portfolio-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .portfolio-hero .page-title {
        margin-bottom: 0;
    }

    .portfolio-hero-note {
        max-width: 100%;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
        grid-column: 1;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .footer-cta {
        padding: 80px 0 64px;
    }

    .footer-cta-title {
        font-size: 10vw;
    }

    .footer-cta-btn {
        padding: 16px 40px;
        font-size: 13px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px 0;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }

    .contacts-hero {
        padding: 0;
    }

    .contacts-sub {
        flex-direction: column;
        gap: 24px;
    }

    .contacts-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contacts-photo-col {
        order: -1;
    }

    .contacts-content {
        padding: 60px 0 80px;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    

    

    

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

/* === Hide cursor on touch devices === */
@media (hover: none) {
    .cursor {
        display: none;
    }
}

/* === Cookie Banner === */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    background: var(--color-accent);
    color: var(--color-bg);
    border-radius: 8px;
    z-index: 9999;
    max-width: 420px;
    width: calc(100% - 32px);
}

.cookie-banner-text {
    font-size: 10px;
    line-height: 1.4;
    margin: 0;
}

.cookie-banner-text a {
    color: inherit;
    text-decoration: underline;
}

.cookie-banner-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    font-size: 10px;
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-accent);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.cookie-banner-btn:hover {
    opacity: 0.8;
}

/* === Contact tab + modal («Напишите мне») === */
.contact-tab {
    position: fixed;
    right: 0;
    top: 75%;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 10px;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
    padding: 20px 11px;
    background: var(--color-text);
    color: var(--color-bg);
    border: 0;
    border-radius: 0 10px 10px 0;
    font: 600 12px/1 var(--font-heading);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: padding var(--transition);
}

.contact-tab:hover {
    padding-left: 17px;
}

.contact-tab:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 3px;
}

.contact-tab-dot {
    flex: none;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #3fb950;
    animation: contact-dot 2.4s ease-in-out infinite;
}

@keyframes contact-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.45); }
    50% { box-shadow: 0 0 0 5px rgba(63, 185, 80, 0); }
}

.contact-modal {
    --contact-surface: #ffffff;
    --contact-overlay: rgba(20, 20, 20, 0.35);
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 16px;
}

[data-theme="dark"] .contact-modal {
    --contact-surface: #1a1a1a;
    --contact-overlay: rgba(0, 0, 0, 0.6);
}

.contact-modal[hidden] {
    display: none;
}

body.contact-locked {
    overflow: hidden;
}

body.contact-locked .cookie-banner {
    visibility: hidden;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: var(--contact-overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal-dialog {
    position: relative;
    width: min(640px, 100%);
    max-height: calc(100svh - 32px);
    overflow: auto;
    padding: 40px;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.35s ease, transform var(--transition);
}

.contact-modal-dialog:focus {
    outline: none;
}

.contact-modal.is-open .contact-modal-backdrop,
.contact-modal.is-open .contact-modal-dialog {
    opacity: 1;
}

.contact-modal.is-open .contact-modal-dialog {
    transform: none;
}

.contact-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--color-text-muted);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.contact-modal-close:hover {
    color: var(--color-text);
    background: var(--color-hover-subtle);
}

.contact-modal-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.6;
}

.contact-modal-title {
    padding-right: 48px;
    font: 300 clamp(30px, 5vw, 44px)/1.1 var(--font-heading);
    letter-spacing: -0.03em;
}

.contact-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: var(--contact-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: border-color var(--transition-fast);
}

.contact-card:hover {
    border-color: var(--color-text);
}

.contact-card-qr {
    display: block;
    aspect-ratio: 1;
    padding: 10px;
    border-radius: 8px;
    background: #ffffff;
}

.contact-card-qr svg {
    display: block;
    width: 100%;
    height: 100%;
}

.contact-card-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font: 500 15px/1.2 var(--font-heading);
}

.contact-card-link small {
    display: block;
    margin-top: 3px;
    font: 400 13px/1 var(--font-body);
    color: var(--color-text-muted);
}

.contact-card-ico {
    flex: none;
    width: 36px;
    height: 36px;
}

.contact-card-ico--tg {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #2aabee;
    color: #ffffff;
}

.contact-card-ico--tg svg {
    width: 18px;
    height: 18px;
}

.contact-card-arrow {
    margin-left: auto;
    color: var(--color-text-muted);
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.contact-card:hover .contact-card-arrow {
    transform: translateX(3px);
    color: var(--color-text);
}

@media (max-width: 640px) {
    .contact-tab {
        padding: 16px 9px;
        font-size: 11px;
    }

    /* the phone is the messenger: bottom sheet, big buttons, no QR */
    .contact-modal {
        place-items: end stretch;
        padding: 0;
    }

    .contact-modal-dialog {
        width: 100%;
        border-bottom: 0;
        border-radius: 16px 16px 0 0;
        padding: 28px max(20px, env(safe-area-inset-left, 0px)) calc(24px + env(safe-area-inset-bottom, 0px));
        transform: translateY(40px);
    }

    .contact-modal-dialog::before {
        content: "";
        display: block;
        width: 36px;
        height: 4px;
        margin: -12px auto 20px;
        border-radius: 2px;
        background: var(--color-border);
    }

    .contact-modal-close {
        top: 12px;
        right: 8px;
    }

    .contact-modal-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 24px;
    }

    .contact-card {
        padding: 14px 16px;
    }

    .contact-card-qr {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-tab,
    .contact-modal-backdrop,
    .contact-modal-dialog {
        transition: none;
    }

    .contact-tab-dot {
        animation: none;
    }
}

/* === Khakim Cookie Banner (152-FZ) === */
.khakim-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 32px);
    max-width: 560px;
    padding: 14px 20px;
    background: rgba(14, 16, 20, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    z-index: 990;
    font-family: var(--font-body, inherit);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease, border-color 0.3s ease;
}

.khakim-cookie-banner.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

body.contact-locked .khakim-cookie-banner {
    visibility: hidden;
}

.khakim-cookie-text {
    font-size: 13px;
    line-height: 1.45;
    color: #f0f0f0;
}

.khakim-cookie-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.88;
    transition: opacity 0.2s ease;
}

.khakim-cookie-link:hover {
    opacity: 1;
}

.khakim-cookie-btn {
    background: #ffffff;
    color: #0e1013;
    border: none;
    padding: 8px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, opacity 0.2s ease, background 0.25s ease, color 0.25s ease;
    flex-shrink: 0;
}

.khakim-cookie-btn:hover {
    transform: scale(1.03);
    opacity: 0.92;
}

[data-theme="light"] .khakim-cookie-banner {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .khakim-cookie-text {
    color: #1a1a1a;
}

[data-theme="light"] .khakim-cookie-btn {
    background: #1a1a1a;
    color: #ffffff;
}

@media (max-width: 600px) {
    .khakim-cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        bottom: max(16px, env(safe-area-inset-bottom, 16px));
        gap: 12px;
    }

    .khakim-cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* === Mobile Menu, Contact Modal & Article Floating Back === */
.site-header.menu-is-open {
    z-index: 1050;
}

.article-inline-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 24px;
    border-radius: 100px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.article-floating-back {
    position: fixed;
    top: 76px;
    left: max(16px, calc(50% - 450px));
    z-index: 96;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 100px;
    background: rgba(16, 18, 23, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f4f4f5;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.article-floating-back.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

[data-theme="light"] .article-floating-back {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #1a1a1a;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

body.contact-locked .article-floating-back {
    visibility: hidden;
}

@media (max-width: 768px) {
    .site-logo {
        position: relative;
        z-index: 102;
    }
    .menu-toggle {
        display: block;
        width: 44px;
        height: 44px;
    }
    .hamburger {
        top: 21px;
        left: 10px;
    }
    .hamburger::before,
    .hamburger::after {
        left: 0;
    }
    .header-actions {
        z-index: 102;
    }
    .main-nav {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        overflow-y: auto;
        padding: 116px 24px 48px;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.35s;
        z-index: 100;
    }
    .main-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }
    .article-floating-back {
        top: 72px;
        left: 16px;
        padding: 8px 14px;
        font-size: 12.5px;
    }
}
