/* assets/css/style.css — Clean, modern, responsive styling */

:root {
    --bg: #f7f9fb;
    --card: #ffffff;
    --muted: #6b7280;
    --accent: #0f172a;
    --accent-2: #0ea5a5;
    --max-width: 1100px;
    --radius: 8px;
    --gap: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    color-scheme: light;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--accent);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem
}

.site-header {
    background: #1E2B30;
    border-bottom: 1px solid #e6eef6
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem
}

.site-title {
    margin: 0;
    padding: 1rem 0;
    font-size: 1.25rem;
    flex-shrink: 0;

}

.site-title a {
    color: var(--accent);
    text-decoration: none;
    color: #fff;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 2rem
}

.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center
}

.header-nav a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    color: #fff;
}

.header-nav a:hover {
    color: var(--accent-2)
}

.language-selector {
    display: flex;
    align-items: center
}

.language-selector select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e6eef6;
    border-radius: var(--radius);
    background: var(--card);
    color: var(--accent);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.2s
}

.language-selector select:hover,
.language-selector select:focus {
    border-color: var(--accent-2);
    outline: none
}

.site-nav {
    background: transparent;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05)
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.nav-pages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem
}

.nav-item a {
    color: var(--accent);
    text-decoration: none;
    padding: 0.25rem 0
}

.nav-item.active a {
    font-weight: 600;
    border-bottom: 2px solid var(--accent-2);
    padding-bottom: 0.25rem
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem
}

.lang-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem
}

.lang-item a {
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none
}

.lang-item.active a {
    color: var(--accent);
    font-weight: 600
}

.site-main {
    padding: 2rem 0
}

.lead {
    color: var(--muted);
    margin-top: 0.25rem
}

.keyboard-tester {
    margin-top: 1rem
}

.tester-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--gap)
}

.tester-panel {
    background: var(--card);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.06)
}

.tester-help {
    background: linear-gradient(180deg, #fff, #fbfdff);
    padding: 1rem;
    border-radius: var(--radius)
}

textarea#test-input {
    width: 100%;
    height: 160px;
    padding: 0.75rem;
    border: 1px solid #e6eef6;
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical
}

.detected {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem
}

.detected div {
    background: #f8fafc;
    padding: 0.5rem;
    border-radius: 6px
}

.small {
    font-size: 0.9rem;
    color: var(--muted)
}

.note {
    margin-top: 1rem
}

.guide {
    margin-top: 2rem;
    background: var(--card);
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04)
}

/* Keyboard Styles */
.keyboard {
    margin: 5px auto 0;
    width: 1264px;
    background: #000000cf;
    border-radius: 6px;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    position: relative;
    border-radius: 16px;
    direction: ltr; /* Force physical keyboard layout to remain left-to-right */
}

.key {
    border: 1px solid #fff;
    border-radius: 6px;
    color: #f6f6f6;
    display: inline-block;
    font-size: 16px;
    height: 55px;
    text-align: center;
    vertical-align: top;
    width: 55px;
    margin: 5px 3.5px;
    letter-spacing: 1.2px;
    line-height: 1.15;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.1s ease;
}

.key>p {
    margin: 18px 0 0;
}

.key.active {
    background-color: #d9d9d9;
    border-color: #35bcf1;
    color: #000;
}

.key.press {
    background-color: #35bcf1;
    border-color: #35bcf1;
    color: #000;
}

.keyboard__screen {
    background-color: #000;
    color: #35bcf1;
    font-size: 16px;
    margin: 0 0 15px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 6px 6.5px;
    position: relative;

}

.keyboard__ind_screen {
    min-height: 30px;
    width: 10000px;
    display: flex;
    gap: 7px;
    align-items: center;
}

.keyboard__ind_screen>p {
    font-size: 14px;
    border: 1px solid;
    padding: 5px 8px;
    display: inline-block;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 1px;
    border-radius: 6px;
    white-space: nowrap;
}

.keyboard__win .keyboard__ind_screen>p {
    border-radius: 6px;
}

.keys {
    padding: 0 7px;
    min-height: 430px;
}

.keyboard__bottom>p {
    background-color: #000;
    color: #fff;
    font-size: 18px;
    margin: 13px 0 0;
    padding: 5px 0;
    text-align: center;
    letter-spacing: 2px;
    border-radius: 0 0 6px 6px;
}

.keyboard__bottom span {
    color: #C5001A;
    font-weight: 700;
}

/* Key Margins */
.key.mr1 {
    margin-right: 48.5px;
}

.key.mr2 {
    margin-right: 41px;
}

.key.mr3 {
    margin-right: 10.5px;
    margin-left: 10.5px;
}

/* Key Widths */
.key.w1 {
    width: 113px;
}

.key.w2 {
    width: 87px;
}

.key.w3 {
    width: 81px;
}

.key.w4 {
    width: 107px;
}

.key.w5 {
    width: 123px;
}

.key.w6 {
    width: 136px;
}

.key.w7 {
    width: 156px;
}

.key.w8 {
    width: 74px;
}

.key.w9 {
    width: 433px;
}

/* Key Heights */
.key.h1 {
    float: right;
    height: 118px;
}

.key.fz14 {
    font-size: 14px;
}

/* Double Row Keys */
.double_row>p {
    margin: 10px 0 0;
}

.double_row_sym>p {
    margin: 6px 0 0;
}

.minus_sym>p {
    margin: 2px 0 0;
    line-height: 20px;
}

.equal_sym>p {
    line-height: 16px;
    margin: 9px 0 0;
}

.margin_for_fz14>p {
    margin: 18px 0 0;
}

.double_row_sym_center>p {
    margin: 7px 0 0;
}

.double_row_sym2>p {
    margin: 7px 0 0;
}

.double_row_sym3>p {
    margin: 9px 0 0;
    line-height: .8;
}

.num_plus>p {
    margin: 48px 0 0;
}

.key.right_side>p {
    margin: 14px 10px 0 0;
}

.key.left_side>p {
    margin: 14px 0 0 10px;
}

/* Arrow Keys */
.key.arrow svg {
    width: 20px;
    height: 11px;
    margin: 4px 0 0;
}

.arrow__left svg {
    transform: rotate(-90deg);
}

.arrow__right svg {
    transform: rotate(90deg);
}

.arrow__down svg {
    transform: rotate(180deg);
}

/* Media Keys */
.media {
    margin: 15px 7px 10px;
    display: flex;
    flex-wrap: wrap;
}

.media .key {
    width: 48px;
    height: 38px;
    border-radius: 16px;
}

.media_1 svg {
    height: 18px;
}

.media_1>p {
    margin: 8px 0 0;
}

.media_2 svg {
    height: 13px;
}

.media_2>p {
    margin: 9px 0 0;
}

.key.fn {
    width: 80px;
    margin-right: 50.5px;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.inline-flex {
    display: inline-flex;
    flex-wrap: wrap;
}

.contextmenu>p {
    margin: 13px 0 0;
}

.key path {
    fill: #fff;
}

.key.active path,
.key.press path {
    fill: #000;
}

.key line,
.key path {
    transition: all 0.1s ease;
}

.key.active line,
.key.press line {
    stroke: #000;
}

.key line {
    stroke: #fff;
}

/* Responsive Keyboard */
@media (max-width: 1280px) {
    .keyboard {
        width: 1000px;
        border-radius: 16px;
    }

    .key {
        width: 41px;
        height: 41px;
        font-size: 12px;
    }

    .key>p {
        margin: 14px 0 0 1px;
    }

    .keys {
        padding: 0 10px;
        min-height: 366px;
    }

    .key.mr1 {
        margin-right: 37px;
    }

    .key.w1 {
        width: 93px;
    }

    .key.w2 {
        width: 66px;
    }

    .key.w3 {
        width: 68px;
    }

    .key.w4 {
        width: 84px;
    }

    .key.w5 {
        width: 98px;
    }

    .key.w6 {
        width: 109px;
    }

    .key.w7 {
        width: 121px;
    }

    .key.w8 {
        width: 60px;
    }

    .key.w9 {
        width: 315px;
    }
}

/* Dynamic Table of Contents */
#toc {
    background: linear-gradient(135deg, rgba(14, 165, 165, 0.08) 0%, rgba(14, 165, 165, 0.04) 100%);
    border: 1px solid rgba(14, 165, 165, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 16px rgba(14, 165, 165, 0.06);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list>li {
    margin: 0.5rem 0;
}

.toc-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--accent);
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.toc-list a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(14, 165, 165, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.toc-list a>* {
    position: relative;
    z-index: 1;
}

.toc-list a:hover {
    background: linear-gradient(90deg, rgba(14, 165, 165, 0.12) 0%, rgba(14, 165, 165, 0.04) 100%);
    border-left-color: var(--accent-2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(14, 165, 165, 0.1);
}

.toc-list a:hover::before {
    opacity: 1;
}

.toc-list a.active {
    background: linear-gradient(90deg, rgba(14, 165, 165, 0.18) 0%, rgba(14, 165, 165, 0.08) 100%);
    color: var(--accent-2);
    border-left-color: var(--accent-2);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(14, 165, 165, 0.12);
}

.toc-sublist {
    list-style: none;
    padding-left: 1rem;
    margin: 0.5rem 0;
    border-left: 2px solid rgba(14, 165, 165, 0.15);
}

.toc-sublist li {
    margin: 0.35rem 0;
}

.toc-sublist a {
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 400;
}

.toc-sublist a.active {
    background: linear-gradient(90deg, rgba(14, 165, 165, 0.15) 0%, rgba(14, 165, 165, 0.05) 100%);
}

/* Responsive TOC */
@media (max-width: 1100px) {
    #toc {
        margin-bottom: 1.5rem;
        padding: 1rem;
    }

    .toc-list a {
        padding: 0.65rem 0.85rem;
    }
}

@media (max-width: 700px) {
    #toc {
        padding: 1rem;
        border-radius: 8px;
    }

    .toc-list a {
        padding: 0.6rem 0.7rem;
        font-size: 0.95rem;
    }

    .toc-sublist {
        padding-left: 0.75rem;
    }
}

.article-hero {
    margin: 1.5rem 0 1.5rem 0;
    text-align: center
}

.article-hero img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.05)
}

.article-meta {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem
}

.blog-article header h2 {
    margin: 0;
    color: var(--accent);
    font-size: 1.6rem
}

.blog-article .article-content {
    margin-top: 0.8rem;
    line-height: 1.85;
    color: var(--muted);
    font-size: 1rem;
    max-width: 900px
}

.blog-article .article-content p {
    margin: 0 0 1rem 0
}

.blog-article .article-content h3 {
    margin-top: 1rem
}

.blog-article .article-content blockquote {
    border-left: 4px solid rgba(14, 165, 165, 0.12);
    padding: 0.5rem 1rem;
    color: var(--accent);
    background: linear-gradient(90deg, rgba(14, 165, 165, 0.02), rgba(0, 0, 0, 0));
    border-radius: 6px
}

.blog-article .article-content pre {
    background: #0b1220;
    color: #fff;
    padding: 0.9rem;
    border-radius: 6px;
    overflow: auto
}

.blog-article .article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.04);
    margin: 0.8rem 0
}

@media (max-width:900px) {
    .article-hero img {
        max-height: 360px
    }

    .blog-article .article-content {
        padding-right: 0;
        padding-left: 0
    }
}

@media (max-width:700px) {
    .article-hero {
        margin: 1rem 0
    }

    .article-hero img {
        border-radius: 8px
    }
}


@media (max-width:900px) {}

.guide h3 {
    margin-top: 0;
    margin-bottom: 0.5rem
}

.guide h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem
}

.guide h5 {
    margin-top: 0.6rem;
    margin-bottom: 0.35rem;
    font-weight: 600
}

.guide p {
    color: var(--muted);
    line-height: 1.65
}

.guide ul,
.guide ol {
    margin-left: 1.25rem;
    margin-bottom: 0.75rem
}

@media (max-width:900px) {
    .guide {
        padding: 1rem
    }
}

.posts .post-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem
}

.post-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start
}

.post-thumb {
    flex: 0 0 220px
}

.post-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.04)
}

.post-body {
    flex: 1
}

.post-body h3 {
    margin: 0 0 0.25rem 0
}

.post-body time {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem
}

@media (max-width:700px) {
    .post-item {
        flex-direction: column
    }

    .post-thumb {
        flex: 1 1 auto
    }

    .post-thumb img {
        height: auto
    }
}

.post-item {
    background: var(--card);
    padding: 1rem;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(2, 6, 23, 0.04)
}

.post-item h3 {
    margin: 0 0 0.25rem 0
}

.site-footer {
    padding: 3rem 0 1.5rem 0;
    margin-top: 3rem;
    background: linear-gradient(180deg,
            rgba(15, 23, 42, 0.04) 0%,
            rgba(14, 165, 165, 0.02) 50%,
            rgba(15, 23, 42, 0.02) 100%);
    border-top: 1px solid rgba(14, 165, 165, 0.1);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(14, 165, 165, 0.3),
            transparent);
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Brand Column */
.footer-brand-col {
    grid-column: 1;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-brand-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg,
            var(--accent) 0%,
            rgba(14, 165, 165, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.footer-brand-title a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.footer-brand-title a:hover {
    filter: brightness(1.1);
}

.footer-brand-desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.9;
}

/* Social Group */
.footer-social-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.footer-social-label {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--muted);
}

.social-list {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.social-list.social-list-icons {
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--accent);
    text-decoration: none;
    padding: 0;
    border-radius: 8px;
    background: linear-gradient(135deg,
            rgba(14, 165, 165, 0.08) 0%,
            rgba(14, 165, 165, 0.04) 100%);
    border: 1px solid rgba(14, 165, 165, 0.12);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 100%);
    pointer-events: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.95;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.social-link:hover {
    background: linear-gradient(135deg,
            rgba(14, 165, 165, 0.15) 0%,
            rgba(14, 165, 165, 0.08) 100%);
    border-color: rgba(14, 165, 165, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(14, 165, 165, 0.12);
}

/* Columns Title */
.footer-col-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(14, 165, 165, 0.3),
            transparent);
    border-radius: 1px;
}

/* Quick Links */
.footer-links-col {
    grid-column: auto;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -1.25rem;
    opacity: 0;
    transition: all 0.2s ease;
    width: 1rem;
}

.footer-links a:hover {
    color: var(--accent);
    background: rgba(14, 165, 165, 0.06);
    padding-left: 1rem;
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Languages */
.footer-lang-col {
    grid-column: auto;
}

.footer-lang-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.footer-lang-link {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(14, 165, 165, 0.06);
    border: 1px solid rgba(14, 165, 165, 0.12);
    white-space: nowrap;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.footer-lang-link:hover {
    background: linear-gradient(135deg,
            rgba(14, 165, 165, 0.12) 0%,
            rgba(14, 165, 165, 0.08) 100%);
    color: var(--accent);
    border-color: rgba(14, 165, 165, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 165, 0.08);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(14, 165, 165, 0.08);
    padding: 1.5rem 0 0 0;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-copy {
    color: var(--muted);
    margin: 0;
    font-size: 0.9rem;
    text-align: center;
    opacity: 0.85;
}

/* Footer Responsive */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .site-footer {
        padding: 2rem 0 1rem 0;
        margin-top: 2rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-brand-col {
        grid-column: 1;
    }

    .footer-col-title::after {
        display: none;
    }

    .footer-col-title {
        padding-bottom: 0.5rem;
    }

    .footer-links,
    .footer-lang-list {
        margin-top: 0.5rem;
    }

    .footer-lang-link {
        padding: 0.35rem 0.7rem;
        font-size: 0.85rem;
    }
}

/* Article Table of Contents */
html {
    scroll-behavior: smooth;
}

.article-toc {
    background: linear-gradient(135deg, rgba(14, 165, 165, 0.08) 0%, rgba(14, 165, 165, 0.04) 100%);
    border: 1px solid rgba(14, 165, 165, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 16px rgba(14, 165, 165, 0.06);
}

.toc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid rgba(14, 165, 165, 0.2);
    padding-bottom: 1rem;
}

.toc-header h3 {
    margin: 0;
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toc-item {
    margin: 0;
}

.toc-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--accent);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.toc-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(14, 165, 165, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.toc-link>* {
    position: relative;
    z-index: 1;
}

.toc-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-2) 0%, rgba(14, 165, 165, 0.8) 100%);
    color: white;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.toc-text {
    color: var(--accent);
    font-weight: 500;
    transition: all 0.3s ease;
}

.toc-link:hover {
    background: linear-gradient(90deg, rgba(14, 165, 165, 0.12) 0%, rgba(14, 165, 165, 0.04) 100%);
    border-left-color: var(--accent-2);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(14, 165, 165, 0.1);
}

.toc-link:hover::before {
    opacity: 1;
}

.toc-link:hover .toc-text {
    color: var(--accent-2);
}

.toc-link:active {
    transform: translateX(2px);
}

/* Responsive table of contents */
@media (max-width: 900px) {
    .article-toc {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .toc-link {
        padding: 0.6rem 0.85rem;
        gap: 0.75rem;
    }

    .toc-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

@media (max-width: 700px) {
    .article-toc {
        padding: 1rem;
    }

    .toc-header h3 {
        font-size: 1rem;
    }

    .toc-link {
        padding: 0.55rem 0.75rem;
        gap: 0.6rem;
    }

    .toc-number {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }

    .toc-text {
        font-size: 0.95rem;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0
}

/* Responsive */

/* Wide tablets and small desktops */
@media (max-width:1100px) {
    .container {
        padding: 0.75rem
    }

    .tester-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem
    }
}

/* Tablets and small screens */
@media (max-width:900px) {
    .tester-grid {
        grid-template-columns: 1fr
    }

    .nav-inner {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start
    }

    .site-title {
        font-size: 1.1rem
    }

    .header-top {
        flex-wrap: wrap
    }

    .header-controls {
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%
    }

    .header-nav ul {
        gap: 1rem
    }
}

/* Phones */
@media (max-width:700px) {
    .tester-panel {
        padding: 0.9rem;
        border-radius: 6px
    }

    textarea#test-input {
        height: 130px
    }

    .detected {
        grid-template-columns: 1fr;
        gap: 0.4rem
    }

    .footer-inner {
        flex-direction: column;
        gap: 1rem
    }

    .footer-col-right {
        align-items: flex-start;
        text-align: left
    }

    .footer-right-links {
        text-align: left
    }

    .footer-lang {
        flex-wrap: wrap
    }

    .social-link {
        padding: 0.35rem
    }

    .site-title {
        font-size: 1rem
    }
}

/* ========== ENHANCED KEYBOARD STYLES ========== */

@font-face {
    font-family: HelveticaNeueCyr;
    font-style: normal;
    font-weight: 100;
    src: url(HelveticaNeueCyr-Thin.otf);
}

.block {
    display: block;
}

body {
    font-weight: 100;
    font-family: HelveticaNeueCyr, Arial, sans-serif;
    text-transform: capitalize;
}

.modifiers {
    display: flex;
    flex-wrap: wrap;
}

.header {
    overflow: visible;
    padding-bottom: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.keyboard.mac_active_tab {
    margin-bottom: 58px;
}

.key {
    border: 1px solid #fff;
    border-radius: 6px;
    color: #f6f6f6;
    display: inline-block;
    font-size: 16px;
    height: 55px;
    text-align: center;
    vertical-align: top;
    width: 55px;
    margin: 5px 3.5px;
    letter-spacing: 1.2px;
    line-height: 1.15;
    box-sizing: border-box;
}

.key>p {
    margin: 18px 0 0;
}

.keyboard {
    margin: 5px auto 0;
    width: 1264px;
    background: #1E2B30;
    border-radius: 6px;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    position: relative;
    border-radius: 16px;
}

.bottom-block,
.top-block {
    width: 1264px;
    margin: 20px auto;
    padding: 0;
    text-align: center;
}

.bottom-block {
    margin-bottom: 0;
}

/* Key Margins */
.key.mr1 {
    margin-right: 48.5px;
}

.key.mr2 {
    margin-right: 41px;
}

.key.mr3 {
    margin-right: 10.5px;
    margin-left: 10.5px;
}

.key.mr4 {
    margin-right: 4px;
    margin-left: 4px;
}

.key.mr5 {
    margin-right: 66px;
}

.key.mr6 {
    margin-right: 66.5px;
}

/* Key Widths */
.key.w1 {
    width: 113px;
}

.key.w2 {
    width: 87px;
}

.key.w3 {
    width: 81px;
}

.key.w4 {
    width: 107px;
}

.key.w5 {
    width: 123px;
}

.key.w6 {
    width: 136px;
}

.key.w7 {
    width: 156px;
}

.key.w8 {
    width: 74px;
}

.key.w9 {
    width: 433px;
}

.key.w10 {
    width: 117px;
}

.key.w11 {
    width: 100px;
}

.key.w12 {
    width: 115px;
}

.key.w13 {
    width: 134px;
}

.key.w14 {
    width: 73px;
}

.key.w15 {
    width: 99px;
}

.key.w16 {
    width: 391px;
}

/* Key Heights */
.key.h1 {
    float: right;
    height: 118px;
}

.key.h2 {
    height: 118px;
}

.keytab {
    margin-right: 8.5px;
}

/* Mouse Buttons */
.key.mousebutton {
    width: 95px;
    border-radius: 0;
    height: 35px;
    margin-top: 20px;
}

.key.mouseleft {
    border-radius: 0 0 0 10px;
    margin-left: 347px;
}

.key.mouseright {
    border-radius: 0 0 10px 0;
    margin-right: 307px;
}

.key.mousethird {
    width: 13px;
}

/* Font Sizes */
.key.fz14 {
    font-size: 14px;
}

.key.fz18 {
    font-size: 18px;
}

.key.fz20 {
    font-size: 20px;
}

/* Keyboard Screen */
.keyboard__screen {
    background-color: #000;
    color: #35bcf1;
    font-size: 16px;
    margin: 0 0 15px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 6px 6.5px;
    position: relative;
    border-radius: 16px;
}

.keyboard__ind_screen {
    min-height: 30px;
    width: 10000px;
}

.keyboard__ind_screen>p {
    font-size: 14px;
    border: 1px solid;
    padding: 5px 8px;
    display: inline-block;
    margin: 0 7px;
    box-sizing: border-box;
    text-align: center;
    letter-spacing: 1px;
}

.keyboard__win .keyboard__ind_screen>p {
    border-radius: 16px;
}

.keyboard__mac .keyboard__ind_screen>p {
    border-radius: 16px;
    min-width: 28px;
}

.tab svg {
    height: 30px;
    width: 30px;
}

.keyboard__tab_content>div {
    display: none;
}

.keyboard__tab_content>div.active {
    display: block;
}

.keys {
    padding: 0 7px;
    min-height: 430px;
}

.contextmenu__img>span {
    border-bottom: 1px solid #fff;
    display: block;
    margin: 5px 3px 0;
}

.fz14-hcenter>p {
    margin: 17px 0 0;
}

.fz18-hcenter>p {
    margin: 15px 0 0;
}

.contextmenu__img {
    border: 1px solid #fff;
    height: 25px;
    margin: 12px auto 0;
    width: 25px;
}

.keyboard__bottom>p {
    background-color: #000;
    color: #fff;
    font-size: 18px;
    margin: 13px 0 0;
    padding: 5px 0;
    text-align: center;
    letter-spacing: 2px;
    border-radius: 0 0 6px 6px;
}

.footer {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-style: normal;
    font-weight: 100;
    background-color: #000;
    margin: 0;
    padding: 0;
    overflow-y: auto;
}

.fcontent {
    color: #fff;
    margin: 0 auto;
    padding: 0 0 20px;
    width: 1234px;
    letter-spacing: 2px;
}

h1 {
    font-size: 18px;
    margin: 0;
    padding: 25px 0;
}

/* Active and Press States */
.key.active {
    background-color: #d9d9d9;
    border-color: #35bcf1;
    color: #000;
}

.key.active line,
.key.active path,
.key.press path {
    fill: #000;
}

.key.press {
    background-color: #35bcf1;
    border-color: #35bcf1;
    color: #000;
}

.fdesc {
    font-size: 16px;
    margin: 0 0 15px;
}

.ftext>span {
    display: inline-block;
    font-size: 16px;
    margin: 16px 0 0 16px;
}

.ftext .key {
    height: 40px;
    width: 40px;
}

.ftext .key>p {
    margin-top: 8px;
}

.active.contextmenu .contextmenu__img,
.active.contextmenu span,
.press.contextmenu .contextmenu__img,
.press.contextmenu span {
    border-color: #000;
}

.keyboard__mac .key {
    border-radius: 27.5px;
}

.keyboard__mac .mr3 {
    margin-right: 8.5px;
    margin-left: 8.5px;
}

/* Quest Block */
.quest-block {
    background: #000 none repeat scroll 0 0;
    color: #fff;
    position: fixed;
    width: 100%;
    z-index: 9;
}

.quest-block>p {
    letter-spacing: 1px;
    margin: 13px auto;
    text-align: center;
    width: 1264px;
}

.quest-block a {
    color: #fff;
    letter-spacing: 1px;
    margin: 0 22px;
}

.quest-block a:hover {
    text-decoration: none;
}

.question__answer {
    font-size: 14px;
    margin: 0 0 0 20px;
}

.question__text {
    font-size: 18px;
}

.question {
    margin: 50px 0;
}

.footer h1,
.footer p {
    line-height: 1.4;
}

/* Side Paddings for text */
.right_side>p {
    margin-right: 15px;
    margin-top: 18px;
    margin-bottom: 0;
    margin-left: 0;
    text-align: right;
}

.keyboard__win .right_side.backslash>p {
    margin-top: 8px;
}

.keyboard__mac .backslash>p {
    margin-top: 9px;
}

.left_side>p {
    margin-right: 0;
    margin-top: 18px;
    margin-bottom: 0;
    margin-left: 17px;
    text-align: left;
}

.key path {
    fill: #fff;
}

.enter div {
    display: inline-block;
    width: 15px;
    margin: 6px 7px 0 0;
}

.enter span {
    margin: -18px 0 0 0;
    display: inline-block;
    font-size: 13px;
}

.win svg {
    width: 25px;
    height: 25px;
}

/* Arrow Keys */
.key.arrow svg {
    width: 20px;
    height: 11px;
    margin: 4px 0 0;
}

.arrow__left svg {
    transform: rotate(-90deg);
}

.arrow__right svg {
    transform: rotate(90deg);
}

.arrow__down svg {
    transform: rotate(180deg);
}

/* Double Row Keys */
.double_row>p {
    margin: 10px 0 0;
}

.double_row_sym>p {
    margin: 6px 0 0;
}

.minus_sym>p {
    margin: 2px 0 0;
    line-height: 20px;
}

.equal_sym>p {
    line-height: 16px;
    margin: 9px 0 0;
}

.margin_for_fz14>p {
    margin: 18px 0 0;
}

.num_division>p {
    margin: 18px 0 0;
}

.num_multiply>p {
    margin: 18px 0 0;
    font-size: 20px;
}

.num_minus>p {
    font-size: 22px;
    margin: 12px 0 0;
}

.num_sym>p {
    margin: 17px 0 0;
}

.num_sym2>p {
    margin: 22px 0 0;
}

.num_sym3>p {
    margin: 6px 0 0;
    font-size: 24px;
}

.double_row_sym_center>p {
    margin: 7px 0 0;
}

.num_plus>p {
    margin: 48px 0 0;
}

.double_row_sym2>p {
    margin: 7px 0 0;
}

.double_row_sym4>p {
    margin: 10px 0 0;
}

.double_row_sym5>p {
    margin: 13px 0 0;
    line-height: .8;
}

.double_row_sym6>p {
    margin: 9px 0 0;
}

.double_row_sym3>p {
    margin: 9px 0 0;
    line-height: .8;
}

.num_enter>p {
    margin: 50px 0 0;
}

.win>p {
    margin: 13px 0 0;
}

.contextmenu>p {
    margin: 13px 0 0;
}

.num0>p {
    margin: 17px 0 0;
}

.num_dot>p {
    margin: 8px 0 0;
    font-size: 22px;
}

.key.arrow_up>p {
    margin: 16px 0 0;
}

.key.arrow__left>p {
    margin: 17px 2px 0 0;
}

.key.arrow__right>p {
    margin: 17px -2px 0 0;
}

.key.arrow__down>p {
    margin: 19px 0 0;
}

.key line {
    stroke: #fff;
}

.key.active line,
.key.press line {
    stroke: #000;
}

.tab path {
    fill: #fff;
}

.keyboard__top {
    text-align: center;
    margin-bottom: -1px;
}

.tab {
    display: inline-block;
}

.tab__wrapper {
    padding: 15px 70px;
    border-radius: 6px 6px 0 0;
    display: inline-block;
}

.tab__wrapper.active:hover {
    background-color: #000;
}

/* Cookie Consent */
.cookie {
    background: #35bcf1;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0;
}

.cookie.hide {
    display: none;
}

.cookie__text {
    margin: 20px 45px;
    font-size: 15px;
    font-family: Roboto, Arial, sans-serif;
    text-align: center;
    color: #000;
}

.cookie__ok {
    background: #0a9472;
    border-radius: 6px;
    border: 0;
    padding: 7px 33px;
    cursor: pointer;
    margin-left: 3%;
    color: #fff;
}

/* Footer Links */
.footer__link_wrapper {
    text-align: right;
}

.footer__link {
    font-size: 12px;
    color: #fff;
    text-decoration: none;
}

.footer__links {
    margin: 20px 0;
}

a.cookie__privacy {
    color: #000;
}

.key.h1.num_plus {
    margin: 5px 3.5px 0;
}

/* Privacy Page */
.privacy_page .content {
    background: rgba(0, 0, 0, .7);
    border-radius: 5px;
    margin: 40px auto 0;
    backdrop-filter: saturate(180%) blur(20px);
}

.content__top a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
}

.content__top svg {
    stroke: #fff;
    transform: rotate(-90deg);
    margin-right: 17px;
}

.content__top {
    padding: 20px;
}

h5.privacy__header {
    font-size: 12px;
    text-align: center;
    background: #000;
    margin: 0;
    padding: 10px 0;
    border-top: 2px solid#35bcf1;
}

.privacy a {
    color: #35bcf1;
}

.content__main.privacy {
    padding: 0 20px;
}

.content__main.privacy h6,
.content__main.privacy li,
.content__main.privacy p {
    font-size: 12px;
}

.cookie__text a {
    color: #000;
}

/* Tab Outradius */
.tab__outradius_left,
.tab__outradius_right {
    display: inline-block;
    vertical-align: bottom;
    line-height: 0;
}

.tab__outradius_right svg {
    transform: rotate(90deg);
}

.tab__outradius_left svg,
.tab__outradius_right svg {
    width: 6px;
    height: 6px;
}

.tab__outradius_left path,
.tab__outradius_right path {
    fill: transparent;
}

.tab:hover .tab__wrapper {
    background-color: #101010;
}

.active>.tab__outradius_left path,
.active>.tab__outradius_right path {
    fill: #000;
}

.tab__win {
    margin-right: -12px;
}

.tab.active {
    z-index: 1;
    position: relative;
}

.tab.active .tab__wrapper {
    background: #000;
}

.tab:hover .tab__outradius_left path,
.tab:hover .tab__outradius_right path {
    fill: #101010;
}

.tab.active:hover .tab__outradius_left path,
.tab.active:hover .tab__outradius_right path {
    fill: #000;
}

/* External Integration */
.extIntegration {
    position: absolute;
    right: 5px;
    top: 19px;
}

.extIntegration__item {
    margin-right: 15px;
    display: inline-block;
}

.extIntegration__item img {
    width: 24px;
    border: 0;
}

/* MacOS Specific Styles */
.keyboard__mac .del.backspace svg {
    transform: rotate(0);
    margin-left: 0;
}

.keyboard__mac .del svg {
    width: 18px;
    height: 15px;
    transform: rotate(180deg);
    margin-left: 4px;
}

.keyboard__mac .del path {
    fill: transparent;
    stroke: #fff;
}

.keyboard__mac .del.active path,
.keyboard__mac .del.press path {
    stroke: #000;
}

.clear svg {
    width: 15px;
    height: 15px;
}

.clear path,
.clear rect {
    stroke: #fff;
}

.key.active.clear path,
.key.press.clear path {
    stroke: #000;
}

.homeend svg {
    width: 17px;
    height: 17px;
}

.homeend.home svg {
    transform: rotate(-90deg);
}

.homeend.end svg {
    transform: rotate(90deg);
}

.keytab svg {
    width: 22px;
    height: 16px;
}

.keytab>p {
    text-align: left;
    margin: 28px 0 0 19px;
}

.keyboard__mac .pgupdw svg {
    width: 15px;
    height: 17px;
}

.keyboard__mac .pgdw svg {
    transform: rotate(180deg);
}

.key.caps svg {
    width: 16px;
    height: 21px;
}

.key.caps rect {
    stroke: #fff;
}

.key.active rect,
.key.press rect {
    stroke: #000;
}

.caps>p {
    text-align: left;
    margin: 22px 0 0 20px;
}

.keyboard__mac .enter svg {
    width: 14px;
    height: 12px;
}

.keyboard__mac .enter {
    position: absolute;
    right: 327px;
}

.keyboard__mac .rshift svg,
.keyboard__mac .shift svg {
    width: 16px;
    height: 16px;
}

.keyboard__mac .shift>p {
    text-align: left;
    margin: 27px 0 0 20px;
}

.keyboard__mac .rshift>p {
    text-align: right;
    margin: 27px 22px 0 0;
}

.keyboard__mac .enternum svg {
    width: 10px;
    height: 8px;
}

.keyboard__mac .enternum {
    float: right;
}

.keyboard__mac .key.syst p {
    font-size: 14px;
    margin: 25px 0 0;
}

.keyboard__mac .key.mouseright {
    margin-right: 309.5px;
    border-radius: 0 0 10px;
}

.keyboard__mac .key.mouseleft {
    border-radius: 0 0 0 10px;
}

.keyboard__mac .key.mousethird {
    border-radius: 0;
}

.keyboard__mac .enternum>p {
    margin: 86px 0 0;
}

.keyboard__mac .enter p {
    text-align: right;
    margin: 31px 15px 0 0;
}

/* Media Keys */
.media rect {
    stroke: #fff;
}

.media .stroke path {
    fill: transparent;
    stroke: #fff;
}

.media .stroke.active path,
.media .stroke.press path {
    stroke: #000;
}

.mirror svg {
    transform: scale(-1, 1);
}

.media .key {
    width: 48px;
    height: 38px;
    border-radius: 16px;
}

.media_1 svg {
    height: 18px;
}

.media_1>p {
    margin: 8px 0 0;
}

.media_2 svg {
    height: 13px;
}

.media_2>p {
    margin: 9px 0 0;
}

.media_3 svg {
    height: 22px;
}

.media_3>p {
    margin: 7px 0 0;
}

.media_4 svg {
    height: 19px;
}

.media_4>p {
    margin: 8px 0 0;
}

.media_5 svg {
    height: 19px;
}

.media_5>p {
    margin: 9px 0 0;
}

.media_6 svg {
    height: 21px;
}

.media_6>p {
    margin: 7px 0 0;
}

.media .key.fn {
    width: 80px;
    margin-right: 50.5px;
}

.flex {
    display: flex;
}

.inline-flex {
    display: inline-flex;
}

.media .key.fn span {
    margin: 0 0 0 4px;
}

.media .key.fn svg {
    margin: 0 9px 0 0;
    width: 20px;
}

.media .key.fn div {
    float: right;
}

.media {
    margin: 15px 7px 10px;
}

.keyboard__ind_screen>p:first-child {
    font-weight: 900;
    border-width: 2px;
}

.keyboard__bottom span {
    color: #C5001A;
    font-weight: 700;
}

.ftext.fn .key {
    width: 83px;
    position: relative;
    text-align: left;
}

.ftext.fn .key>p {
    padding: 0 0 0 12px;
    margin-top: 9px;
}

.ftext.fn span {
    max-width: 1080px;
}

.key.clear>p,
.key.del>p {
    margin: 19px 0 0;
}

.footer__keyimg {
    float: right;
    margin: 2px 9px 0 0;
}

.footer__keytext {
    display: inline-block;
}

.footer__keytext {
    display: inline-block;
    margin: 8px 0 0 11px;
    vertical-align: bottom;
}

.footer__icon {
    display: inline-block;
}

.footer__icon svg {
    width: 18px;
    height: 16px;
}

/* MacOS Specific Adjustments */
.macos .key>p {
    margin-top: 20px;
    margin-left: 2px;
}

.macos .double_row_sym>p {
    margin-top: 8px;
}

.macos .minus_sym>p {
    margin-top: 6px;
}

.macos .equal_sym>p {
    margin-top: 13px;
}

.macos .key.del>p {
    margin-left: 3px;
}

.macos .key.backspace>p {
    margin-left: 0;
}

.macos .key.pgupdw>p {
    margin-left: 0;
    margin-top: 18px;
}

.macos .key.clear>p {
    margin-left: 0;
}

.macos .num_sym>p {
    margin-top: 18px;
}

.macos .num_sym2>p {
    margin-top: 24px;
}

.macos .num_minus>p {
    margin-top: 16px;
}

.macos .keyboard__mac .enternum>p {
    margin-top: 86px;
}

.macos .num_sym3>p {
    margin-top: 9px;
}

.macos .key.homeend>p {
    margin-top: 20px;
    margin-left: 0;
}

.macos .key.arrow_up>p {
    margin-top: 16px;
    margin-left: 1px;
}

.macos .key.arrow__left>p {
    margin-top: 17px;
    margin-left: -1px;
}

.macos .key.arrow__down>p {
    margin-top: 19px;
    margin-left: 0;
}

.macos .key.arrow__right>p {
    margin-top: 17px;
    margin-left: 0;
}

.macos .keyboard__mac .key.syst p {
    margin-top: 28px;
}

.macos .double_row_sym_center>p {
    margin-top: 10px;
}

.macos .double_row_sym4>p {
    margin-top: 11px;
}

.macos .keyboard__mac .backslash>p {
    margin-top: 10px;
}

.macos .double_row_sym5>p {
    margin-top: 15px;
}

.macos .double_row_sym6>p {
    margin-top: 11px;
}

.macos .keyboard__mac .enter>p {
    margin-top: 34px;
}

.macos .keyboard__mac .rshift>p {
    margin-top: 27px;
    margin-right: 18px;
}

.macos .keytab>p {
    margin-top: 28px;
    margin-left: 18px;
}

.macos .caps>p {
    margin-top: 22px;
    margin-left: 18px;
}

.macos .keyboard__mac .shift>p {
    margin-top: 27px;
    margin-left: 18px;
}

.macos .keyboard__ind_screen>p {
    padding-top: 7px;
    padding-left: 9px;
}

.macos .media_1>p {
    margin-top: 9px;
}

.macos .media .key.fn span {
    margin: 0 0 0 4px;
    padding: 2px 0 0 0;
    display: inline-block;
}

.macos .media_2>p {
    margin-top: 12px;
    margin-left: 0;
}

.macos .media_3>p {
    margin-top: 7px;
    margin-left: 0;
}

.macos .media_4>p {
    margin-top: 8px;
    margin-left: 0;
}

.macos .media_5>p {
    margin-top: 9px;
    margin-left: 0;
}

.macos .media_6>p {
    margin-top: 8px;
    margin-left: 0;
}

.macos .double_row>p {
    margin-top: 13px;
}

.macos .num_dot>p {
    margin-top: 11px;
}

.macos .num_plus>p {
    margin-top: 50px;
}

.macos .num_enter>p {
    margin-top: 52px;
}

.macos .right_side>p {
    margin-top: 21px;
}

.macos .keyboard__win .right_side.backslash>p {
    margin-top: 11px;
}

.macos .contextmenu>p {
    margin-top: 14px;
}

.macos .win>p {
    margin-top: 14px;
}

.macos .left_side>p {
    margin-top: 21px;
    margin-left: 17px;
}

.macos .double_row_sym2>p {
    margin-top: 10px;
}

.macos .double_row_sym3>p {
    margin-top: 14px;
}

/* Cookie Consent Root (body modifications) */
body div.fc-consent-root {
    height: auto !important;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    bottom: 0 !important;
    right: 0 !important;
}

body .fc-consent-root .fc-dialog-overlay {
    width: auto !important;
}

/* Media Queries */
@media (max-width: 1280px) {

    .fcontent,
    .keyboard {
        width: 1000px;
        border-radius: 16px;
    }

    .key {
        width: 41px;
        height: 41px;
        font-size: 12px;
    }

    .key>p {
        margin: 14px 0 0 1px;
    }

    .keys {
        padding: 0 10px;
        min-height: 366px;
    }

    .key.fz14 {
        font-size: 10px;
    }

    .key.double_row>p {
        margin: 8px 0 0;
    }

    .key.mr1 {
        margin-right: 37px;
    }

    .key.mr2 {
        margin-right: 37px;
    }

    .key.double_row_sym>p {
        margin: 6px 0 0;
    }

    .key.minus_sym>p {
        margin: 2px 0 0;
        line-height: 15px;
    }

    .key.equal_sym>p {
        line-height: 11px;
        margin: 9px 0 0;
    }

    .key.double_row_sym_center>p {
        margin: 6px 0 0;
    }

    .key.num_multiply>p {
        margin: 11px 0 0;
        font-size: 16px;
    }

    .key.h1.num_enter,
    .key.h1.num_plus {
        margin: 5px 5px 0 3.5px;
    }

    .key.num_minus>p {
        font-size: 22px;
        margin: 5px 0 0;
    }

    .key.double_row_sym2>p {
        margin: 7px 0 0;
    }

    .key.double_row_sym3>p {
        margin: 9px 0 0;
        line-height: .8;
    }

    .key.num_enter>p {
        margin: 38px 0 0;
    }

    .key.num_plus>p {
        margin: 37px 0 0;
    }

    .key.win>p {
        margin: 9px 0 0;
    }

    .win svg {
        width: 20px;
        height: 20px;
    }

    .contextmenu>p {
        margin: 7px 0 0;
    }

    .contextmenu__img {
        height: 20px;
        margin: 9px auto 0;
        width: 20px;
    }

    .contextmenu__img>span {
        margin: 4px 3px 0;
    }

    .key.arrow_up>p {
        margin: 12px 0 0;
    }

    .key.arrow svg {
        width: 14px;
        height: 7px;
    }

    .num_dot>p {
        margin: 1px 0 0;
    }

    .key.mouseleft {
        margin-left: 258px;
    }

    .key.mouseright {
        margin-right: 208px;
    }

    .key.arrow__left>p {
        margin: 11px 2px 0 0;
    }

    .key.arrow__right>p {
        margin: 11px -2px 0 0;
    }

    .key.arrow__down>p {
        margin: 13px 0 0;
    }

    .key.right_side>p {
        margin: 14px 10px 0 0;
    }

    .key.left_side>p {
        margin: 14px 0 0 10px;
    }

    .key.w1 {
        width: 93px;
    }

    .key.w2 {
        width: 66px;
    }

    .key.w3 {
        width: 68px;
    }

    .key.w4 {
        width: 84px;
    }

    .key.w5 {
        width: 98px;
    }

    .key.w6 {
        width: 109px;
    }

    .key.w7 {
        width: 121px;
    }

    .key.w8 {
        width: 60px;
    }

    .key.w9 {
        width: 315px;
    }

    .key.w10 {
        width: 89px;
    }

    .key.w11 {
        width: 73px;
    }

    .key.w12 {
        width: 88px;
    }

    .key.w13 {
        width: 105px;
    }

    .key.w14 {
        width: 56px;
    }

    .key.w15 {
        width: 79px;
    }

    .key.w16 {
        width: 289px;
    }

    .keyboard__mac .del svg {
        margin-left: 0;
    }

    .key.h1,
    .key.h2 {
        height: 92px;
    }

    .key.enternum.h2 {
        margin-right: 13px;
    }

    .media_1>p {
        margin: 8px 0 0;
    }

    .media_1 svg {
        height: 14px;
        width: 15px;
    }

    .media .key.fn span {
        margin: 1px 0 0 4px;
        display: inline-block;
    }

    .media {
        margin: 15px 12px 10px;
    }

    .media .key {
        width: 38px;
        height: 31px;
    }

    .media .key.fn {
        width: 72px;
        margin-right: 30px;
    }

    .media_2 svg {
        height: 10px;
    }

    .media_2>p {
        margin: 10px 0 0;
    }

    .media_3>p {
        margin: 6px 0 0;
    }

    .media_3 svg {
        height: 17px;
    }

    .key.mr6 {
        margin-right: 33px;
    }

    .media_4>p {
        margin: 7px 0 0;
    }

    .media_4 svg {
        height: 15px;
    }

    .media_5>p {
        margin: 7px 0 0;
    }

    .media_5 svg {
        height: 16px;
    }

    .media_6>p {
        margin: 6px 0 0;
    }

    .media_6 svg {
        height: 16px;
    }

    .ftext.fn span {
        max-width: 860px;
    }

    .ftext .key {
        font-size: 16px;
    }

    .keyboard__mac .enter {
        right: 270px;
    }

    .key.mr5 {
        margin-right: 51px;
    }

    .keyboard__mac .key.mouseright {
        margin-right: 202px;
    }

    .keyboard__mac .del p {
        margin: 12px 0 0 3px;
    }

    .keyboard__mac .backspace p {
        margin: 12px 0 0 0;
    }

    .key.clear>p,
    .key.pgupdw>p {
        margin: 12px 0 0;
    }

    .num_sym2>p {
        margin: 17px 0 0;
    }

    .keytab>p {
        margin: 20px 0 0 14px;
    }

    .keytab svg {
        width: 15px;
        height: 10px;
    }

    .keyboard__mac .enter p {
        margin: 24px 8px 0 0;
    }

    .keyboard__mac .enter svg {
        width: 12px;
        height: 10px;
    }

    .key.caps svg {
        width: 12px;
        height: 15px;
    }

    .keyboard__mac .pgupdw svg {
        width: 13px;
        height: 15px;
    }

    .caps>p {
        margin: 18px 0 0 15px;
    }

    .key.fz18 {
        font-size: 12px;
    }

    .double_row_sym4>p {
        margin: 10px 0 0;
    }

    .home svg {
        width: 16px;
        height: 16px;
    }

    .keyboard__mac .shift>p {
        margin: 20px 0 0 15px;
    }

    .keyboard__mac .rshift svg,
    .keyboard__mac .shift svg {
        width: 12px;
        height: 12px;
    }

    .keyboard__mac .backslash>p {
        margin-top: 7px;
    }

    .double_row_sym5>p {
        margin: 10px 0 0;
    }

    .double_row_sym6>p {
        margin: 8px 0 0;
    }

    .keyboard__mac .rshift>p {
        margin: 20px 15px 0 0;
    }

    .num_sym3>p {
        margin: 0;
    }

    .keyboard__mac .enternum>p {
        margin: 68px 0 0;
    }

    .keyboard__mac .key.syst p {
        font-size: 11px;
        margin: 18px 0 0;
    }

    .keyboard.mac_active_tab {
        margin-bottom: 51px;
    }

    .keyboard__bottom>p {
        font-size: 14px;
    }

    .question__text,
    h1 {
        font-size: 16px;
    }

    .fdesc,
    .ftext>span {
        font-size: 14px;
    }

    .question__answer {
        font-size: 12px;
    }

    /* MacOS Specific Adjustments for smaller screens */
    .macos .key>p {
        margin-top: 14px;
    }

    .macos .key.left_side>p,
    .macos .key.right_side>p,
    .macos .margin_for_fz14>p {
        margin-top: 15px;
    }

    .macos .media_1>p,
    .macos .media_4>p,
    .macos .media_5>p {
        margin-top: 7px;
    }

    .macos .media_2>p {
        margin-top: 10px;
    }

    .macos .media_3>p {
        margin-top: 5px;
    }

    .macos .media_6>p {
        margin-top: 6px;
    }

    .macos .key.double_row>p {
        margin-top: 9px;
    }

    .macos .key.double_row_sym>p {
        margin-top: 7px;
    }

    .macos .key.minus_sym>p {
        margin-top: 3px;
    }

    .macos .key.equal_sym>p {
        margin-top: 10px;
    }

    .macos .key.win>p {
        margin-top: 9px;
    }

    .macos .contextmenu>p {
        margin-top: 0;
    }

    .macos .key.double_row_sym_center>p {
        margin-top: 6px;
        margin-left: 2px;
    }

    .macos .key.double_row_sym2>p,
    .macos .keyboard__win .right_side.backslash>p {
        margin-top: 8px;
    }

    .macos .key.arrow_up>p,
    .macos .key.double_row_sym3>p {
        margin-top: 11px;
    }

    .macos .key.arrow__left>p,
    .macos .key.arrow__right>p {
        margin-top: 12px;
    }

    .macos .key.arrow__down>p {
        margin-top: 13px;
    }

    .macos .key.num_minus>p,
    .macos .keyboard__mac.active .key.equal_sym>p {
        margin-top: 9px;
    }

    .macos .num_dot>p {
        margin-top: 4px;
    }

    .macos .key.num_enter>p,
    .macos .key.num_plus>p {
        margin-top: 39px;
    }

    .macos .keyboard__mac.active .key.double_row_sym>p,
    .macos .keyboard__mac.active .key.double_row_sym_center>p {
        margin-top: 6px;
    }

    .macos .keyboard__mac.active .key.minus_sym>p,
    .macos .num_sym3>p {
        margin-top: 2px;
    }

    .macos .key.del>p {
        margin-left: 2px;
        margin-top: 12px;
    }

    .macos .key.backspace>p {
        margin-left: -2px;
    }

    .macos .key.homeend.end>p,
    .macos .key.pgupdw>p {
        margin-top: 12px;
    }

    .macos .key.homeend>p {
        margin-top: 15px;
    }

    .macos .key.clear>p {
        margin-top: 11px;
    }

    .macos .num_sym>p {
        margin-top: 13px;
    }

    .macos .num_sym2>p {
        margin-top: 17px;
    }

    .macos .keyboard__mac .enternum>p {
        margin-top: 69px;
    }

    .macos .double_row_sym4>p {
        margin-top: 9px;
    }

    .macos .keyboard__mac .backslash>p {
        margin-top: 8px;
    }

    .macos .double_row_sym5>p {
        margin-top: 11px;
    }

    .macos .double_row_sym6>p {
        margin-top: 9px;
    }

    .macos .keyboard__mac .key.syst p {
        margin-top: 20px;
    }

    .macos .keyboard__mac .enter>p {
        margin-top: 26px;
    }

    .macos .keyboard__mac .rshift>p {
        margin-top: 20px;
        margin-right: 15px;
    }

    .macos .keyboard__mac .shift>p,
    .macos .keytab>p {
        margin-top: 20px;
        margin-left: 15px;
    }

    .macos .caps>p {
        margin-top: 18px;
        margin-left: 15px;
    }

    .bottom-block,
    .top-block {
        width: 1000px;
    }
}

@media (max-width: 1232px) {
    .privacy_page .content {
        width: 100%;
    }
}

/* ========== KEYBOARD GUIDE INTRO SECTION ========== */

.keyboard-guide-intro {
    background: linear-gradient(135deg, rgba(14, 165, 165, 0.08) 0%, rgba(14, 165, 165, 0.04) 100%);
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 165, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(14, 165, 165, 0.08);
}

.keyboard-intro-content {
    max-width: 1200px;
    margin: 0 auto;
    color: #0f172a;
}

.keyboard-intro-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #0f172a;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0f172a 0%, #0ea5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.keyboard-intro-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    margin: 0 0 2rem 0;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.keyboard-indicators {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.indicator-item {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 165, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.indicator-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(14, 165, 165, 0.4);
    box-shadow: 0 8px 24px rgba(14, 165, 165, 0.12);
    transform: translateY(-2px);
}

.indicator-item .ftext {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.indicator-item .key {
    width: 50px;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.indicator-label {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
    text-align: center;
}

.keyboard-intro-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
    margin: 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.6);
    border-left: 4px solid #0ea5a5;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

/* Responsive Keyboard Guide Intro */
@media (max-width: 900px) {
    .keyboard-guide-intro {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }

    .keyboard-intro-title {
        font-size: 1.8rem;
    }

    .keyboard-intro-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .keyboard-indicators {
        gap: 1rem;
        margin: 2rem 0;
    }

    .indicator-item {
        padding: 1rem;
        min-height: 140px;
    }

    .indicator-item .key {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .keyboard-intro-description {
        font-size: 0.95rem;
        padding: 1.5rem;
    }
}

@media (max-width: 700px) {
    .keyboard-guide-intro {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
        border-radius: 12px;
    }

    .keyboard-intro-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .keyboard-intro-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .keyboard-indicators {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin: 1.5rem 0;
    }

    .indicator-item {
        padding: 0.75rem;
        min-height: 120px;
    }

    .indicator-item .ftext {
        gap: 0.6rem;
    }

    .indicator-item .key {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }

    .indicator-label {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .keyboard-intro-description {
        font-size: 0.9rem;
        padding: 1rem;
        line-height: 1.6;
    }
}


@media (max-width:480px) {
    :root {
        --gap: 0.75rem
    }

    body {
        font-size: 15px
    }

    .container {
        padding: 0.6rem
    }

    .tester-panel {
        padding: 0.75rem
    }

    textarea#test-input {
        height: 110px
    }

    .footer-col-copy {
        align-items: flex-start;
        justify-content: flex-start
    }

    .footer-text.footer-copy {
        font-size: 0.9rem
    }

    .social-link span {
        display: none
    }

    .social-link svg {
        width: 18px;
        height: 18px
    }
}

@media (prefers-color-scheme:dark) {
    :root {
        --bg: #0b1220;
        --card: #061024;
        --muted: #9aa4b2;
        --accent: #ffffff;
        --accent-2: #7dd3fc
    }

    body {
        background: var(--bg);
        color: var(--accent)
    }

    .site-header {
        border-bottom-color: rgba(255, 255, 255, 0.04)
    }
}