body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;

    backdrop-filter: blur(10px);
    background: rgba(14, 14, 17, 0.6);
    /* 👈 ВАЖНО */

    z-index: 10;
}

.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -40px;

    height: 40px;

    background: linear-gradient(to bottom,
            rgba(14, 14, 17, 0.6),
            rgba(14, 14, 17, 0));

    pointer-events: none;
}



.nav a {
    margin: 0 15px;
    color: var(--text-main);
    text-decoration: none;
    position: relative;
}

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

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

.lang-switch button {
    background: none;
    border: none;
    color: var(--text-main);
    margin-left: 10px;
    cursor: pointer;
    opacity: 0.6;
}

.lang-switch .active {
    opacity: 1;
    color: var(--accent-3);
}

/*сервисы*/
.services {
    padding: 140px 10% 120px;
}

.services-header {
    max-width: 600px;
    margin-bottom: 80px;
}

.services-header h2 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 20px;
}

.services-header p {
    font-size: 18px;
    opacity: 0.7;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.service-card {
    position: relative;
    padding: 32px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: transform 0.4s ease, border 0.4s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left,
            rgba(124, 124, 255, 0.25),
            transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-2);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 16px;
    opacity: 0.75;
    line-height: 1.5;
}

.service-tag {
    display: inline-block;
    margin-top: 20px;
    font-size: 13px;
    color: var(--accent-3);
    letter-spacing: 0.5px;
}

.service-card {
    opacity: 0;
    transform: translateY(40px);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card h3 {
    min-height: 52px;
}


.service-card.show {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

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

.lang-label {
    font-size: 13px;
    opacity: 0.6;
}

.toggle {
    width: 44px;
    height: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    position: relative;
    cursor: pointer;
    padding: 0;
}

.toggle-circle {
    position: absolute;
    top: 50%;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-3);
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

/* EN (active) */
.toggle.active .toggle-circle {
    transform: translate(20px, -50%);
}

/*прогресс*/

.process {
    padding: 140px 0;
    overflow: hidden;
}

.process-header {
    padding: 0 10%;
    max-width: 600px;
    margin-bottom: 80px;
}

.process-header h2 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 20px;
}

.process-header p {
    font-size: 18px;
    opacity: 0.7;
}

.process-wrapper {
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.process-track {
    display: flex;
    gap: 40px;
    padding: 0 10% 40px;
    will-change: transform;
}

.process-step {
    min-width: 320px;
    padding: 32px;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.015));
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s, opacity 0.4s;
    flex-shrink: 0;
}

.step-number {
    display: block;
    font-size: 14px;
    letter-spacing: 1px;
    color: var(--accent-2);
    margin-bottom: 16px;
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 16px;
    opacity: 0.75;
    line-height: 1.5;
}

/*пруф*/
.proof {
    padding: 160px 10%;
}

.proof-inner {
    max-width: 1200px;
}

.proof h2 {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.2;
    margin-bottom: 32px;
}

.proof p {
    font-size: 20px;
    opacity: 0.8;
    max-width: 720px;
}

.proof-tags {
    margin-top: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.proof-tags span {
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.proof {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.proof.show {
    opacity: 1;
    transform: translateY(0);
}

/*контакты*/

.about {
    padding: 160px 10% 200px;
}

.about-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
}

.about-text h2 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 32px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 20px;
    max-width: 520px;
}

.contact h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact p {
    font-size: 18px;
    opacity: 0.75;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    gap: 20px;
}

.contact-links a {
    padding: 14px 26px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.contact-links a:hover {
    background: var(--accent-2);
    color: #000;
}

@media (max-width: 900px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.scroll-top {
    position: fixed;
    right: 24px;
    bottom: 24px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 16px;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-main);

    cursor: pointer;
    z-index: 20;

    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);

    transition: all 0.3s ease;
}

.scroll-top .arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--accent-2);
    color: #000;
    font-size: 16px;
    font-weight: 600;
}

.scroll-top .label {
    font-size: 14px;
    white-space: nowrap;
}

/* активное состояние */
.scroll-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* hover */
.scroll-top:hover {
    background: rgba(255, 255, 255, 0.18);
}

html {
    scroll-behavior: smooth;
}

#services {
    scroll-margin-top: -100px;
}

.process {
    padding: 160px 10%;
}

.process-inner {
    max-width: 900px;
}

.process-header {
    margin-bottom: 100px;
}

.process-header h2 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 20px;
}

.process-header p {
    font-size: 18px;
    opacity: 0.7;
    max-width: 520px;
}

/* timeline */

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.15);
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 80px;

    opacity: 0.4;
    transform: translateY(20px);

    transition: all 0.35s ease;
}

.timeline-item:hover {
    opacity: 1;
    transform: translateY(0);
}


.timeline-item.active {
    opacity: 1;
    transform: translateY(0);
}

.timeline-marker {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-2);
    color: #000;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 4px;
    transition: all 0.35s ease;

}

.timeline-item:hover .timeline-marker {
    background: var(--accent-3);
    transform: scale(1.15);
}

.timeline-item:hover~.timeline-item {
    opacity: 0.25;
}

.timeline-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 520px;
}

@media (max-width: 768px) {
    .timeline-item {
        opacity: 1;
        transform: none;
    }
}

.process {
    padding: 160px 10%;
}

.process-board {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 40px;
    margin-top: 120px;
}

/* карточки */
.process-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    z-index: 2;

    cursor: pointer;
    transition: transform 0.3s ease, border 0.3s ease;
}

.process-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-2);
}

.process-card span {
    font-size: 13px;
    color: var(--accent-3);
}

/* позиции (шахматы) */
.card-1 {
    grid-column: 1;
    grid-row: 1;
}

.card-2 {
    grid-column: 2;
    grid-row: 2;
}

.card-3 {
    grid-column: 3;
    grid-row: 1;
}

.card-4 {
    grid-column: 4;
    grid-row: 2;
}

.card-5 {
    grid-column: 5;
    grid-row: 1;
}

/* линия */
.process-line {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.process-ball {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-2);

    transform: translate(-50%, -50%);
    transition: left 0.45s ease, top 0.45s ease;

    z-index: 3;
    pointer-events: none;
}

.process-track-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.process-checkpoints {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}

.checkpoint {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.6);

    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.checkpoint.active {
    background: var(--accent-2);
    transform: translate(-50%, -50%) scale(1.4);
}

#process {
    scroll-margin-top: -80px;
}

.proof-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.proof-content {
    max-width: 720px;
}

.proof-art {
    position: relative;
    width: 100%;
    max-width: 420px;
    justify-self: end;
    opacity: 0.85;
}

.proof-art svg {
    width: 100%;
    height: auto;
    display: block;
}

#canvas-strokes path {
    fill: none !important;
    stroke: white;
    stroke-width: 6.5;
    /* ← ТОЛЩИНА ЛИНИИ */
    stroke-linecap: round;
    stroke-linejoin: round;

    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;

    animation-name: write;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(.4, 0, .6, 1);
    animation-fill-mode: forwards;
    animation-delay: calc(var(--i) * 0.35s);
}

@keyframes write {
    to {
        stroke-dashoffset: 0;
    }
}

#signature-svg path {
    animation-play-state: paused;
}

.proof.show #signature-svg path {
    animation-play-state: running;
}

.logo img {
    width: 120px;
}