:root {
    --main-color: #101e32;
    --text-color: aliceblue;
    --font-name: "Google Sans", sans-serif;
    --border-color: #1c56d4;
}
.about {
    border-bottom: 1px solid #4d8dff;
    padding-bottom: 2px;
    color: #4d8dff;
}
.about-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding: 40px 0 70px;
}

.about-hello {
    margin-top: 0;
}
.about-daniel1 {
    font-size: clamp(5px, 14vw, 55px);
    margin-bottom: 20px;
}
.about-bernovskyi {
    font-size: clamp(5px, 14vw, 48px);
}
.about-hero .description {
    color: #b8c4d3;
    opacity: 0.8;
}

.about-hero .viewMyProjects {
    margin-bottom: 0;
}

.about-hero .my-photo3d {
    width: min(100%, 650px);
    aspect-ratio: 1448 / 1086;
    margin: 0;
    justify-self: center;
}

.about-hero .about-my-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    margin: 0;
    filter: brightness(0.8);
    pointer-events: none;

    mask-image: radial-gradient(
        ellipse at center,
        black 40%,
        transparent 85%
    );

    -webkit-mask-image: radial-gradient(
        ellipse at center,
        black 20%,
        transparent 74%
    );
}

@media (max-width: 869px) {
    .about-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
}

@media (max-width: 420px) {
    .about-hero .my-photo3d {
        display: none;
    }

    .about-bernovskyi {
        font-size: 2.7em;
    }

    .about-daniel1 {
        font-size: 2.7em;
    }
}

.footer-section {
    margin-top: 0;
}

.footer-section > .featured-projects {
    margin-top: 0;
    color: #b8c4d3;
    opacity: 1;
}
.description1 {
    color: var(--text-color);
    margin-bottom: 40px;
    margin-left: 20px;
    max-width: 500px;
    filter: brightness(0.8);
}
.projects {
    margin-top: -10px;
}
.footer-section .projects > div > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    padding: 0;
    margin: 10px 0 0 15px;

    border-radius: 10px;
    border: 1px solid rgba(28, 86, 212, 0.55);
    background-color: #071629;

    color: #45a4ff;
    font-size: 22px;
    text-shadow: 0 0 8px rgba(46, 145, 255, 0.85);
    filter: none;
}
.project-4, .project-5, .project-6 {
    border: none ;
    mask-image: none;
    background-color:#101e32;
    border-radius: 20px;
    height: auto;
    min-height: 200px;
    padding-bottom: 15px;
    align-self: start;
}
.project-4 > h3, .project-5 > h3, .project-6 > h3 {
    font-size: 1.2em;
    margin-top: 2px;
    margin-left: 15px;
    color: var(--text-color);
}
.project-4 > p, .project-5 > p, .project-6 > p {
    margin-left: 6px;
    margin-top: 10px;
    max-width: 200px;
    font-size: 0.9em;
    color: var(--text-color);
    filter: brightness(0.8);
}
@media (max-width: 870px) {
    .project-4, .project-5, .project-6 {
        width: calc(100% - 40px);
    }
    .techStack-section > div > div > h1 {
        font-size: 1.5em;
    }
    .description2 {
       width: 300px;
    }

}
@media (min-width: 600px) and (max-width: 870px) {
    .footer-section .projects {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        padding: 0 20px;
    }

    .footer-section .projects > div {
        width: 100%;
        height: auto;
        min-height: 200px;
        margin: 0;
        padding-bottom: 15px;
    }

    .footer-section .projects > div:last-child {
        grid-column: 1 / -1;
        justify-self: center;
        width: calc((100% - 20px) / 2);
    }

    .footer-section .projects > div > p {
        max-width: none;
        margin-right: 15px;
    }
}
.techStack-section > div > p, h1 {
    color: var(--text-color);
    margin-left: 20px;
}
.techStack-section > div > p {
    font-size: 0.9em;
    opacity: 0.7;
    margin-bottom: 10px;
    max-width: 280px;
    margin-top: 10px;
}
.techStack-section .technologies-i-work-with {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 0 20px;
}

.techStack-section .technologies-i-work-with > div {
    min-width: 0;
}

.techStack-section .technologies-i-work-with > div > small {
    display: block;
    text-align: center;
    overflow-wrap: anywhere;
}
.description2 {
    color: var(--text-color);
    justify-self: end;
    max-width: 400px;
    filter: brightness(0.8);
}
.techStack-section img[src*="/github/"] {
    filter: brightness(0) invert(1);
}
.more-tools {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-width: 0;
    min-height: 115px;
    padding: 10px;

    border: 1px solid rgba(28, 86, 212, 0.4);
    border-radius: 20px;
    background: #0d192a;
    color: aliceblue;
    font: inherit;
    cursor: pointer;
}

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

.more-tools:disabled {
    cursor: default;
}

.more-tools:focus-visible {
    outline: 2px solid #45a4ff;
    outline-offset: 3px;
}

.more-tools-icon {
    color: #45a4ff;
    font-size: 36px;
    line-height: 1;
}

.more-tools-label {
    font-size: 0.8em;
}
.technologies-i-work-with {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-top: 20px;
    gap: 10px;
}
.technologies-i-work-with > div {
    background-color: var(--main-color);
    border-radius: 20px;
    filter: brightness(0.8);
}
.technologies-i-work-with > div > strong > img  {
    width: 37px;
    height: 90px;
    justify-self: center;
    filter: brightness(1.2);
}
.technologies-i-work-with > div > strong {
    display: flex;
    justify-content: center;
}
.technologies-i-work-with > div > small {
    color: var(--text-color);
    display: flex;
    justify-content: center;
    margin-top: -10px;
    margin-bottom: 20px;
    filter: brightness(0.8);
} 
@media (max-width: 699px) {
    .techStack-section .some {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0 20px;
    }

    .techStack-section .some h1 {
        margin-left: 0;
    }

    .techStack-section .some > span {
        width: 100%;
        min-width: 0;
    }

    .techStack-section .description2 {
        width: auto;
        max-width: 100%;
    }
}
@media (max-width: 599px) {
    .techStack-section .technologies-i-work-with {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .techStack-section.is-ready .more-tools {
        order: 1;
    }

    .techStack-section.is-ready
    .technologies-i-work-with > div:nth-of-type(n + 3) {
        order: 2;
    }

    .techStack-section.is-ready:not(.is-expanded)
    .technologies-i-work-with > div:nth-of-type(n + 3) {
        display: none;
    }
}
@media (min-width: 600px) and (max-width: 1023px) {
    .techStack-section .technologies-i-work-with {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .techStack-section.is-ready .more-tools {
        order: 1;
    }

    .techStack-section.is-ready
    .technologies-i-work-with > div:nth-of-type(n + 4) {
        order: 2;
    }

    .techStack-section.is-ready:not(.is-expanded)
    .technologies-i-work-with > div:nth-of-type(n + 4) {
        display: none;
    }
}
.about-process,
.about-cta,
.about-footer {
    width: calc(100% - 40px);
    max-width: none;
    margin-inline: auto;
    color: var(--text-color);
}

.about-process {
    margin-top: 52px;
}

.about-process .about-process__eyebrow {
    margin: 0 0 8px;
    color: #b8c4d3;
    font-size: 14px;
    line-height: 1.5;
}

.about-process h2,
.about-cta h2 {
    margin: 0;
    color: var(--text-color);
    font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-process h2 span {
    color: #1263ff;
}

.about-process__steps {
    position: relative;
    margin-top: 28px;
}

/* Линия проходит от центра первого номера до центра третьего. */
.about-process__track {
    position: absolute;
    top: 28px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: #1687f5;
    box-shadow: 0 0 9px rgb(22 135 245 / 40%);
    pointer-events: none;
}

.about-process__dot {
    position: absolute;
    top: 50%;
    left: 25%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #45a4ff;
    box-shadow: 0 0 12px #1687f5;
    transform: translate(-50%, -50%);
}

.about-process__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-process__list li {
    min-width: 0;
    padding-inline: 12px;
    text-align: center;
}

.about-process__number {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border: 1px solid #1687ff;
    border-radius: 16px;
    background: linear-gradient(140deg, #102d54, #061323);
    box-shadow:
        0 0 12px rgb(8 124 255 / 20%),
        inset 0 0 10px rgb(8 124 255 / 13%);
    color: var(--text-color);
    font-size: 30px;
    font-weight: 700;
}

.about-process__list h3 {
    margin: 0 0 8px;
    font-size: clamp(19px, 2vw, 24px);
    line-height: 1.3;
}

.about-process__list p {
    max-width: 280px;
    margin: 0 auto;
    color: #ced7e3;
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}


/* CONTACT BANNER */

.about-cta {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-top: 58px;
    padding: 38px 40px;
    overflow: hidden;
    border: 1px solid #244d78;
    border-radius: 20px;
    background: #07111f;
}

/* Точечный декор вместо изображения волны из макета. */
.about-cta::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(
            ellipse at 76% 110%,
            rgb(8 102 216 / 30%),
            transparent 60%
        ),
        radial-gradient(
            circle,
            rgb(33 150 255 / 60%) 1px,
            transparent 1.5px
        );
    background-size: auto, 12px 12px;
    mask-image: linear-gradient(
        110deg,
        transparent 35%,
        #000 75%,
        transparent
    );
    pointer-events: none;
}

.about-cta__copy {
    min-width: 0;
}

.about-cta p {
    margin: 12px 0 0;
    color: #ced7e3;
    font-size: 16px;
    line-height: 1.5;
}

.about-cta .about-cta__button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    padding: 12px 36px;
    border: 1px solid #146aff;
    border-radius: 999px;
    background: #064bd8;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.about-cta__button:hover {
    background: #0958ed;
}


/* FOOTER */

.about-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 42px;
    padding: 26px 14px 30px;
    border-top: 1px solid #718092;
}

.about-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.4;
    text-decoration: none;
}

.about-footer .about-footer__brand {
    font-size: 23px;
    font-weight: 700;
}

.about-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 36px;
}

.about-footer nav a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.about-cta a:focus-visible,
.about-footer a:focus-visible {
    outline: 2px solid #64b5ff;
    outline-offset: 5px;
}


/* TABLET */

@media (max-width: 767px) {
    .about-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px;
    }
}


/* MOBILE */

@media (max-width: 599px) {
    .about-process {
        margin-top: 40px;
    }

    .about-process__list {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .about-process__list li {
        position: relative;
        min-height: 58px;
        padding: 0 0 0 78px;
        text-align: left;
    }

    .about-process__number {
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
    }

    .about-process__list p {
        max-width: none;
        margin: 0;
    }

    .about-process__track {
        top: 28px;
        bottom: 28px;
        left: 28px;
        right: auto;
        width: 1px;
        height: auto;
    }

    .about-process__dot {
        top: 25%;
        left: 50%;
    }

    .about-cta {
        margin-top: 40px;
        padding: 26px 22px;
    }

    .about-footer {
        flex-wrap: wrap;
        gap: 8px 24px;
        padding-inline: 0;
    }

    .about-footer nav {
        gap: 20px;
    }
}
html.about-motion-pending .about-page :is(
    .header,
    .about-hero .hello,
    .about-hero .daniel1,
    .about-hero .bernovskyi,
    .about-hero .description,
    .about-hero .buttons,
    .about-hero .my-photo3d,
    .footer-section .featured-projects,
    .footer-section .some,
    .footer-section .description1,
    .footer-section .projects > div,
    .techStack-section,
    .about-process,
    .about-cta,
    .about-footer
) {
    opacity: 0;
}