* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 16px 24px;
    position: relative;
    background: rgb(255, 255, 255);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

h1 {
    font-size: 1.75rem;
    margin: 0;
    background: linear-gradient(90deg, rgb(17, 26, 85), rgb(30, 138, 163));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

h1 a {
    text-decoration: none;
}

.light-h1 {
    background: linear-gradient(90deg, rgb(226, 230, 234), rgb(120, 200, 220));
    -webkit-background-clip: text;
}

.text-center-container {
    height: 85px;
}

.text-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-items: center;
}

.telegram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    color: rgb(255, 255, 255);
    background: linear-gradient(270deg, rgb(17, 26, 85), rgb(30, 138, 163), rgb(17, 26, 85));
    background-size: 600% 600%;
    animation: gradientMove 5s ease infinite;
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.telegram-btn:hover {
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.telegram-btn:active {
    transform: translateY(2px);
}

@keyframes gradientMove {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

main {
    position: relative;
    min-height: 400px;
    color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: -1;
}

.overlay {
    background-color: rgba(9, 2, 33, 0.8);
    padding: 30px 40px;
    border-radius: 15px;
    max-width: 600px;
    width: 100%;
    text-align: left;
}

.overlay h2 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 20px;
}

.overlay ul {
    list-style: disc outside;
    font-size: 1.2rem;
    line-height: 1.6;
}

.main-block {
    background-color: rgb(226, 230, 234);
    background-image: repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.15) 2px,
            transparent 2px,
            transparent 10px
    );
    padding: 40px 20px;
    text-align: center;
}

.main-block-overlay {
    background-color: rgb(226, 230, 234);
    background-image: repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.15),
            rgba(255, 255, 255, 0.15) 2px,
            transparent 2px,
            transparent 10px
    );
    padding: 40px 20px 0 20px;
    text-align: center;
}

.main-block .container {
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.main-block h2 {
    font-weight: 600;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
    color: rgb(7, 14, 55);
}

.main-block p {
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    color: rgb(7, 14, 55);
}

.text-link {
    color: rgb(30, 138, 163);
    text-decoration: none;
}

.overlay ul.accordion-container {
    padding: 0;
    list-style: none;
}

.accordion-container li:not(:first-child) {
    margin-top: 10px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.accordion-icon {
    margin-right: 20px;
    transition: transform 0.7s ease;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    margin-right: 20px;
    background: rgba(255, 255, 255, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.accordion-content p {
    margin: 10px 20px;
}

footer {
    background: rgb(255, 255, 255);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.footer-top {
    padding: 16px 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-top > div {
    justify-items: center;
    width: 30%;
    margin-right: 16px;
}

.contact-block > h3 {
    margin-bottom: 8px;
}

.icons {
    display: flex;
    gap: 16px;
    margin-right: 85px;
    height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
}

.icons.show {
    height: 32px;
    opacity: 1;
    transform: translateY(0);
}

.icons a {
    display: none;
}

.icons.show a {
    display: inline-block;
}

.footer-top a {
    font-size: 1.2rem;
    color: rgb(30, 138, 163);
    text-decoration: none;
}

.footer-top a.current-link {
    color: rgb(120, 200, 220);
}

.text-invisible {
    color: rgb(255, 255, 255);
}

.footer-bottom {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    position: relative;
    background: rgb(17, 26, 85);
}

.footer-bottom p {
    font-size: 1rem;
    color: rgb(226, 230, 234);
}

.d-mobile {
    display: none;
}

@media (max-width: 768px) {
    .d-mobile {
        display: block;
    }

    .text-center {
        position: static;
        transform: none;
        margin-left: auto;
    }

    .text-center-container {
        display: none;
    }

    h1 {
        font-size: 1rem;
    }

    .main-block h2 {
        font-size: 1.7rem;
    }

    .overlay {
        padding: 20px 20px;
    }

    .overlay h2 {
        font-size: 1.7rem;
    }

    .accordion-icon {
        margin-right: 0;
    }

    .accordion-content {
        margin-right: 0;
    }

    .footer-top > div {
        justify-items: self-start;
        width: 100%;
        margin-right: 0;
    }

    .contact-block > h3 {
        margin-bottom: 1rem;
    }

    .icons {
        margin-left: 20px;
    }
}
