body {
    margin: 0;
    height: 100vh;
    width: auto;
    font-family: Arial;
    
}

.header {
    width: 100%;
    height: 100px;
    background-color: rgb(31, 31, 255);
    display: flex;
}

.left_part {
    display: flex;
    flex: 1;
    height: 100%;
    background-color: black;
    flex-direction: row;
}

.middle_part {
    display: flex;
    flex: 2;
    height: 100%;
    background-color: rgb(0, 0, 0);
    align-items: center;
    justify-content: center;
    gap: 4%;
    box-sizing: border-box;
}

.right_part {
    display: flex;
    flex: 1;
    height: 100%;
    background-color: rgb(0, 0, 0);
    align-items: center;
    gap: 10%;
}

.logo_img {
    height: 50px;
    width: auto;
}

.logo_div {
    display: flex;
    align-items: center;
    padding-left: 1.1%;
    box-sizing: border-box;
}

.logo_div a {
    display: flex;
    align-items: center;
}

/* Лінки в хедері: без підкреслення, з плавною лінією при наведенні */
.header_link {
    position: relative;
    display: inline-block;
    font-size: 30px;
    color: rgb(42, 143, 255);
    text-decoration: none;
    padding-bottom: 4px;
    transition: color 0.3s;
}

.header_link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background-color: rgb(42, 143, 255);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.header_link:hover {
    color: rgb(110, 180, 255);
}

.header_link:hover::after {
    transform: scaleX(1);
}

.search_input {
    height: 45%;
    width: 70%;
}

.theme_switch {
    width: 40px;
    height: 40px;
    margin-left: -10px;
    background-color: rgb(42, 143, 255);
    border-radius: 10px;
    border: none;
    cursor: pointer;
}
/* ---------- Контент інструкції ---------- */
body {
    min-height: 100vh;
    color: #f5f5f7;
    background-color: black;
    background-image: url("../images/background.png");
    background-size: cover;
    background-attachment: fixed;
}

.doc { max-width: 820px; margin: 0 auto; padding: 56px 24px 80px; }
.doc_title { margin: 0; font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.035em; }
.doc_lead { margin: 12px 0 36px; font-size: 20px; color: #a1a1a6; }
html[data-theme="light"] .doc_lead { color: #4b5563; }

.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: s; }

.step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 22px;
    counter-increment: s;
    background: rgba(20, 24, 36, 0.62);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
}

.step::before {
    content: counter(s);
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #4aa3ff, #0057ff);
    border-radius: 14px;
}

.step h2 { margin: 2px 0 6px; font-size: 21px; }
.step p, .faq p { margin: 0; line-height: 1.55; color: #a1a1a6; }

.faq_title { margin: 48px 0 14px; font-size: 28px; letter-spacing: -0.02em; }

.faq {
    margin-bottom: 10px;
    padding: 16px 20px;
    background: rgba(20, 24, 36, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
}

.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin-top: 10px; }

.doc_cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.doc_btn {
    display: inline-flex;
    align-items: center;
    height: 48px;
    padding: 0 26px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    transition: background 0.2s, transform 0.2s;
}

.doc_btn:hover { background: rgba(255, 255, 255, 0.1); }
.doc_btn:active { transform: scale(0.97); }
.doc_btn.primary { color: #fff; background: rgb(42, 143, 255); border-color: rgb(42, 143, 255); }
.doc_btn.primary:hover { background: rgb(74, 163, 255); }

html[data-theme="light"] .step,
html[data-theme="light"] .faq { background: rgba(255, 255, 255, 0.75); border-color: rgba(11, 18, 32, 0.1); }
html[data-theme="light"] .step p, html[data-theme="light"] .faq p { color: #4b5563; }
html[data-theme="light"] .doc_btn { border-color: rgba(11, 18, 32, 0.4); }
html[data-theme="light"] .doc_btn:hover { background: rgba(11, 18, 32, 0.06); }
html[data-theme="light"] .doc_btn.primary { border-color: rgb(42, 143, 255); }

@media (max-width: 560px) { .step { grid-template-columns: 1fr; } }
