/* Стили для страницы инструкций */
.instructions-header {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #062c47 0%, #0056fd 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.instructions-header .header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.instructions-header h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.instructions-header .subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../imgs/bg/working/pc-bg.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
}

.breadcrumbs {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumbs a {
    color: #0056fd;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #003d99;
}

.breadcrumbs span {
    color: #38485d;
}

.instructions-main-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: #666;
    font-size: 18px;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

.instruction-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 86, 253, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    min-height: 250px;
    text-decoration: none;
    color: inherit;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 86, 253, 0.15);
}

.card-number {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: 700;
    color: rgb(0, 84, 253);
    z-index: 1;
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    align-items: center;
}

.watch-link {
    color: #0056fd;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.watch-link i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s;
}

.instruction-card:hover .watch-link {
    color: #003d99;
}

.instruction-card:hover .watch-link i {
    transform: translateX(3px);
}

.card-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 50px;
    color: rgba(0, 86, 253, 0.1);
    z-index: 1;
    transition: color 0.3s;
}

.instruction-card:hover .card-icon {
    color: rgba(0, 86, 253, 0.2);
}

/* FAQ секция */
.faq-section {
    margin-top: 60px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background: white;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-color);
    transition: background 0.3s;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
    background: #f8fafc;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 20px 25px;
}

.faq-answer p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 768px) {
    .instructions-header {
        height: 300px;
    }

    .instructions-header h1 {
        font-size: 36px;
    }

    .instructions-header .subtitle {
        font-size: 18px;
    }

    .instructions-grid {
        grid-template-columns: 1fr;
    }

    .instruction-card {
        min-height: 220px;
    }

    .card-content h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .instructions-header {
        height: 250px;
    }

    .instructions-header h1 {
        font-size: 28px;
    }

    .card-content {
        padding: 20px;
    }

    .faq-question {
        padding: 15px 20px;
        font-size: 15px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 15px 20px;
    }
}

/* Стили для отдельных страниц инструкций */
.instruction-header {
    position: relative;
    height: 350px;
    background: linear-gradient(135deg, #062c47 0%, #0056fd 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.instruction-header .header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.instruction-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
}

.instruction-header .subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.instruction-section {
    padding: 60px 0;
    background-color: #f8fafc;
}

.instruction-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.instruction-main {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.video-container {
    margin-bottom: 40px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.steps-container {
    margin: 40px 0;
}

.step {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #0056fd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    font-size: 18px;
}

.step-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-content p {
    margin: 0;
    color: #555;
    line-height: 1.6;
}

.instruction-faq {
    margin-top: 60px;
}

.instruction-faq h2 {
    margin-bottom: 30px;
    text-align: left;
}

/* Сайдбар */
.instruction-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 10px;
}

.sidebar-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #0056fd;
}

.sidebar-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-card ul li {
    margin-bottom: 12px;
}

.sidebar-card ul li a {
    display: flex;
    align-items: center;
    color: #555;
    transition: color 0.3s;
}

.sidebar-card ul li a:hover {
    color: #0056fd;
}

.sidebar-card ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.support-card {
    background: linear-gradient(135deg, #062c47 0%, #0056fd 100%);
    color: white;
}

.support-card h3 {
    color: white;
}

.support-card h3::after {
    background: white;
}

.support-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 14px;
}

.support-phone {
    display: block;
    color: white;
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 18px;
}

.support-phone i {
    margin-right: 10px;
}

.support-links {
    display: flex;
    gap: 15px;
}

.support-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    transition: background 0.3s;
}

.support-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Адаптивность для страниц инструкций */
@media (max-width: 992px) {
    .instruction-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .instruction-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .instruction-header {
        height: 300px;
    }

    .instruction-header h1 {
        font-size: 32px;
    }

    .instruction-main {
        padding: 30px;
    }

    .step {
        flex-direction: column;
    }

    .step-number {
        margin-bottom: 15px;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .instruction-header {
        height: 250px;
    }

    .instruction-header h1 {
        font-size: 28px;
    }

    .instruction-main {
        padding: 20px;
    }

    .video-container {
        margin-bottom: 30px;
    }
}

.video-wrapper {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}