/* ===== ГАЙДЫ: СТРАНИЦА СО СПИСКОМ КАРТОЧЕК ===== */

.guides-page {
    padding: 60px 20px 80px;
    max-width: 900px;
    margin: 0 auto;
}

.guides-page__title {
    font-size: 2em;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.guides-page__subtitle {
    color: #666666;
    font-size: 0.95em;
    margin-bottom: 36px;
}

/* ===== СЕТКА КАРТОЧЕК ===== */

.guides-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ===== КАРТОЧКА ГАЙДА ===== */

.guide-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #111111;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--card-accent, #FF9F43);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: 3px 0 0 3px;
}

.guide-card:hover {
    border-color: var(--card-accent, #FF9F43);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.guide-card:hover::before {
    opacity: 1;
}

.guide-card:active {
    transform: translateY(0);
}

/* Иконка карточки 128x128 */
.guide-card__icon {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: cover;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    overflow: hidden;
}

.guide-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Текстовый блок карточки */
.guide-card__body {
    flex: 1;
    min-width: 0;
}

.guide-card__badge {
    display: inline-block;
    background-color: rgba(255, 159, 67, 0.12);
    color: var(--card-accent, #FF9F43);
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.guide-card__title {
    font-size: 1.05em;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.guide-card__desc {
    font-size: 0.85em;
    color: #666666;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.guide-card__arrow {
    color: #333333;
    font-size: 1.2em;
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.guide-card:hover .guide-card__arrow {
    color: var(--card-accent, #FF9F43);
    transform: translateX(4px);
}

/* ===== СТРАНИЦА КОНКРЕТНОГО ГАЙДА ===== */

.guide-view {
    display: none;
    padding: 60px 20px 80px;
    max-width: 860px;
    margin: 0 auto;
}

.guide-view.active {
    display: block;
}

.guides-page.hidden {
    display: none;
}

/* Кнопка назад */
.guide-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #666666;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 32px;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.guide-back:hover {
    color: #FF9F43;
}

.guide-back__arrow {
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.guide-back:hover .guide-back__arrow {
    transform: translateX(-3px);
}

/* Шапка гайда */
.guide-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 24px;
    border-bottom: 1px solid #1a1a1a;
}

.guide-header__icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 14px;
    object-fit: cover;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    overflow: hidden;
}

.guide-header__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.guide-header__meta {
    flex: 1;
}

.guide-header__badge {
    display: inline-block;
    background-color: rgba(255, 159, 67, 0.12);
    color: var(--guide-accent, #FF9F43);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.guide-header__title {
    font-size: 1.9em;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.2;
}

.guide-header__desc {
    color: #666666;
    font-size: 0.95em;
    margin: 0;
}

/* ===== БЛОКИ КОНТЕНТА ГАЙДА ===== */

.guide-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Обычный текст */
.gc-text {
    color: #888888;
    font-size: 1em;
    line-height: 1.8;
    margin: 0;
}

/* Заголовок секции */
.gc-heading {
    font-size: 1.2em;
    font-weight: 700;
    color: #ffffff;
    margin: 12px 0 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #1a1a1a;
}

/* Нумерованный шаг */
.gc-step {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background-color: #111111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 14px 18px;
}

.gc-step__num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--guide-accent, #FF9F43);
    color: #0a0a0a;
    font-weight: 800;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.gc-step__text {
    color: #aaaaaa;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.gc-step__text strong {
    color: #ffffff;
}

/* Предупреждение */
.gc-warning {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background-color: rgba(255, 80, 80, 0.07);
    border: 1px solid rgba(255, 80, 80, 0.2);
    border-radius: 10px;
    padding: 14px 18px;
}

.gc-warning__icon {
    font-size: 1.1em;
    flex-shrink: 0;
    margin-top: 1px;
}

.gc-warning__text {
    color: #cc6666;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
}

.gc-warning__text strong {
    color: #ff8080;
}

/* Совет */
.gc-tip {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background-color: rgba(255, 159, 67, 0.06);
    border: 1px solid rgba(255, 159, 67, 0.18);
    border-radius: 10px;
    padding: 14px 18px;
}

.gc-tip__icon {
    font-size: 1.1em;
    flex-shrink: 0;
    margin-top: 1px;
}

.gc-tip__text {
    color: #997755;
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0;
}

.gc-tip__text strong {
    color: #FF9F43;
}

/* Код / команда */
.gc-code {
    background-color: #0d0d0d;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9em;
    color: #FF9F43;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Изображение */
.gc-image {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #1a1a1a;
    object-fit: cover;
}

.gc-image-caption {
    text-align: center;
    font-size: 0.8em;
    color: #444444;
    margin-top: -8px;
}

/* Разделитель */
.gc-divider {
    border: none;
    border-top: 1px solid #1a1a1a;
    margin: 8px 0;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 600px) {
    .guide-card {
        padding: 13px 15px;
        gap: 14px;
    }

    .guide-card__icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .guide-header {
        flex-direction: column;
        gap: 14px;
    }

    .guide-header__title {
        font-size: 1.5em;
    }

    .guides-page__title {
        font-size: 1.6em;
    }
}