@media (min-width: 1280px) {
    .providers-container {  
        min-width: 1200px;
    }  
}

.providers-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    margin-top: 90px;
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
    border-left: 5px solid #ff6f61;
    padding-left: 15px;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
    border-left: 5px solid #ff6f61;
    padding-left: 15px;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.providers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

.provider-item {
    width: 200px;
    text-align: center;
    font-weight: bold;
}

.provider-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.provider-item p {
    margin-top: 10px;
    font-size: 16px;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    .providers-container {
        padding: 20px;
    }

    .providers-list {
        flex-direction: column;
        align-items: center;
    }

    .provider-item {
        width: 100%;
        /* max-width: 300px; */
    }
}

/* Убираем подчеркивание у ссылок */
a {
    text-decoration: none;
    color: #000; 
}

/* Изменение цвета ссылки при наведении */
a:hover {
    color: #ff6f61;
}

/* Изменение цвета текста внутри ссылки при наведении */
a:hover p {
    color: #ff6f61;
}

/* Кнопка добавить провайдера */
.add-provider {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #ff6f61; /* Яркий цвет кнопки */
    color: white;
    font-size: 24px;
    font-weight: bold;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    top: 10px;
    left: 10px;
}

.add-provider:hover {
    background-color: #ff4f41; /* Изменение цвета при наведении */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.add-provider:focus {
    outline: none;
}

.add-provider button {
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    font-size: inherit;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Модальное окно для добавления провайдера */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

/* Анимация открытия модального окна */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


.modal-window {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: 400px;
    position: relative;
    z-index: 1000;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.modal-header {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2em;
    cursor: pointer;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-form input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.modal-form button {
    background-color: #ff6f61;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s ease;
}

.modal-form button:hover {
    background-color: #e65b4f;
}