:root {
    --bg: #101113;
    --bg-soft: #17191d;
    --panel: #202328;
    --panel-2: #272b31;
    --text: #f3f0ea;
    --muted: #b9b3a8;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #e4ff5d;
    --accent-2: #ff7d54;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.site-header {
    position: fixed;
    inset: 14px 0 auto;
    z-index: 50;
    border-bottom: 0;
    background: transparent;
    pointer-events: none;
}

.site-header__inner {
    min-height: 64px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(16, 17, 19, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

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

.site-brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    flex: 0 0 auto;
    min-width: 132px;
    height: 44px;
    padding: 0 16px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.site-brand img {
    display: block;
    flex: 0 0 auto;
    width: auto;
    max-width: 76px;
    max-height: 48px;
    object-fit: contain;
    transform: scale(1.7);
    transform-origin: center;
}

.site-brand span {
    display: block;
    flex: 0 0 auto;
    font-family: Roboto, Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    color: var(--text);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
}

.section {
    padding: 124px 0;
}

.hero {
    position: relative;
    min-height: 96vh;
    padding-top: 150px;
    padding-bottom: 74px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(228, 255, 93, 0.08) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(110deg, rgba(16, 17, 19, 0.98) 0%, rgba(16, 17, 19, 0.9) 48%, rgba(16, 17, 19, 0.72) 100%);
    background-size: 64px 64px, 64px 64px, auto;
    opacity: 1;
}

.hero::after {
    content: "";
    position: absolute;
    right: min(7vw, 90px);
    bottom: 74px;
    width: min(28vw, 340px);
    aspect-ratio: 1;
    border: 1px solid rgba(228, 255, 93, 0.26);
    border-radius: 50%;
    animation: spin-slow 18s linear infinite;
    opacity: 0.7;
}

.hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.68fr);
    align-items: center;
    gap: 56px;
}

.eyebrow,
.section-label {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1,
h2,
h3,
.button,
.wpcf7-submit,
.site-nav a,
.section-label,
.eyebrow {
    font-family: Roboto, "Arial Black", Arial, sans-serif;
}

h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(38px, 5.6vw, 76px);
    line-height: 1.03;
    letter-spacing: 0;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-size: clamp(36px, 4.6vw, 68px);
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: uppercase;
}

h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.hero__lead,
.section-copy,
.rich-text p {
    color: var(--muted);
    font-size: 18px;
}

#approach h2 {
    max-width: 680px;
    font-size: clamp(34px, 4.45vw, 66px);
    line-height: 1.1;
}

.hero__lead {
    max-width: 760px;
    margin: 28px 0 0;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button,
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover,
.wpcf7-submit:hover {
    transform: translateY(-3px);
}

.button--primary,
.wpcf7-submit {
    background: var(--accent);
    color: #111;
}

.button--ghost {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
}

.hero__panel {
    display: grid;
    gap: 18px;
}

.portrait-card,
.form-card,
.service-card,
.line-card,
.skill-card,
.timeline__item,
.stats-grid article {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(32, 35, 40, 0.82);
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover,
.line-card:hover,
.skill-card:hover,
.timeline__item:hover,
.stats-grid article:hover,
.form-card:hover {
    transform: translateY(-8px);
    border-color: rgba(228, 255, 93, 0.42);
    background: rgba(39, 43, 49, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.portrait-card {
    padding: 28px;
}

.portrait-card__media {
    display: grid;
    place-items: center;
    min-height: 320px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    overflow: hidden;
}

.portrait-card__media img {
    width: min(78%, 300px);
    max-height: 240px;
    object-fit: contain;
    filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.34));
}

.portrait-card p {
    margin: 20px 0 0;
    color: var(--text);
    font-weight: 800;
}

.facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.facts span {
    min-height: 82px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.section--muted {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        var(--bg-soft);
    background-size: 72px 72px;
}

.split {
    display: grid;
    grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
    gap: 72px;
}

.rich-text p:first-child {
    margin-top: 0;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding: 16px 18px 16px 48px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    font-weight: 700;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 22px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 42px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card,
.line-card,
.skill-card,
.timeline__item {
    position: relative;
    padding: 30px;
    overflow: hidden;
}

.service-card::after,
.skill-card::after {
    content: "";
    position: absolute;
    inset: auto 24px 24px auto;
    width: 48px;
    height: 48px;
    border-right: 2px solid rgba(228, 255, 93, 0.34);
    border-bottom: 2px solid rgba(228, 255, 93, 0.34);
    border-radius: 0 0 14px 0;
}

.service-card span,
.timeline__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #111;
    font-weight: 900;
}

.service-card p,
.line-card p,
.timeline__item p,
.stats-grid span {
    margin: 16px 0 0;
    color: var(--muted);
}

.stack {
    display: grid;
    gap: 14px;
}

.line-card {
    background: transparent;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.skill-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.skill-card span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(228, 255, 93, 0.12);
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.section--stats {
    background: var(--accent);
    color: #111;
}

.section--stats h2 {
    max-width: 900px;
    font-size: clamp(34px, 4.2vw, 62px);
    line-height: 1.08;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 42px;
}

.stats-grid article {
    background: rgba(17, 17, 17, 0.08);
    border-color: rgba(17, 17, 17, 0.16);
    padding: 24px;
    min-height: 168px;
}

.stats-grid strong {
    display: block;
    min-height: 70px;
    font-size: 32px;
    line-height: 1.08;
    letter-spacing: 0;
}

.stats-grid span {
    color: rgba(17, 17, 17, 0.78);
    font-weight: 700;
}

.section--stats .stats-grid article:hover {
    border-color: rgba(17, 17, 17, 0.18);
    background: #fff;
}

.section--stats .stats-grid article:hover span {
    color: rgba(17, 17, 17, 0.78);
}

.socials,
.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.socials a,
.contact-links a {
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    font-weight: 800;
}

.contact__grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1fr);
    gap: 64px;
}

.form-card {
    padding: 38px;
}

.form-card > p {
    margin-top: 0;
    color: var(--muted);
}

.wpcf7-form {
    display: grid;
    gap: 0;
}

.wpcf7-form p {
    display: block;
    margin: 0 0 18px;
}

.wpcf7-form p:last-of-type {
    margin-bottom: 0;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-acceptance {
    display: block;
    margin: 6px 0 22px;
}

.wpcf7-acceptance .wpcf7-list-item {
    display: block;
    margin: 0;
}

.wpcf7-acceptance label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.wpcf7-acceptance input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--accent);
}

.wpcf7-form-control:not(.wpcf7-submit) {
    width: 100%;
    min-height: 52px;
    margin-top: 0;
    padding: 14px 17px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
}

.wpcf7-form-control:not(.wpcf7-submit):focus {
    outline: none;
    border-color: rgba(228, 255, 93, 0.58);
    box-shadow: 0 0 0 4px rgba(228, 255, 93, 0.08);
}

textarea.wpcf7-form-control {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form-control::placeholder {
    color: rgba(243, 240, 234, 0.58);
}

.wpcf7-not-valid-tip {
    margin-top: 6px;
    color: #ff9b82;
    font-size: 13px;
}

.wpcf7-response-output {
    margin: 4px 0 0 !important;
    border-radius: 14px;
    color: var(--text);
}

.marquee {
    overflow: hidden;
    border-block: 1px solid var(--line);
    background: var(--accent);
    color: #111;
    width: 100%;
}

.marquee__track {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    animation: marquee 28s linear infinite;
    will-change: transform;
}

.marquee__group {
    display: flex;
    flex: 0 0 auto;
    min-width: 100vw;
    align-items: center;
    justify-content: space-around;
}

.marquee span {
    flex: 0 0 auto;
    padding: 84px 56px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 56px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    white-space: nowrap;
}

.hobby-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(228, 255, 93, 0.08), transparent 38%),
        linear-gradient(315deg, rgba(255, 125, 84, 0.12), transparent 34%),
        var(--bg);
}

.hobby-section .split {
    align-items: center;
}

.game-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
}

.game-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 76px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
    text-transform: uppercase;
    color: #101113;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.game-badge--bf {
    background: linear-gradient(135deg, #ff7d54, #ffcf6e);
}

.game-badge--cs {
    background: linear-gradient(135deg, #e4ff5d, #77f0ff);
}

.game-badge--tanks {
    background: linear-gradient(135deg, #c6ff7d, #7dff9d);
}

.final-cta {
    padding: 90px 0;
    background: #0b0c0e;
}

.final-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}

.final-cta p {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #0b0c0e;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .hero__grid,
    .split,
    .contact__grid,
    .final-cta__inner {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .timeline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .section {
        padding: 86px 0;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .site-header__inner {
        min-height: 58px;
        border-radius: 18px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 14px;
        right: 14px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--panel);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 13px 14px;
    }

    .hero {
        min-height: 0;
        padding-top: 120px;
    }

    h1 {
        font-size: 36px;
    }

    h2 {
        font-size: 34px;
    }

    .card-grid,
    .timeline,
    .skills-grid,
    .stats-grid,
    .facts {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .portrait-card__media {
        min-height: 240px;
    }

    .site-brand {
        min-width: 118px;
        height: 40px;
        padding-right: 12px;
    }

    .site-brand img {
        max-width: 64px;
        max-height: 44px;
    }

    .site-brand span {
        font-size: 16px;
    }

    .game-badges {
        grid-template-columns: 1fr;
    }

    .stats-grid strong {
        min-height: auto;
        font-size: 30px;
    }
}
