/* Black Octopus — основные стили
   Шрифт: Inter (единственный)
   Акцентный цвет задаётся через CSS-переменную --accent-color в PHP */

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

/* ─────────────────────────────────────────────────────────────
   Black Octopus 2026 — editorial art-direction layer
   ───────────────────────────────────────────────────────────── */

:root {
    --surface: #101112;
    --surface-soft: #161819;
    --line: rgba(255, 255, 255, 0.12);
    --muted: #969b9e;
    --display: clamp(2rem, 5.5vw, 8.75rem);
    --page-gutter: clamp(24px, 6vw, 96px);
}

body {
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 229, 255, 0.035), transparent 34rem),
        #080909;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    opacity: 0.025;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

::selection {
    color: #070808;
    background: var(--accent-color);
}

.icon-arrow-up-right {
    display: block;
    width: 1em;
    height: 1em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.container {
    max-width: 1440px;
    padding-inline: clamp(24px, 5vw, 80px);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px 0;
    background: transparent;
    overflow: visible;
}

.header--scrolled {
    padding: 15px 0;
    background: rgba(8, 9, 9, 0.8);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(20px) saturate(130%);
}

.header__inner {
    max-width: none;
    padding-inline: var(--page-gutter);
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #fff;
}

.logo__img {
    display: block;
    height: clamp(22px, 2.8vw, 32px);
    width: auto;
    max-width: min(200px, 52vw);
}

.nav {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    gap: 4px;
    transform: translateX(-50%);
}

.nav a {
    padding: 8px 10px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 10px;
    letter-spacing: 0.1em;
}

.nav__sep {
    color: rgba(255, 255, 255, 0.22);
    font-size: 10px;
    font-weight: 400;
    user-select: none;
    line-height: 1;
}

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

.nav a:hover {
    color: #fff;
}

.header__availability {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header__availability span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 14px var(--accent-color);
    animation: availabilityPulse 2s ease-in-out infinite;
}

@keyframes availabilityPulse {
    50% { opacity: 0.35; }
}

.hero {
    position: relative;
    min-height: max(720px, 100svh);
    padding: 138px var(--page-gutter) 90px;
    justify-content: flex-start;
    overflow: hidden;
    background: #080909;
    border-bottom: 1px solid var(--line);
}

.hero__ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero__grid {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.042) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.042) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
}

.hero__orb--one {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(47vw, 720px);
    height: min(47vw, 720px);
    top: 4%;
    right: -12%;
    filter: none;
    border: 1px solid color-mix(in srgb, var(--accent-color) 30%, transparent);
    box-shadow:
        inset 0 0 120px color-mix(in srgb, var(--accent-color) 5%, transparent),
        0 0 120px color-mix(in srgb, var(--accent-color) 4%, transparent);
}

.hero__orb-logo {
    position: relative;
    z-index: 1;
    width: 40%;
    height: auto;
    opacity: 0.2;
    animation: heroOrbSpin 72s linear infinite;
}

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

.hero__orb--one::before,
.hero__orb--one::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: inherit;
}

.hero__orb--one::before {
    inset: 13%;
}

.hero__orb--one::after {
    inset: 29%;
    background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent-color) 14%, transparent), transparent 62%);
}

.hero__orb--two {
    width: 12px;
    height: 12px;
    top: 27%;
    right: 20%;
    background: var(--accent-color);
    box-shadow: 0 0 34px 12px color-mix(in srgb, var(--accent-color) 30%, transparent);
    will-change: transform, opacity;
    animation: heroDotFloat 14s ease-in-out infinite;
}

@keyframes heroDotFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 1;
    }
    20% {
        transform: translate3d(-7vw, 2vh, 0) scale(0.82);
        opacity: 0.72;
    }
    45% {
        transform: translate3d(-3vw, 10vh, 0) scale(1.15);
        opacity: 1;
    }
    70% {
        transform: translate3d(4vw, 7vh, 0) scale(0.9);
        opacity: 0.78;
    }
    88% {
        transform: translate3d(2vw, -3vh, 0) scale(1.08);
        opacity: 0.95;
    }
}

.hero__inner {
    position: relative;
    z-index: 2;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 1240px;
    min-width: 0;
    margin: auto 0;
}

.hero__meta {
    width: min(100%, 680px);
    display: flex;
    justify-content: space-between;
    margin-bottom: clamp(28px, 4vh, 52px);
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero__slogan {
    max-width: 100%;
    min-width: 0;
    margin-bottom: 34px;
    font-size: var(--display);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 0.92;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    hyphens: auto;
    text-wrap: balance;
}

.hero__slogan em {
    display: block;
    max-width: 100%;
    color: transparent;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.72em;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -0.04em;
    line-height: 1.05;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.58);
}

.hero__slogan-accent {
    display: block;
    color: var(--accent-color);
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    max-width: 650px;
    margin: 0 0 44px clamp(0px, 18vw, 270px);
    color: #9ca1a4;
    font-size: clamp(14px, 1.3vw, 18px);
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 34px;
    margin-left: clamp(0px, 18vw, 270px);
}

.btn-primary {
    position: relative;
    padding: 17px 25px;
    border-radius: 0;
    overflow: hidden;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.18);
}

.hero__link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero__link span {
    color: var(--accent-color);
    font-size: 17px;
}

.hero__rail {
    position: absolute;
    right: -107px;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transform: rotate(90deg);
}

.hero__rail i {
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.25);
}

.hero__scroll {
    position: absolute;
    left: clamp(24px, 6vw, 96px);
    bottom: 34px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 9px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero__scroll i {
    position: relative;
    width: 70px;
    height: 1px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
}

.hero__scroll i::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 1px;
    background: var(--accent-color);
    animation: scrollLine 2.4s ease-in-out infinite;
}

@keyframes scrollLine {
    from { transform: translateX(-30px); }
    to { transform: translateX(75px); }
}

.section-kicker {
    margin-bottom: 24px;
    color: var(--accent-color);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.section-title {
    color: #f4f5f5;
    font-size: clamp(42px, 6.1vw, 88px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.section-title span,
.clients__title span {
    color: #74797c;
}

.section-lead {
    max-width: 420px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.section-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: end;
    gap: 64px;
    margin-bottom: 100px;
}

.section-intro .section-kicker {
    grid-column: 1 / -1;
    margin-bottom: -34px;
}

.about {
    position: relative;
    padding: clamp(110px, 13vw, 190px) 0;
    background: #080909;
}

.about__grid {
    gap: 0;
    margin-bottom: 72px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about__col {
    position: relative;
    min-height: 390px;
    align-items: flex-start;
    padding: 42px 38px 44px;
    text-align: left;
    border-right: 1px solid var(--line);
    transition: background 0.4s ease;
}

.about__col:last-child {
    border-right: 0;
}

.about__col:hover {
    background: var(--accent-color);
}

.about__col:hover .about__number,
.about__col:hover .about__title {
    color: #fff;
}

.about__col:hover .about__desc {
    color: rgba(255, 255, 255, 0.82);
}

.about__col:hover .about__icon {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.about__number {
    margin-bottom: auto;
    color: #5f6568;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.about__icon {
    width: 54px;
    height: 54px;
    margin: 52px 0 28px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: #fff;
    transition: border-color 0.4s ease, color 0.4s ease;
}

.about__icon svg {
    width: 100%;
    height: 100%;
}

.about__title {
    font-size: clamp(20px, 2vw, 28px);
    letter-spacing: -0.03em;
}

.about__desc {
    max-width: 330px;
    color: var(--muted);
    font-size: 14px;
}

.about__note {
    max-width: none;
    margin: 0;
    padding-left: 50%;
    color: #d4d6d7;
    font-size: clamp(18px, 2vw, 28px);
    font-style: normal;
    text-align: left;
    letter-spacing: -0.025em;
}

.cases {
    padding: clamp(100px, 12vw, 170px) 0;
    background: #e9e9e5;
    color: #101112;
}

.cases .section-kicker {
    color: var(--accent-color);
}

.cases .section-title {
    color: var(--accent-color);
}

.cases .section-title span {
    color: #888b89;
}

.cases .section-lead {
    color: var(--accent-color);
}

.cases__heading {
    display: grid;
    grid-template-columns: 1fr 380px;
    align-items: end;
    gap: 60px;
    margin-bottom: clamp(150px, 12vw, 220px);
}

.cases__inner {
    max-width: 1440px;
    padding-inline: clamp(24px, 5vw, 80px);
    gap: 130px;
}

.case-card {
    width: min(100%, 1080px);
}

.case-card--alt {
    align-self: flex-end;
    width: min(82%, 940px);
}

.case-card__wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: end;
    gap: 34px;
}

.case-card--alt .case-card__wrap {
    grid-template-columns: 270px minmax(0, 1fr);
}

.case-card--alt .case-card__box {
    grid-column: 2;
}

.case-card--alt .case-card__panel {
    grid-column: 1;
    grid-row: 1;
}

.case-card__box {
    isolation: isolate;
    aspect-ratio: 16 / 10;
    border-radius: 0;
    background: #111;
    box-shadow: none;
}

.case-card__box::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.7;
    background:
        radial-gradient(circle at 70% 25%, rgba(0, 229, 255, 0.55), transparent 20%),
        radial-gradient(circle at 34% 62%, rgba(76, 50, 255, 0.7), transparent 29%),
        linear-gradient(135deg, #101719, #050606 72%);
}

.case-card--alt .case-card__box::after {
    background:
        radial-gradient(circle at 32% 30%, rgba(255, 116, 68, 0.72), transparent 24%),
        radial-gradient(circle at 70% 65%, rgba(210, 255, 51, 0.5), transparent 27%),
        linear-gradient(145deg, #17110e, #060606 70%);
}

.case-card__fallback {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.case-card__fallback b {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(140px, 25vw, 340px);
    font-weight: 700;
    letter-spacing: -0.12em;
    line-height: 1;
    mix-blend-mode: overlay;
}

.case-card__fallback i {
    position: absolute;
    left: 24px;
    bottom: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 9px;
    font-style: normal;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.case-card__preview {
    z-index: 1;
}

.case-card__preview:not([src='']) {
    color: transparent;
}

.case-card__shade {
    z-index: 2;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.18));
}

.case-card__wrap:hover .case-card__box {
    box-shadow: none;
}

.case-card__wrap:hover .case-card__preview {
    transform: scale(1.045);
}

.case-card__panel {
    position: static;
    width: auto;
    min-height: 0;
    padding: 0 0 8px;
    border: 0;
    border-radius: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    background: transparent;
    backdrop-filter: none;
}

.case-card__wrap:hover .case-card__panel {
    transform: none;
}

.case-card__meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(16, 17, 18, 0.22);
    color: #696d6c;
    font-size: 9px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.case-card__category {
    margin: 0;
    color: #006e78;
}

.case-card__title {
    margin-bottom: 13px;
    color: #101112;
    font-size: clamp(36px, 4vw, 62px);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.case-card__desc {
    margin-bottom: 28px;
    color: #5f6362;
    font-size: 14px;
    line-height: 1.55;
}

.case-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 0;
    border-top: 1px solid rgba(16, 17, 18, 0.22);
    border-bottom: 1px solid rgba(16, 17, 18, 0.22);
    color: #101112;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.case-card__link span {
    font-size: 17px;
    transition: transform 0.3s ease;
}

.case-card__link:hover {
    color: #006e78;
    opacity: 1;
}

.case-card__link:hover span {
    transform: translate(3px, -3px);
}

.marquee {
    padding: 0;
    border-block: 1px solid var(--line);
    background: var(--accent-color);
}

.marquee__head {
    padding: 22px var(--page-gutter) 28px;
    background: var(--accent-color);
}

.marquee__heading {
    margin: 0;
    color: #fff;
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 500;
    letter-spacing: -.03em;
    line-height: 1.15;
    text-align: center;
}

.marquee__wrapper {
    padding: 12px 0 40px;
    overflow: hidden;
}

.marquee__item,
.marquee span {
    color: #070808;
}

.clients {
    padding: clamp(110px, 13vw, 180px) 0;
    background: #080909;
}

.section-intro--compact {
    display: block;
    margin-bottom: 76px;
}

.section-intro.section-intro--compact .section-kicker {
    margin-bottom: 24px;
}

.clients__title {
    margin: 0;
    color: #f4f5f5;
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 500;
    letter-spacing: -0.06em;
    line-height: 0.95;
    text-align: left;
}

.clients__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
}

.clients__item {
    min-height: 105px;
    display: grid;
    grid-template-columns: 36px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
    transition: background 0.3s ease;
}

.clients__item:nth-child(3n) {
    border-right: 0;
}

.clients__item:hover {
    background: rgba(0, 229, 255, 0.045);
}

.clients__index {
    color: #555b5e;
    font-size: 9px;
    letter-spacing: 0.1em;
}

.clients__logo {
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    color: #dfe1e1;
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 500;
    letter-spacing: -0.025em;
    text-transform: none;
}

.clients__item:hover .clients__logo {
    color: #fff;
    background: transparent;
    transform: none;
}

.clients__arrow {
    color: var(--accent-color);
    font-size: 16px;
    opacity: 0;
    transform: translate(-4px, 4px);
    transition: 0.3s ease;
}

.clients__item:hover .clients__arrow {
    opacity: 1;
    transform: none;
}

.footer {
    border-top: 1px solid var(--line);
    background:
        radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--accent-color) 7.5%, transparent), transparent 30%),
        #0b0c0c;
}

@media (max-width: 1279px) {
    .header__availability {
        display: none;
    }

    .header__inner {
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .nav {
        position: static;
        transform: none;
        flex-wrap: nowrap;
        margin-left: auto;
    }

    .hero__subtitle,
    .hero__actions {
        margin-left: 0;
    }

    .section-intro,
    .cases__heading {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .cases__heading {
        margin-bottom: 140px;
    }

    .section-intro .section-kicker {
        grid-column: auto;
        margin-bottom: -12px;
    }

    .section-intro.section-intro--compact .section-kicker {
        margin-bottom: 24px;
    }

    .about__note {
        padding-left: 0;
    }

    .case-card,
    .case-card--alt {
        width: 100%;
    }

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

    .clients__item:nth-child(3n) {
        border-right: 1px solid var(--line);
    }

    .clients__item:nth-child(2n) {
        border-right: 0;
    }
}

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

    .about__col {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .about__col:last-child {
        border-bottom: 0;
    }

    .case-card__wrap,
    .case-card--alt .case-card__wrap {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .case-card--alt .case-card__box,
    .case-card--alt .case-card__panel {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 767px) {
    .header {
        padding: 17px 0;
    }

    .nav {
        display: none;
    }

    .hero {
        min-height: 780px;
        padding: 120px 20px 86px;
    }

    .hero__meta {
        margin-bottom: 54px;
    }

    .hero__meta span:last-child {
        display: none;
    }

    .hero__slogan {
        margin-bottom: 24px;
        font-size: clamp(1.65rem, 8.2vw, 2.35rem);
        letter-spacing: -.035em;
        line-height: 1.02;
    }

    .hero__slogan em {
        font-size: .88em;
        line-height: 1.08;
    }

    .hero__subtitle {
        max-width: 100%;
        margin-bottom: 34px;
        font-size: 14px;
    }

    .hero__actions {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .hero__btn {
        width: auto;
        padding-inline: 24px;
    }

    .hero__rail {
        display: none;
    }

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

    .about__col {
        min-height: 310px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .about__col:last-child {
        border-bottom: 0;
    }

    .about__note {
        padding-left: 0;
    }

    .cases__inner {
        gap: 80px;
    }

    .case-card__box {
        aspect-ratio: 16 / 9;
    }

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

    .clients__item,
    .clients__item:nth-child(3n) {
        border-right: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header__availability span,
    .hero__scroll i::after,
    .hero__orb-logo,
    .hero__orb--two {
        animation: none;
    }
}

:root {
    --bg-color: #0A0A0A;
    --text-color: #FFFFFF;
    --font-family: 'Inter', sans-serif;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100%;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity var(--transition);
}

a:hover {
    opacity: 0.8;
}

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

/* ── Typography (глобально) ── */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family);
}

h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
}

/* ── Layout ── */

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Header ── */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 24px 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), transparent);
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.header--scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-color);
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-family: var(--font-family);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    opacity: 1;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav a:hover {
    opacity: 1;
}

.nav a:hover::after {
    width: 100%;
}

/* ── Hero ── */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0A0A0A;
    padding: 80px 24px 15vh;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 960px;
}

.parallax-layer {
    will-change: transform;
}

.parallax-layer + .parallax-layer {
    margin-top: 0;
}

.hero__logo {
    margin-bottom: 48px;
    opacity: 0;
    animation: heroLogoIn 1.5s ease forwards;
}

.hero__logo-text {
    font-family: var(--font-family);
    font-size: 44px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

.hero__logo-sub {
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 400;
    color: #888888;
    letter-spacing: 0.1em;
    margin-top: 12px;
}

.hero__slogan {
    font-family: var(--font-family);
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 32px;
    opacity: 0;
    animation: heroFadeIn 1.5s ease 0.5s forwards;
}

.hero__subtitle {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    color: #B0B0B0;
    max-width: 900px;
    line-height: 1.6;
    margin-bottom: 48px;
    opacity: 0;
    animation: heroFadeIn 1.5s ease 1s forwards;
}

.btn-primary {
    display: inline-block;
    padding: 16px 48px;
    background-color: var(--accent-color);
    color: #0A0A0A !important;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
    opacity: 1;
}

.btn-primary:active {
    transform: scale(0.95);
    transition-duration: 0.1s;
}

.hero__btn {
    opacity: 0;
    animation: heroFadeIn 1.5s ease 1.5s forwards;
}

@keyframes heroLogoIn {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── About (УТП) ── */

.about {
    background-color: #0A0A0A;
    padding: 120px 0;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.about__col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
}

.about__icon svg {
    display: block;
}

.about__title {
    font-family: var(--font-family);
    font-size: 22px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 12px;
    line-height: 1.3;
}

.about__desc {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: #B0B0B0;
    line-height: 1.5;
    max-width: 280px;
}

.about__note {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: #B0B0B0;
    font-style: italic;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ── Scroll reveal ── */

.scroll-up,
.fade-in {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-up.is-visible,
.fade-in.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-up,
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .parallax-layer {
        transform: none !important;
    }
}

/* ── Cases ── */

.cases {
    background-color: #0A0A0A;
    padding: 80px 0 120px;
}

.cases__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.case-card__wrap {
    position: relative;
}

.case-card__box {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 0;
    overflow: hidden;
    background-color: #111111;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.1);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.case-card__wrap:hover .case-card__box {
    transform: scale(1.015);
    box-shadow:
        0 0 40px rgba(0, 229, 255, 0.3),
        0 0 0 1px rgba(0, 229, 255, 0.35),
        0 16px 48px rgba(0, 229, 255, 0.12);
}

.case-card__preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.case-card__shade {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.35);
    transition: background 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}

.case-card__wrap:hover .case-card__preview {
    transform: scale(1.05);
}

.case-card__wrap:hover .case-card__shade {
    background: rgba(10, 10, 10, 0.5);
}

.case-card__panel {
    position: absolute;
    right: 60px;
    top: 50%;
    width: 40%;
    padding: 40px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0;
    opacity: 0;
    transform: translate3d(32px, -50%, 0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.case-card__wrap:hover .case-card__panel {
    opacity: 1;
    transform: translate3d(0, -50%, 0);
    pointer-events: auto;
}

.case-card__category {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-card__title {
    font-family: var(--font-family);
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 16px;
}

.case-card__desc {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: #B0B0B0;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* ── Marquee ── */

.marquee {
    background-color: #0A0A0A;
    padding: 60px 0;
    overflow: hidden;
}

.marquee__wrapper {
    overflow: hidden;
    width: 100%;
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee-scroll var(--marquee-duration, 18s) linear infinite;
    animation-play-state: paused;
    will-change: transform;
}

.marquee__wrapper.is-marquee-ready .marquee__track {
    animation-play-state: running;
}

.marquee--clients .marquee__track {
    animation-duration: var(--marquee-clients-duration, var(--marquee-duration, 18s));
}

.marquee--tech .marquee__track {
    animation-duration: var(--marquee-tech-duration, var(--marquee-duration, 18s));
}

.marquee__group {
    display: flex;
    align-items: center;
    gap: 64px;
    padding-right: 64px;
    flex-shrink: 0;
}

.marquee__item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 52px;
}

.marquee__item svg,
.marquee__logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: 208px;
    object-fit: contain;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee__track {
        animation: none;
    }
}

/* ── Clients ── */

.clients {
    background-color: #0A0A0A;
    padding: 80px 0;
}

.clients__title {
    font-family: var(--font-family);
    font-size: 40px;
    font-weight: 600;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 48px;
    line-height: 1.2;
}

.clients__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px;
}

.clients__item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.clients__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 0 16px;
    background-color: #2A2A2A;
    color: #FFFFFF;
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.4s ease, background-color 0.4s ease, transform 0.4s ease;
    cursor: default;
}

.clients__item:hover .clients__logo {
    color: var(--accent-color);
    background-color: rgba(0, 229, 255, 0.08);
    transform: translateY(-2px);
}

/* ── Case page ── */

.case-page-hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.case-page-hero__media {
    position: absolute;
    inset: 0;
}

.case-page-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.case-page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.4) 50%, rgba(10, 10, 10, 0.2) 100%);
}

.case-page-hero__content {
    position: relative;
    z-index: 1;
    padding: 0 24px 80px;
    width: 100%;
}

.case-page-hero__category {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.case-page-hero__title {
    font-family: var(--font-family);
    font-size: 72px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.1;
    max-width: 900px;
}

.case-page__heading {
    font-family: var(--font-family);
    font-size: 40px;
    font-weight: 600;
    color: #888888;
    margin-bottom: 32px;
}

.case-page-task {
    background-color: #0A0A0A;
    padding: 120px 0;
}

.case-page-task__text {
    max-width: 800px;
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    color: #B0B0B0;
    line-height: 1.7;
}

.case-page-task__text p + p {
    margin-top: 1.5em;
}

.case-page-solution {
    background-color: #0A0A0A;
    padding-bottom: 120px;
}

.case-page-solution .case-page__heading {
    margin-bottom: 48px;
}

.case-page-solution__gallery {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.case-page-solution__item {
    width: 100%;
    overflow: hidden;
    background: #111111;
}

.case-page-solution__item img {
    width: 100%;
    height: auto;
    display: block;
}

.case-page-result {
    background-color: #0A0A0A;
    padding: 120px 0;
    text-align: center;
}

.case-page-result__fact {
    font-family: var(--font-family);
    font-size: 80px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.1;
    margin-bottom: 24px;
}

.case-page-result__desc {
    font-family: var(--font-family);
    font-size: 18px;
    font-weight: 400;
    color: #B0B0B0;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

.case-page-actions {
    background-color: #0A0A0A;
    padding: 80px 0 120px;
}

.case-page-actions__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.case-page-actions__link {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    color: #B0B0B0;
    transition: color 0.3s ease;
}

.case-page-actions__link:hover {
    color: var(--accent-color);
    opacity: 1;
}

/* ── Footer ── */

.footer {
    min-height: 100vh;
    background-color: #0A0A0A;
    display: flex;
    align-items: center;
    padding: 48px 24px;
}

.footer__inner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    min-height: calc(100vh - 96px);
    gap: 32px;
    text-align: center;
}

.footer__partners {
    width: 100%;
    margin-bottom: 120px;
}

.footer__partners-title {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.footer__partners-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.footer__partner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
}

.footer__partner img {
    display: block;
    height: 45px;
    width: auto;
    max-width: 210px;
    object-fit: contain;
}

.footer__form-wrap {
    width: 100%;
    max-width: 560px;
}

.footer__form-title {
    font-family: var(--font-family);
    font-size: 44px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 32px;
}

.footer__form-status {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 16px;
}

.footer__form-status--success {
    color: var(--accent-color);
}

.footer__form-status--error {
    color: #ff6b6b;
}

.footer__form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
}

.footer__input,
.footer__textarea {
    width: 100%;
    padding: 14px 16px;
    background-color: #111111;
    border: 1px solid #2A2A2A;
    color: #FFFFFF;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer__input::placeholder,
.footer__textarea::placeholder {
    color: #666666;
    font-weight: 400;
}

.footer__input:focus,
.footer__textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.footer__form--error .footer__input,
.footer__form--error .footer__textarea {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 1px rgba(255, 107, 107, 0.4);
}

.footer__form--error .footer__input:focus,
.footer__form--error .footer__textarea:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 1px #ff6b6b;
}

.footer__textarea {
    resize: vertical;
    min-height: 120px;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    color: #fff;
    line-height: 0;
    margin-block: 160px;
}

.footer__logo .logo__img {
    height: clamp(66px, 8.4vw, 96px);
    max-width: min(540px, 90vw);
}

.footer__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.footer__nav a {
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 400;
    color: #B0B0B0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    opacity: 1;
    transition: color 0.3s ease;
}

.footer__nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer__nav a:hover {
    color: var(--accent-color);
    opacity: 1;
}

.footer__nav a:hover::after {
    width: 100%;
}

.footer__nav-sep {
    color: #444444;
    font-size: 12px;
    font-weight: 400;
    user-select: none;
}

.footer__copy {
    font-family: var(--font-family);
    font-size: 10px;
    font-weight: 300;
    color: #666666;
}

/* ── Toast ── */

.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    z-index: 1000;
    max-width: calc(100% - 40px);
    padding: 16px 28px;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid var(--accent-color);
    color: #FFFFFF;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(-50%, 120%, 0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.is-visible {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
}

/* ── Responsive ── */

/* Планшет: 768px – 1199px */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        padding: 0 32px;
    }

    .hero {
        padding: 120px 32px 80px;
    }

    .hero__subtitle {
        max-width: 520px;
        margin-left: 0;
    }

    .hero__actions {
        margin-left: 0;
    }

    .hero__orb--one {
        width: min(52vw, 520px);
        height: min(52vw, 520px);
        right: -18%;
    }

    .section-title,
    .clients__title {
        font-size: clamp(2.25rem, 5.5vw, 4rem);
    }

    .cases__inner {
        padding: 0 32px;
        gap: 72px;
    }

    .case-card__wrap {
        grid-template-columns: minmax(0, 1fr) 240px;
        gap: 28px;
    }

    .case-card--alt .case-card__wrap {
        grid-template-columns: 220px minmax(0, 1fr);
    }

    .case-card__title {
        font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    }

    .cases__heading {
        margin-bottom: 120px;
    }

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

    .footer__form-row {
        grid-template-columns: 1fr;
    }

    .footer__form-wrap {
        max-width: 100%;
    }

    .case-page-hero__title {
        font-size: 48px;
    }

    .case-page__heading {
        font-size: 32px;
    }
}

/* Мобилка: до 767px */
@media (max-width: 767px) {
    .nav {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 80px 20px 12vh;
    }

    .hero__logo-text {
        font-size: 28px;
        letter-spacing: 0.1em;
        white-space: normal;
    }

    .hero__slogan {
        margin-bottom: 20px;
        font-size: clamp(1.65rem, 8.2vw, 2.35rem);
        letter-spacing: -.035em;
        line-height: 1.02;
    }

    .hero__slogan em {
        font-size: .88em;
    }

    .hero__subtitle {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 32px;
    }

    .hero__logo {
        margin-bottom: 32px;
    }

    .btn-primary,
    .hero__btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    .about {
        padding: 64px 0;
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .cases {
        padding: 48px 0 64px;
    }

    .cases__inner {
        padding: 0;
        gap: 48px;
    }

    .case-card__wrap {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .case-card__box {
        aspect-ratio: 16 / 9;
        min-height: 0;
        border-radius: 0;
    }

    .case-card__box:hover,
    .case-card__wrap:hover .case-card__box {
        transform: none;
        box-shadow: none;
    }

    .case-card__panel {
        position: static;
        width: 100%;
        padding: 24px 20px 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border-radius: 0;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .case-card__wrap:hover .case-card__panel {
        transform: none;
    }

    .case-card__title {
        font-size: 28px;
    }

    .case-card__panel .btn-primary {
        width: 100%;
    }

    .clients {
        padding: 48px 0;
    }

    .clients__title {
        font-size: 32px;
        margin-bottom: 28px;
    }

    .clients__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .marquee {
        padding: 40px 0;
    }

    .footer {
        min-height: auto;
        padding: 48px 20px;
    }

    .footer__inner {
        min-height: auto;
        gap: 28px;
        width: 100%;
    }

    .footer__logo {
        margin-block: 80px;
    }

    .footer__logo .logo__img {
        height: clamp(54px, 18vw, 72px);
        max-width: min(420px, 92vw);
    }

    .footer__form-wrap {
        max-width: 100%;
        width: 100%;
    }

    .footer__form-title {
        font-size: 32px;
    }

    .footer__form-row {
        grid-template-columns: 1fr;
    }

    .footer__form {
        width: 100%;
    }

    .footer__input,
    .footer__textarea {
        width: 100%;
    }

    .footer__form .btn-primary {
        width: 100%;
    }

    .footer__partners-list {
        gap: 16px;
    }

    .footer__partners {
        margin-bottom: 72px;
    }

    .footer__nav {
        flex-direction: column;
        gap: 12px;
    }

    .footer__nav-sep {
        display: none;
    }

    .case-page-hero__title {
        font-size: 32px;
    }

    .case-page-hero__content {
        padding: 0 20px 48px;
    }

    .case-page-task,
    .case-page-result {
        padding: 64px 0;
    }

    .case-page-solution {
        padding-bottom: 64px;
    }

    .case-page-result__fact {
        font-size: 48px;
    }

    .case-page-actions {
        padding: 48px 0 64px;
    }

    .case-page-actions .btn-primary {
        width: 100%;
    }
}
