html.is-scrolled {
    background: #FFFFFF;
}

/* Page-specific overrides */
#main-content {
    min-height: 50vh;
    overflow-x: hidden;
}

/* Light page body — shared across all pages */
body.page-home,
body.page-services,
body.page-apps,
body.page-about,
body.page-contact,
body.page-blog,
body.page-blog-single,
body.page-feeds,
body.page-feed-single,
body.page-404 {
    background: var(--hero-light-bg);
    color: var(--text-on-light);
}

body.page-home.is-scrolled,
body.page-services.is-scrolled,
body.page-apps.is-scrolled,
body.page-about.is-scrolled,
body.page-contact.is-scrolled,
body.page-blog.is-scrolled,
body.page-blog-single.is-scrolled,
body.page-feeds.is-scrolled,
body.page-feed-single.is-scrolled,
body.page-404.is-scrolled {
    background: #FFFFFF;
}

body.page-home::before,
body.page-services::before,
body.page-apps::before,
body.page-about::before,
body.page-contact::before,
body.page-blog::before,
body.page-blog-single::before,
body.page-feeds::before,
body.page-feed-single::before,
body.page-404::before {
    display: none;
}

/* Services page — scoped typography */
body.page-services .page-hero--light .page-hero__title,
body.page-services .services-page-section h2,
body.page-services .services-page-section h3,
body.page-about .page-hero--light .page-hero__title,
body.page-about .about-page-section h2,
body.page-about .about-page-section h3 {
    color: var(--text-on-light);
}

body.page-services .page-hero--light .page-hero__subtitle,
body.page-services .services-page-section p,
body.page-services .services-page-section .service-detail__description,
body.page-services .services-page-section .service-group__description,
body.page-about .page-hero--light .page-hero__subtitle,
body.page-about .about-page-section p {
    color: var(--text-on-light-muted);
}

body.page-about .about-page-section .about-growth__title {
    color: #FFFFFF;
}

body.page-about .about-page-section .about-growth__text {
    color: rgba(255, 255, 255, 0.94);
}

/* Contact page — scoped typography */
body.page-contact .page-hero--light .page-hero__title,
body.page-contact .contact-page-section h2 {
    color: var(--text-on-light);
}

body.page-contact .page-hero--light .page-hero__subtitle,
body.page-contact .contact-page-section p,
body.page-contact .contact-map__address {
    color: var(--text-on-light-muted);
}

/* Apps page — scoped typography */
body.page-apps .page-hero--light .page-hero__title,
body.page-apps .apps-page-section h2 {
    color: var(--text-on-light);
}

body.page-apps .page-hero--light .page-hero__subtitle,
body.page-apps .apps-page-section p {
    color: var(--text-on-light-muted);
}

.apps-page-section {
    background: #FFFFFF;
}

.apps-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: #F5F7FA;
    border: 1px solid #E8EAED;
    border-radius: 20px;
}

.apps-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    text-align: center;
    padding: 0.5rem;
}

.apps-stat__value {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-on-light);
}

.apps-stat__label {
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-on-light-muted);
}

.apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
}

@media (max-width: 640px) {
    .apps-stats {
        grid-template-columns: 1fr;
    }
}

.services-page-section {
    background: #FFFFFF;
}

.services-page-section .service-details-grid {
    gap: 1.125rem;
}

@media (min-width: 1024px) {
    .services-page-section .service-details-grid {
        gap: 1.25rem;
    }
}

.services-section {
    background: #FFFFFF;
}

.services-section .section__title {
    color: #000000;
}

.why-us-section {
    background: #FFFFFF;
}

.why-us-section .section__title {
    color: var(--text-on-light);
}

.why-us-section .section__subtitle {
    color: var(--text-on-light-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.125rem;
}

@media (min-width: 1024px) {
    .why-us-section .features-grid {
        gap: 1.25rem;
    }
}

.testimonials-section {
    background: #FFFFFF;
}

.testimonials-section .section__title {
    color: var(--text-on-light);
}

.testimonials-section .section__subtitle {
    color: var(--text-on-light-muted);
    max-width: 640px;
}

.testimonials-accordion {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 800px;
    height: min(460px, 58vw);
    min-height: 320px;
    margin: 0 auto var(--space-2xl);
}

@media (min-width: 1280px) {
    .testimonials-section .container {
        max-width: var(--container-wide);
    }
}

@media (max-width: 768px) {
    .testimonials-accordion {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }
}

.services-section .grid--3 {
    gap: var(--space-lg);
}

.industries-section .section__title {
    color: var(--text-on-light);
}

.industries-section .section__subtitle {
    color: var(--text-on-light-muted);
}

.process-section .section__title {
    color: var(--text-on-light);
}

.process-section .section__subtitle {
    color: var(--text-on-light-muted);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

@media (min-width: 1024px) {
    .services-section .grid--3 {
        gap: 1.25rem;
    }

    .industries-grid {
        gap: 1.125rem;
    }
}

@media (max-width: 1024px) {
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }

    .industries-section .industry-card {
        height: 6.15rem;
        min-height: 6.15rem;
        max-height: 6.15rem;
        padding: 0 0 0 0.75rem;
        border-radius: 1.1rem;
        gap: 0.2rem;
    }

    .industries-section .industry-card__name {
        font-size: 0.78rem;
        line-height: 1.2;
    }

    .industry-card__visual {
        flex-basis: 40%;
    }

    .industry-card__blob {
        width: 3.75rem;
        height: 3.75rem;
        right: 0;
        bottom: 0;
        left: auto;
    }
}

@media (max-width: 768px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.service-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .service-details-grid { grid-template-columns: 1fr; }
}

/* Public blog listing */
.blog-hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--nav-height) + clamp(2.75rem, 7vw, 5rem)) 0 clamp(1.75rem, 4vw, 2.75rem);
    background: var(--hero-light-bg);
}

.blog-hero__fx {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blog-hero__fx::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 106, 251, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 106, 251, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 88%);
}

.blog-hero__glow {
    position: absolute;
    top: -20%;
    right: 8%;
    width: min(48vw, 420px);
    height: min(48vw, 420px);
    background: radial-gradient(circle, rgba(0, 106, 251, 0.1) 0%, transparent 68%);
    animation: blogGlowPulse 10s ease-in-out infinite;
}

.blog-hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    animation: blogOrbDrift 22s ease-in-out infinite;
}

.blog-hero__orb--1 {
    top: -12%;
    right: 4%;
    width: min(52vw, 460px);
    height: min(52vw, 460px);
    background: radial-gradient(circle, rgba(0, 106, 251, 0.18) 0%, rgba(0, 106, 251, 0) 70%);
}

.blog-hero__orb--2 {
    left: -6%;
    bottom: -38%;
    width: min(42vw, 340px);
    height: min(42vw, 340px);
    background: radial-gradient(circle, rgba(61, 139, 253, 0.14) 0%, transparent 72%);
    animation-duration: 28s;
    animation-direction: reverse;
}

.blog-hero__orb--3 {
    top: 36%;
    left: 38%;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(0, 106, 251, 0.1) 0%, transparent 70%);
    animation-duration: 18s;
    animation-delay: -7s;
}

.blog-hero__ring {
    position: absolute;
    border: 1px solid rgba(0, 106, 251, 0.12);
    border-radius: 50%;
    animation: blogRingPulse 18s ease-in-out infinite;
}

.blog-hero__ring--1 {
    top: -42%;
    right: -10%;
    width: min(70vw, 680px);
    height: min(70vw, 680px);
}

.blog-hero__ring--2 {
    top: -18%;
    right: 8%;
    width: min(38vw, 360px);
    height: min(38vw, 360px);
    border-color: rgba(0, 106, 251, 0.08);
    animation-duration: 22s;
    animation-delay: -5s;
}

.blog-hero__dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-blue);
    opacity: 0.22;
    animation: blogDotFloat 11s ease-in-out infinite;
}

.blog-hero__dot--1 { top: 22%; left: 8%; animation-delay: 0s; }
.blog-hero__dot--2 { top: 34%; left: 22%; width: 5px; height: 5px; animation-delay: -1.4s; }
.blog-hero__dot--3 { top: 18%; left: 48%; animation-delay: -2.8s; }
.blog-hero__dot--4 { top: 28%; right: 18%; width: 9px; height: 9px; animation-delay: -4.2s; }
.blog-hero__dot--5 { top: 56%; right: 10%; animation-delay: -3.1s; }
.blog-hero__dot--6 { bottom: 18%; left: 16%; width: 5px; height: 5px; animation-delay: -6s; }
.blog-hero__dot--7 { bottom: 24%; right: 28%; animation-delay: -7.5s; }
.blog-hero__dot--8 { top: 44%; left: 62%; width: 4px; height: 4px; animation-delay: -5.2s; }
.blog-hero__dot--9 { top: 64%; left: 40%; animation-delay: -8.4s; }
.blog-hero__dot--10 { top: 12%; right: 32%; width: 6px; height: 6px; animation-delay: -9.1s; }

@keyframes blogOrbDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-3.5%, 5%, 0) scale(1.08); }
}

@keyframes blogRingPulse {
    0%, 100% { transform: scale(1); opacity: 0.65; }
    50% { transform: scale(1.045); opacity: 1; }
}

@keyframes blogGlowPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes blogDotFloat {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.16; }
    50% { transform: translate3d(6px, -16px, 0); opacity: 0.42; }
}

.blog-hero .container {
    position: relative;
    z-index: 1;
}

.blog-hero__title {
    margin: 0 0 0.85rem;
    font-size: clamp(3rem, 8vw, 5rem);
    letter-spacing: -0.045em;
    line-height: 0.95;
    color: var(--text-on-light);
}

.blog-hero__subtitle {
    margin: 0;
    max-width: 34rem;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.5;
    color: var(--text-on-light-muted);
}

.blog-page-section {
    padding-top: 1.25rem;
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
    background: #FFFFFF;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.blog-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.45rem 1.05rem;
    border: 1px solid #E4E6EB;
    border-radius: 999px;
    background: #FFFFFF;
    color: #3F4650;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), padding var(--transition-fast);
}

.blog-filter:hover {
    border-color: #D5D8DE;
    color: var(--text-on-light);
}

.blog-filter.is-active {
    padding-right: 0.7rem;
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #FFFFFF;
}

.blog-filter__clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 0.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.blog-filter.is-active .blog-filter__clear {
    display: inline-flex;
}

.blog-filter__clear:hover {
    background: rgba(255, 255, 255, 0.36);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(2rem, 4vw, 2.75rem) 1.5rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.8rem 0.8rem 1.35rem;
    background: #FFFFFF;
    border: 1px solid #E8EAED;
    border-radius: 24px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    content-visibility: auto;
    contain-intrinsic-size: 460px;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.blog-card.is-hidden,
.blog-card.is-paged,
.blog-card[hidden] {
    display: none;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: #E1E4EA;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}

.blog-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    margin-bottom: 1rem;
    border-radius: 16px;
    background: #EEF0F3;
}

.blog-card__media img,
.blog-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card__placeholder {
    background-color: #F3F5F7;
    background-image: url('../images/brand/beramate-logo-mark.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 52px;
}

.blog-card__media img {
    transform: translateZ(0);
    transition: transform 0.45s ease;
}

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

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.85rem;
    margin: 0 0.25rem 0.7rem;
    color: #8A9099;
    font-size: 0.8125rem;
    line-height: 1.3;
}

.blog-card__title {
    margin: 0 0.25rem;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.28;
    color: var(--text-on-light);
}

.blog-card__author {
    margin: 0.85rem 0.25rem 0;
    color: #9AA0A6;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.blog-empty {
    margin: 0;
    padding: 3rem 0 2rem;
    color: var(--text-on-light-muted);
    text-align: center;
}

.blog-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin-top: clamp(2rem, 4vw, 2.75rem);
    padding: 0.85rem 1.5rem;
    border: 1px solid #B7D0F7;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--brand-blue);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.blog-load-more span {
    margin-left: 0.35rem;
    font-weight: 500;
}

.blog-load-more:hover {
    background: var(--brand-blue-soft);
    border-color: var(--brand-blue-light);
    color: var(--brand-blue-hover);
}

.blog-load-more[hidden] {
    display: none;
}

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .blog-hero {
        padding-top: calc(var(--nav-height) + 2.25rem);
    }

    .blog-hero__dot--7,
    .blog-hero__dot--8,
    .blog-hero__dot--9,
    .blog-hero__dot--10,
    .blog-hero__orb--3 {
        display: none;
    }

    .blog-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-left: calc(-1 * var(--space-lg));
        margin-right: calc(-1 * var(--space-lg));
        padding: 0 var(--space-lg) 0.35rem;
        max-width: none;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .blog-filters::-webkit-scrollbar {
        display: none;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-filters {
        margin-left: calc(-1 * var(--space-md));
        margin-right: calc(-1 * var(--space-md));
        padding: 0 var(--space-md) 0.35rem;
    }

    .blog-card {
        padding: 0.7rem 0.7rem 1.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .blog-hero__orb,
    .blog-hero__ring,
    .blog-hero__dot,
    .blog-hero__glow {
        animation: none !important;
    }

    .blog-card,
    .blog-card:hover,
    .blog-card__media img,
    .blog-card:hover .blog-card__media img {
        transform: none;
        transition: none;
        box-shadow: none;
    }
}

/* Single blog article */
.article-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: calc(var(--nav-height) + 1.5rem) 0 2.35rem;
    color: #FFFFFF;
    border-radius: 0;
    background-color: #0057e7;
    background-image: url('../images/cta/bg-pattern.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.article-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(0, 196, 255, 0.18) 0%, transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 38%);
    pointer-events: none;
}

.article-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
    pointer-events: none;
}

.article-hero__inner {
    position: relative;
    z-index: 1;
}

.article-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1.35rem;
    list-style: none;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.78);
}

.article-crumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.article-crumbs li:not(:last-child)::after {
    content: '>';
    opacity: 0.7;
}

.article-crumbs a {
    color: inherit;
}

.article-crumbs a:hover {
    color: #FFFFFF;
}

.article-read {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1.1rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.article-read .icon {
    flex-shrink: 0;
}

.article-hero__title {
    margin: 0 0 1.75rem;
    font-size: clamp(2.15rem, 5.4vw, 4.15rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #FFFFFF;
}

.article-hero__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.article-author__photo {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.article-author__photo[hidden] {
    display: none !important;
}

.article-author__photo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-blue);
}

.article-author__name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: #FFFFFF;
}

.article-author__name span {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
}

.article-author__updated {
    margin: 0.15rem 0 0;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.74);
}

.article-hero__cta {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
    gap: 0.4rem;
    width: max-content;
    max-width: 100%;
    padding: 0.72rem 1.15rem;
    background: #FFFFFF;
    color: #0D0D0D;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(8, 28, 78, 0.16);
}

.article-hero__cta:hover {
    transform: translateY(-1px);
}

.article-body-wrap {
    background: #FFFFFF;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: clamp(2rem, 5vw, 4.5rem);
    padding-top: clamp(2.25rem, 5vw, 3.5rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
    align-items: start;
}

.article-panel {
    margin: 0 0 2.15rem;
}

.article-panel__title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1rem;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    letter-spacing: -0.03em;
    color: #0D0D0D;
}

.article-panel__title .icon {
    color: #0D0D0D;
}

.article-toc {
    margin: 0;
    padding: 0.1rem 0 0.1rem 1.35rem;
    border-left: 3px solid #E8EAED;
    list-style: none;
}

.article-toc li + li {
    margin-top: 0.85rem;
}

.article-toc a {
    color: var(--brand-blue);
    font-weight: 500;
    line-height: 1.5;
}

.article-toc a:hover,
.article-toc a.is-active {
    color: var(--brand-blue-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-cover {
    margin: 0 0 2rem;
}

.article-cover img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 22px;
    background: #EEF0F3;
}

.article-content {
    max-width: 46rem;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #3A4046;
}

.article-content > *:first-child {
    margin-top: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: #0D0D0D;
    letter-spacing: -0.03em;
    scroll-margin-top: calc(var(--nav-height) + 1.15rem);
}

.article-content h2 {
    margin: 2.4rem 0 0.9rem;
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
}

.article-content h3 {
    margin: 1.75rem 0 0.7rem;
    font-size: 1.2rem;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin: 0 0 1.05rem;
    padding-left: 1.25rem;
}

.article-content p {
    padding-left: 0;
}

.article-content ul {
    list-style: disc;
}

.article-content ol {
    list-style: decimal;
}

.article-content li + li {
    margin-top: 0.4rem;
}

.article-content a {
    color: var(--brand-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.4rem 0;
    border-radius: 16px;
}

.article-content blockquote {
    margin: 1.4rem 0;
    padding: 0.2rem 0 0.2rem 1.1rem;
    border-left: 3px solid var(--brand-blue);
    color: #1F2937;
    font-weight: 500;
}

.article-aside {
    position: sticky;
    top: calc(var(--nav-height) + 1.25rem);
}

.article-aside__card {
    padding: 1.35rem 1.2rem 1.25rem;
    background: #F5F6F8;
    border-radius: 18px;
}

.article-aside__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--brand-blue);
    color: #FFFFFF;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
}

.article-aside__btn:hover {
    background: var(--brand-blue-hover);
}

.article-lead {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.article-lead__title {
    margin: 0 0 0.15rem;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
}

.article-lead__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.article-lead input,
.article-lead textarea {
    width: 100%;
    margin: 0;
    padding: 0.7rem 0.8rem;
    border: 1px solid #E1E4EA;
    border-radius: 10px;
    background: #FFFFFF;
    color: #0D0D0D;
    font: inherit;
    line-height: 1.4;
}

.article-lead input::placeholder,
.article-lead textarea::placeholder {
    color: #8A9199;
}

.article-lead textarea {
    min-height: 4.5rem;
    resize: vertical;
}

.article-lead input:focus,
.article-lead textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(0, 106, 251, 0.12);
}

.article-lead__hint {
    font-size: 0.75rem;
    line-height: 1.35;
    color: #6B7280;
}

.article-lead__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.article-lead__status {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.article-lead__status.is-ok {
    color: #0B7A3B;
}

.article-lead__status.is-error {
    color: #B42318;
}

.article-lead .article-aside__btn {
    margin-top: 0.15rem;
    border: 0;
    cursor: pointer;
}

.article-related {
    margin-top: 1.75rem;
}

.article-related__label {
    margin: 0 0 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8A9199;
}

.article-related ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-related li {
    padding: 0.95rem 0;
    border-top: 1px solid #ECEEF1;
}

.article-related a {
    display: block;
    color: #0D0D0D;
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.35;
}

.article-related a:hover {
    color: var(--brand-blue);
}

.article-related time,
.article-related__all {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.86rem;
    color: #6B7280;
}

.article-missing {
    padding: calc(var(--nav-height) + 4rem) 0 6rem;
    background: #FFFFFF;
}

.article-kicker {
    margin: 0 0 0.7rem;
    color: var(--brand-blue);
    font-weight: 600;
}

.article-missing h1 {
    margin: 0 0 0.75rem;
}

.article-missing__link {
    display: inline-flex;
    margin-top: 1.25rem;
    color: var(--brand-blue);
    font-weight: 600;
}

@media (max-width: 980px) {
    .article-layout {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .article-aside {
        position: static;
        order: 2;
    }
}

@media (max-width: 680px) {
    .article-hero {
        margin: 0;
        padding: calc(var(--nav-height) + 1.15rem) 0 2rem;
        border-radius: 0;
    }

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

    .article-hero__cta {
        width: max-content;
        max-width: 100%;
        justify-content: center;
    }

    .article-layout {
        padding-top: 1.75rem;
        padding-bottom: 3rem;
        gap: 2rem;
    }

    .article-cover img,
    .article-content img {
        border-radius: 14px;
    }

    .article-aside__card {
        padding: 1.2rem 1rem 1.15rem;
    }

    .article-related {
        margin-top: 1.5rem;
        padding-top: 0.25rem;
    }
}

body.page-feeds,
body.page-feeds.is-scrolled {
    background-color: #F4F6F8;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.7) 0,
        rgba(255, 255, 255, 0.7) 10px,
        rgba(236, 239, 244, 0.55) 10px,
        rgba(236, 239, 244, 0.55) 11px
    );
}

.hub-hero {
    padding: calc(var(--nav-height) + clamp(2.4rem, 6vw, 4.25rem)) 0 0.35rem;
    text-align: center;
}

.hub-hero__title {
    margin: 0 0 0.55rem;
    font-size: clamp(2.35rem, 5.5vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
    color: var(--text-on-light);
}

.hub-hero__subtitle {
    margin: 0 auto;
    max-width: 34rem;
    color: #6B7280;
    font-size: clamp(0.98rem, 1.6vw, 1.12rem);
    line-height: 1.5;
}

.hub-board {
    padding-top: 1.5rem;
    padding-bottom: clamp(3rem, 7vw, 5.5rem);
    background: transparent;
}

.hub-tabs {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 1.85rem;
    padding: 0.35rem;
    overflow-x: auto;
    border: 1px solid #E6E8EE;
    border-radius: 999px;
    background: #FFFFFF;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    scrollbar-width: none;
}

.hub-tabs::-webkit-scrollbar {
    display: none;
}

.hub-tab {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0.5rem 1.15rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #111827;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.hub-tab:hover {
    color: var(--brand-blue);
}

.hub-tab.is-active {
    border-color: #3B82F6;
    background: #FFFFFF;
    color: #2563EB;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.15rem;
}

.hub-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.7rem 0.7rem 1rem;
    border: 1px solid #E8EAED;
    border-radius: 22px;
    background: #FFFFFF;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    content-visibility: auto;
    contain-intrinsic-size: 360px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hub-card.is-paged,
.hub-card[hidden] {
    display: none;
}

.hub-card:hover {
    transform: translateY(-4px);
    border-color: #D9DEE7;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

.hub-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    margin-bottom: 0.9rem;
    border-radius: 16px;
    background: #EEF2F7;
}

.hub-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.hub-card__title {
    margin: 0 0.35rem 0.7rem;
    min-height: 2.6em;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text-on-light);
}

.hub-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin: auto 0.35rem 0;
    color: #9AA0A6;
    font-size: 0.78rem;
    line-height: 1;
}

.hub-card__badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.hub-card__badge--service {
    background: #FCE7F3;
    color: #DB2777;
}

.hub-card__badge--blog {
    background: #DBEAFE;
    color: #2563EB;
}

.hub-art {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.9), transparent 36%),
        linear-gradient(160deg, #E8EEF8 0%, #F7F9FC 55%, #EEF3FA 100%);
}

.hub-art--tone-2 {
    background:
        radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.85), transparent 34%),
        linear-gradient(155deg, #E7F0FF 0%, #F6F8FC 58%, #EAF1FB 100%);
}

.hub-art--tone-3 {
    background:
        radial-gradient(circle at 12% 80%, rgba(255, 255, 255, 0.85), transparent 38%),
        linear-gradient(165deg, #EDE9FE 0%, #F7F8FC 60%, #EEF2FF 100%);
}

.hub-art--tone-4 {
    background:
        radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.8), transparent 36%),
        linear-gradient(150deg, #E0F2FE 0%, #F8FAFC 58%, #EAF4FF 100%);
}

.hub-art__back,
.hub-art__win {
    position: absolute;
    border-radius: 14px;
    background: #FFFFFF;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.hub-art__back {
    right: 8%;
    bottom: 10%;
    width: 58%;
    height: 58%;
    background: #F1F5F9;
    transform: rotate(8deg);
}

.hub-art__win {
    left: 9%;
    top: 12%;
    width: 74%;
    height: 74%;
    padding: 0.55rem 0.6rem;
    overflow: hidden;
}

.hub-art__win--rear {
    left: auto;
    right: 7%;
    top: 18%;
    width: 46%;
    height: 62%;
    padding: 0;
    background: #FFFFFF;
    transform: rotate(7deg);
    opacity: 0.9;
}

.hub-art__chrome {
    display: flex;
    gap: 0.22rem;
    margin-bottom: 0.55rem;
}

.hub-art__chrome i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #E5E7EB;
}

.hub-art__chrome i:first-child { background: #F9A8D4; }
.hub-art__chrome i:nth-child(2) { background: #FDE68A; }
.hub-art__chrome i:nth-child(3) { background: #86EFAC; }

.hub-art__bars {
    display: flex;
    align-items: flex-end;
    gap: 0.35rem;
    height: 46%;
    margin-bottom: 0.5rem;
    padding: 0 0.15rem;
}

.hub-art__bars b {
    flex: 1;
    border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, #60A5FA, #2563EB);
}

.hub-art__bars .is-a { height: 42%; }
.hub-art__bars .is-b { height: 68%; background: linear-gradient(180deg, #93C5FD, #3B82F6); }
.hub-art__bars .is-c { height: 86%; }
.hub-art__bars .is-d { height: 55%; background: linear-gradient(180deg, #BFDBFE, #2563EB); }

.hub-art__people {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.hub-art__people span {
    height: 28px;
    border-radius: 8px;
    background: #F1F5F9;
    box-shadow: inset 22px 0 0 #DBEAFE;
}

.hub-art__search {
    height: 18px;
    margin-bottom: 0.45rem;
    border-radius: 999px;
    background: #F1F5F9;
    box-shadow: inset 16px 0 0 #DBEAFE;
}

.hub-art__row {
    display: block;
    height: 10px;
    margin-bottom: 0.38rem;
    border-radius: 999px;
    background: #E5E7EB;
}

.hub-art__row--short {
    width: 62%;
}

.hub-art__layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.35rem;
    height: calc(100% - 1.1rem);
}

.hub-art__layout span {
    min-height: 18px;
    border-radius: 8px;
    background: #EEF2FF;
}

.hub-art__hero {
    grid-column: 1 / -1;
    background: linear-gradient(90deg, #DBEAFE, #EFF6FF) !important;
}

.hub-art__phone {
    position: absolute;
    right: 12%;
    top: 28%;
    width: 34%;
    height: 62%;
    padding: 0.4rem 0.35rem;
    border-radius: 12px;
    background: #0F172A;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.hub-art__phone span {
    display: block;
    width: 28%;
    height: 4px;
    margin: 0 auto 0.4rem;
    border-radius: 999px;
    background: #334155;
}

.hub-art__phone b {
    display: block;
    height: 18%;
    margin-bottom: 0.28rem;
    border-radius: 4px;
    background: #38BDF8;
}

.hub-art__phone .is-mid { width: 72%; background: #818CF8; }
.hub-art__phone .is-tall { height: 28%; background: #34D399; }

.hub-art__chip {
    position: absolute;
    left: 10%;
    top: 34%;
    width: 42%;
    height: 38%;
    border-radius: 12px;
    background: #FFFFFF;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.hub-empty {
    margin: 0;
    padding: 2.5rem 0;
    color: var(--text-on-light-muted);
    text-align: center;
}

.hub-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 1.75rem;
    padding: 0.85rem 1.5rem;
    border: 1px solid #B7D0F7;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--brand-blue);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.hub-load-more span {
    margin-left: 0.35rem;
}

.hub-load-more:hover {
    background: var(--brand-blue-soft);
    border-color: var(--brand-blue-light);
}

.hub-load-more[hidden] {
    display: none;
}

@media (max-width: 1100px) {
    .hub-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hub-hero {
        padding-top: calc(var(--nav-height) + 2.1rem);
    }

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

    .hub-card__title {
        min-height: 0;
    }
}

.feed-block {
    margin: 2.4rem 0 0;
}

.feed-block h2 {
    margin: 0 0 1.1rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.feed-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.feed-cards article {
    padding: 1.15rem 1.2rem;
    border: 1px solid #E6E8EC;
    border-radius: 18px;
    background: #F8F8F9;
}

.feed-cards h3,
.feed-steps h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.feed-cards p,
.feed-steps p {
    margin: 0;
    color: #585C5F;
}

.feed-steps {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.feed-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.95rem;
    align-items: start;
    padding: 1rem 1.1rem;
    border: 1px solid #E6E8EC;
    border-radius: 18px;
}

.feed-steps span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: #0057e7;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
}

.feed-related__label {
    margin: 1.1rem 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #585C5F;
}

.feed-related {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feed-related a {
    color: var(--brand-blue);
    font-weight: 600;
}

.feed-page .faq-panel {
    max-width: none;
    margin: 0;
}

.feed-page .faq-panel__header {
    margin-bottom: 1.1rem;
    padding-right: 0;
}

.feed-page .faq-panel__title {
    font-size: clamp(1.45rem, 3vw, 2rem);
    text-align: left;
    line-height: 1.2;
}

.feed-page .faq-expand-all {
    display: none;
}

.feed-page .faq-list {
    display: grid;
    gap: 0.75rem;
    max-width: none;
    margin: 0;
}

.feed-page .faq-item {
    margin: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid #E6E8EC;
    border-radius: 18px;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feed-page .faq-item:hover,
.feed-page .faq-item--open {
    border-color: #D8DCE2;
    box-shadow: 0 4px 16px rgba(13, 21, 38, 0.04);
}

.feed-page .faq-item__question {
    padding: 1.05rem 1.15rem;
    font-size: 1rem;
    font-weight: 600;
    color: #0D0D0D;
}

.feed-page .faq-item__toggle {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #F3F4F6;
    color: #6B7280;
    box-shadow: none;
}

.feed-page .faq-item__icon {
    display: none !important;
}

.feed-page .faq-item__toggle::after {
    content: '';
    width: 7px;
    height: 7px;
    margin-top: -2px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.22s ease;
}

.feed-page .faq-item--open .faq-item__toggle::after {
    margin-top: 3px;
    transform: rotate(225deg);
}

.feed-page .faq-item__answer {
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feed-page .faq-item--open .faq-item__answer {
    max-height: 480px;
}

.feed-page .faq-item__answer-inner {
    padding: 0 1.15rem 1.15rem;
    color: #585C5F;
    font-size: 0.95rem;
    line-height: 1.65;
}

@media (max-width: 980px) {
    .feed-cards {
        grid-template-columns: 1fr;
    }
}

.error-404 {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 2.5rem) 0 5rem;
}

.error-404__inner {
    max-width: 640px;
    text-align: center;
}

.error-404__visual {
    position: relative;
    width: 196px;
    height: 196px;
    margin: 0 auto 2rem;
}

.error-404__mark {
    width: 196px;
    height: 196px;
}

.error-404__ring {
    fill: none;
    stroke: #C9D3DF;
    stroke-width: 1.25;
}

.error-404__ring--outer {
    stroke-dasharray: 8 10;
    animation: error-404-spin 22s linear infinite;
    transform-origin: 80px 80px;
}

.error-404__ring--mid {
    stroke: rgba(0, 106, 251, 0.28);
    animation: error-404-spin-rev 16s linear infinite;
    transform-origin: 80px 80px;
}

.error-404__ring--inner {
    stroke: #006AFB;
    stroke-width: 1.5;
    stroke-dasharray: 40 180;
    animation: error-404-draw 3.4s ease-in-out infinite;
    transform-origin: 80px 80px;
}

.error-404__needle {
    fill: #0D0D0D;
    animation: error-404-needle 5s ease-in-out infinite;
    transform-origin: 80px 80px;
}

.error-404__needle--south {
    fill: #006AFB;
    opacity: 0.85;
}

.error-404__orbit {
    position: absolute;
    inset: 0;
}

.error-404__icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E4E8EE;
    box-shadow: 0 10px 24px rgba(24, 39, 75, 0.08);
    color: #006AFB;
}

.error-404__icon .icon {
    display: block;
}

.error-404__icon--search {
    top: -6px;
    left: 50%;
    margin-left: -21px;
    animation: error-404-float 3.2s ease-in-out infinite;
}

.error-404__icon--home {
    right: -8px;
    bottom: 42px;
    animation: error-404-float 3.8s ease-in-out infinite 0.4s;
}

.error-404__icon--code {
    left: -8px;
    bottom: 42px;
    animation: error-404-float 3.5s ease-in-out infinite 0.8s;
}

.error-404__kicker {
    margin: 0 0 0.7rem;
    color: var(--brand-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.error-404__title {
    margin: 0 0 0.85rem;
    color: #0D0D0D;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.error-404__lead {
    margin: 0 auto 1.75rem;
    max-width: 28rem;
    color: #585C5F;
    font-size: 1.05rem;
    line-height: 1.6;
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.error-404__ghost {
    background: #FFFFFF;
    color: #0D0D0D;
    border-color: #E1E3E8;
    border-radius: 999px;
    padding: 0.8125rem 1.625rem;
}

.error-404__ghost:hover {
    border-color: #C9D0D8;
    background: #F7F8F9;
    transform: translateY(-1px);
}

.error-404__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem 1.25rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.error-404__links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #4B5563;
    font-size: 0.92rem;
    font-weight: 600;
}

.error-404__links a:hover {
    color: #0D0D0D;
}

@keyframes error-404-spin {
    to { transform: rotate(360deg); }
}

@keyframes error-404-spin-rev {
    to { transform: rotate(-360deg); }
}

@keyframes error-404-draw {
    0%, 100% { stroke-dashoffset: 0; }
    50% { stroke-dashoffset: 90; }
}

@keyframes error-404-needle {
    0%, 100% { transform: rotate(-12deg); }
    50% { transform: rotate(16deg); }
}

@keyframes error-404-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce) {
    .error-404__ring,
    .error-404__needle,
    .error-404__orbit,
    .error-404__icon {
        animation: none;
    }
}

@media (max-width: 640px) {
    .error-404 {
        padding-top: calc(var(--nav-height) + 1.5rem);
    }

    .error-404__visual,
    .error-404__mark {
        width: 164px;
        height: 164px;
    }
}
