/* ============================================================
   МОДУЛЬНАЯ ШКАЛА: px → rem (база 15px).
   Масштабируется от html font-size: clamp(15px, 0.7vw + 4.5px, 30px)
   в bundle.css. Скругления, блюр и @media-брейкпоинты не тронуты.
   ============================================================ */
/* ============================================================
   faq.css — FAQ, инструкции, страница одной инструкции
   Mobile-first. Десктоп — через @media (min-width).
   Токены — из bundle.css.
   ============================================================ */


/* ============================================================
   1. FAQ-СТРАНИЦА
   ============================================================ */

.faq-page {
    max-width: 53.33rem;
    margin: 0 auto;
    padding: 2.67rem 1.6rem;
}

.faq-page h1 {
    font-size: 1.87rem;
    color: #000;
    margin-bottom: 2.33rem;
    text-align: center;
    line-height: 1.3;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h2 {
    font-size: 1.47rem;
    color: #cd0000;
    margin-bottom: 1.67rem;
    border-bottom: 2px solid #cd0000;
    padding-bottom: 0.8rem;
    line-height: 1.3;
}

.faq-item {
    margin-bottom: 1.87rem;
}

.faq-item h3 {
    font-size: 1.2rem;
    color: #000;
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.4;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

.faq-item ul {
    margin: 0.67rem 0;
    padding-left: 1.33rem;
}

.faq-item li {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 0.33rem;
}

.faq-item a {
    color: #cd0000;
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}


/* ============================================================
   2. ИНСТРУКЦИИ — ОБЩЕЕ
   ============================================================ */

.instructions-intro {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2.67rem;
    text-align: center;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.instructions-section {
    margin-bottom: 3.33rem;
}

.faq-category-title {
    font-size: 1.47rem;
    color: #cd0000;
    margin-bottom: 1.33rem;
    padding-bottom: 0.67rem;
    border-bottom: 2px solid #cd0000;
    text-align: center;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.67rem;
}

.instruction-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.67rem;
    padding: 1.07rem 0.8rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 11.33rem;
}

.instruction-card:hover {
    border-color: #cd0000;
    box-shadow: 0 0.4rem 1.33rem rgba(205, 0, 0, 0.1);
    transform: translateY(-2px);
}

.instruction-icon {
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(205, 0, 0, 0.06);
    border-radius: 12px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.instruction-card:hover .instruction-icon {
    background: rgba(205, 0, 0, 0.12);
}

.instruction-icon svg {
    width: 1.6rem;
    height: 1.6rem;
}

.instruction-info {
    flex: 1;
    min-width: 0;
}

.instruction-title {
    display: block;
    font-size: 0.87rem;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    margin-bottom: 0.27rem;
}

.instruction-meta {
    font-size: 0.73rem;
    color: #888;
    line-height: 1.3;
}

.instruction-arrow {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    font-size: 0.93rem;
    color: #cd0000;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.instruction-card:hover .instruction-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* ============================================================
   3. СТРАНИЦА ОДНОЙ ИНСТРУКЦИИ
   ============================================================ */

.instruction-page {
    max-width: 53.33rem;
    margin: 0 auto;
}

/* Перебиваем .faq-page h1 — на странице инструкции он выравнивается влево */
.faq-page.instruction-page h1 {
    font-size: 1.73rem;
    line-height: 1.3;
    margin-bottom: 1.67rem;
    color: #000;
    text-align: left;
}

.faq-page.instruction-page h2 {
    font-size: 1.33rem;
    font-weight: 700;
    color: #000;
    margin: 2.67rem 0 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #f0f0f0;
    line-height: 1.3;
    text-align: left;
}

.faq-page.instruction-page h3 {
    font-size: 1.13rem;
    font-weight: 600;
    color: #cd0000;
    margin: 1.87rem 0 0.93rem;
    line-height: 1.4;
    border: none;
    padding: 0;
}

.faq-page.instruction-page p {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.2rem;
}

.faq-page.instruction-page p strong,
.instruction-list li strong {
    color: #000;
    font-weight: 600;
}

.instruction-lead {
    font-size: 1.07rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1.67rem;
    padding: 1.2rem 1.33rem;
    background: linear-gradient(135deg, #fff5f5 0, #fff 100%);
    border-left: 0.27rem solid #cd0000;
    border-radius: 8px;
}

.instruction-lead strong {
    color: #cd0000;
}

.instruction-note {
    font-size: 0.93rem;
    color: #856404;
    font-style: italic;
    margin: 1.67rem 0;
    padding: 0.93rem 1.2rem;
    background: #fff9e6;
    border-left: 0.27rem solid #f5c542;
    border-radius: 8px;
    line-height: 1.5;
}

/* ----- Списки ----- */

.instruction-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.67rem;
}

.instruction-list li {
    color: #333;
    font-size: 1rem;
    position: relative;
    padding: 0.8rem 1.07rem 0.8rem 2.67rem;
    margin-bottom: 0.53rem;
    line-height: 1.6;
    background: #fafafa;
    border-radius: 8px;
}

.instruction-list li::before {
    content: '';
    position: absolute;
    left: 1.07rem;
    top: 1.27rem;
    width: 0.53rem;
    height: 0.53rem;
    background: #cd0000;
    border-radius: 50%;
}

/* ----- Нумерованные шаги ----- */

.instruction-steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
    margin-bottom: 2rem;
}

.instruction-steps li {
    counter-increment: step;
    color: #333;
    font-size: 1rem;
    position: relative;
    padding: 1.33rem 1.33rem 1.33rem 4.8rem;
    margin-bottom: 0.93rem;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    line-height: 1.7;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.instruction-steps li:hover {
    border-color: #cd0000;
    box-shadow: 0 0.27rem 0.8rem rgba(205, 0, 0, 0.06);
}

.instruction-steps li::before {
    content: counter(step);
    position: absolute;
    left: 1.33rem;
    top: 1.33rem;
    width: 2.13rem;
    height: 2.13rem;
    background: #cd0000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1;
    box-sizing: border-box;
}

.instruction-steps li strong {
    color: #cd0000;
    font-weight: 600;
}

/* ----- PDF ----- */

.instruction-pdf {
    margin: 3rem 0 2.33rem;
    padding: 2rem 1.33rem;
    border-radius: 12px;
    text-align: center;
    background: #f9f9f9;
}

.instruction-pdf .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.53rem;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.93rem 1.87rem;
}

.instruction-pdf .btn::before {
    content: '';
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ----- Контакт внизу ----- */

.instruction-contact {
    font-size: 0.93rem;
    line-height: 1.7;
    color: #555;
    padding: 1.6rem 1.33rem;
    margin-top: 2rem;
    border-radius: 12px;
    text-align: center;
    background: #f9f9f9;
}

.instruction-contact p {
    margin-bottom: 0.67rem;
}

.instruction-contact p:last-child {
    margin-bottom: 0;
}

.instruction-contact a {
    color: #cd0000;
    text-decoration: none;
    font-weight: 500;
}

.instruction-contact a:hover {
    text-decoration: underline;
}

/* ----- Подсписок ----- */

.instruction-sublist {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 0;
}

.instruction-sublist li {
    position: relative;
    padding: 0.53rem 0.8rem 0.53rem 1.87rem;
    margin-bottom: 0.4rem;
    font-size: 0.93rem;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    border-radius: 6px;
}

.instruction-sublist li::before {
    content: '';
    position: absolute;
    left: 0.8rem;
    top: 1rem;
    width: 0.4rem;
    height: 0.4rem;
    background: #cd0000;
    border-radius: 50%;
}

.instruction-sublist li:last-child {
    margin-bottom: 0;
}


/* ============================================================
   4. МЕДИА-ЗАПРОСЫ
   ============================================================ */

/* ----- Tablet ≥ 40rem ----- */

@media (min-width: 600px) {

    .instructions-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.93rem;
    }

    .instruction-card {
        padding: 1.33rem 1.07rem;
        gap: 0.8rem;
    }

    .instruction-title {
        font-size: 1rem;
    }

    .instruction-meta {
        font-size: 0.8rem;
    }

    .instruction-arrow {
        top: 1.07rem;
        right: 1.07rem;
        font-size: 1.07rem;
    }
}


/* ----- Desktop ≥ 68.27rem ----- */

@media (min-width: 1024px) {

    /* FAQ-страница */
    .faq-page {
        padding: 4rem 2.67rem;
    }

    .faq-page h1 {
        font-size: 2.27rem;
        margin-bottom: 3rem;
    }

    .faq-category {
        margin-bottom: 3.67rem;
    }

    .faq-category h2 {
        font-size: 1.73rem;
        margin-bottom: 2rem;
    }

    .faq-item {
        margin-bottom: 2.13rem;
    }

    .faq-item h3 {
        font-size: 1.33rem;
    }

    .faq-item p,
    .faq-item li {
        font-size: 1.07rem;
    }

    /* Инструкции — сетка */
    .instructions-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.07rem;
    }

    .faq-category-title {
        font-size: 1.73rem;
    }

    .instructions-intro {
        font-size: 1.07rem;
        margin-bottom: 3.33rem;
    }

    .instructions-section {
        margin-bottom: 4rem;
    }

    /* Страница одной инструкции */
    .faq-page.instruction-page h1 {
        font-size: 2.13rem;
    }

    .faq-page.instruction-page h2 {
        font-size: 1.6rem;
        margin: 3.33rem 0 1.33rem;
    }

    .faq-page.instruction-page h3 {
        font-size: 1.27rem;
        margin: 2.13rem 0 1.07rem;
    }

    .faq-page.instruction-page p {
        font-size: 1.07rem;
    }

    .instruction-lead {
        font-size: 1.13rem;
        padding: 1.47rem 1.6rem;
    }

    .instruction-note {
        font-size: 1rem;
        padding: 1.07rem 1.33rem;
    }

    .instruction-list li {
        font-size: 1.07rem;
        padding: 0.93rem 1.2rem 0.93rem 2.93rem;
    }

    .instruction-list li::before {
        left: 1.2rem;
        top: 1.4rem;
    }

    .instruction-steps li {
        font-size: 1.07rem;
        padding: 1.6rem 1.6rem 1.6rem 5.33rem;
    }

    .instruction-steps li::before {
        left: 1.6rem;
        top: 1.6rem;
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1rem;
    }

    .instruction-pdf {
        margin: 3.67rem 0 3rem;
        padding: 2.67rem 2rem;
    }

    .instruction-pdf .btn {
        font-size: 1.07rem;
        padding: 1.07rem 2.4rem;
    }

    .instruction-contact {
        font-size: 1rem;
        padding: 1.87rem 1.6rem;
    }

    .instruction-sublist li {
        font-size: 1rem;
    }
}


/* ============================================================
   5. МОБИЛЬНЫЙ ФИКС ДЛЯ УЗКИХ ЭКРАНОВ
   ============================================================ */

@media (max-width: 500px) {

    .faq-page {
        padding: 1.6rem 1.33rem;
    }

    .faq-page h1 {
        font-size: 1.6rem;
        margin-bottom: 1.67rem;
    }

    .faq-category h2 {
        font-size: 1.33rem;
    }

    .faq-item h3 {
        font-size: 1.07rem;
    }

    .faq-item p,
    .faq-item li {
        font-size: 0.93rem;
    }

    .faq-page.instruction-page h1 {
        font-size: 1.47rem;
    }

    .faq-page.instruction-page h2 {
        font-size: 1.2rem;
        margin: 1.87rem 0 0.8rem;
    }

    .faq-page.instruction-page h3 {
        font-size: 1.07rem;
        margin: 1.33rem 0 0.67rem;
    }

    .instruction-lead {
        font-size: 1rem;
        padding: 0.93rem 1.07rem;
    }

    .instruction-note {
        font-size: 0.87rem;
        padding: 0.8rem 0.93rem;
    }

    .instruction-steps li {
        padding: 1.07rem 1.07rem 1.07rem 4rem;
        font-size: 0.93rem;
    }

    .instruction-steps li::before {
        left: 1.07rem;
        top: 1.07rem;
        width: 1.87rem;
        height: 1.87rem;
        font-size: 0.8rem;
    }

    .instruction-list li {
        padding: 0.67rem 0.8rem 0.67rem 2.27rem;
        font-size: 0.93rem;
    }

    .instruction-list li::before {
        left: 0.93rem;
        top: 1.07rem;
    }

    .instruction-pdf {
        margin: 2.33rem 0 1.67rem;
        padding: 1.33rem 1rem;
    }

    .instruction-pdf .btn {
        width: 100%;
        justify-content: center;
        padding: 0.93rem 1.33rem;
    }

    .instruction-contact {
        padding: 1.2rem 1.07rem;
        font-size: 0.87rem;
    }
}