*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --esn: #1a1a2e;
    --hor: #f8fafc;
    --ewb: #ffffff;
    --urh: #4a4a68;
    --pvl: #6c63ff;
    --xmr: #1a1a2e;
    --ozd: #1a1a2e;
    --fmq: #94a3b8;
    --ohw: #1a1a2e;
    --zni: 0.7;
    --bvn: #6c63ff;
    --uum: #ff6584;
    --xnh: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--xnh); color: var(--urh); line-height: 1.7; font-size: 1.05rem; background: var(--ewb); }
img { max-width: 100%; height: auto; }
a { color: var(--pvl); text-decoration: none; }
a:hover { opacity: 0.8; }

.fapmatch-at-phm {
    position: relative;
    z-index: 100;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fapmatch-at-qaz { font-size: 1.4rem; font-weight: 700; }
.fapmatch-at-qaz a { display: flex; align-items: center; text-decoration: none; }
.fapmatch-at-qaz img { display: block; }

.fapmatch-at-uqv {
    display: flex;
    align-items: center;
    gap: 25px;
}
.fapmatch-at-uqv a { font-size: 0.95rem; font-weight: 500; transition: opacity 0.2s; }
.fapmatch-at-uqv a:hover { opacity: 0.8; }

.fapmatch-at-nqv { position: relative; }
.fapmatch-at-rki { position: relative; }

.fapmatch-at-kxp {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.12); border: 1px solid currentColor;
    color: inherit; font-size: 0.85rem; font-weight: 600;
    padding: 5px 12px; border-radius: 6px; cursor: pointer;
    transition: all 0.2s; font-family: inherit;
}
.fapmatch-at-kxp:hover { background: rgba(255,255,255,0.2); }
.fapmatch-at-tlv { transition: transform 0.2s; }
.fapmatch-at-rki.fapmatch-at-lky .fapmatch-at-tlv { transform: rotate(180deg); }

.fapmatch-at-uql {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--ewb); border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    list-style: none; margin: 0; padding: 6px 0;
    min-width: 70px; z-index: 300; max-height: 240px; overflow-y: auto;
}
.fapmatch-at-rki.fapmatch-at-lky .fapmatch-at-uql { display: block; }
.fapmatch-at-uql li a { display: block; padding: 6px 16px; color: var(--urh); font-size: 0.85rem; font-weight: 600; text-align: center; transition: background 0.15s; }
.fapmatch-at-uql li a:hover { background: var(--hor); opacity: 1; color: var(--urh); }
.fapmatch-at-uql li a.fapmatch-at-tko { color: var(--pvl); }

.fapmatch-at-eas .fapmatch-at-kxp { font-size: 1rem; padding: 8px 18px; }
.fapmatch-at-eas .fapmatch-at-uql { position: static; box-shadow: none; background: rgba(255,255,255,0.1); border-radius: 8px; margin-top: 8px; max-height: 200px; }
.fapmatch-at-eas .fapmatch-at-uql li a { color: inherit; font-size: 1rem; }
.fapmatch-at-eas .fapmatch-at-uql li a:hover { background: rgba(255,255,255,0.1); }
.fapmatch-at-eas .fapmatch-at-uql li a.fapmatch-at-tko { color: var(--pvl); }

.fapmatch-at-kml {
    display: none; background: none; border: none; cursor: pointer;
    padding: 10px; position: fixed; top: 15px; right: 15px; z-index: 210;
}
.fapmatch-at-kml span { display: block; width: 26px; height: 3px; border-radius: 2px; transition: all 0.3s ease; }
.fapmatch-at-kml span + span { margin-top: 5px; }
.fapmatch-at-kml.fapmatch-at-jot span:nth-child(1) { transform: rotate(45deg) translate(4px, 7px); }
.fapmatch-at-kml.fapmatch-at-jot span:nth-child(2) { opacity: 0; }
.fapmatch-at-kml.fapmatch-at-jot span:nth-child(3) { transform: rotate(-45deg) translate(4px, -7px); }

.fapmatch-at-eas {
    display: none; position: fixed; inset: 0; z-index: 200;
    flex-direction: column; align-items: center; justify-content: center; gap: 30px;
}
.fapmatch-at-eas.fapmatch-at-tii { display: flex; }
.fapmatch-at-czq {
    position: absolute; top: 15px; right: 15px; background: none;
    border: none; font-size: 2.5rem; cursor: pointer; padding: 5px 12px;
    line-height: 1; z-index: 211;
}
.fapmatch-at-czq:hover { opacity: 0.7; }
.fapmatch-at-eas a { font-size: 1.4rem; font-weight: 600; transition: opacity 0.2s; }
.fapmatch-at-eas a:hover { opacity: 0.7; }
.fapmatch-at-eas .fapmatch-at-nqv { font-size: 1rem; }
.fapmatch-at-eas .fapmatch-at-nqv a { font-size: 1rem; padding: 5px 10px; }

.fapmatch-at-mgv {
    position: relative; width: 100%; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; background-color: var(--esn);
    background-size: cover; background-position: center; overflow: hidden;
}
.fapmatch-at-mgv::before {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: var(--fov, var(--ohw));
    opacity: var(--cxb, var(--zni));
}

.fapmatch-at-gfu { position: relative; z-index: 2; max-width: 600px; width: 100%; padding: 40px 20px; }
.fapmatch-at-ogt { color: var(--hor); font-size: calc(1.6rem + 1.5vw); font-weight: 800; line-height: 1.2; margin-bottom: 10px; display: block; }
.fapmatch-at-grj { color: rgba(248,250,252,0.8); font-size: 1.1rem; font-weight: 400; margin-bottom: 35px; line-height: 1.5; }
.fapmatch-at-tbz { color: var(--hor); font-size: 1.3rem; font-weight: 700; margin-bottom: 25px; }

.fapmatch-at-wta { display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 50px; margin-bottom: 25px; }
a.fapmatch-at-aix, .fapmatch-at-aix { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; transition: transform 0.3s ease; width: auto; max-width: 120px; }
.fapmatch-at-aix:hover { transform: scale(1.08); opacity: 1; }

.fapmatch-at-gss {
    width: 100px; height: 100px; border-radius: 50%; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3); transition: box-shadow 0.3s ease;
}
.fapmatch-at-aix:nth-child(1) .fapmatch-at-gss { background: var(--bvn); }
.fapmatch-at-aix:nth-child(2) .fapmatch-at-gss { background: var(--uum); }
.fapmatch-at-aix:hover .fapmatch-at-gss { box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.fapmatch-at-gss img { width: 50px; height: 50px; object-fit: contain; border-radius: 0; }
.fapmatch-at-miv { font-size: 42px; line-height: 1; }
.fapmatch-at-asj { color: var(--hor); font-size: 0.95rem; font-weight: 600; display: block; text-align: center; }
.fapmatch-at-wyw { color: rgba(248,250,252,0.7); font-size: 0.95rem; font-weight: 400; line-height: 1.5; }

.fapmatch-at-uwv { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; animation: _karl 2s infinite; }
.fapmatch-at-uwv svg { width: 30px; height: 30px; fill: none; stroke: rgba(248,250,252,0.6); stroke-width: 2; }
@keyframes _karl {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.fapmatch-at-etz { display: flex; flex-direction: column; }
.fapmatch-at-etz > .fapmatch-at-mgv { order: 1; }
.fapmatch-at-etz > .fapmatch-at-nur { order: 2; }
.fapmatch-at-etz > .fapmatch-at-rjl { order: 3; }

.fapmatch-at-nur {
    max-width: 720px;
    margin-inline: auto;
    padding: 80px 24px 60px;
    text-align: center;
}
.fapmatch-at-mcm {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--pvl);
}
.fapmatch-at-nur > h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--xmr);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin-bottom: 40px;
    max-width: 18ch;
    margin-inline: auto;
}
.fapmatch-at-smp {
    text-align: left;
    font-size: 1.06rem;
}
.fapmatch-at-smp > p:first-of-type {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--xmr);
    font-weight: 500;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 22px 0;
    margin-bottom: 34px;
}
.fapmatch-at-smp h2 {
    font-size: 1.55rem;
    font-weight: 800;
    margin: 52px 0 18px;
    color: var(--xmr);
    text-align: center;
    letter-spacing: -0.01em;
}
.fapmatch-at-smp h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--xmr);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fapmatch-at-smp p {
    margin-bottom: 18px;
    line-height: 1.85;
}
.fapmatch-at-smp ul, .fapmatch-at-smp ol {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
}
.fapmatch-at-smp ul li, .fapmatch-at-smp ol li {
    position: relative;
    padding: 10px 0 10px 34px;
    border-bottom: 1px dashed #e5e7eb;
    line-height: 1.6;
}
.fapmatch-at-smp ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pvl);
}
.fapmatch-at-smp ol {
    counter-reset: eeilist;
}
.fapmatch-at-smp ol li {
    counter-increment: eeilist;
}
.fapmatch-at-smp ol li::before {
    content: counter(eeilist, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--pvl);
    letter-spacing: 0.05em;
}
.fapmatch-at-smp blockquote {
    position: relative;
    padding: 26px 18px 20px;
    margin: 38px 0;
    font-size: 1.22rem;
    font-weight: 500;
    font-style: italic;
    color: var(--xmr);
    text-align: center;
    line-height: 1.55;
}
.fapmatch-at-smp blockquote::before {
    content: '\201C';
    display: block;
    font-size: 3.4rem;
    font-weight: 700;
    font-style: normal;
    line-height: 0.7;
    color: var(--pvl);
    margin-bottom: 6px;
}
.fapmatch-at-smp blockquote::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    margin: 18px auto 0;
    background: var(--pvl);
    opacity: 0.4;
}
.fapmatch-at-smp img {
    border-radius: 10px;
    margin: 22px 0;
}

.fapmatch-at-rjl {
    max-width: 760px;
    margin-inline: auto;
    padding: 10px 24px 70px;
    display: block;
}
.fapmatch-at-vwk {
    text-align: center;
    margin-bottom: 36px;
    padding: 34px 20px;
    background: linear-gradient(180deg, #f7f7ff 0%, transparent 100%);
    border-radius: 18px;
}
.fapmatch-at-vwk .fapmatch-at-mcm {
    display: inline-block;
    background: var(--pvl);
    color: #fff;
    padding: 5px 12px;
    border-radius: 100px;
    letter-spacing: 0.2em;
    font-size: 0.65rem;
}
.fapmatch-at-rjl > .fapmatch-at-vwk > h2 {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--xmr);
    margin-top: 14px;
    letter-spacing: -0.01em;
}
.fapmatch-at-iny {
    list-style: none;
    counter-reset: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}
.fapmatch-at-iqv {
    background: #fff;
    border: 1px solid #ecedf2;
    border-left: 3px solid var(--pvl);
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.fapmatch-at-iqv:hover {
    border-left-color: var(--uum);
    box-shadow: 0 10px 28px -14px rgba(108, 99, 255, 0.35);
    transform: translateY(-1px);
}
.fapmatch-at-iqv details {
    padding: 0;
}
.fapmatch-at-iqv details > summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--xmr);
    line-height: 1.4;
}
.fapmatch-at-iqv details > summary::-webkit-details-marker { display: none; }
.fapmatch-at-lac {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--pvl);
    letter-spacing: 0.08em;
    padding: 4px 9px;
    background: rgba(108, 99, 255, 0.08);
    border-radius: 4px;
}
.fapmatch-at-uar { min-width: 0; }
.fapmatch-at-vsp {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.fapmatch-at-vsp::before,
.fapmatch-at-vsp::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    background: var(--pvl);
    transition: transform 0.25s ease;
}
.fapmatch-at-vsp::before { width: 14px; height: 2px; }
.fapmatch-at-vsp::after { width: 2px; height: 14px; }
.fapmatch-at-iqv details[open] .fapmatch-at-vsp::after { transform: scaleY(0); }
.fapmatch-at-iqv details[open] .fapmatch-at-lac {
    background: var(--pvl);
    color: #fff;
}
.fapmatch-at-gyr {
    padding: 4px 24px 22px 63px;
    border-top: 1px dashed #ecedf2;
    margin-top: 0;
    animation: fapmatch-at-dbl 0.25s ease;
}
.fapmatch-at-gyr p {
    margin: 14px 0 0;
    line-height: 1.75;
    color: var(--urh);
    font-size: 0.98rem;
}
@keyframes fapmatch-at-dbl {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.fapmatch-at-toq {
    background: var(--ozd);
    color: var(--fmq);
    padding: 36px 24px;
}
.fapmatch-at-toq > .fapmatch-at-wxy {
    max-width: 820px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
}
.fapmatch-at-toq p {
    font-size: 0.9rem;
    margin: 0;
}
.fapmatch-at-toq a { color: var(--fmq); }
.fapmatch-at-zwq {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}
.fapmatch-at-zwq a {
    font-size: 0.8rem;
    transition: opacity 0.2s;
}
.fapmatch-at-zwq a:hover { opacity: 0.7; }

@media (max-width: 768px) {
    .fapmatch-at-phm { padding: 10px 15px !important; }
    .fapmatch-at-uqv { display: none !important; }
    .fapmatch-at-kml { display: flex; flex-direction: column; }
    .fapmatch-at-ogt { font-size: 1.6rem; }
    .fapmatch-at-grj { font-size: 0.95rem; margin-bottom: 25px; }
    .fapmatch-at-tbz { font-size: 1.1rem; margin-bottom: 20px; }
    .fapmatch-at-wta { gap: 35px; }
    .fapmatch-at-gss { width: 85px; height: 85px; }
    .fapmatch-at-gss img { width: 40px; height: 40px; }
    .fapmatch-at-miv { font-size: 36px; }
    .fapmatch-at-wyw { font-size: 0.85rem; }
    .fapmatch-at-phm .fapmatch-at-qaz img { height: 35px !important; width: auto !important; }
    .fapmatch-at-nur { padding: 45px 16px 35px; }
    .fapmatch-at-nur > header > h1 { font-size: 1.7rem; }
    .fapmatch-at-smp h2 { font-size: 1.45rem; }
    .fapmatch-at-rjl { padding: 0 16px 40px; }
    .fapmatch-at-toq > .fapmatch-at-wxy { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
