/* Общие стили всех страниц. Склеены в один файл, чтобы не блокировать отрисовку тремя запросами. */

/* ===== common.css ===== */

body {
    font-family: "SF Pro", -apple-system, "Noto Sans", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000;
    line-height: 1.6;
    color: #F5F5F7;
}

body, html {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

code {
    font-family: "SF Mono", -apple-system, monospace;
    font-weight: 600;
}

[dir="rtl"] body {
    font-family: "SF Pro", -apple-system, "Geeza Pro", "Noto Naskh Arabic",
        "Noto Sans Arabic", "Noto Sans Arabic UI", "Tahoma", Arial, sans-serif;
}

/* ===== nav.css ===== */

header {
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 24px 0;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    align-items: center;
}

.navbar-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0;
}

.navbar-item {
    display: flex;
    align-items: center;
    margin: 0 15px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-item a {
    text-decoration: none;
    color: #F5F5F7;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.3s;
}

.navbar-item a:hover {
    color: #2997FF;
}

.navbar-item span {
    text-decoration: none;
    color: #F5F5F7;
    font-size: 17px;
    font-weight: 500;
}

.navbar-title span {
    font-size: 17px;
    font-weight: 700;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-icon {
    width: 22px;
    height: 22px;
    margin-inline-end: 10px;
}

[dir="rtl"] nav ul {
    flex-direction: row-reverse;
}

.spacer {
    flex-grow: 1;
}

/* ===== footer.css ===== */

footer {
    max-width: 1024px;
    margin: 0 auto;
    padding-left: 54px;
    padding-right: 54px;
    padding-top: 54px;
    padding-bottom: 16px;
    color: #86868B;
    font-size: 12px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-spacer {
    flex-grow: 1;
}

footer a {
    color: #86868B;
    text-decoration: none;
}

.footer-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.footer-lang-label {
    white-space: nowrap;
}

.footer-lang-select {
    font: inherit;
    font-size: 12px;
    line-height: 1.25;
    color: #F5F5F7;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    min-width: 10.5rem;
}

.footer-lang-select:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-lang-select:focus {
    outline: 2px solid #2997FF;
    outline-offset: 2px;
}
