/* Общие настройки */
body {
    background-image: url("background.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 20px;
    line-height: 1.8;
    min-height: 100vh;
}

/* Затемнение фона, чтобы текст было видно */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

/* Заголовки */
h1 {
    font-size: 28px;
    text-align: center;
    color: #ffffff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    margin-bottom: 10px;
}

h2 {
    font-size: 22px;
    text-align: center;
    color: #ffffff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
    margin-top: 30px;
}

/* Основной текст */
p {
    font-size: 18px;
    text-align: center;
    max-width: 700px;
    margin: 15px auto;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Ссылки */
a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
    color: #0099cc;
}

/* Контейнер для видео в строку */
.video-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px auto;
    max-width: 1200px;
    padding: 0 10px;
}

/* Отдельное видео */
.video-item {
    flex: 1;
    min-width: 560px;
    max-width: 560px;
}

.video-item iframe {
    height: 315px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    border: none;
}

/* Адаптивность: на маленьких экранах видео в столбик */
@media (max-width: 600px) {
    h1 {
        font-size: 24px;
    }

    p {
        font-size: 16px;
        padding: 8px 12px;
    }

    .video-row {
        flex-direction: column;
        align-items: center;
    }

    .video-item {
        min-width: auto;
        width: 100%;
        max-width: 560px;
    }
}

/* Стили для страницы с утилитами */
.tool-card {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 15px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s;
    text-align: center;
}

.tool-card:hover {
    transform: scale(1.02);
    background-color: rgba(0, 0, 0, 0.6);
}

.tool-card h3 {
    margin-top: 0;
    color: #4fc3f7;
    text-align: center;
}

.tool-card p {
    font-size: 18px;
    margin: 10px 0;
    text-align: center;
}

.tool-card a {
    color: #4fc3f7;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

/* Адаптивность: на маленьких экранах */
@media (max-width: 600px) {
    .tool-card {
        max-width: 100%;
        text-align: center;
    }
}

/* Стили для карточек устройств */
.device-card {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 18px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s, background-color 0.3s;
    text-align: center;
}

.device-card:hover {
    transform: scale(1.03);
    background-color: rgba(0, 0, 0, 0.65);
}

.device-card h3 {
    margin-top: 0;
    color: #80deea;
    font-size: 20px;
}

.device-card p {
    font-size: 17px;
    line-height: 1.7;
    color: #eeeeee;
    margin: 10px 0;
}
/* Сетка для устройств: 2 в строку */
.device-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 20px 0;
}

.device-grid .device-card {
    flex: 1 1 45%;
    min-width: 300px;
}

.device-card.full-width {
    flex-basis: 100%;
}
/* Стили для контейнера устройств */
.device-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Расстояние между карточками */
}

/* Стили для каждой карточки устройства */
.device-card {
    background-color: #222;
    border-radius: 8px;
    padding: 15px;
    width: calc(50% - 20px); /* Устанавливаем ширину в 50%, минус расстояние между карточками */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left; /* Текст внутри карточки выровнен по левому краю */
}

/* Адаптивность: на экранах ≤600px — одна карточка в строке */
@media (max-width: 600px) {
    .device-card {
        width: 100%; /* На мобильных — одна карточка в строке */
    }
}


