* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: 'Roboto', -apple-system, 'Segoe UI', Arial, sans-serif;
    background: #7a2fd0;
}

a {
    text-decoration: none;
    color: rgb(69, 116, 186);
}

span {
    flex-direction: row;
    margin-left: 5px;
    margin-right: 5px;
}

/* ---------- фон + центрирование ---------- */
#eng {
    width: 100%;
    min-height: 100vh;
    background-image: url(img/bg1.svg), linear-gradient(160deg, rgb(144, 49, 234), rgb(196, 46, 219));
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 16px 24px;
}

/* ---------- карточка ---------- */
#card {
    width: 100%;
    max-width: 420px;
    min-height: 460px;
    border-radius: 22px;
    background: rgb(15, 15, 15);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #fff;
    padding: 28px 20px 30px;
}

#photo {
    display: block;
    flex-shrink: 0;
    width: 122px;
    height: 122px;
    border-radius: 100%;
    background-color: #2a8fd6;
    background-image: url(img/chanel_photo.jpg), linear-gradient(135deg, #37aee2, #1e6fa8);
    background-size: cover;
    background-position: center;
}

#chanel_name {
    width: 100%;
    font-size: 26px;
    line-height: 32px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}

#chanel_name .subs {
    font-size: 15px;
    font-weight: lighter;
    color: rgb(179, 179, 179);
    line-height: 30px;
}

#chanel_description {
    width: 100%;
    font-size: 16px;
    line-height: 25px;
    text-align: center;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#button_join {
    width: 220px;
    height: 42px;
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    background-color: #15649c;
}

.shine {
    background-image: linear-gradient(270deg, rgba(100, 181, 239, 0) 48.44%, #64b5ef 75.52%, rgba(100, 181, 239, 0) 100%);
    background-repeat: no-repeat;
    animation: bg-move linear 5s infinite;
}

@-webkit-keyframes bg-move {
    0% { background-position: -500px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes bg-move {
    0% { background-position: -500px 0; }
    100% { background-position: 1000px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .shine { animation: none; }
}

/* ---------- футер ---------- */
#footer {
    width: 100%;
    max-width: 520px;
    margin-top: 26px;
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
}

#footer > a {
    color: #fff;
    font-size: 14px;
    text-decoration: underline;
}

#footer .disclaimer {
    margin-top: 12px;
    font-size: 11px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- Privacy Policy (модалка на :target) ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal:target {
    display: flex;
}

.modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.modal-box {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    color: #222;
    border-radius: 14px;
    padding: 28px 26px 30px;
    font-size: 14px;
    line-height: 22px;
}

.modal-box h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.modal-box h3 {
    font-size: 15px;
    margin: 18px 0 4px;
}

.modal-box .muted {
    color: #888;
    font-size: 12px;
}

.modal-close {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 30px;
    line-height: 34px;
    color: #888;
}

/* ---------- мобилка ---------- */
@media (max-width: 480px) {
    #eng { justify-content: flex-start; padding-top: 24px; }
    #chanel_name { font-size: 22px; }
}
