/* ===== ОБЩИЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    background: #f1f5fa;
    padding: 20px;
    color: #14253d;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 920px;
    margin: auto;
    background: white;
    padding: 35px 40px 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    width: 100%;
}

/* ===== ЗАГОЛОВОК ===== */
.header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.header .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #edf3fa;
    border-radius: 14px;
    color: #0b2b5e;
    font-size: 24px;
    flex-shrink: 0;
}

.header h1 {
    font-size: 26px;
    color: #0b2b5e;
    font-weight: 700;
}

.header .sub {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #63778d;
    margin-top: 2px;
}

.back-link {
    margin-left: auto;
    color: #0b2b5e;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f5fa;
    padding: 8px 18px;
    border-radius: 30px;
    transition: 0.25s;
}

.back-link:hover {
    background: #e5edf6;
}

/* ===== ВЫБОР УСТРОЙСТВА ===== */
.device-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.device-tab {
    flex: 1;
    min-width: 110px;
    padding: 12px 16px;
    border: 2px solid #e5edf6;
    border-radius: 14px;
    background: white;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: #63778d;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.device-tab i {
    font-size: 18px;
}

.device-tab:hover {
    border-color: #b0c4dd;
    background: #f7faff;
}

.device-tab.active {
    border-color: #0b2b5e;
    background: #f0f4fe;
    color: #0b2b5e;
    box-shadow: 0 4px 12px rgba(11, 43, 94, 0.08);
}

/* ===== КОНТЕНТ ===== */
.content {
    display: block;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 22px;
    background: #f7faff;
    border-radius: 16px;
    border-left: 3px solid #0b2b5e;
}

.step-item .step-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #0b2b5e;
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    font-size: 15px;
    line-height: 1.5;
    color: #1a2634;
    padding-top: 4px;
}

.step-text strong {
    color: #0b2b5e;
}

.step-text .highlight {
    background: #e5edf6;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
}

.step-text .icon-inline {
    color: #0b2b5e;
    margin: 0 4px;
}

/* ===== РАМКИ ДЛЯ УСТРОЙСТВ ===== */
.step-image {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.device-frame {
    position: relative;
    border-radius: 28px;
    background: #1a1a2e;
    padding: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    max-width: 280px;
    width: 100%;
    margin: 0 auto;
    transition: 0.3s;
}

.device-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
}

.device-frame .screen {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: white;
}

.device-frame .screen img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

/* Кнопка увеличения */
.zoom-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    backdrop-filter: blur(4px);
    z-index: 5;
}

.zoom-btn:hover {
    background: rgba(11, 43, 94, 0.85);
    transform: scale(1.1);
}

/* iPhone */
.device-frame.device-iphone {
    border-radius: 40px;
    padding: 16px 12px 18px;
    background: linear-gradient(145deg, #2d2d44, #1a1a2e);
    max-width: 280px;
}

.device-frame.device-iphone::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: #2d2d44;
    border-radius: 10px;
    z-index: 2;
}

.device-frame.device-iphone .screen {
    border-radius: 20px;
    border: 2px solid #3d3d5c;
}

.device-frame.device-iphone .screen img {
    border-radius: 18px;
}

/* Android */
.device-frame.device-android {
    border-radius: 28px;
    padding: 12px 8px 14px;
    background: linear-gradient(145deg, #2d2d44, #1a1a2e);
    max-width: 280px;
}

.device-frame.device-android::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #3d3d5c;
    border-radius: 10px;
    z-index: 2;
}

.device-frame.device-android .screen {
    border-radius: 16px;
    border: 2px solid #3d3d5c;
}

.device-frame.device-android .screen img {
    border-radius: 14px;
}

/* Desktop (Windows) */
.device-frame.device-desktop {
    border-radius: 12px;
    padding: 14px 12px 16px;
    background: linear-gradient(145deg, #2d2d44, #1a1a2e);
    max-width: 420px;
}

.device-frame.device-desktop .screen {
    border-radius: 8px;
    border: 2px solid #3d3d5c;
}

.device-frame.device-desktop .screen img {
    border-radius: 6px;
}

/* ===== ЗАМЕТКА ===== */
.note-box {
    margin-top: 20px;
    padding: 16px 20px;
    background: #fef9e7;
    border-radius: 14px;
    border-left: 4px solid #f5a623;
    font-size: 14px;
    color: #7a6a2e;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.note-box i {
    color: #f5a623;
    font-size: 18px;
    margin-top: 2px;
}

/* ===== МОДАЛЬНОЕ ОКНО ДЛЯ ПРИБЛИЖЕНИЯ ===== */
.zoom-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zoom-overlay.active {
    display: flex;
}

.zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

.zoom-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.zoom-close:hover {
    transform: rotate(90deg);
    color: #f5a623;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===== АДАПТАЦИЯ ===== */
@media (max-width: 600px) {
    .container {
        padding: 20px 16px;
        border-radius: 18px;
    }

    .header h1 {
        font-size: 20px;
    }

    .header .icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .device-tab {
        min-width: 80px;
        padding: 10px 12px;
        font-size: 13px;
        flex: 1 1 30%;
    }

    .device-tab span {
        display: none;
    }

    .step-item {
        padding: 14px 16px;
    }

    .step-text {
        font-size: 14px;
    }

    .back-link {
        font-size: 13px;
        padding: 6px 14px;
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .device-frame {
        max-width: 200px;
    }

    .device-frame.device-desktop {
        max-width: 320px;
    }

    .zoom-overlay img {
        max-width: 95%;
        max-height: 80%;
    }

    .zoom-close {
        font-size: 28px;
        top: 12px;
        right: 16px;
    }
}

@media (max-width: 420px) {
    .device-tab {
        font-size: 12px;
        padding: 8px 10px;
        min-width: 60px;
    }

    .device-tab i {
        font-size: 16px;
    }

    .step-num {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .device-frame {
        max-width: 160px;
    }

    .device-frame.device-desktop {
        max-width: 260px;
    }

    .zoom-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
        bottom: 6px;
        right: 6px;
    }
}

.fa-arrow-left::before {
    content: "\f060";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-style: normal;
    display: inline-block;
}
