/* Базові стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

/* Контейнер */
.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Заголовок */
.header {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1em;
    opacity: 0.95;
}

/* Прогрес бар */
.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    margin-top: 20px;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 33.33%;
    transition: width 0.3s ease;
}

/* Таби */
.tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.tab {
    flex: 1;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: none;
    font-size: 1em;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab:hover {
    background: #e9ecef;
    color: #495057;
}

.tab.active {
    color: #0072ff;
    background: white;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0072ff;
}

.tab-icon {
    font-size: 1.3em;
}

/* Контент */
.content {
    padding: 40px 30px;
}

.tab-content {
    display: none;
    animation: slideIn 0.4s ease;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tab-content h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8em;
}

/* Кроки */
.step {
    background: #f8f9fa;
    border-left: 4px solid #0072ff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
}

.step-number {
    width: 35px;
    height: 35px;
    background: #0072ff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 50px;
}

.step.expanded .step-details {
    max-height: 500px;
    margin-top: 15px;
}

.step-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
    font-size: 1.2em;
    color: #6c757d;
}

.step.expanded .step-arrow {
    transform: rotate(180deg);
}

.step-details p {
    color: #495057;
    line-height: 1.8;
    margin-top: 10px;
}

.step-details ul {
    margin-top: 10px;
    padding-left: 20px;
}

.step-details li {
    color: #495057;
    margin-bottom: 8px;
}

/* Поради та повідомлення */
.tip-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.tip-box strong {
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.success-box {
    background: #d4edda;
    border-left: 4px solid #28a745;
    padding: 15px;
    margin: 20px 0;
    border-radius: 5px;
}

.success-box strong {
    color: #155724;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* Чеклист */
.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.checklist li:hover {
    border-color: #0072ff;
    background: #f8f9ff;
}

.checklist li.checked {
    background: #d4edda;
    border-color: #28a745;
}

.checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #6c757d;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checklist li.checked .checkbox {
    background: #28a745;
    border-color: #28a745;
}

.checklist li.checked .checkbox::after {
    content: '✓';
    color: white;
    font-weight: bold;
}

/* Кнопки */
.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #0072ff 0%, #00c6ff 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 255, 0.4);
}

.btn-secondary {
    background: #28a745;
    color: white;
}

.btn-secondary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* Навігаційні кнопки */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e9ecef;
}

.nav-btn {
    padding: 12px 24px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Адаптивність */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .header h1 {
        font-size: 1.6em;
    }

    .header p {
        font-size: 0.95em;
    }

    .tab {
        font-size: 0.9em;
        padding: 15px 10px;
    }

    .tab-text {
        display: none;
    }

    .content {
        padding: 20px 15px;
    }

    .tab-content h2 {
        font-size: 1.4em;
    }

    .step-header {
        font-size: 1em;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .navigation-buttons {
        gap: 10px;
    }

    .nav-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 25px 15px;
    }

    .header h1 {
        font-size: 1.3em;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9em;
    }

    .step-details {
        padding-left: 40px;
    }
}