
body {
    margin: 0;
    font-family: sans-serif;
    background-color: #ffffff;
    color: #fff; /* Изменен цвет текста по умолчанию на белый, так как фон карточки темный */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    width: 160px;
    height: 160px;
    object-fit: contain;
}


.header__title {
    margin: 0;
    font-size: 3em;
    flex-grow: 1;
    text-align: center;
    color: #000000; /* Вернул цвет заголовка в шапке */
}



.header__info-button {
    width: 426px;
    height: 100px;
    cursor: pointer;
    object-fit: contain;
    transition: box-shadow 0.3s ease; /* Добавляем переход для тени */
}


.main {
    padding: 40px 0;
}

.cards-wrapper {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background-color: #182434; /* Цвет карточки */
    border-radius: 21px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 20px;
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease; /* Анимация для тени */
}



.card__logo {
    width: 113px;
    height: 114px;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 18px; /* Скругление углов логотипов приложений */
}

.card__title {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
}

.card__buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.card__button {
    /* Ensure it looks like a button */
    display: inline-block; /* or block if it should take full width */
    text-decoration: none; /* Removes underline */
    color: inherit; /* Inherits text color from parent or explicitly set */
    text-align: center; /* Centers text if it's display: block */
    cursor: pointer; /* Makes it clear it's clickable */
    /* Add any other button styles you already have, e.g.: */
    padding: 10px 20px;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    /* etc. */
}

.card__button:hover {
    filter: brightness(0.9); /* Немного затемняем цвет при наведении */
   
    
}

.card__button:first-child {
    background-color: #005dfe; /* Цвет кнопки "Скачать" */
}

.card__button:last-child {
    background-color: #5e6e82; /* Цвет кнопки "Инструкции" */
}

/* Модальное окно */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Для скролла, если картинка очень длинная */
    background-color: rgba(0,0,0,0.6); /* Полупрозрачный фон */
    justify-content: center;
    align-items: center;
    opacity: 0; /* Начальная прозрачность для анимации */
    transition: opacity 0.3s ease-in-out; /* Плавное появление */
}

.modal.show {
    opacity: 1; /* Полная непрозрачность при показе */
}

.modal__content {
    position: relative;
    background-color: #fefefe;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%; /* Ограничение ширины модального окна */
    max-height: 90%; /* Ограничение высоты модального окна */
    overflow-y: auto; /* Для скролла содержимого модального окна */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 88px;
    height: 88px;
    cursor: pointer;
    z-index: 1001; /* Поверх картинки */
}

.modal__image {
    max-width: 100%;
    height: auto;
    display: block; /* Убираем лишние отступы под картинкой */
    margin-top: 50px; /* Отступ, чтобы крестик не перекрывал картинку */
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .header__content {
        flex-direction: column;
        text-align: center;
    }

    .header__title {
        margin: 15px 0;
        font-size:2rem;
    }

    .header__info-button {
        width: 250px; /* Еще меньше на мобильных */
        height: auto;
    }

    .header__logo {
        width: 100px; /* Еще меньше на мобильных */
        height: 100px;
    }

    .card {
        max-width: 90%;
    }

    .modal__close {
        width: 40px; /* Еще меньше крестик на мобильных */
        height: 40px;
    }
}

@media (max-width: 480px) {
    .header__logo {
        width: 80px; /* Еще меньше на самых маленьких экранах */
        height: 80px;
    }

    .header__info-button {
        width: 200px; /* Еще меньше на самых маленьких экранах */
    }

    .card__buttons {
        flex-direction: column;
    }
}