body {
    font-family: sans-serif;
    background: #aebacc;
}

header {
    background-color: #8d9db5;
    margin: -8px -8px 0 -8px;
    position: relative;
    border-radius: 0px 0px 20px 20px;
    min-height: 70px;
    padding: 14px 18px;
    animation: headerReveal 0.9s ease-out;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

header img:first-child {
    animation: logoPulse 3s ease-in-out infinite;
    transition: transform 0.25s ease;
}

.cslogo {
    position: absolute;
    right: 18px;
    top: 14px;
    animation: csFloat 2.2s ease-in-out infinite;
    transition: transform 0.25s ease;
}

.cslogo:hover {
    transform: rotate(10deg) scale(1.08);
}

@keyframes headerReveal {
    from {
        opacity: 0;
        transform: translateY(-18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes csFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes logoPulse {
    0%,
    100% {
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    50% {
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.65));
    }
}

.posac {
    margin-top: 10px;
}

.navbutton1 {
    position: absolute;
    top: 33px;
    right: 330px;
    background-color: #7d93ca;
    padding: 7px;
    text-decoration: none;
    border-radius: 10px;
    color: #000000;
    transition: all 0.3s ease-out;
}

.navbutton1:hover {
    background-color: #8aa1f3;
    padding: 10px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 10px;
    color: #000000;
    box-shadow: 0 5px 5px 0 rgb(169, 193, 255);
}

.navbutton2 {
    position: absolute;
    top: 33px;
    right: 230px;
    background-color: #7d93ca;
    padding: 7px;
    text-decoration: none;
    border-radius: 10px;
    color: #000000;
    transition: all 0.3s ease-out;
}

.navbutton2:hover {
    background-color: #8aa1f3;
    padding: 10px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 10px;
    color: #000000;
    box-shadow: 0 5px 5px 0 rgb(169, 193, 255);
}

.products-section {
    padding: 24px 20px 48px;
}

.products-title {
    margin: 0 auto;
    max-width: 900px;
    text-align: center;
    font-size: clamp(34px, 6vw, 68px);
    font-weight: 800;
    color: #16304d;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    animation: whoReveal 1.1s ease-out;
}

.products-divider {
    width: min(520px, 78%);
    height: 4px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #274464 22%, #274464 78%, transparent);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: whoReveal 1.1s ease-out;
}

.product-cards {
    margin: 28px auto 0;
    max-width: 980px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: center;
    gap: 20px;
}

.product-card {
    background: #dbe5f1;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15);
    animation: whoReveal 0.9s ease-out;
    transition: all 1s ease-out;
}

.product-photo-slot {
    height: 180px;
    border: 2px dashed #526882;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #2a3f58;
    background: repeating-linear-gradient(
            45deg,
            #7095c5,
            #7095C5FF 12px,
            #7095C5FF 12px,
            #7095C5FF 24px
    );
}

.product-name {
    margin: 14px 0 6px;
    font-size: 1.2rem;
    color: #18334f;
}

.product-desc {
    margin: 0;
    font-size: 0.98rem;
    color: #324966;
    line-height: 1.4;
}

.product-photo {
    width: 290px;
    height: 182px;
    border-radius: 12px;
}

@keyframes whoReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


footer {
    background-color: #52647d;
    border-radius: 15px 15px 0 0;
    margin-top: -15px;
}

.footer-txt {
    font-family: Rubik, sans-serif;
    text-align: center;
}

.git {
    position: relative;
    left: 870px;
    top: 0px;
    width: 40px;
    transition: all 0.3s ease-out;
    border-radius: 30px;
}

.git:hover {
    width: 60px;
    box-shadow: 3px 3px 3px rgb(133, 198, 216);
    border-radius: 30px;
}

.telegram {
    position: relative;
    left: 760px;
    top: 0px;
    width: 40px;
    transition: all 0.3s ease-out;
    border-radius: 30px;
}

.telegram:hover {
    width: 60px;
    box-shadow: 3px 3px 3px rgb(133, 198, 216);
    border-radius: 30px;
}

.buybutton {
    background-color: rgba(0, 239, 1, 0);
    text-decoration: none;
    padding: 3px;
    border-radius: 5px;
    color: rgba(0, 0, 0, 0);
    transition: all 0.3s ease-out;
}

.product-card:hover .buybutton {
    color: #000000;
    background-color: #62ff6a;

}

.product-card:hover {
    box-shadow: 3px 3px 3px rgb(186, 237, 255);
}

.buybutton:hover {
    box-shadow: 0 5px 5px 0 rgb(0, 188, 26);
}

.navbutton3 {
    position: absolute;
    top: 33px;
    right: 150px;
    background-color: #7d93ca;
    padding: 7px;
    text-decoration: none;
    border-radius: 10px;
    color: #000000;
    transition: all 0.3s ease-out;
}

.navbutton3:hover {
    background-color: #8aa1f3;
    padding: 10px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 10px;
    color: #000000;
    box-shadow: 0 5px 5px 0 rgb(169, 193, 255);
}
