* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: url("../photo/background.jpg") no-repeat center center / cover;
    background-attachment: fixed;
    font-family: 'Montserrat', sans-serif;
    color: white;
    overflow-y: auto;
}

/* затемнення + blur */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 0;
}

/* glow */
body::before {
    content: "";
    position: fixed;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.25), transparent);
    top: 20%;
    left: 10%;
    filter: blur(100px);
    z-index: 0;
}

/* логотип */
.logo {
    position: relative;
    font-size: 28px;
    letter-spacing: 3px;
    font-weight: 600;
    margin: 30px 40px;
    z-index: 2;

    text-decoration: none; /* прибирає підкреслення */
    color: white; /* щоб не був синій */
    display: inline-block;
}

.logo:hover {
    opacity: 0.8;
}

/* контейнер */
.container {
    position: relative;
    z-index: 1;
    padding: 20px 40px 40px;

    animation: pageEnter 0.6s ease-out;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    gap: 20px; 
}

/* текст */
.info-text {
    max-width: 880px;
    margin-bottom: 25px;
    padding: 10px 5px;
}

/* сітка */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

/* картка */
.item {
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* заголовок */
.item p {
    font-weight: 600;
    margin-bottom: 10px;
}

/* список */
.item ul {
    list-style: none;
    padding-left: 0;
}

/* елементи списку */
.item li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
}

/* кастомні точки */
.item li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-size: 14px;
}

/* glow рамка */
.item::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;

    background: linear-gradient(
        120deg,
        transparent 30%,
        #8b5cf6,
        transparent 70%
    );

    background-size: 200% 200%;

    -webkit-mask: 
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    opacity: 0;
}

.item:hover::before {
    opacity: 1;
    animation: borderRun 1.2s linear infinite;
}

.item:hover {
    transform: none; /* або просто видали цей рядок */
    box-shadow: 0 0 20px rgba(139,92,246,0.4);
}
/* широкий блок */
.wide {
    grid-column: 2 / span 2;
}

/* кнопка */
.btn {
    position: relative;
    margin-top: 10px;
    padding: 22px 120px;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,0.15);

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);

    color: white;
    font-size: 20px;
    cursor: pointer;

    overflow: hidden;
    transition: 0.3s;
    margin: auto auto 0; 
}

/* glow рамка як у .item */
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;

    background: linear-gradient(
        120deg,
        transparent 30%,
        #8b5cf6,
        transparent 70%
    );

    background-size: 200% 200%;

    -webkit-mask: 
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;

    opacity: 0;
}

/* анімація при наведенні */
.btn:hover::before {
    opacity: 1;
    animation: borderRun 1.2s linear infinite;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(139,92,246,0.5);
}

/* анімація */
@keyframes borderRun {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}
@keyframes pageEnter {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    body::before {
        width: 320px;
        height: 320px;
        top: 8%;
        left: 50%;
        transform: translateX(-50%);
        filter: blur(80px);
    }

    .logo {
        display: block;
        margin: 24px auto 8px;
        width: fit-content;
        font-size: 22px;
        letter-spacing: 2px;
    }

    .container {
        min-height: auto;
        padding: 16px 16px 32px;
        gap: 16px;
    }

    .info-text {
        margin-bottom: 0;
        padding: 16px 18px;
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 22px;
        background: rgba(255,255,255,0.05);
        backdrop-filter: blur(15px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.35);
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 0;
    }

    .item {
        padding: 16px;
        border-radius: 22px;
        font-size: 14px;
    }

    .item li {
        padding-left: 16px;
    }

    .wide {
        grid-column: auto;
    }

    .btn {
        width: min(100%, 340px);
        padding: 18px 24px;
        font-size: 16px;
    }

    .btn:hover {
        transform: none;
    }
}
