/* BANNER */
.banner { 
    padding: 80px 40px; 
    text-align: center; 
    border-bottom: 1px solid #1a1a1a; 
}

.handwritten { 
    font-size: 48px; 
    font-weight: 900; 
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #ffffff;
}

/* DESCRIPTION & LISTS */
.description { 
    padding: 40px; 
    max-width: 900px; 
}

.description p {
    color: #cdcdcd;
}

.description h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e0e0e0; 
}

.features-list { 
    list-style: none; 
    padding: 0; 
}

.features-list li { 
    position: relative; 
    padding: 10px 25px; 
    border-bottom: 1px solid #111; 
    color: #b5b5b5;
}

.features-list li::before { 
    content: ""; 
    position: absolute; 
    left: 0; 
    top: 18px; 
    width: 6px; 
    height: 6px; 
    background: #ff4500; 
}

/* МИ ДЛЯ */
.we-are-for {
    padding: 60px 20px;
    background: #050505;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.we-are-for h3 { 
    color: #ff4500; 
    font-size: 20px; 
    letter-spacing: 3px; 
    margin-bottom: 30px; 
    text-transform: uppercase;
}

.we-for-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1000px;
}

.we-for-list li {
    font-weight: bold;
    font-size: 22px;
    text-transform: uppercase;
    color: #fff;
}

.we-for-list li:not(:last-child)::after {
    content: "/";
    margin-left: 20px;
    color: #ff4500;
    font-weight: 900;
}

/* JOIN SECTION */
.join-section {
    padding: 60px 40px;
    background: linear-gradient(to bottom, #000, #080808);
    text-align: center;
    border-top: 1px solid #1a1a1a;
}

.join-title {
    color: #ff4500;
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.join-text {
    color: #888;
    margin-bottom: 40px;
    font-size: 14px;
}

/* Контейнер для кнопок-прапора */
.join-options-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

/* Спільний стиль "половинок" */
.flag-btn {
    min-width: 260px;
    padding: 20px 40px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

/* Ліва (Помаранчева) сторона */
.tg-side {
    background: #ff4500;
    color: #000;
    margin-right: -15px;
}

/* Права (Чорна) сторона */
.ds-side {
    background: #000;
    color: #ff4500;
    border: 1px solid #ff450033;
}

.flag-btn .btn-info { 
    font-size: 10px; 
    opacity: 0.8; 
    letter-spacing: 1px;
}

.flag-btn .btn-main { 
    font-size: 18px; 
    margin-top: 4px;
}

.flag-btn:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.tg-side:hover { box-shadow: -10px 0 20px rgba(255, 69, 0, 0.2); }
.ds-side:hover { background: #0a0a0a; border-color: #ff4500; }

/* Блок зв'язку з очільником */
.contact-leader {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    clear: both;
}

.contact-label {
    font-size: 12px;
    color: #6b6a6a;
    letter-spacing: 2px;
    font-weight: bold;
}

.contact-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-links a {
    color: #fff;
    text-decoration: none;
    font-family: monospace;
    font-size: 16px;
    padding: 6px 14px;
    border: 1px solid #222;
    background: #050505;
    transition: 0.3s;
}

.contact-links a:hover {
    color: #ff4500;
    border-color: #ff4500;
    background: #ff450005;
}

/* SOCIAL LINKS (ФУТЕР — СІТКА 4 В РЯД) */
.social-links { 
    padding: 60px 40px; 
    border-top: 1px solid #1a1a1a;
}

.social-links h3 {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: #888;
}

.links-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; 
}

.cyber-button { 
    background: #050505; 
    border: 1px solid #1a1a1a; 
    padding: 20px; 
    text-decoration: none; 
    transition: 0.3s; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 85px;
}

.cyber-button:hover { 
    border-color: #ff4500; 
    background: #0d0d0d;
}

.btn-label { 
    font-size: 10px; 
    color: #555; 
    display: block; 
    margin-bottom: 4px;
    letter-spacing: 1px;
}

.btn-title { 
    color: #fff; 
    font-weight: bold; 
    font-size: 15px;
    word-break: break-word;
}

/* АДАПТИВНІСТЬ */
@media (max-width: 900px) {
    .links-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    .join-options-container {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
        padding: 0 10px; /* Щоб блоки не липли до країв екрану */
    }
    .tg-side {
        margin-right: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .ds-side { /* Додаємо і для Дискорду центрування */
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .flag-btn {
        width: 100%;
        max-width: 320px;
        box-sizing: border-box; /* Змушує паддінги рахуватися всередину кнопки */
    }
}

@media (max-width: 500px) {
    .links-grid { 
        grid-template-columns: 1fr; 
    }

    /* ФІКС КОНКРЕТНО ДЛЯ ТВОРГО ТЕЛЕФОНУ (менше 500px) */
    .flag-btn {
        max-width: 280px; /* Трохи зменшуємо максимальну ширину прапора, щоб його гострі кути не розривали екран */
        font-size: 14px;  /* Трохи зменшуємо шрифт, щоб довгий текст "ДОЄДНАТИСЯ В ТГ" не вилазив */
    }
    
    /* Прибираємо будь-яку можливість розпирання батьківських блоків */
    .tg-side, .ds-side, .join-options-container {
        max-width: 100% !important;
        overflow: hidden;
    }
}
