/* =========================================================
   CODE AUDIT SERVICE
   ========================================================= */

.code-audit {
    --ca-blue: #176fe8;
    --ca-cyan: #26aaf5;
    --ca-dark: #111b2b;
    --ca-text: #6c7b91;
    --ca-border: #dfe8f2;

    color: var(--ca-dark);
}


/* =========================================================
   COMMON
   ========================================================= */

.code-audit__breadcrumbs {
    padding-top: 18px;
}


.code-audit__label {
    display: inline-flex;

    margin-bottom: 14px;
    padding: 7px 12px;

    border-radius: 999px;

    background: #eaf4ff;
    color: #0870ea;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}


.code-audit__section-head {
    max-width: 790px;

    margin-bottom: 38px;
}


.code-audit__section-head--center {
    margin-left: auto;
    margin-right: auto;

    text-align: center;
}


.code-audit__section-head h2 {
    margin: 0;

    font-size: clamp(34px,4vw,48px);
    line-height: 1.08;
    letter-spacing: -.025em;
}


.code-audit__section-head p {
    max-width: 720px;

    margin: 14px 0 0;

    color: var(--ca-text);

    font-size: 15px;
    line-height: 1.65;
}


.code-audit__section-head--center p {
    margin-left: auto;
    margin-right: auto;
}


/* buttons */

.code-audit__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 50px;

    padding: 0 22px;

    border-radius: 12px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.code-audit__btn--primary {
    border: 0;

    background:
        linear-gradient(
            135deg,
            #176fe8,
            #239cf2
        );

    color: #fff;

    box-shadow:
        0 12px 28px rgba(23,111,232,.22);
}


.code-audit__btn--secondary {
    border: 1px solid #d7e3ef;

    background: #fff;
    color: #172236;
}


.code-audit__btn--light {
    border: 0;

    background: #fff;
    color: #176fe8;

    box-shadow:
        0 12px 30px rgba(0,0,0,.1);
}


@media (hover:hover) {

    .code-audit__btn:hover {
        transform: translateY(-2px);
    }

}


/* =========================================================
   HERO
   ========================================================= */

.code-audit__hero {
    padding: 58px 0 82px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 84% 20%,
            rgba(39,171,249,.15),
            transparent 30%
        ),
        linear-gradient(
            180deg,
            #fff,
            #f5faff
        );
}


.code-audit__hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0,.96fr)
        minmax(430px,1.04fr);

    gap: 75px;

    align-items: center;
}


.code-audit__hero-title {
    margin: 0;

    font-size: clamp(43px,5vw,65px);
    line-height: 1.04;
    font-weight: 760;
    letter-spacing: -.035em;
}


.code-audit__hero-text {
    max-width: 690px;

    margin: 22px 0 0;

    color: var(--ca-text);

    font-size: 17px;
    line-height: 1.65;
}


.code-audit__hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 31px;
}


.code-audit__hero-note {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-top: 23px;

    color: #7b8799;

    font-size: 12px;
}


.code-audit__hero-note > span {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 22px;

    width: 22px;
    height: 22px;

    border-radius: 50%;

    background: #e2f8ec;
    color: #18a55e;
}


/* =========================================================
   EDITOR
   ========================================================= */

.code-audit__hero-visual {
    position: relative;

    min-height: 430px;

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


.code-audit__editor {
    position: relative;
    z-index: 2;

    width: min(100%,650px);

    overflow: hidden;

    border: 1px solid #243751;
    border-radius: 25px;

    background: #0f1928;

    box-shadow:
        0 32px 75px rgba(15,42,77,.20);

    transform:
        perspective(1100px)
        rotateY(-3deg);
}


.code-audit__editor-top {
    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    min-height: 46px;

    padding: 0 17px;

    border-bottom:
        1px solid rgba(255,255,255,.07);

    background: #142136;
}


.code-audit__editor-dots {
    display: flex;

    gap: 6px;
}


.code-audit__editor-dots span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #536278;
}


.code-audit__editor-file {
    margin-left: 18px;

    color: #94a5bb;

    font-size: 10px;
}


.code-audit__editor-status {
    color: #47c987;

    font-size: 9px;
}


.code-audit__editor-body {
    position: relative;

    display: grid;

    grid-template-columns:
        47px 1fr;

    min-height: 300px;

    overflow: hidden;
}


.code-audit__editor-numbers {
    display: flex;
    flex-direction: column;

    gap: 13px;

    padding: 25px 13px;

    border-right:
        1px solid rgba(255,255,255,.05);

    color: #43546c;

    font-size: 9px;
    line-height: 1;
}


.code-audit__code {
    padding: 25px 25px;

    font-family:
        Consolas,
        Monaco,
        monospace;

    font-size: 12px;
    line-height: 1.9;
}


.code-audit__code .indent {
    padding-left: 27px;
}


.code-audit__code .white {
    color: #d6e0ec;
}


.code-audit__code .blue {
    color: #53a8ff;
}


.code-audit__code .cyan {
    color: #45d4c0;
}


.code-audit__code .purple {
    color: #ba82ff;
    font-style: normal;
}


.code-audit__code .orange {
    color: #f0a75c;
}


.code-audit__code .muted {
    color: #58687d;
}


/* scanning animation */

.code-audit__scan {
    position: absolute;

    z-index: 5;

    left: 47px;
    right: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(39,173,255,.8),
            transparent
        );

    box-shadow:
        0 0 16px rgba(39,173,255,.55);

    animation:
        codeAuditScan
        4s ease-in-out
        infinite;
}


@keyframes codeAuditScan {

    0% {
        top: 10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        top: 85%;
        opacity: 1;
    }

    60% {
        opacity: 0;
    }

    100% {
        top: 10%;
        opacity: 0;
    }

}


.code-audit__editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 48px;

    padding: 0 18px;

    border-top:
        1px solid rgba(255,255,255,.07);

    color: #7e90a7;

    font-size: 9px;
}


.code-audit__editor-footer > div {
    display: flex;
    align-items: center;

    gap: 8px;
}


.code-audit__editor-footer strong {
    color: #9fb0c4;

    font-size: 9px;
}


.code-audit__status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #3dcc82;

    box-shadow:
        0 0 0 5px rgba(61,204,130,.1);
}


/* floating */

.code-audit__float {
    position: absolute;
    z-index: 4;

    border: 1px solid rgba(255,255,255,.9);
    border-radius: 13px;

    background: rgba(255,255,255,.94);

    box-shadow:
        0 14px 35px rgba(21,61,105,.13);

    backdrop-filter: blur(8px);
}


.code-audit__float--speed {
    left: -6px;
    bottom: 7%;

    display: flex;
    align-items: center;

    gap: 10px;

    padding: 11px 14px;
}


.code-audit__float--speed > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 31px;
    height: 31px;

    border-radius: 10px;

    background: #eaf4ff;
}


.code-audit__float--speed strong,
.code-audit__float--speed small {
    display: block;
}


.code-audit__float--speed strong {
    font-size: 11px;
}


.code-audit__float--speed small {
    margin-top: 2px;

    color: #8693a4;

    font-size: 8px;
}


.code-audit__float--modx {
    top: 6%;
    right: -4px;

    padding: 11px 14px;
}


.code-audit__float--modx strong,
.code-audit__float--modx span {
    display: block;
}


.code-audit__float--modx strong {
    color: #176fe8;

    font-size: 15px;
}


.code-audit__float--modx span {
    margin-top: 2px;

    color: #7d8999;

    font-size: 8px;
}


/* =========================================================
   CHECKS
   ========================================================= */

.code-audit__checks {
    padding: 92px 0;

    background: #fff;
}


.code-audit__checks-grid {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 16px;
}


.code-audit__check {
    min-height: 190px;

    padding: 25px;

    border: 1px solid var(--ca-border);
    border-radius: 19px;

    background: #fff;

    box-shadow:
        0 11px 32px rgba(20,60,105,.035);

    transition:
        transform .25s ease,
        border-color .25s ease;
}


.code-audit__check > span {
    display: inline-flex;

    margin-bottom: 24px;

    color: #176fe8;

    font-size: 10px;
    font-weight: 800;
}


.code-audit__check h3 {
    margin: 0 0 8px;

    font-size: 17px;
}


.code-audit__check p {
    margin: 0;

    color: #718096;

    font-size: 12px;
    line-height: 1.6;
}


@media (hover:hover) {

    .code-audit__check:hover {
        transform: translateY(-4px);

        border-color: #bdd9f9;
    }

}


/* =========================================================
   PROBLEMS
   ========================================================= */

.code-audit__problems {
    padding: 93px 0;

    background:
        linear-gradient(
            180deg,
            #f6faff,
            #f1f8ff
        );
}


.code-audit__problems-grid {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 16px;
}


.code-audit__problems-grid article {
    min-height: 220px;

    padding: 27px;

    border: 1px solid var(--ca-border);
    border-radius: 20px;

    background: #fff;
}


.code-audit__problem-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 45px;
    height: 45px;

    margin-bottom: 24px;

    border-radius: 13px;

    background: #eaf4ff;
    color: #176fe8;

    font-family: monospace;
    font-weight: 800;
}


.code-audit__problems-grid h3 {
    margin: 0 0 8px;

    font-size: 17px;
    line-height: 1.35;
}


.code-audit__problems-grid p {
    margin: 0;

    color: #718096;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   PROCESS
   ========================================================= */

.code-audit__process {
    padding: 91px 0;

    background: #fff;
}


.code-audit__process-line {
    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));
}


.code-audit__process-line article {
    position: relative;

    padding: 27px;

    border-top:
        1px solid #bad8fa;
}


.code-audit__process-line article::before {
    content: "";

    position: absolute;

    top: -5px;
    left: 27px;

    width: 9px;
    height: 9px;

    border:
        3px solid #daecff;
    border-radius: 50%;

    background: #176fe8;
}


.code-audit__process-num {
    margin-bottom: 24px;

    color: #176fe8;

    font-size: 10px;
    font-weight: 800;
}


.code-audit__process-line h3 {
    margin: 0 0 8px;

    font-size: 17px;
}


.code-audit__process-line p {
    margin: 0;

    color: #718096;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   CASES
   ========================================================= */

.code-audit__cases {
    padding: 94px 0;

    background: #f6faff;
}


.code-audit__cases-grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 20px;
}


.code-audit__case {
    overflow: hidden;

    border: 1px solid var(--ca-border);
    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 16px 42px rgba(20,62,108,.05);
}


.code-audit__case-head {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 18px;

    padding: 23px 24px 19px;
}


.code-audit__case-head span {
    display: block;

    margin-bottom: 4px;

    color: #176fe8;

    font-size: 9px;
    font-weight: 700;
}


.code-audit__case-head h3 {
    margin: 0;

    font-size: 18px;
}


.code-audit__case-head a {
    color: #176fe8;

    font-size: 10px;
    font-weight: 700;

    text-decoration: none;
}


/* BA */

.code-audit__ba {
    --ba-position: 50%;

    position: relative;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #eaf0f6;
}


.code-audit__ba-before,
.code-audit__ba-after img {
    position: absolute;

    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: top;
}


.code-audit__ba-after {
    position: absolute;

    inset: 0;

    overflow: hidden;

    clip-path:
        inset(
            0
            0
            0
            var(--ba-position)
        );
}


.code-audit__ba-divider {
    position: absolute;

    z-index: 4;

    top: 0;
    bottom: 0;

    left: var(--ba-position);

    width: 2px;

    background: #fff;

    transform:
        translateX(-1px);

    box-shadow:
        0 0 8px rgba(0,0,0,.16);

    pointer-events: none;
}


.code-audit__ba-handle {
    position: absolute;

    z-index: 5;

    top: 50%;
    left: var(--ba-position);

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

    gap: 6px;

    width: 45px;
    height: 45px;

    border: 2px solid #fff;
    border-radius: 50%;

    background:
        rgba(23,111,232,.92);

    color: #fff;

    transform:
        translate(-50%,-50%);

    box-shadow:
        0 8px 24px rgba(0,0,0,.18);

    pointer-events: none;
}


.code-audit__ba-handle span {
    font-size: 17px;
}


.code-audit__ba-range {
    position: absolute;
    z-index: 10;

    inset: 0;

    width: 100%;
    height: 100%;

    margin: 0;

    cursor: ew-resize;

    opacity: 0;
}


.code-audit__ba-label {
    position: absolute;
    z-index: 6;

    top: 14px;

    padding: 6px 9px;

    border-radius: 999px;

    background: rgba(14,27,44,.77);
    color: #fff;

    font-size: 8px;
    font-weight: 800;

    pointer-events: none;
}


.code-audit__ba-label--before {
    left: 14px;
}


.code-audit__ba-label--after {
    right: 14px;
}


/* metrics */

.code-audit__metrics {
    display: grid;

    grid-template-columns:
        repeat(5,minmax(0,1fr));

    border-top:
        1px solid #edf1f5;
}


.code-audit__metrics > div {
    padding: 17px 13px;

    border-right:
        1px solid #edf1f5;
}


.code-audit__metrics > div:last-child {
    border-right: 0;
}


.code-audit__metrics span,
.code-audit__metrics strong {
    display: block;
}


.code-audit__metrics span {
    margin-bottom: 5px;

    color: #8a96a6;

    font-size: 8px;
}


.code-audit__metrics strong {
    color: #58687c;

    font-size: 10px;
    font-weight: 500;
}


.code-audit__metrics i {
    margin: 0 3px;

    color: #9aa6b6;

    font-style: normal;
}


.code-audit__metrics b {
    color: #168653;

    font-weight: 800;
}


/* =========================================================
   RESULT
   ========================================================= */

.code-audit__result {
    padding: 93px 0;

    background: #fff;
}


.code-audit__result-grid {
    display: grid;

    grid-template-columns:
        minmax(0,.9fr)
        minmax(430px,1.1fr);

    gap: 75px;

    align-items: center;
}


.code-audit__result-content h2 {
    margin: 0;

    font-size: clamp(34px,4vw,48px);
    line-height: 1.08;
}


.code-audit__result-content p {
    max-width: 650px;

    margin: 15px 0 27px;

    color: var(--ca-text);

    line-height: 1.65;
}


.code-audit__result-list {
    display: grid;

    gap: 11px;
}


.code-audit__result-list > div {
    display: grid;

    grid-template-columns:
        30px 1fr;

    gap: 13px;

    padding: 18px;

    border: 1px solid var(--ca-border);
    border-radius: 15px;

    background: #fff;
}


.code-audit__result-list > div > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border-radius: 9px;

    background: #e3f8ed;
    color: #19985a;

    font-size: 11px;
    font-weight: 800;
}


.code-audit__result-list strong {
    display: block;

    color: #263449;

    font-size: 16px;
}


.code-audit__result-list p {
    margin: 4px 0 0;

    color: #7a8899;

    font-size: 16px;
    line-height: 1.5;
}


/* =========================================================
   CTA
   ========================================================= */

.code-audit__cta {
    padding: 20px 0 85px;

    background: #fff;
}


.code-audit__cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 47px 52px;

    border-radius: 26px;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(51,177,255,.28),
            transparent 35%
        ),
        #111d30;

    color: #fff;

    box-shadow:
        0 24px 60px rgba(12,38,72,.13);
}


.code-audit__cta-label {
    margin-bottom: 8px;

    color: #78c5ff;

    font-size: 11px;
    font-weight: 700;
}


.code-audit__cta h2 {
    margin: 0 0 9px;

    font-size: clamp(30px,4vw,43px);
    line-height: 1.1;
}


.code-audit__cta p {
    max-width: 650px;

    margin: 0;

    color: #becbd9;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   CONTENT
   ========================================================= */

.code-audit__content {
    padding: 80px 0;

    background: #f6faff;
}


.code-audit__content-inner {
    max-width: 1080px;

    color: #68778c;

    font-size: 15px;
    line-height: 1.75;
}


.code-audit__content-inner h2 {
    margin: 42px 0 16px;

    color: #172236;

    font-size: 31px;
}


.code-audit__content-inner h2:first-child {
    margin-top: 0;
}


.code-audit__content-inner p {
    margin: 0 0 17px;
}


/* =========================================================
   FAQ
   ========================================================= */

.code-audit__faq {
    padding: 91px 0;

    background: #fff;
}


.code-audit__faq-grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 0 35px;

    max-width: 1200px;

    margin: 0 auto;
}


.code-audit__faq-item {
    border-bottom:
        1px solid #dfe7ef;
}


.code-audit__faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 76px;

    padding: 18px 0;

    list-style: none;

    color: #192438;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}


.code-audit__faq-item summary::-webkit-details-marker {
    display: none;
}


.code-audit__faq-item summary i {
    position: relative;

    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    border: 1px solid #bbdaf9;
    border-radius: 7px;

    background: #eef6ff;
}


.code-audit__faq-item summary i::before,
.code-audit__faq-item summary i::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    background: #1071ea;

    transform:
        translate(-50%,-50%);
}


.code-audit__faq-item summary i::before {
    width: 10px;
    height: 1px;
}


.code-audit__faq-item summary i::after {
    width: 1px;
    height: 10px;
}


.code-audit__faq-item[open]
summary i::after {
    display: none;
}


.code-audit__faq-answer {
    padding: 0 40px 20px 0;
}


.code-audit__faq-answer p {
    margin: 0;

    color: #718096;

    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .code-audit__hero-grid,
    .code-audit__result-grid {
        grid-template-columns: 1fr;
    }


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


    .code-audit__cases-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .code-audit__hero {
        padding: 38px 0 55px;
    }


    .code-audit__hero-title {
        font-size: 40px;
    }


    .code-audit__hero-text {
        font-size: 15px;
    }


    .code-audit__hero-actions {
        align-items: stretch;
    }


    .code-audit__btn {
        width: 100%;
    }


    .code-audit__editor {
        transform: none;
    }


    .code-audit__hero-visual {
        min-height: 330px;
    }


    .code-audit__float {
        display: none;
    }


    .code-audit__checks,
    .code-audit__problems,
    .code-audit__process,
    .code-audit__cases,
    .code-audit__result,
    .code-audit__content,
    .code-audit__faq {
        padding: 62px 0;
    }


    .code-audit__checks-grid,
    .code-audit__problems-grid {
        grid-template-columns: 1fr;
    }


    .code-audit__process-line {
        grid-template-columns: 1fr;
    }


    .code-audit__process-line article {
        border-top: 0;
        border-left:
            1px solid #bad8fa;

        padding-left: 31px;
    }


    .code-audit__process-line article::before {
        top: 29px;
        left: -5px;
    }


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


    .code-audit__metrics > div {
        border-bottom:
            1px solid #edf1f5;
    }


    .code-audit__cta {
        padding: 5px 0 60px;
    }


    .code-audit__cta-inner {
        display: grid;

        padding: 32px 24px;

        border-radius: 21px;
    }


    .code-audit__faq-grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .code-audit__scan {
        animation: none;

        top: 50%;
    }

}