/* Базовые сбросы стилей */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

/* Основные стили body */
body {
    margin: 0;
    padding: 0;
    background-color: #f9f9f7;
    font-family: 'Inter', 'TildaSans', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Стили для Telegram кнопки */
.tg_btn {
    position: fixed;
    width: 62px;
    height: 62px;
    bottom: 20px;
    right: 15px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0px 0px 10px 3px rgba(0, 0, 0, 0.23);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* Стили для маленького модального окна (>= 960px) */
.telegram_modal_small {
    z-index: 100;
    position: fixed;
    width: 300px;
    height: 210px;
    background-color: #ffffff;
    bottom: 90px;
    right: 15px;
    text-align: center;
    padding: 30px 10px;
    line-height: 1.5;
    font-size: 14px;
    font-weight: 300;
    box-shadow: 0px 0px 10px 4px rgba(0, 0, 0, 0.23);
    visibility: hidden;
    border-radius: 4% 4%;
}

/* Стили для полноэкранного модального окна (< 960px) */
.telegram_modal_fullscreen {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 1000;
    text-align: center;
    padding: 80px 10px;
    font-size: 11px;
    display: none;
    top: 0;
    left: 0;
}

.telegram_modal_fullscreen_head {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 45px;
    background-color: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 0 10px;
}

.close-fullscreen {
    cursor: pointer;
}

/* Стили header */
.header {
    padding: 30px 15px 15px;
    text-align: center;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    background-color: #ddd;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.title {
    font-size: 23px;
    color: #001707;
    font-weight: 600;
    margin-top: 20px;
    line-height: 1.3;
    text-align: center;
    margin-bottom: -10px;
}

/* Стили кнопок */
.buttons {
    padding: 15px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.btn {
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 10px auto;
    padding: 13.5px 20px;
    color: #333333;
    background-color: #fde18e;
    border: 2px solid #000000 !important;
    border-radius: 6px;
    box-shadow: 5px 5px 0px 0px #000000 !important;
    text-decoration: none;
    transition-duration: 0.2s;
    transition-property: background-color, color, border-color, box-shadow, opacity, transform;
    transition-timing-function: ease-in-out;
}

.btn-wrap-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-85px);
    animation-name: flash;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.btn-effects {
    background: linear-gradient(90deg, rgba(255,255,255,0.1), rgba(255,255,255,0.4));
    width: 45px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 30px;
    transform: skewX(-45deg);
}

.btn-icon {
    width: 25px;
    height: 25px;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text-wrapper {
    flex-grow: 1;
    padding-right: 30px;
}

.btn-text-title {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    line-height: 1.3;
}

.btn-arrow {
    width: 10px;
    height: 18px;
    flex-shrink: 0;
}

.btn-arrow svg {
    width: 100%;
    height: 100%;
}

/* Разделитель */
.divider {
    width: 140px;
    height: .5px;
    background-color: #000000;
    opacity: 0.21;
    margin: 52px auto;
}

/* Стили описания */
.description {
    padding: 60px 20px 45px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    margin-top: 10px;
}

.description-text {
    font-style: italic;
    opacity: 0.7;
    font-size: calc(17px + 0.4vw);
    line-height: 1.5;
    margin: 0;
    color: #001707;
    font-weight: 200;
}

/* Анимации */
@keyframes flash {
    20% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes flash-md {
    30% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes flash-lg {
    40% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.btn-wrap-effects-md {
    animation-name: flash-md;
}

.btn-wrap-effects-lg {
    animation-name: flash-lg;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 959px) {
    .telegram_modal_small {
        display: none !important; /* Скрываем маленькое окно на маленьких экранах */
    }
}

@media (min-width: 960px) {
    .telegram_modal_fullscreen {
        display: none !important; /* Скрываем большое окно на больших экранах */
    }
}