@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wdth,wght@106,515&family=WDXL+Lubrifont+TC&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Martian+Mono:wdth,wght@106,515&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=WDXL+Lubrifont+TC&display=swap');
body {
    margin: 0;
    padding: 20px;
    color: white;
    font-family: Arial, sans-serif;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #1a1a2e url('https://unixsite.by/images/background.png');
    background-size: 100% auto; /* Растягиваем по ширине */
}

a{text-decoration: none;}

header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100px; /* Высота шапки */
    background: rgba(139, 0, 139, 0.5); /* Полупрозрачный фиолетовый */
    overflow: hidden;
    z-index: 1000;
    border-radius: 2em;
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    padding: 20px 40px;
    color: white;
}

.h-user-auth-a{
    text-decoration: none;
}

.h-user-auth{
    margin-left: 3em;
    padding: 1em;
    background-color: rgb(139 0 139 / 66%);
    border-radius: 10px;
}

.h-user-auth h3{
    margin: 0;
    color: white;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 40px;
    height: 40px;
    background: #ff4d4d; /* Цвет фона логотипа */
    border-radius: 10px;
}

.logo span {
    font-size: 24px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    color: white;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    padding: 10px;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff4d4d; /* Цвет при наведении */
}



/* Content */
.container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
}
h1 {
    font-size: 3em;
    margin: 0;
    line-height: 1.2;
}
h1 span:first-child {
    color: #00d4ff;
}
h1 span:last-child {
    color: #ffd700;
}

.code-conteiner{
    display: flex;
    margin: 0 auto;
    justify-content: center;
    flex-direction: column;
}

.code-text {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.code-text-h1 {
    text-align: right;
    font-family: "Martian Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 515;
    font-style: normal;
    font-variation-settings: "wdth" 106;
    font-size: 2.5rem;
    line-height: 1.2;
    color: transparent;
    margin: 0;
}

.code-text-h1 div {
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, #ff2e63, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    animation: fadeIn 0.8s ease-out forwards;
    animation-delay: calc(0.2s * var(--index));
    opacity: 0;
    transform: translateY(20px) rotateX(20deg);
    transition: transform 0.3s ease, color 0.3s ease;
}

.code-text-h1 div:nth-child(1) { --index: 1; }
.code-text-h1 div:nth-child(2) { --index: 2; }
.code-text-h1 div:nth-child(3) { --index: 3; }
.code-text-h1 div:nth-child(4) { --index: 4; }

.code-text-h1 div:hover {
    transform: translateY(-5px) scale(1.05);
}

.code-text-h1 div span {
    font-weight: 700;
    background: linear-gradient(45deg, #ff0066, #00ccff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.code-text-h1 div:last-child::after {
    content: '|';
    position: absolute;
    right: -0.5em;
    color: #00d4ff;
    font-size: 2.5rem;
    animation: blink 0.7s infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) rotateX(20deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@media (max-width: 600px) {
    .code-text-h1 {
        font-size: 1.8rem;
    }

    .code-text-h1 div:last-child::after {
        font-size: 1.8rem;
    }
}


.hero-section {
    margin: auto;
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    width: 90%;
    position: relative;
    animation: fadeIn 1s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, #ff2e63, #00d4ff, #ff2e63);
    background-size: 200%;
    z-index: -1;
    border-radius: 20px;
    animation: gradientFlow 6s linear infinite;
    opacity: 0.3;
    filter: blur(20px);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff2e63, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 20px;
    animation: slideUp 0.8s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #e0e0e0;
    margin-bottom: 30px;
    animation: slideUp 0.8s ease-out 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.why-us {
    background: rgba(46, 46, 72, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    animation: slideUp 0.8s ease-out 0.4s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.why-us h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.why-us p {
    font-size: 1.1rem;
    color: #d0d0d0;
    margin: 10px 0;
    position: relative;
    padding-left: 25px;
}

.why-us p::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.why-us p:hover::before {
    transform: scale(1.2);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    animation: slideUp 0.8s ease-out 0.6s;
    opacity: 0;
    animation-fill-mode: forwards;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #ff2e63, #00d4ff);
    background-size: 200%;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-position 0.5s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-position: 100%;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 200%;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .why-us h2 {
        font-size: 1.5rem;
    }

    .why-us p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.conteinerherobox{
    display: flex;
}

.code-box {
    background: #2e2e48;
    border: 2px solid transparent;
    border-radius: 10px;
    margin: auto auto;
    min-width: 20em;
    max-height: 18em;
    display: inline-block;
    background-clip: padding-box;
    position: relative;

}
.code-box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff2e63, #00d4ff);
    z-index: -1;
    border-radius: 12px;
}
.code-box input {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1.2em;
    text-align: center;
    width: 200px;
    font-family: "Martian Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 546;
    font-style: normal;
    font-variation-settings:
            "wdth" 106;
}
.code-box a {
    background: transparent;
    text-decoration: none;
    border: 2px solid #ff6b6b;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    background-clip: padding-box;
    position: relative;
    font-family: "Martian Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 546;
    font-style: normal;
    font-variation-settings:
            "wdth" 106;
}
.code-box a::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff2e63, #ffd700);
    z-index: -1;
    border-radius: 7px;
}

.code-dotconteinter{
    margin-top: 0.6em;
    margin-bottom: 0.4em;
    margin-left: 2em;
    text-align: left;
}

.code-span{
    fill: #00b2ff9c;
}

.code-box-uplines{
    border-top: 2px solid;

    border-image-slice: 1;
    border-image-source: linear-gradient(to left, #743ad5, #d53a9d);
    border-radius: 1em;
    display: flex;
    justify-content: center;
    flex-direction: column;
    height: 15em;
    width: 26em;
}

.code-box-uplines-cinput{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.code-box-uplines-div-cinput{
    display: flex;
    justify-content: center;
    height: 50%;
    width: 70%;
    border: 2px solid;

    border-image-slice: 1;
    border-image-source: linear-gradient(to left, #743ad5, #d53a9d);
    border-radius: 1em;

}
.code-box-uplines-cbutton{
    text-align: right;
    margin-bottom: 1em;
    margin-right: 2em;
}

.services, .portfolio, .about-us {
    margin: 40px 0;
}
.services h2, .portfolio h2, .about-us h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.services .items, .portfolio .items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.services .item, .portfolio .item {
    background: #2e2e48;
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-clip: padding-box;
    position: relative;
}
.services .item::before, .portfolio .item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff2e63, #00d4ff);
    z-index: -1;
    border-radius: 12px;
}
.services .item span {
    font-size: 2em;
    margin-bottom: 10px;
}

.itemview {
    background: rgba(46, 46, 72, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 24px;
    position: relative;
    width: min(80vw, 400px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: slideIn 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.itemview:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.itemview::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff2e63, #00d4ff, #ff2e63);
    background-size: 200%;
    z-index: -1;
    border-radius: 18px;
    animation: gradientFlow 4s linear infinite;
}

.itemview-title h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    text-align: left;
}

.itemview-conteiner {
    margin: 16px 0;
}

.itemview-conteiner p {
    margin: 0.6em 0;
    font-size: 1rem;
    color: #e0e0e0;
    text-align: left;
    position: relative;
    padding-left: 24px;
    transition: color 0.3s ease;
}

.itemview-conteiner p::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: #00d4ff;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.itemview-conteiner p:hover::before {
    transform: scale(1.2);
}

.itemview > p {
    margin: 16px 0;
    font-size: 1.1rem;
    color: #d0d0d0;
    font-style: italic;
    text-align: center;
}

.button-container {
    text-align: center;
}

.details-btn {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(45deg, #ff2e63, #00d4ff);
    background-size: 200%;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-position 0.5s ease, transform 0.3s ease;
}

.details-btn:hover {
    background-position: 100%;
    transform: scale(1.05);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 200%;
    }
}

@media (max-width: 600px) {
    .itemview {
        width: 90vw;
        padding: 16px;
    }

    .itemview-title h2 {
        font-size: 1.5rem;
    }

    .itemview-conteiner p {
        font-size: 0.9rem;
    }

    .details-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

.service-card {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    width: 320px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 1s ease-out;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.service-card h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    color: white;
    animation: slideIn 0.5s ease-out;
}

.service-card p {
    color: white;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    animation: slideIn 0.7s ease-out;
}

.service-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e67e22;
    margin-bottom: 20px;
    animation: slideIn 0.9s ease-out;
}

.button-container {
    display: flex;
    justify-content: space-around;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.details-btn {
    background-color: #3498db;
    color: white;
}

.order-btn {
    background-color: #2ecc71;
    color: white;
}

.details-btn:hover {
    background-color: #2980b9;
    transform: scale(1.05);
}

.order-btn:hover {
    background-color: #27ae60;
    transform: scale(1.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

footer {
    background-color: #2c3e50;
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    font-family: Arial, sans-serif;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.footer-logo img {
    max-width: 100px;
    height: auto;
}
.footer-text {
    max-width: 600px;
    font-size: 14px;
    line-height: 1.5;
}
.footer-title {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
}
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
    }
    .footer-text {
        font-size: 12px;
    }
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: rgba(46, 46, 72, 0.3);
    backdrop-filter: blur(12px);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.5s ease-out;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    z-index: -1;
    border-radius: 18px;
    animation: gradientFlow 4s linear infinite;
}
.modal-content h2 {
    font-size: 1.8rem;
    margin-top: 0;
    background: linear-gradient(45deg, #ff2e63, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.modal-content p {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.modal-content .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00d4ff;
    margin: 15px 0;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #00d4ff;
}


.form-modal {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-conteiner-nameDiv,
.form-conteiner-teleDiv {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-conteiner-contH3 h3 {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin: 0;
    background: linear-gradient(45deg, #ff2e63, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.form-conteiner-contInput input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.form-conteiner-contInput input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
}

.form-conteiner-contInput input::placeholder {
    color: #a0a0a0;
}

.modal_button_submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #ff2e63, #00d4ff);
    background-size: 200%;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-position 0.5s ease, transform 0.3s ease;
}

.modal_button_submit:hover {
    background-position: 100%;
    transform: scale(1.05);
}

.modal_button_submit h1 {
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}

/* Success Modal */
.modal_secsesfull {

    background: rgba(46, 46, 72, 0.3);
    backdrop-filter: blur(12px);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    position: relative;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideUpModal 0.5s ease-out;
    text-align: center;
}

.modal_secsesfull::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    background-size: 200%;
    z-index: -1;
    border-radius: 18px;
    animation: gradientFlow 4s linear infinite;
}

.modal_secsesfull h2 {
    font-size: 1.8rem;
    margin-top: 0;
    background: linear-gradient(45deg, #ff2e63, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.modal_secsesfull p {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1.6;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #e0e0e0;
}

.contact-item::before {
    content: '✦';
    color: #00d4ff;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.contact-item:hover::before {
    transform: scale(1.2);
}

.contact-item a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff2e63;
}


.hidden {
    overflow: hidden;
}

@media (max-width: 600px) {
    .modal_secsesfull {
        padding: 20px;
        width: 95%;
    }

    .form-conteiner-contH3 h3 {
        font-size: 1rem;
    }

    .form-conteiner-contInput input {
        font-size: 0.9rem;
    }

    .modal_button_submit h1 {
        font-size: 1rem;
    }

    .modal_secsesfull h2 {
        font-size: 1.5rem;
    }

    .modal_secsesfull p {
        font-size: 1rem;
    }

}


@media only screen and (max-width: 800px){
    body{
        padding: 0px !important;
    }
    header {
        height: auto;
    }

    .header-content nav{
        display: none;
    }

    .header-content {
        padding: 7px 16px;
    }
    .code-conteiner {
        flex-direction: column;
    }
    .code-box-uplines {
        width: auto;
    }
    .service-card {
        width: auto;
    }

}

@media only screen and (max-width: 1355px){
    .conteinerherobox{
        flex-direction: column;
    }
}