* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.main-header {
    background-color: #483d8b;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: bold;
    border: 1px solid #ccc;
}

/* Шапка и строки */
.header_1,
.content-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.header_1 {
    margin-bottom: 15px;
}

.header-column {
    padding: 15px;
    background-color: #6a5acd;
    color: #fff;
    border-radius: 5px;
    border: 1px solid #ccc;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Колонки - одинаковые пропорции для десктопа */
.requisites-col {
    flex: 0 0 280px;
    max-width: 280px;
}

.requisites {
    flex: 0 0 280px;
    max-width: 280px;
}

.description-col {
    flex: 1;
    min-width: 0;
}

.description-desktop {
    flex: 1;
    min-width: 0;
}

/* Уже последняя колонка для десктопа */
.link-col {
    flex: 0 0 100px; /* Уменьшил с 140px до 100px */
    max-width: 100px;
}

.link-column {
    flex: 0 0 100px; /* Уменьшил с 140px до 100px */
    max-width: 100px;
}

/* Контент */
.content-row {
    margin-bottom: 10px;
}

.requisites {
    padding: 15px;
    background-color: #f0f0ff;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-weight: 500;
}

.requisites-text {
    display: block;
}

.description-desktop {
    padding: 15px;
    background-color: #e6e6fa;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.row-link {
    height: 100%;
    width: 100%;
    padding: 10px 5px; /* Уменьшил горизонтальные отступы */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px; /* Уменьшил расстояние между текстом и иконкой */
    text-decoration: none;
    color: #333;
    background-color: #d8bfd8;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-weight: 500;
    font-size: 14px; /* Чуть уменьшил размер шрифта */
}

.row-link:hover {
    background-color: #c71585;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.download-icon {
    width: 18px; /* Немного уменьшил иконку */
    height: 18px;
    fill: currentColor;
}

.link-text {
    display: inline;
}

.link-header-text {
    display: inline;
    font-size: 14px; /* Чуть уменьшил размер текста в шапке */
    white-space: nowrap; /* Запрещаем перенос слова "Ссылка" */
}

.link-header-icon {
    display: none;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ===== СПОЙЛЕР (по умолчанию скрыт) ===== */
.mobile-details-spoiler {
    display: none !important;
}

/* Фиксация стилей для details */
.mobile-details-spoiler {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.mobile-details-spoiler summary {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
    color: #333 !important;
    font-family: Arial, sans-serif !important;
    list-style: none !important;
}

.mobile-details-spoiler summary:hover {
    background: none !important;
    color: #333 !important;
}

.mobile-details-spoiler summary:focus {
    outline: none !important;
}

.mobile-description-content {
    box-shadow: none !important;
    outline: none !important;
}

/* Убираем стандартную стрелку во всех браузерах */
.mobile-details-spoiler summary::-webkit-details-marker {
    display: none !important;
}

.mobile-details-spoiler summary::marker {
    display: none !important;
    content: '' !important;
}

/* Убираем все возможные псевдоэлементы */
.mobile-details-spoiler summary::before {
    display: none !important;
    content: '' !important;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 768px) {

    .container {
        padding: 10px;
    }

    .main-header {
        font-size: 16px;
        padding: 15px;
    }

    /* Шапка и строки на мобильных */
    .header_1,
    .content-row {
        gap: 6px;
    }

    /* Скрываем колонку "Описание" */
    .description-col,
    .description-desktop {
        display: none;
    }

    /* Переключаем реквизиты */
    .requisites-text {
        display: none !important;
    }

    .mobile-details-spoiler {
        display: block !important;
        width: 100%;
        position: relative;
    }

    /* Мобильная версия колонок */
    .requisites-col {
        flex: 1 !important;
        max-width: none !important;
        width: auto !important;
    }

    .requisites {
        flex: 1 !important;
        max-width: none !important;
        width: auto !important;
        padding: 8px 10px !important;
        font-size: 13px !important;
        position: relative;
    }

    /* Для мобильных оставляем узкую колонку */
    .link-col {
        flex: 0 0 40px !important;
        max-width: 40px !important;
    }

    .link-column {
        flex: 0 0 40px !important;
        max-width: 40px !important;
    }

    /* Оформление спойлера */
    .mobile-details-spoiler summary {
        cursor: pointer !important;
        font-weight: 600 !important;
        font-size: 13px !important;
        width: 100% !important;
        display: block !important;
        padding-right: 25px !important;
        line-height: 1.4 !important;
    }

    /* Кастомная стрелка справа */
    .mobile-details-spoiler summary::after {
        content: "▸" !important;
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        transition: transform 0.2s ease !important;
        font-size: 16px !important;
        line-height: 1 !important;
    }

    .mobile-details-spoiler[open] summary::after {
        transform: translateY(-50%) rotate(90deg) !important;
    }

    .mobile-description-content {
        margin-top: 8px !important;
        font-size: 13px !important;
        background-color: #e6e6fa !important;
        border: 1px solid #ddd !important;
        border-radius: 5px !important;
        padding: 10px !important;
        line-height: 1.4 !important;
    }

    .row-link {
        padding: 5px;
        width: 100%;
        height: 100%;
    }

    /* Скрываем текст "Открыть" на мобильных */
    .link-text {
        display: none;
    }

    /* Показываем иконку в шапке вместо текста */
    .link-header-text {
        display: none !important;
    }

    .link-header-icon {
        display: block !important;
        width: 20px !important;
        height: 20px !important;
    }

    .download-icon {
        width: 20px;
        height: 20px;
    }

    .header-column {
        font-size: 14px;
        padding: 5px 8px;
        text-align: center;
    }

    /* Уменьшаем высоту строки */
    .content-row {
        margin-bottom: 8px;
    }
}