* {
    font-family: "Montserrat", sans-serif;
    outline: none;
    padding: 0;
    margin: 0;
}
body {
    background: radial-gradient(var(--background-1), var(--background-2));
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}
:root {
    --background-1: #242524;
    --background-2: #1e2519;
    --background-3: #3A3A36;
    --text-color: #F0EDE3;
    --shadow-border-color: #535e43;
}
html {
    scroll-behavior: smooth;
    padding: 0;
    margin: 0;
}
#header_title {
    left: 20px;
    position: relative;
}
#about_body {
    left: 0;
    right: 0;
}
.card {
    display: grid;
    place-items: center;
    padding: 20px;
    border: 3px solid var(--background-1);
    border-radius: 30px;
}
#main_body {
    height: 500px;
    padding-left: 20px;
    padding-right: 20px;
}
#contact_body {
    height: 800px;
    z-index: 5;
}
#portfolio-body {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 3) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 8;
    backdrop-filter: blur(1px);
    right: 0;
    left: 0;
    padding: 15px 20px;
    min-height: 100vh;
    display: grid;
    place-items: center;
}
#portfolio-title {
    font-size: 40px;
    font-weight: 600;
    z-index: 8;
    color: var(--text-color);
    letter-spacing: 10px;
    text-transform: uppercase;
    text-shadow: 0 0 60px var(--text-color);
    margin: 60px 20px 20px;
    @media (max-width: 1024px) {
        margin: 100px 20px 20px;
    }
    text-align: center;
    opacity: 0;
    transition: 1s;
}
#portfolio-title.visible {
    opacity: 1;
}
.site-footer {
    background-color: var(--text-color); /* Светлый фон */
    color: var(--background-2); /* Темный текст */
    padding: 30px;
    font-size: 14px;
    font-weight: 400;
    position: relative;
}
@media (min-width: 100px) {
    .site-footer {
        top: 100px;
    }
}
@media (max-height: 400px) {
    .site-footer {
        top: 200px;
    }
}
.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-links a {
    font-size: 16px;
}
.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}
.footer-center {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-content a {
    text-decoration: none;
    color: var(--background-2);
}
.footer-content a:hover {
    text-decoration: underline;
}
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
#title {
    color: var(--text-color);
    font-size: 40px;
    z-index: 8;
}

.slider-container {
    display: grid;
    width: 80%;
    max-width: 1200px;
    padding: 40px 40px 40px 40px;

}
#portfolio-body {
    left: 0;
    right: 0;
}
@media (min-width: 1024px) {
    .slider-container {
        display: flex;
    }
}

.text-container {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: 1s;
    transition-delay: 0.5s;
}
.text-container.visible {
    opacity: 1;
}
.image-container {
    flex: 2;
    position: relative;
    overflow: hidden;
    transition: width 0.5s;
    padding: 0 0 20px;
    width: 100%;
    height: 100%;
    align-content: center;
}
.image-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    position: relative;
    width: 100%;
}
.portfolio-image {
    width: 100%;
    flex: 0 0 100%;
}
.email_dark_logo {
    opacity: 0;
    position: absolute;
    transition: 0.3s;
    width: 30px;
}
.social_links {
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    width: 300px;
    margin-top: 15px;
}
@media (max-width: 992px) {
    .social_links {
        transform: translateX(-50%);
        left: 50%;
    }
}
.email_contact:hover .email_dark_logo {
    opacity: 1;
}
.email_contact {
    aspect-ratio: 1/1;
    width: 40px;
}
.email_dark_logo {
    left: 50%;
    transform: translateX(-50%);
}
#number_of_project {
    font-size: 100px;
    color: var(--text-color);
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px var(--text-color);
    z-index: 8;
}

#prev-btn {
    left: 10px;
}

#next-btn {
    right: 10px;
}

#portfolio-description {
    color: var(--text-color);
    z-index: 8;
}
.portfolio_button {
    width: 30px;
    height: 30px;
}
#prev-btn, #next-btn {
    animation: none;
    animation-duration: 1.2s;
}
#prev-btn.visible {
    animation-name: portfolio_buttons;
    animation-delay: 0s;
}
#next-btn.visible {
    animation-name: portfolio_buttons;
    animation-delay: 0.2s;
}
@keyframes portfolio_buttons {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.5);
    }
    60% {
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.2);
    }
    80% {
        transform: scale(0.9);
    }
    90% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
@media (min-width: 768px) {
    .portfolio_button {
        width: 60px;
        height: 60px;
    }
}
.portfolio_button-container {
    background: var(--text-color);
    padding: 10px;
    border-radius: 15px;
    border: none;
    margin: 0 20px 0;
    transition: 0.2s;
}
@media (min-width: 768px) {
    .portfolio_button-container:hover {
        transform: scale(1.2);
        border-radius: 20px;
    }
}

.portfolio_button-container:active {
    transform: scale(0.8);
}
#portfolio-slider_buttons {
    justify-content: space-between;
    display: flex;
    margin-top: 20px;
    position: relative;
}
::selection {
    background: var(--shadow-border-color);
    color: var(--background-1);
}
@media (max-width: 500px) {
    .link-container {
        margin-bottom: 10px;
    }
}
.link-container {
    display: inline-block;
    position: relative;
}
.link-container a:hover {
    color: var(--text-color);
}
.link-container a {
    text-decoration: none;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    margin-left: 20px;
    margin-right: 20px;
    transition: 0.3s;
}

.link-container .underline {
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    transition: width 0.3s ease, left 0.3s ease;
}

.link-container a:hover ~ .underline {
    width: 140px;
    left: calc(40% - 50px);
}
@media (min-width: 768px) {
    .link-container a:hover ~ .underline {
        width: 100px;
        left: calc(50% - 50px);
    }
}
#background-icons {
    z-index: 0;
}
#webgit {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-size: 15px;
    font-weight: bold;
    color: var(--background-1);
}
@media (min-width: 768px) {
    #webgit {
        font-size: 20px;
    }

}
#main-link {
    opacity: 0;
    transition: opacity 0.5s ease 1.6s, margin-top 0.5s ease 1.6s, color 0.5s;
    margin-top: 20px;
}
#main-link.visible {
    opacity: 1;
    margin-top: 0;
}
#about-link {
    opacity: 0;
    transition: opacity 0.5s ease 1.8s, margin-top 0.5s ease 1.8s, color 0.5s;
    margin-top: 20px;
}
#about-link.visible {
    opacity: 1;
    margin-top: 0;
}
#portfolio-link {
    opacity: 0;
    transition: opacity 0.5s ease 2s, margin-top 0.5s ease 2s, color 0.5s;
    margin-top: 20px;
}
#portfolio-link.visible {
    opacity: 1;
    margin-top: 0;
}
#algorithm-link {
    opacity: 0;
    transition: opacity 0.5s ease 2.2s, margin-top 0.5s ease 2s, color 0.5s;
}
#algorithm-link.visible {
    opacity: 1;
}
#first-paragraph, #second-paragraph, #third-paragraph, #fourth-paragraph {
    font-weight: 500;
}
#algorithm-first-item, #algorithm-second-item, #algorithm-third-item, #algorithm-fourth-item {
    opacity: 0;
    transform: translateY(-20px);
    transition: 0.5s;
}
#algorithm-first-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}
#algorithm-second-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.8s;
}
#algorithm-third-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1s;
}
#algorithm-fourth-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 1.2s;
}
#contact-link {
    opacity: 0;
    transition: opacity 0.5s ease 2.4s, margin-top 0.5s ease 2s, color 0.5s;
    margin-top: 20px;
}
#contact-link.visible {
    opacity: 1;
    margin-top: 0;
}
#main_title {
    opacity: 0;
    transition: 1s;
    margin-top: 20px;
}
#main_title.visible {
    opacity: 1;
    margin-top: 0;
}
#main_text {
    opacity: 0;
    transition: 1s;
    margin-top: 20px;
    transition-delay: 0.5s;
}
#main_text.visible {
    opacity: 1;
    margin-top: 0;
}
#gmail-contact {
    opacity: 0;
    transition: opacity 1s ease 1s, height 0.2s, color 0.2s, background 0.2s, font-size 0.2s;
}

#gmail-contact.visible {
    opacity: 1;
}
#discord-contact {
    opacity: 0;
    transition: opacity 1s ease 1.2s, height 0.2s, color 0.2s, background 0.2s, font-size 0.2s;
}
#whatsapp-contact.visible {
    opacity: 1;
}
#whatsapp-contact {
    opacity: 0;
    transition: opacity 1s ease 1.4s, height 0.2s, color 0.2s, background 0.2s, font-size 0.2s;
}
#telegram-contact.visible {
    opacity: 1;
}
#telegram-contact {
    opacity: 0;
    transition: opacity 1s ease 1.6s, height 0.2s, color 0.2s, background 0.2s, font-size 0.2s;
}
#discord-contact.visible {
    opacity: 1;
}
#algorithm-body {
    position: relative;
    height: 110vh;
    left: 0;
    right: 0;
    background: var(--text-color);
    color: var(--background-1);
    @media (max-width: 1024px) {
        top: 100px;
    }
    padding: 10px 20px;
    display: grid;
    place-items: center;
}
#titles {
    display: grid;
    place-items: center;
    text-align: center;
}
@media (max-height: 780px) {
    #algorithm-body {
        margin-bottom: 200px;
        height: 140vh;
    }
}
@media (max-height: 560px) {
    #algorithm-body {
        height: 200vh;
    }
}
#algorithm-title {
    opacity: 0;
    transition: 0.5s;
    transform: translateY(-20px);
    transition-delay: 0.2s;
}
#algorithm-subtitle {
    opacity: 0;
    transition: 0.5s;
    transform: translateY(-20px);
    transition-delay: 0.4s;
}
#algorithm-title.visible, #algorithm-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}
#titles h1 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: 55px;
    @media (max-width: 1024px) {
        font-size: 40px;
    }
    font-weight: 900;
}

#titles h4 {
    font-weight: 400;
}

.items {
    max-width: 800px;
    margin: auto;
    gap: 10px;
    display: grid;
}
.item {
    display: flex;
    align-items: center;
    position: relative;
}
.arrow {
    @media (max-width: 720px) {
        width: 120px;
    }
    @media (min-width: 720px) {
        width: 150px;
    }
}
.arrow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    margin-right: 20px;
    flex-direction: column;
    overflow: hidden;
}
.icon {
    position: absolute;
    width: 70px;
}
.text strong {
    font-size: 1.2em;
    @media (max-width: 480px) {
        top: 0;
    }
    @media (min-width: 480px) {
        top: -10px;
    }
    position: relative;
}
#picture-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    -webkit-mask-image: radial-gradient(
            circle,
            rgba(0, 0, 0, 1) 60%,
            rgba(0, 0, 0, 0) 100%
    );
    mask-image: radial-gradient(
            circle,
            rgba(0, 0, 0, 1) 60%,
            rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    text-align: center;
}

#laptop_picture {
    width: 100%;
    height: auto; /* Автоматическая высота */
    display: inline-block;
    object-fit: contain; /* Показывает всю картинку */
    opacity: 0;
    transition: opacity 1s ease;
    transition-delay: 0.5s;
    border-radius: 20px;
    position: relative;
    top: 100px;
}
#laptop_picture.visible {
    opacity: 1;
    margin-top: 0;
}
#about_subtitle {
    text-align: center;
}
#about_title {
    text-align: center;
    width: 90vw;
}
#about_body {
    height: 1500px;
    width: 100%;
    right: 0;
    background: var(--text-color);
    position: relative;
    z-index: 1;
    display: grid;
    justify-content: center;
    place-items: center;
    padding-left: 10px;
    padding-right: 10px;
}
.about-hover-icon {
    opacity: 0;
    position: absolute;
    transition: 0.5s;
    left: 29%;
}
.card-icon {
    width: 100%;
    display: grid;
    place-items: center;
    position: absolute;
    top: 4rem;
}
.card:hover .about-hover-icon {
    opacity: 1;
}
.card:hover .about-icon {
    opacity: 0;
}
.email_contact {
    transition: scale 0.5s ease-in-out, background 0.2s ease-in-out, color 0.2s ease-in-out;
}
.email_contact span {
    display: none;
}
.email_contact:hover {
    transform: scale(1.3);
}
@media (max-width: 480px) {
    .about-hover-icon {
        right: 35%;
    }
}
@media (min-width: 768px) {
    .about-hover-icon {
        right: 30%;
    }
}
@media (max-width: 500px) {
    #about_body {
        height: 2000px;
    }
}
@media (min-width: 500px) {
    #about_body {
        height: 1600px;
    }
}
@media (min-width: 768px) {
    #about_body {
        height: 1200px;
    }
}
#typing_on_laptop {
    z-index: 2;
    width: 100%;
    top: 0;
    position: absolute;
}
.about-tittles {
    display: grid;
    place-items: center;
}
#about_title {
    font-family:  Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: 20px;
    font-weight: 600;
    color: var(--background-1);
    opacity: 0;
    margin-top: 30px;
    transition: 1s;
    z-index: 3;
    justify-content: center;
    display: flex;
    align-items: center;
}
#about_title.visible {
    opacity: 1;
    margin-top: 0;
}
#about_subtitle {
    font-family:  Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: 10px;
    font-stretch: ultra-condensed;
    letter-spacing: 3px;
    color: var(--background-1);
    font-weight: bold;
    margin-top: 20px;
    opacity: 0;
    transition: 1s;
    transition-delay: 0.5s;
    z-index: 3;
}
@media (min-width: 600px) {
    #about_title {
        font-size: 30px;
    }
    #about_subtitle {
        font-size: 15px;
    }
}
@media (min-width: 768px) {
    #about-title {
        font-size: 50px;
    }
    #about-subtitle {
        font-size: 15px;
    }
}
#about_subtitle.visible {
    opacity: 1;
    margin-top: 5px;
}
.about-icon, .about-hover-icon {
    width: 80px;
    height: 80px;
}
@media (max-width: 768px) {
    #services {
        height: 1200px;
    }
}
#services {
    display: grid;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    bottom: -30%;
    position: relative;
    opacity: 0;
    transition: bottom 1s ease, opacity 0.3s, transform 0.3s;
}
#about-body {
    height: 1500px;
}
@media (max-width: 480px) {
    .card {
        width: 300px;
    }
}
.card {
    width: 150px;
    height: 250px;
}
#services.visible {
    bottom: -5%;
    opacity: 1;
}
.card {
    box-shadow: #0e0e0e 5px 5px 15px;
}
#services:hover > :not(:hover) {
    transform: scale(0.7);
}
.card.hover {
    transform: scale(1.3);
    background: var(--background-1);
    color: var(--text-color);
    border: var(--text-color);
}
@media (max-width: 768px) {
    .card {
        margin: 10px 150px 10px;
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        transition: 0.5s;
        color: var(--background-1);
    }

}
.card {
    margin: 0 50px 0;
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    transition: 0.5s all;
    color: var(--background-1);
    transform-style: preserve-3d;
}
.card-title {
    font-weight: 600;
    font-size: 20px;
}
.card .card-icon {
    text-shadow: var(--shadow-border-color) 10px 10px 20px;
}
.card .card-title {
    text-shadow: var(--shadow-border-color) 10px 10px 20px;
}
.card-text {
    text-align: justify;
    font-size: 12px;
    font-weight: 500;
    font-stretch: semi-condensed;
    margin-top: 20px;
}
.card .card-text {
    transform: translateZ(20px);
    text-shadow: var(--shadow-border-color) 10px 10px 20px;
}
@media (min-width: 768px) {
    #services {
        display: flex;
        margin: 0 20px 0;
    }
    .card {
        width: 140px;
        height: 280px;
        margin: 0 20px 0;
    }
}
@media (max-width: 1336px) {
    #about_title {
        font-size: 30px;
    }

}
.card-title {
    text-align: center;
    position: absolute;
    bottom: 4rem;
}
@media (min-width: 1336px) {
    .card {
        margin: 0 100px 0;
        height: 300px;
        min-width: 200px;
    }
    .about-icon, .about-hover-icon {
        width: 100px;
        height: 100px;
    }
    #about_title {
        font-size: 45px;
    }
    #about_body {
        height: 1000px;
    }
    #about-subtitle {
        font-size: 20px;
    }
    #main_body {
        height: 800px;
    }
}
@media (max-width: 992px) {
    #main {
        bottom: 70px;
        position: relative
    }
}
#contact_body {
    height: 100vh;
    padding-top: 60px;
    display: grid;
    place-items: center;
}
@media (min-width: 768px) {
    #contact_body {
        height: 700px;
    }
}
.background_icons {
    position: fixed;
    z-index: 0;
}
#header {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#header_title {
    display: flex;
    align-items: center;
    font-size: 15px;
    color: var(--shadow-border-color);
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 700;
}
.header_link {
    color: var(--text-color);
    text-decoration: none;
    text-transform: uppercase;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    font-style: normal;
    margin: 20px;
    transition: 0.3s;
}
.header_link:hover {
    color: var(--text-color);
}
.modal-phone-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--text-color);
    color: var(--background-1);
    font-weight: 500;
    font-size: 25px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    z-index: -9;
    transition: 0.3s;
    border-radius: 20px;
    box-shadow: 0 0 30px var(--shadow-border-color);
}
.modal-phone-window.active {
    opacity: 1;
    z-index: 9;
}
.copy-button-logo {
    position: relative;
    width: 50px;
}
#copy_button {
    border: none;
    background: none;
    border-radius: 10px;
    padding: 5px;
}
#copy_button:active {
    background: none;
}
#copy_button:hover {
    background: rgba(14, 14, 14, 0.15);
}
.modal-call-window {
    position: fixed;
    left: 50%;
    transform: translate(-50%, -150%);
    background: var(--text-color);
    color: var(--background-1);
    font-weight: 500;
    font-size: 20px;
    padding: 15px 20px;
    border-radius: 15px;
    opacity: 0;
    z-index: -9;
    transition: 0.3s;
    box-shadow: 0 0 30px var(--shadow-border-color);
    display: grid;
    place-items: center;
    gap: 10px;
}
.modal-call-window.active {
    opacity: 1;
    z-index: 9;
}
#call_now {
    background: var(--background-1);
    color: var(--text-color);
    border: none;
    border-radius: 15px;
    padding: 5px;
    font-size: 20px;
    font-weight: 500;
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-3);
    color: var(--text-color);
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.cookie-banner.show {
    opacity: 1;
    pointer-events: auto;
}

.cookie-banner p {
    margin: 0;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
}

.cookie-banner a {
    color: #90caf9;
    text-decoration: underline;
}

.cookie-banner button {
    background: var(--shadow-border-color);
    border: none;
    color: var(--text-color);
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    align-self: center;
}

@media (min-width: 600px) {
    .cookie-banner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .cookie-banner p {
        text-align: left;
    }

    .cookie-banner button {
        align-self: auto;
    }
}
#header_links {
    justify-content: space-around;
    font-size: 12px;
    font-weight: bold;
    display: grid;
    margin-top: 0;
}
#logo_picture {
    width: 50px;
}
@media (min-width: 1024px) {
    #header {
        position: fixed;
        width: 100vw;
        top: 0;
        z-index: 9;
        background: radial-gradient(circle, rgba(14, 14, 14, 0.26) 0%, rgba(46, 46, 46, 0.22) 90%);
        backdrop-filter: blur(10px);
    }
}
@media (max-width: 1023px) {
    #body.active {
        filter: blur(5px);
    }
    #body {
        z-index: -1;
    }
    .header_link {
        margin: 20px;
    }
    #header_links {
        opacity: 0;
        z-index: -1;
        transition: 0.5s;
        position: fixed;
        transform: translate(-50%, 50%);
        top: 20%;
        left: 50%;
    }
    #header_links.visible {
        opacity: 1;
        z-index: 10;
        height: 300px;
    }
    #close_button {
        opacity: 0;
        transition: 0.5s;
        z-index: -1;
        backdrop-filter: none;
        background: none;
    }
    #close_button.visible {
        opacity: 1;
        z-index: 11;
    }
    /* Общие стили для всех линий */
    #top_line, #center_line, #bottom_line {
        background: var(--text-color);
        transform: translateY(0) scaleX(1);
        height: 5px;
        width: 80%;
        border-radius: 5px;
        position: absolute;
        left: 10%;
        transition: 0.5s ease-in-out all;
    }

    /* Положение каждой линии в закрытом состоянии */
    #top_line {
        transform: translateY(-10px);
    }
    #center_line {
        transform: translateY(0);
    }
    #bottom_line {
        transform: translateY(10px);
    }

    /* Анимация при открытом состоянии (крестик) */
    #open_button.invisible #top_line {
        transform: rotate(45deg);
    }
    #open_button.invisible #center_line {
        transform: translateY(0) scaleX(0);
    }
    #open_button.invisible #bottom_line {
        transform: rotate(-45deg);
    }
    #open_button {
        opacity: 1;
        transition: 0.5s;
        z-index: 11;
        backdrop-filter: blur(20px);
        background: radial-gradient(circle, rgba(0, 0, 0, 0.29) 0%, rgba(0, 0, 0, 0.32) 90%);
    }
    .header_link {
        font-size: 20px;
        text-shadow: var(--background-1) -2px 0 15px;
    }
    .link_button, .button_image {
        width: 70px;
        height: 70px;
    }
    .link_button {
        position: fixed;
        border: none;
        right: 30px;
        top: 10px;
        padding: 1px;
        border-radius: 20px;
    }
}
@media (min-width: 768px) {
    #header_title {
        font-size: 30px;
    }
    #logo_picture {
        width: 60px;
    }
    #header_links {
        font-size: 15px;
        font-weight: 500;
    }
    body {
        height: 1000px;
    }
}
@media (min-width: 1024px) {
    #header_links {
        display: flex;
        z-index: 10;
        opacity: 1;
    }
    #buttons {
        display: none;
    }
}
.body_title {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    width: 260px;
    color: var(--text-color);
    z-index: 2;
    transition: 0.3s;
}
.contact_title {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    color: var(--text-color);
    z-index: 2;
    transition: 0.3s;
}
#main_title {
    font-weight: 700;
    font-size: 22px;
    margin-left: 10px;
}
#contact_text {
    font-size: 18px;
    font-weight: 500;
    margin-top: 20px;
    z-index: 2;
    text-align: justify;
}
@media (max-width: 992px) {
    .picture-container {
        order: -1;
        width: 200px;
        height: 200px;
        overflow: hidden;
        position: relative;
        border-radius: 50%;
        /*border: 2px solid var(--text-color);*/
        box-shadow: 0 2px 10px var(--text-color);
        background-color: var(--background-3);
        margin-bottom: 15px;
        z-index: 3;
    }
    #laptop_picture {
        position: absolute;
        width: 270px;
        height: 270px;
        left: -17.5%;
        top: -17%;
        object-fit: cover;
        mask-image: none;
        -webkit-mask-image: none;
        transform: scale(0.7);
        z-index: 3;
    }
    #laptop_picture.visible {
        opacity: 1;
    }
    #main {
        flex-direction: column;
    }
    #main_text {
        text-align: center;
    }
}
.email_logo {
    width: 35px;
}
.email_contact {
    align-items: center;
    display: flex;
}
.text_title {
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 992px) {
    #main_title {
        position: relative;
        text-align: center;
    }
}
@media (min-width: 420px) {
    .body_title {
        width: 80vw;
    }
    #main_title {
        font-weight: 700;
        font-size: 25px;
        @media (min-width: 992px) {
            text-align: left;
        }
    }
    #contact_text {
        font-size: 18px;
        font-weight: 500;
        margin-top: 20px;
        z-index: 2;
        text-align: justify;
    }
    #main_text {
        font-size: 18px;
        font-weight: 500;
        margin-top: 20px;
        z-index: 2;
    }
    #about_text {
        width: 350px;
        font-weight: 600;
        justify-content: center;
        text-align: justify;
        font-size: 15px;
        border: 2px solid #04376C;
        backdrop-filter: blur(5px);
        border-radius: 30px;
        padding: 15px;
    }
    .text_title {
        font-weight: 700;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
@media (min-width: 580px) {
    #about_text {
        width: 500px;
        font-weight: 600;
        justify-content: center;
        text-align: justify;
        font-size: 15px;
        border: 2px solid #04376C;
        backdrop-filter: blur(5px);
        border-radius: 30px;
        padding: 15px;
    }
    .text_title {
        font-weight: 700;
        font-size: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
@media (min-width: 768px) {
    .body_title {
        width: 700px;
    }
    #main_title {
        font-weight: 700;
        font-size: 35px;
    }
}
@media (min-width: 992px) {
    #main_title {
        font-weight: 700;
        font-size: 40px;
    }
    #contact_text {
        font-size: 20px;
        font-weight: 400;
        z-index: 2;
        text-align: left;
    }
    #main_text {
        font-size: 20px;
        font-weight: 400;
        z-index: 2;
        text-align: left;
    }
    #laptop_picture {
        display: flex;
        z-index: 2;
        width: 400px;
        transform: translateY(-100px);
    }
    #about_text {
        width: 800px;
        justify-content: center;
        text-align: justify;
        font-weight: 600;
        font-size: 20px;
        border: 3px solid #04376C;
        backdrop-filter: blur(5px);
        border-radius: 30px;
        padding: 30px;
    }
    .text_title {
        font-weight: 800;
        font-size: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
    }


}
#email_dark_logo {
    opacity: 0;
    position: absolute;
    width: 20px;
}
.email_contact {
    border: none;
    border-radius: 20px;
}
.email_contact:hover {
    border-radius: 20px;
    background: var(--text-color);
    color: var(--background-1);
}
.email_contact:hover #email_logo {
    opacity: 0;
}
.email_contact:hover #email_dark_logo {
    opacity: 1;
}
.email_logo {
    width: 30px;
    position: relative;
}
@media (min-width: 1300px) {
    #main_title {
        font-weight: 600;
        font-size: 50px;
    }
    #contact_text {
        font-size: 25px;
        font-weight: 500;
        text-align: left;
    }
    #main_text {
        font-size: 25px;
        font-weight: 500;
        text-align: left;
    }
    #laptop_picture {
        width: 600px;
        display: flex;
    }
    #email_dark_logo {
        opacity: 0;
        position: absolute;
    }
    .email_contact {
        border: none;
        border-radius: 20px;
        background: none;
    }
    .email_contact:hover {
        border-radius: 20px;
        background: var(--text-color);
        color: var(--background-1);
    }
    .email_contact:hover .email_logo {
        opacity: 0;
    }
    .email_contact:hover #email_dark_logo {
        opacity: 1;
    }
    .email_logo {
        width: 30px;
        position: relative;
    }
    .email_contact:active #description {
        display: flex;
    }
}
.picture-container {
    opacity: 0;
    transition: 0.5s;
}
.picture-container.visible {
    opacity: 1;
}
.body_title {
    height: 450px;
}
.email_contact {
    cursor: pointer;
}
#description {
    background: var(--text-color);
    color: var(--background-1);
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.5s ease-in-out;
    border: none;
    height: 20px;
    width: 170px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    box-shadow: 0 0 30px var(--shadow-border-color);
    padding: 2px;
    align-items: center;
    display: flex;
    justify-content: center;
    border-radius: 30px;
    opacity: 0;
    z-index: 4;
}
#description.show {
    opacity: 1;
}
@media (min-width: 768px) {
    #description {
        background: var(--text-color);
        color: var(--background-1);
        position: fixed;
        top: 60px;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: opacity 0.5s ease-in-out;
        border: none;
        height: 50px;
        width: 250px;
        font-size: 20px;
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        box-shadow: 0 0 30px var(--shadow-border-color);
        padding: 2px;
        align-items: center;
        display: flex;
        justify-content: center;
        border-radius: 30px;
        opacity: 0;
        z-index: 0;
    }
    #description.show {
        opacity: 1;
        z-index: 6;
    }
}
#description.show {
    z-index: 6;
}
#main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 120px;
    z-index: 5;
    opacity: 1;
    transition: 0.3s;
    position: relative;
}
@media (min-width: 992px) {
    #main {
        margin-top: 150px;
        padding: 30px;
    }
}
.email_contact {
    text-decoration: none;
    color: var(--text-color);
    background: none;
}
#description {
    justify-content: center;
    align-items: center;

}
#about {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
    z-index: 2;
    transition: 0.3s;
}
#contact {
    @media (min-width: 468px) {
        width: 400px;
    }
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.contact_text-title {
    font-family: 'Work Sans', sans-serif;
    font-size: 25px;
    font-weight: 700;
    @media (min-width: 468px) {
        width: 400px;
    }
    color: var(--text-color);
    display: grid;
    place-items: center;
    text-align: center;
}
#small_forms {
    margin-bottom: 10px;
    display: grid;
    @media (min-width: 468px) {
        width: 400px;
    }
    align-items: center;
    justify-content: center;
    position: relative;
}
.input_forms {
    @media (min-width: 468px) {
        width: 400px;
    }
    margin-top: 20px;
    display: grid;
    align-items: center;
    justify-content: center;
}
#email {
    width: 250px;
    height: 20px;
    margin-bottom: 10px;
}
#subject {
    width: 250px;
    height: 20px;
}
#subject {
    content: "asdfasdfasdf";
}
#message {
    width: 250px;
    height: 100px;
    resize: none;
    margin-top: 10px;
}
@media (min-width: 630px) {
    #contact_method {
        left: 10px;
        position: relative;
    }
}
@media (max-width: 630px) {
    #contact_method {
        top: 10px;
        position: relative;
    }
}
#textarea_form {
    @media (min-width: 468px) {
        width: 400px;
    }
    align-items: center;
    justify-content: center;
    display: flex;
}
#contact_button {
    width: 100px;
    height: 25px;
    background: var(--background-1);
    color: var(--shadow-border-color);
    border: 2px solid var(--shadow-border-color);
    border-radius: 20px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-size: 12px;
    letter-spacing: 2px;
    transition: 0.3s;
    margin-top: 10px;
}
#contact_button:hover {
    color: var(--text-color);
    border: 2px solid var(--text-color);
    box-shadow: 0 0 10px var(--shadow-border-color);
}
.flash-messages {
    @media (min-width: 468px) {
        width: 400px;
    }
    display: flex;
    align-items: center;
    justify-content: center;'
}
#flash_message_icon {
    margin-right: 10px;
    width: 20px;
}
.flash-message {
    align-items: center;
    display: flex;
    justify-content: center;
    color: var(--text-color);
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
}
#button_block {
    @media (min-width: 468px) {
        width: 400px;
    }
    align-items: center;
    justify-content: center;
    display: flex;
}
.contact_form,
.contact_form:-webkit-autofill,
.contact_form:-webkit-autofill:focus {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    border: 2px solid var(--shadow-border-color);
    border-radius: 25px;
    padding: 10px;
    width: 100%;
    background: linear-gradient(to right, var(--background-3) 50%, var(--background-1) 50%);
    background-size: 200% 100%;
    background-position: right bottom;
    transition: 0.3s ease;
}

.contact_form:hover,
.contact_form:-webkit-autofill:hover,
.contact_form:-webkit-autofill:focus {
    color: var(--text-color);
    border: 2px solid var(--text-color);
    box-shadow: 0 0 10px var(--shadow-border-color);
}

.contact_form:active,
.contact_form:focus,
.contact_form:-webkit-autofill:active,
.contact_form:-webkit-autofill:focus {
    background-position: left bottom;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    box-shadow: 0 0 15px var(--shadow-border-color);
}

.contact_form:-webkit-autofill {
    background-color: var(--background-3) !important;
}
.contact_form:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--background-3) inset !important;
    -webkit-text-fill-color: var(--text-color) !important;
    transition: background-color 5000s ease-in-out 0s; /* Долгая анимация изменения фона */
}
#contact_forms {
    @media (min-width: 468px) {
        width: 400px;
    }
}
@media (min-width: 440px) {
    #contact {
        width: 400px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }

    .contact_text-title {
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-size: 25px;
        font-weight: 700;
        width: 400px;
        color: var(--text-color);
        display: grid;
        place-items: center;
    }
    #textarea_form {
        display: block;
    }
    #small_forms {
        justify-content: space-between;
        margin-bottom: 10px;
        display: flex;
        width: 400px;
        position: relative;
    }
    .input_forms {
        width: 400px;
        margin-top: 20px;
    }
    #email {
        width: 150px;
        height: 20px;
        margin-bottom: 0;
    }
    #subject {
        width: 150px;
        height: 20px;
    }
    #message {
        width: 375px;
        height: 100px;
        resize: none;
        margin-top: 10px;
    }
    #contact_button {
        width: 100px;
        height: 25px;
        background: var(--background-1);
        color: var(--shadow-border-color);
        border: 2px solid var(--shadow-border-color);
        border-radius: 20px;
        font-weight: 600;
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-size: 12px;
        letter-spacing: 2px;
        transition: 0.3s;
        margin-top: 10px;
    }
    #contact_button:hover {
        color: var(--text-color);
        border: 2px solid var(--text-color);
        box-shadow: 0 0 10px var(--shadow-border-color);
    }
    .flash-messages {
        width: 400px;
        display: flex;
        align-items: center;
        justify-content: center;'
    }
    #flash_message_icon {
        margin-right: 10px;
        width: 20px;
    }
    .flash-message {
        align-items: center;
        display: flex;
        justify-content: center;
        color: var(--text-color);
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-size: 15px;
        font-weight: 600;
        margin-top: 20px;
    }
    #button_block {
        width: 400px;
        align-items: center;
        justify-content: center;
        display: flex;
    }
    .contact_form,
    .contact_form:-webkit-autofill,
    .contact_form:-webkit-autofill:focus {
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-color);
        border: 2px solid var(--shadow-border-color);
        border-radius: 25px;
        padding: 10px;
        width: 100%;
        background: linear-gradient(to right, var(--background-3) 50%, var(--background-1) 50%);
        background-size: 200% 100%;
        background-position: right bottom;
        transition: 0.3s ease;
    }

    .contact_form:hover,
    .contact_form:-webkit-autofill:hover,
    .contact_form:-webkit-autofill:focus {
        color: var(--text-color);
        border: 2px solid var(--text-color);
        box-shadow: 0 0 10px var(--shadow-border-color);
    }

    .contact_form:active,
    .contact_form:focus,
    .contact_form:-webkit-autofill:active,
    .contact_form:-webkit-autofill:focus {
        background-position: left bottom;
        color: var(--text-color);
        border: 2px solid var(--text-color);
        box-shadow: 0 0 15px var(--shadow-border-color);
    }

    .contact_form:-webkit-autofill {
        background-color: var(--background-3) !important;
    }
    .contact_form:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px var(--background-3) inset !important;
        -webkit-text-fill-color: var(--text-color) !important;
        transition: background-color 5000s ease-in-out 0s;
    }
    #contact_forms {
        width: 400px;
    }
}
@media (min-width: 630px) {
    #contact {
        width: 600px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }
    .contact_text-title {
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-size: 30px;
        font-weight: 700;
        width: 600px;
        color: var(--text-color);
        justify-content: center;
        align-items: center;
        display: flex;
    }
    #contact_forms {
        width: 600px;
    }
    #small_forms {
        justify-content: space-between;
        margin-bottom: 10px;
        display: flex;
        width: 600px;
        position: relative;
    }
    #textarea_form {
        display: block;
    }
    .input_forms {
        width: 600px;
        margin-top: 20px;
    }
    #email {
        width: 200px;
        height: 30px;
        margin-bottom: 0;
    }
    #subject {
        width: 200px;
        height: 30px;
    }
    #message {
        width: 575px;
        height: 150px;
        resize: none;
        margin-top: 10px;
    }
    #contact_button {
        width: 150px;
        height: 30px;
        background: var(--background-1);
        color: var(--shadow-border-color);
        border: 2px solid var(--shadow-border-color);
        border-radius: 20px;
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-weight: 600;
        font-size: 15px;
        letter-spacing: 3px;
        transition: 0.3s;
        margin-top: 10px;
    }
    #contact_button:hover {
        color: var(--text-color);
        border: 2px solid var(--text-color);
        box-shadow: 0 0 10px var(--shadow-border-color);
    }
    .flash-messages {
        width: 600px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #flash_message_icon {
        margin-right: 10px;
        width: 30px;
    }
    .flash-message {
        align-items: center;
        display: flex;
        justify-content: center;
        color: var(--text-color);
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-size: 20px;
        margin-top: 20px;
    }
    #button_block {
        width: 600px;
        align-items: center;
        justify-content: center;
        display: flex;
    }
    .contact_form,
    .contact_form:-webkit-autofill,
    .contact_form:-webkit-autofill:focus {
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-color);
        border: 2px solid var(--shadow-border-color);
        border-radius: 25px;
        padding: 10px;
        width: 100%;
        background: linear-gradient(to right, var(--background-3) 50%, var(--background-1) 50%);
        background-size: 200% 100%;
        background-position: right bottom;
        transition: 0.3s ease;
    }

    .contact_form:hover,
    .contact_form:-webkit-autofill:hover,
    .contact_form:-webkit-autofill:focus {
        color: var(--text-color);
        border: 2px solid var(--text-color);
        box-shadow: 0 0 10px var(--shadow-border-color);
    }

    .contact_form:active,
    .contact_form:focus,
    .contact_form:-webkit-autofill:active,
    .contact_form:-webkit-autofill:focus {
        background-position: left bottom;
        color: var(--text-color);
        border: 2px solid var(--text-color);
        box-shadow: 0 0 15px var(--shadow-border-color);
    }

    .contact_form:-webkit-autofill {
        background-color: var(--background-3) !important;
    }
    .contact_form:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px var(--background-3) inset !important;
        -webkit-text-fill-color: var(--text-color) !important;
        transition: background-color 5000s ease-in-out 0s; /* Долгая анимация изменения фона */
    }
}
@media (min-width: 768px) {

    #contact {
        width: 700px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }
    .contact_title {
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        color: var(--text-color);
        z-index: 2;
        margin-bottom: 100px;
    }
    .contact_text-title {
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-size: 35px;
        font-weight: 700;
        width: 700px;
        color: var(--text-color);
        justify-content: center;
        align-items: center;
        display: flex;
    }
    #textarea_form {
        display: block;
    }
    #small_forms {
        justify-content: space-between;
        margin-bottom: 10px;
        display: flex;
        width: 700px;
        position: relative;
    }
    #contact_forms {
        width: 700px;
    }
    .input_forms {
        width: 700px;
        margin-top: 20px;
    }

    #email {
        width: 300px;
        height: 30px;
        margin-bottom: 0;
    }

    #subject {
        width: 300px;
        height: 30px;
    }

    #message {
        width: 675px;
        height: 250px;
        resize: none;
        margin-top: 10px;
    }

    #contact_button {
        width: 250px;
        height: 50px;
        background: var(--background-1);
        color: var(--shadow-border-color);
        border: 2px solid var(--shadow-border-color);
        border-radius: 20px;
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-weight: 600;
        font-size: 20px;
        letter-spacing: 4px;
        transition: 0.3s;
        margin-top: 10px;
    }

    #contact_button:hover {
        color: var(--text-color);
        border: 2px solid var(--text-color);
        box-shadow: 0 0 10px var(--shadow-border-color);
    }

    .flash-messages {
        width: 700px;
        display: flex;
        align-items: center;
        justify-content: center;
    '
    }

    #flash_message_icon {
        margin-right: 10px;
        width: 30px;
    }

    .flash-message {
        align-items: center;
        display: flex;
        justify-content: center;
        color: var(--text-color);
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-size: 20px;
        margin-top: 20px;
    }

    #button_block {
        width: 700px;
        align-items: center;
        justify-content: center;
        display: flex;
    }

    .contact_form,
    .contact_form:-webkit-autofill,
    .contact_form:-webkit-autofill:focus {
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-size: 20px;
        font-weight: 500;
        color: var(--text-color);
        border: 2px solid var(--shadow-border-color);
        border-radius: 25px;
        padding: 10px;
        width: 100%;
        background: linear-gradient(to right, var(--background-3) 50%, var(--background-1) 50%);
        background-size: 200% 100%;
        background-position: right bottom;
        transition: 0.3s ease;
    }

    .contact_form,
    .contact_form:-webkit-autofill,
    .contact_form:-webkit-autofill:focus {
        font-family: "Montserrat", sans-serif;
        font-style: normal;
        font-size: 20px;
        font-weight: 500;
        color: var(--text-color);
        border: 2px solid var(--shadow-border-color);
        border-radius: 25px;
        padding: 10px;
        width: 100%;
        background: linear-gradient(to right, var(--background-3) 50%, var(--background-1) 50%);
        background-size: 200% 100%;
        background-position: right bottom;
        transition: 0.3s ease;
    }

    .contact_form:hover,
    .contact_form:-webkit-autofill:hover,
    .contact_form:-webkit-autofill:focus {
        color: var(--text-color);
        border: 2px solid var(--text-color);
        box-shadow: 0 0 10px var(--shadow-border-color);
    }

    .contact_form:active,
    .contact_form:focus,
    .contact_form:-webkit-autofill:active,
    .contact_form:-webkit-autofill:focus {
        background-position: left bottom;
        color: var(--text-color);
        border: 2px solid var(--text-color);
        box-shadow: 0 0 15px var(--shadow-border-color);
    }

    .contact_form:-webkit-autofill {
        background-color: var(--background-3) !important;
    }

    .contact_form:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px var(--background-3) inset !important;
        -webkit-text-fill-color: var(--text-color) !important;
        transition: background-color 5000s ease-in-out 0s; /* Долгая анимация изменения фона */
    }
}
::-webkit-input-placeholder {
    color: var(--shadow-border-color);
}
