@import url("page5.css");

.docs-container {
    margin-top: 30px;
    text-align: left;
    width: 100%;
}

/* ============================================================
   ПОДЗАГОЛОВОК РАЗДЕЛА
   ============================================================ */

.docs-container h3 {
    color: #2c3e50;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 16px 0;
    padding-left: 0;
    text-align: left;
    letter-spacing: 0.3px;
}


/* ============================================================
   СПИСОК ССЫЛОК НА ФАЙЛЫ
   ============================================================ */

.docs-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

/* ============================================================
   ССЫЛКА НА ФАЙЛ (плашка)
   ============================================================ */

.docs-list a {
    display: block;                  /* было flex — теперь block, раз иконок нет */
    padding: 14px 20px;
    background-color: #f9fbfd;
    border: 1px solid #e0e6ed;
    border-radius: 10px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.25s ease;
}

/* Наведение */
.docs-list a:hover {
    background-color: #eafaf7;
    border-left-color: #ffffff;
    transform: translateX(6px);
    box-shadow: 0 6px 16px rgba(26, 188, 156, 0.15);
    color: #000000;
}

/* ============================================================
   СТИЛИ ДЛЯ ГЛАВНОЙ СТРАНИЦЫ (index.html)
   ============================================================ */


/* ============================================================
   СЕТКА КАРТОЧЕК — 2 колонки × 2 строки
   ============================================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);   /* 2 равные колонки */
    gap: 30px;                                /* отступ между карточками */
    margin-top: 40px;
    text-align: left;
}


/* ============================================================
   КАРТОЧКА (картинка + подпись)
   ============================================================ */

.card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;                         /* обрезаем картинку по радиусу */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);              /* лёгкий подъём при наведении */
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.15);
}


/* ============================================================
   КАРТИНКА ВНУТРИ КАРТОЧКИ
   ============================================================ */

.card img {
    display: block;
    width: 100%;
    height: 220px;                            /* фиксированная высота */
    object-fit: cover;                        /* обрезаем без искажений */
    transition: transform 0.4s ease;
}

.card:hover img {
    transform: scale(1.05);                   /* лёгкое увеличение при наведении */
}


/* ============================================================
   ПОДПИСЬ ПОД КАРТИНКОЙ
   ============================================================ */

.card-caption {
    padding: 18px 22px;
    color: #2c3e50;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    background: #ffffff;
    border-top: 1px solid #f0f4f8;
}

/* Дополнительный текст под подписью (если понадобится) */
.card-caption span {
    display: block;
    margin-top: 6px;
    color: #777;
    font-size: 0.9rem;
    font-weight: 400;
}

/* ============================================================
   ОБЪЯВЛЕНИЕ ДЛЯ АБОНЕНТОВ
   ============================================================ */

.announcement {
    margin-top: 50px;
    padding: 30px 35px;
    background: #f9fbfd;
    border-left: 6px solid #3b82f6;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

/* Заголовок «Уважаемые абоненты!» */
.announcement-title {
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
}

/* Вводный абзац — чуть крупнее остальных */
.announcement-lead {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Обычные абзацы */
.announcement p {
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Выделение жирным — тёмный акцентный цвет */
.announcement strong {
    color: #2c3e50;
    font-weight: 700;
}


/* ============================================================
   АДРЕСА — с иконкой геометки
   ============================================================ */

.announcement-addresses {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px 0;
}

.announcement-addresses li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

/* Иконка перед каждым адресом */
.announcement-addresses li::before {
    content: "📍";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}


/* ============================================================
   ТЕЛЕФОНЫ
   ============================================================ */

.announcement-phones {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px 0;
}

.announcement-phones li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 8px;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
}

.announcement-phones li::before {
    content: "📞";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

/* Город — выделен жирным */
.announcement-phones li span {
    font-weight: 600;
    color: #2c3e50;
}


/* ============================================================
   EMAIL
   ============================================================ */

.announcement-email {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #d0d9e0;
    color: #444;
    font-size: 1rem;
}

.announcement-email strong {
    font-weight: 600;
    word-break: break-word;   /* чтобы длинный email не вылезал на телефоне */
}

/* ============================================================
   БЛОК ИЗ ДВУХ КОЛОНОК
   ============================================================ */

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}


/* ============================================================
   КАРТОЧКА (надпись + кнопка ИЛИ надпись + картинка)
   ============================================================ */

.action-card {
    background: #ffffff;
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}


/* ============================================================
   НАДПИСЬ НАД КНОПКОЙ / КАРТИНКОЙ
   ============================================================ */

.action-title {
    color: #2c3e50;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}


/* ============================================================
   ТЕКСТОВАЯ КНОПКА (левая колонка)
   ============================================================ */

.action-btn {
    display: inline-block;
    padding: 16px 28px;
    background: linear-gradient(135deg, #ff8a3d 0%, #ff5a1f 100%);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(255, 90, 31, 0.35);
    transition: all 0.25s ease;
    line-height: 1.3;
    margin-top: auto;             /* прижимаем кнопку к низу карточки */
}

.action-btn:hover {
    background: linear-gradient(135deg, #ff7a26 0%, #e94a10 100%);
    box-shadow: 0 10px 24px rgba(255, 90, 31, 0.5);
    transform: translateY(-2px);
}

.action-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 90, 31, 0.4);
}


/* ============================================================
   КАРТИНКА-ССЫЛКА (правая колонка)
   ============================================================ */

.action-image-link {
    display: block;
    margin-top: auto;             /* прижимаем картинку к низу карточки */
    transition: transform 0.25s ease, filter 0.25s ease;
}

.action-image-link img {
    display: block;              /* обязательно — иначе margin:auto не сработает */
    width: auto;                 /* не растягиваем */
    max-width: 50%;             /* на всякий случай — не шире карточки */
    height: auto;
    margin: 0 auto;              /* ← вот это центрирует картинку */
    box-shadow: 0 6px 16px rgba(255, 90, 31, 0.35);
    transition: box-shadow 0.25s ease;
}

/* При наведении — картинка чуть приподнимается и тень усиливается */
.action-image-link:hover {
    transform: translateY(-2px);
}

.action-image-link:hover img {
    box-shadow: 0 10px 24px rgba(255, 90, 31, 0.5);
}

/* При клике — лёгкое «вдавливание» */
.action-image-link:active {
    transform: translateY(0);
}


/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 750px) {
    .action-grid {
        gap: 20px;
        margin-top: 35px;
    }

    .action-card {
        padding: 22px 18px;
    }

    .action-title {
        font-size: 1.05rem;
    }

    .action-btn {
        padding: 14px 22px;
        font-size: 0.95rem;
    }
}

@media (max-width: 550px) {
    .action-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 650px) {
    .announcement {
        padding: 22px 20px;
        margin-top: 30px;
    }

    .announcement-title {
        font-size: 1.3rem;
    }

    .announcement-lead {
        font-size: 1rem;
    }

    .announcement p,
    .announcement-addresses li,
    .announcement-phones li {
        font-size: 0.95rem;
    }
}


/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

/* Планшет: сужаем отступы */
@media (max-width: 750px) {
    .cards-grid {
        gap: 20px;
    }

    .card img {
        height: 180px;
    }

    .card-caption {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
}

/* Телефон: одна колонка */
@media (max-width: 500px) {
    .cards-grid {
        grid-template-columns: 1fr;           /* 1 карточка в ряд */
        gap: 16px;
    }

    .card img {
        height: 200px;
    }
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 650px) {
    .docs-container h3 {
        font-size: 1.15rem;
        margin: 0 0 12px 0;
    }

    .docs-list a {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
}