body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0px 0 0 0; /* УМЕНЬШИЛ ДЛЯ ПОДЪЁМА ВСЕГО КОНТЕНТА ВВЕРХ */
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    width: 90%;
    max-width: 800px; /* УВЕЛИЧИЛ ДЛЯ ШИРИНЫ ТЕКСТА */
    position: relative;
}

.top-buttons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-top: 0; /* ИЗМЕНЯЙТЕ ДЛЯ ПОДЪЁМА/ОПУСКАНИЯ */
    margin-bottom: 0px; /* ПРОБЕЛ МЕЖДУ ВЕРХНИМИ ЭЛЕМЕНТАМИ И ЭМБЛЕМОЙ */
}

.emblem {
    width: 90%; /* ШИРЕ ДЛЯ СИММЕТРИИ */
    max-width: 800px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px #990000);
    border-radius: 15px;
}

.buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 90%;
    max-width: 800px; /* РАСШИРИЛ ДЛЯ СИММЕТРИИ */
    margin-bottom: 0px;
}

#text1 { width: 700px; height: 45px; } /* ИЗМЕНЯЙТЕ ШИРИНУ И ВЫСОТУ ТЕКСТОВОГО БЛОКА (УВЕЛИЧИЛ В 2 РАЗА) */
#btn0 { width: 70px; height: 30px; padding: 0; font-size: 13px; display: flex; align-items: center; justify-content: center; position: absolute; top: 10px; right: 10px; display: none; } /* КНОПКА "ВХОД" В ПРАВОМ ВЕРХНЕМ УГЛУ С ОТСТУПАМИ */
#btn3 { height: 60px; grid-column: 1 / -1; } /* КНОПКА "ЧЕРНЫЙ БОТ TELEGRAM" */
#btn5 { height: 60px; grid-column: 1 / -1; } /* КНОПКА "Новая кнопка" */

.additional-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 90%;
    max-width: 800px;
    margin: 20px auto 0;
}

.opt-btn {
    background-color: #990000;
    color: #ffffff;
}

.inpost-btn {
    text-transform: none !important;
    color: yellow !important;
}

.inpost-title {
    color: yellow;
}

.inpost-btn:hover {
    background-color: yellow;
    color: black;
}

.red-rectangle {
    grid-column: 1 / -1;
    background-color: #990000;
    border-radius: 15px;
    height: 60px;
    overflow: hidden;
    position: relative;
    color: #ffffff;
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 0px;
}

.scrolling-text {
    display: inline-block;
    white-space: nowrap;
    line-height: 60px;
    animation: scroll-left 30s linear infinite; /* ИЗМЕНИТЬ 10s ДЛЯ РЕГУЛИРОВКИ СКОРОСТИ ЦИКЛА */
}

@keyframes scroll-left {
    0% { transform: translateX(20%); }
    100% { transform: translateX(-100%); }
}

.city-question {
    grid-column: 1 / -1;
    text-align: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 1px 0;
    text-transform: uppercase;
}

.btn {
    background-color: #0a0a0a;
    color: #ffffff;
    border: 2px solid #990000;
    padding: 5px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 15px;
    box-shadow: 0 0 10px #990000;
    width: 100%;
    height: 60px;
}

.btn:hover {
    color: #990000;
    background-color: #000000;
    box-shadow: 0 0 20px #990000;
    transform: scale(1.05);
}

.telegram-blue {
    color: #0088cc;
}

.btn:hover .telegram-blue {
    color: #ffffff;
}

.btn:active {
    color: #990000;
    background-color: #000000;
    box-shadow: 0 0 20px #990000;
    transform: scale(1.05);
}

.text-block {
    background-color: transparent;
    color: #ffffff;
    border: none;
    padding: 5px;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.text-block:hover {
    color: #990000;
}

.red-btn {
    background-color: #990000; /* КРАСНЫЙ ЦВЕТ ДЛЯ КНОПКИ "ВХОД" */
}

.small-btn {
    background-color: #990000;
    color: white;
    border: none;
    width: 40px;
    height: 20px;
    font-size: 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.small-btn:hover {
    background-color: #cc0000;
}



.shake {
    animation: shake 0.5s;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.carousel {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin: 10px 0;
    padding: 0 0px;
    position: relative;
}

.carousel-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.carousel .card {
    transition: opacity 0.5s ease;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(153, 0, 0, 0.5);
    color: white;
    border: 2px solid #990000;
    width: 30px;
    height: 30px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px #990000;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
}

.showcase {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 90%;
    max-width: 800px;
    margin: 10 auto;
    padding: 20px;
}

.card {
    background: #000000;
    border: 2px solid #990000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img, .card-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.top-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: red;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #990000;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.opt-badge {
    background: #990000;
    color: white;
}

.inpost-badge {
    background: #990000;
    color: yellow;
}

.card-content {
    padding: 5px;
    text-align: center;
}

.card-title {
    color: white;
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 0 0 15px 0;
}

.card-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 5px;
    width: 100%;
}

.card-btn {
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.card-btn img {
    width: 40px;
    height: 20px;
    border-radius: 15px;
    transition: transform 0.2s ease;
}

.card-btn:hover img {
    transform: scale(1.1);
}

.card-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 18px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}



.city-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    transition: opacity 0.5s ease;
    margin-top: 10px;
    width: 90%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.city-btn {
    height: 60px;
}

.city-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.additional-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 90%;
    max-width: 800px;
    margin-bottom: 10px;
}

.selected {
    background-color: #990000;
    color: #ffffff;
}

.hidden {
    display: none;
    opacity: 0;
}

@media (max-width: 600px) {
    /* МОБИЛЬНАЯ ВЕРСИЯ: КНОПКИ КАК РАНЬШЕ, С ПЕРЕНОСОМ */
    .showcase {
        grid-template-columns: 1fr 1fr;
    }
}


