/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    margin: 0;
    padding: 0;
    background-image: url("icons/Post 16-9 (1).jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

header {
    padding: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.left-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.telegram-banner img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    margin-left: 10px;
    object-fit: cover;
    vertical-align: middle;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.telegram-banner:hover img {
    transform: scale(1.1); 
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.community-info {
    display: flex;
    align-items: center;
    margin-bottom: 80px;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    border-radius: 8px;
}

.text {
    text-align: left;
}

.text .title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0;
    color: #fff;
}

.text .subtitle {
    font-size: 0.9em;
    margin: 5px 0 0 0;
    color: #cccccc;
}

.right-section {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    color: #cccccc;
    box-shadow: 0px 2px 5px rgba(255, 255, 255, 0.15);
    margin-top: 0;
    white-space: nowrap;
    align-self: flex-start;
}

.right-section .dot {
    display: inline-block;
    width: 15px;
    height: 3px;
    border-radius: 20%;
    background-color: #29ABE2;
    margin-right: 8px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0% {
        opacity: 1;
        background-color: #29ABE2;
    }
    50% {
        opacity: 0.3;
        background-color: #1a7ba8;
    }
    100% {
        opacity: 1;
        background-color: #29ABE2;
    }
}

.telegram-block {
    text-align: left;
    width: 100%;
}

.telegram-banner {
    background: linear-gradient(to right, #29ABE2, #4BC6EF);
    border-radius: 12px;
    padding: 15px 30px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    font-weight: bold;
    font-size: 2.6em;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.telegram-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(41, 171, 226, 0.5);
}

.main-text {
    font-size: 2.8em;
    text-align: left;
    line-height: 1.8;
    margin: 0 0 60px 0;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features {
    padding: 0 20px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-container {
    width: 100%;
    margin: 0;
}

.features-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
    width: 100%;
}

.feature-box.wide-box {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0px 2px 8px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.features-row {
    display: flex;
    gap: 25px;
    width: 100%;
    margin: 15px 0;
}

/* Увеличиваем отступ между первой и второй строкой блоков */
.features-row:first-child {
    margin-bottom: 40px; /* Увеличил с 15px до 40px */
}

.feature-box {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0px 2px 8px rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.15);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    width: calc(50% - 12.5px);
}

.feature-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #fff;
}

.feature-description {
    font-size: 1.5em;
    line-height: 1.5;
    color: #cccccc;
    margin: 0;
}

.feature-dot {
    position: absolute;
    top: 25px;
    right: 25px;
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #29ABE2;
}

.bottom-section {
    padding: 60px 20px 30px;
    background-color: rgba(0, 0, 0, 0.8);
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bottom-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    width: 100%;
    text-align: center;
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #29ABE2 0%, #4BC6EF 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(41, 171, 226, 0.4);
    min-width: 320px;
    position: relative;
    overflow: hidden;
    gap: 12px;
}

.telegram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 171, 226, 0.6);
    background: linear-gradient(135deg, #4BC6EF 0%, #29ABE2 100%);
}

.telegram-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(41, 171, 226, 0.4);
}

.button-text {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 16px;
    text-align: center;
}

.arrow-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 7px;
    transition: all 0.3s ease;
}

/* Стили для иконки Telegram внутри кнопки */
.arrow-container img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.telegram-button:hover .arrow-container {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateX(3px);
}

.arrow-icon {
    color: white;
    transition: transform 0.3s ease;
}

.telegram-button:hover .arrow-icon {
    transform: translateX(2px);
}

.bonus-text {
    font-size: 16px;
    color: #fff;
    line-height: 1.5;
    text-align: center;
    max-width: 600px;
    margin: 0;
    font-weight: 500;
    padding-top: 10px;
}

.footer-info {
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 100%;
}

.legal-info {
    font-size: 0.8em;
    color: #888;
    margin: 8px 0;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .right-section {
        margin-top: 20px;
        align-self: flex-start;
        margin-left: 0;
    }
    
    .main-text {
        font-size: 2.2em;
        margin-bottom: 40px;
    }
    
    .telegram-banner {
        font-size: 1.4em;
        padding: 12px 25px;
    }
    
    .features-grid {
        gap: 25px;
    }
    
    .features-row {
        flex-direction: column;
        gap: 20px;
        margin: 10px 0;
    }
    
    /* Увеличиваем отступ для мобильных */
    .features-row:first-child {
        margin-bottom: 30px; /* Увеличил для мобильных */
    }
    
    .feature-box {
        width: 100%;
    }
    
    .feature-box.wide-box {
        width: 100%;
    }
    
    .bottom-section {
        padding: 40px 20px 25px;
        margin-top: 30px;
    }
    
    .center-content {
        gap: 20px;
    }
    
    .telegram-button {
        min-width: 280px;
        padding: 16px 25px;
        font-size: 16px;
        width: 100%;
        max-width: 300px;
    }
    
    .arrow-container {
        width: 26px;
        height: 26px;
    }
    
    .arrow-container img {
        width: 16px;
        height: 16px;
    }
    
    .bonus-text {
        font-size: 14px;
        padding: 0 10px;
        max-width: 100%;
    }
    
    .footer-info {
        padding-top: 25px;
    }
}

@media (max-width: 480px) {
    .main-text {
        font-size: 1.8em;
    }
    
    .right-section {
        white-space: normal;
        text-align: left;
    }
    
    .arrow-container {
        width: 24px;
        height: 24px;
    }
    
    .arrow-container img {
        width: 14px;
        height: 14px;
    }
    
    /* Увеличиваем отступ для очень маленьких экранов */
    .features-row:first-child {
        margin-bottom: 25px;
    }
}