/* Общее оформление страницы */
body {
    margin: 0;
    font-family: 'VK Sans', sans-serif;
    background-color: #f0f0f0;
}

/* Контейнер для виджетов */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 60vh; /* или 70vh, чтобы подстраивалось под высоту экрана */
    max-height: 800px;
}


/* Стиль для виджетов */
.widget {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    padding: 20px;
}

/* Оформление iframe */
.iframe-wrapper {
    position: relative;
    width: 100%;
    height: 800px;
}

.iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Ссылки под iframe */
.iframe-wrapper a {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    text-align: center;
    text-decoration: none;
    color: #b3b3b3;
    font-size: 10px;
    font-family: 'VK Text', sans-serif;
    padding: 0 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 10px;
        gap: 10px;
    }
    .widget {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

/* Ленивая загрузка картинок */
img {
    width: 100%;
    height: auto;
    /* loading: lazy;  — уберите это, если добавлено по моим инструкциям */
}