/* Общие стили для страницы about */
body {
    background-color: #fafafa;
    font-family: 'SF Pro Display Regular', sans-serif;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Шапка */
.header {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 20px;
    margin-bottom: 40px;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(10px);
}

/* Основная секция */
.about-section {
    padding: 40px 0 80px;
    min-height: calc(100vh - 200px);
}

/* Заголовок страницы */
.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 42px;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.1;
}

.page-subtitle {
    font-size: 18px;
    color: #6B6B6B;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* Вкладки */
.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 40px;
    border: 1px solid #e9ecef;
}

.tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #6B6B6B;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button.active {
    background: #ffffff;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-button:hover:not(.active) {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.5);
}

.tab-icon {
    width: 18px;
    height: 18px;
}

/* Контент вкладок */
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Заголовок инструкции */
.instruction-header {
    text-align: center;
    margin-bottom: 50px;
}

.instruction-title {
    font-size: 32px;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.instruction-subtitle {
    font-size: 16px;
    color: #6B6B6B;
    max-width: 600px;
    margin: 0 auto;
}

/* Контейнер шагов */
.steps-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Элемент шага */
.step-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.step-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Номер шага */
.step-number {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.2);
}

/* Контент шага */
.step-content {
    flex: 1;
}

.step-title {
    font-size: 22px;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.step-description {
    font-size: 16px;
    color: #4a4a4a;
    margin-bottom: 24px;
    line-height: 1.6;
}

.step-description strong {
    color: #1a1a1a;
    font-weight: 600;
}

/* Изображения шагов */
.step-image {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.step-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.step-image:hover img {
    transform: scale(1.02);
}

/* Уведомление об успехе */
.success-notice {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.success-icon {
    color: #28a745;
    flex-shrink: 0;
    margin-top: 2px;
}

.success-notice h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.success-notice p {
    margin: 0;
    font-size: 14px;
    color: #6B6B6B;
}

/* Контент руководства */
.guide-content-wrapper {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    min-height: auto;
}

#manual-content-placeholder {
    font-family: 'SF Pro Display Regular', sans-serif;
    color: #333;
    line-height: 1.7;
}

#manual-content-placeholder h1,
#manual-content-placeholder h2,
#manual-content-placeholder h3,
#manual-content-placeholder h4,
#manual-content-placeholder h5,
#manual-content-placeholder h6 {
    color: #1a1a1a;
    font-family: 'SF Pro Display Regular', sans-serif;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    font-weight: 600;
    line-height: 1.3;
}

#manual-content-placeholder h1 { font-size: 30px; }
#manual-content-placeholder h2 { font-size: 26px; }
#manual-content-placeholder h3 { font-size: 22px; }
#manual-content-placeholder h4 { font-size: 18px; }

#manual-content-placeholder p {
    font-size: 16px;
    margin-bottom: 1.2em;
    color: #333333;
}

#manual-content-placeholder img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 25px auto;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
    border: 1px solid #e0e0e0;
}

#manual-content-placeholder figure {
    margin: 30px 0;
    text-align: center;
}

#manual-content-placeholder figcaption {
    font-size: 14px;
    color: #555555;
    margin-top: 10px;
    font-style: italic;
    text-align: center;
}

#manual-content-placeholder ul,
#manual-content-placeholder ol {
    margin-bottom: 1.2em;
    padding-left: 25px;
}

#manual-content-placeholder li {
    margin-bottom: 0.6em;
}

#manual-content-placeholder strong, #manual-content-placeholder b {
    font-weight: 600;
    color: #1a1a1a;
}

#manual-content-placeholder a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

#manual-content-placeholder a:hover {
    text-decoration: underline;
}

#manual-content-placeholder hr {
    border: 0;
    height: 1px;
    background-color: #e0e0e0;
    margin: 40px 0;
}

#manual-content-placeholder blockquote {
    border-left: 3px solid #007bff;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
}

#manual-content-placeholder code {
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    background-color: #f3f4f6;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.9em;
}

#manual-content-placeholder pre {
    background-color: #f3f4f6;
    padding: 15px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.9em;
}

#manual-content-placeholder pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
}

#manual-content-placeholder > p:first-child:empty {
    display: none;
}

.guide-content {
    text-align: left;
    padding: 0;
}

.guide-section h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: #1a1a1a;
    font-weight: 600;
}

.guide-section p {
    font-size: 16px;
    color: #6B6B6B;
    max-width: 500px;
    margin: 0 auto;
}

/* Подвал */
.section_8_footer {
    border-top: 1px solid #e5e5e5;
    padding-top: 30px;
    margin-top: 60px;
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(10px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    .page-subtitle {
        font-size: 16px;
        padding: 0 16px;
    }
    
    .instruction-title {
        font-size: 26px;
    }
    
    .instruction-subtitle {
        font-size: 15px;
        padding: 0 16px;
    }
    
    .tabs-nav {
        flex-direction: column;
        gap: 4px;
    }
    
    .tab-button {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .step-item {
        flex-direction: column;
        padding: 24px 20px;
        gap: 20px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
        align-self: flex-start;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 15px;
    }
    
    .steps-container {
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 20px 0 40px;
    }
    
    .page-title {
        font-size: 28px;
        padding: 0 16px;
    }
    
    .instruction-title {
        font-size: 22px;
        padding: 0 16px;
    }
    
    .step-item {
        padding: 20px 16px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 14px;
    }
    
    .success-notice {
        padding: 16px;
        flex-direction: column;
        gap: 12px;
    }
    
    .success-notice h4 {
        font-size: 15px;
    }
    
    .success-notice p {
        font-size: 13px;
    }
}

/* Анимации */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-item {
    animation: slideInUp 0.6s ease-out;
}

.step-item:nth-child(1) { animation-delay: 0.1s; }
.step-item:nth-child(2) { animation-delay: 0.2s; }
.step-item:nth-child(3) { animation-delay: 0.3s; }
.step-item:nth-child(4) { animation-delay: 0.4s; }
.step-item:nth-child(5) { animation-delay: 0.5s; }

/* Улучшения для доступности */
@media (prefers-reduced-motion: reduce) {
    .step-item,
    .tab-content,
    .step-image img {
        animation: none;
        transition: none;
    }
    
    .step-item:hover {
        transform: none;
    }
    
    .step-image:hover img {
        transform: none;
    }
} 