:root {
    --cream:     #F5F1E8;   
    --surface:   #FFFFFF;   
    --surface-2: #FBF8F1;   
    --ink:       #2B281F;   
    --muted:     #7A7464;   
    --line:      #E8E1D3;   
    --green:     #46A35A;   
    --green-700: #3B8C4D;   
    --green-50:  #EAF4EC;   
    --gold:      #E8A33A;   
    --gold-700:  #D8941F;
    --danger:    #D8553F;   

    --font-display: "Rubik", system-ui, -apple-system, sans-serif;
    --font-body:    "Manrope", system-ui, -apple-system, sans-serif;
    --font-mono:    ui-monospace, "Cascadia Mono", Consolas, monospace;

    --r:     18px;   
    --r-sm:  12px;   
    --r-pill: 999px;

    --sh:    0 6px 20px rgba(43,40,31,0.06), 0 1px 3px rgba(43,40,31,0.04);
    --sh-lg: 0 18px 44px rgba(43,40,31,0.11);
    --sh-green: 0 8px 20px rgba(70,163,90,0.28);

    --wrap: 1200px;

    
    --text: var(--ink);
    --text-muted: var(--muted);
    --primary: var(--green);
    --success: var(--green);
    --border: var(--line);
    --card-bg: var(--surface);
    --bg-main: var(--cream);
    --accent: var(--green);
    --paper: var(--cream);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection { background: var(--green-50); color: var(--green-700); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }


.mc-0 { color: #2B281F; }
.mc-1 { color: #2438b8; }
.mc-2 { color: #2f8f3f; font-weight: 600; }
.mc-3 { color: #168a8a; }
.mc-4 { color: #c0392b; }
.mc-5 { color: #8e44ad; }
.mc-6 { color: #c9870e; }
.mc-7 { color: #8a8474; }
.mc-8 { color: #6b6555; }
.mc-9 { color: #3a55d8; }
.mc-a { color: #46a35a; }
.mc-b { color: #1aa3a3; }
.mc-c { color: #e0543d; }
.mc-d { color: #c659c6; }
.mc-e { color: #c39a12; font-weight: 700; }
.mc-f { color: #2B281F; font-weight: 600; }


.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(245,241,232,0.92);
    border-bottom: 1.5px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 16px; height: 66px; }
.header__brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.header__brand b { color: var(--green); font-weight: 700; }
.header__logo { height: 28px; width: auto; display: block; }
.header__nav { display: flex; gap: 26px; margin-left: auto; }
.header__link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s;
}
.header__link:hover { color: var(--green-700); }


.server-ip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    background: var(--green);
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: var(--r-pill);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    box-shadow: var(--sh-green);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}
.server-ip-container:hover { transform: translateY(-2px); background: var(--green-700); }
.server-ip-container:active { transform: translateY(0); }
.server-ip-container.copied { background: var(--green-700); }
.ip-prompt { opacity: 0.7; }
.ip-text { font-size: 0.92rem; letter-spacing: 0.01em; }
.ip-icon-wrapper { display: inline-flex; align-items: center; }
.ip-icon-wrapper svg { width: 17px; height: 17px; }
.copy-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--ink);
    color: #fff;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s, transform 0.18s;
    pointer-events: none;
    box-shadow: var(--sh);
}
.server-ip-container:hover .copy-tooltip { opacity: 1; transform: translateY(0); }


.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
    color: var(--green-700);
    margin-bottom: 0.9rem;
}
.eyebrow::before {
    content: "";
    width: 15px; height: 15px;
    border-radius: 3px;
    background:
        linear-gradient(var(--green), var(--green)) 0 0 / 6px 6px no-repeat,
        linear-gradient(var(--green), var(--green)) 9px 9px / 6px 6px no-repeat,
        var(--green-50);
}


.connect { padding: clamp(28px, 4vw, 56px) 0 clamp(18px, 3vw, 36px); }
.connect__card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: calc(var(--r) + 8px);
    box-shadow: var(--sh);
    padding: clamp(26px, 4vw, 46px);
    display: grid;
    gap: 26px;
}
.connect__card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(90% 130% at 100% 0%, var(--green-50), transparent 58%);
    pointer-events: none;
}
@media (min-width: 760px) {
    .connect__card { grid-template-columns: 1fr auto; align-items: center; gap: 36px; }
}
.connect__text { position: relative; }
.connect__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 4.2vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.connect__title .accent { color: var(--green); }
.connect__hint { color: var(--muted); font-size: 0.98rem; max-width: 42ch; }


.connect .server-ip-container {
    position: relative;
    justify-self: start;
    padding: 1rem 1.5rem;
    font-size: 1.05rem;
}
.connect .server-ip-container .ip-text { font-size: 1.2rem; }
.connect .server-ip-container .ip-icon-wrapper svg { width: 20px; height: 20px; }


.section { padding: clamp(44px, 6vw, 88px) 0; }
.section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: clamp(26px, 3.5vw, 42px);
}
.section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.6vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -0.015em;
}
.section__note {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 36ch;
    text-align: right;
}


.services { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .services { grid-template-columns: repeat(3, 1fr); } }

.service {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    padding: 26px;
    box-shadow: var(--sh);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.service__icon {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 14px;
    color: var(--c, var(--green));
    background: color-mix(in srgb, var(--c, var(--green)) 14%, #fff);
}
.service__icon svg { width: 26px; height: 26px; }
.service__name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
}
.service__desc { font-size: 0.92rem; color: var(--muted); flex: 1; }
.service__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.service__price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); }
.service__price .cur { font-size: 0.95rem; color: var(--muted); margin-left: 2px; }


.ledger { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 600px)  { .ledger { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ledger { grid-template-columns: repeat(3, 1fr); } }

.rank {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    padding: 22px 24px 24px;
    box-shadow: var(--sh);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.rank:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: color-mix(in srgb, var(--c, var(--green)) 45%, var(--line)); }
.rank__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.rank__tier {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--c, var(--green));
    background: color-mix(in srgb, var(--c, var(--green)) 13%, #fff);
    padding: 5px 11px;
    border-radius: var(--r-pill);
}
.rank__dot { width: 12px; height: 12px; border-radius: 4px; background: var(--c, var(--green)); flex-shrink: 0; }
.rank__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.7rem;
    letter-spacing: -0.015em;
    margin-bottom: 4px;
}
.rank__price { font-family: var(--font-display); font-weight: 700; font-size: 2.1rem; color: var(--ink); margin-bottom: 20px; display: flex; align-items: baseline; gap: 5px; }
.rank__cur { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.rank__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }


.best-player { padding: clamp(10px, 2vw, 22px) 0 clamp(44px, 6vw, 80px); }
.bp-card {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--cream);
    border-radius: calc(var(--r) + 10px);
    padding: clamp(28px, 4vw, 50px);
    box-shadow: var(--sh-lg);
    display: grid;
    gap: 30px;
}
.bp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(80% 130% at 100% 0%, rgba(232, 163, 58, 0.22), transparent 55%);
    pointer-events: none;
}
@media (min-width: 820px) {
    .bp-card { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
}
.bp-main { position: relative; }
.bp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(232, 163, 58, 0.13);
    border: 1.5px solid rgba(232, 163, 58, 0.4);
    padding: 5px 12px;
    border-radius: var(--r-pill);
    margin-bottom: 16px;
}
.bp-badge svg { width: 14px; height: 14px; }
.bp-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: #fff;
}
.bp-sub { color: #cfc7b6; margin: 8px 0 22px; max-width: 48ch; }
.bp-features { list-style: none; display: grid; gap: 11px; }
.bp-features li {
    position: relative;
    padding-left: 28px;
    color: var(--cream);
    font-size: 0.97rem;
    line-height: 1.45;
}
.bp-features li::before {
    content: "";
    position: absolute;
    left: 0; top: 6px;
    width: 12px; height: 12px;
    border-radius: 3px;
    background: var(--gold);
}
.bp-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
@media (min-width: 820px) { .bp-side { align-items: flex-end; text-align: right; min-width: 200px; } }
.bp-price-label { font-size: 0.78rem; color: #a79e8b; text-transform: uppercase; letter-spacing: 0.06em; }
.bp-price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); color: #fff; line-height: 1; }
.bp-price .bp-cur { font-size: 0.42em; color: var(--gold); margin-left: 4px; font-weight: 700; }
.bp-note { font-size: 0.78rem; font-weight: 600; color: var(--gold); display: inline-flex; align-items: center; gap: 5px; max-width: 230px; line-height: 1.35; }
.bp-btn {
    background: var(--gold);
    color: var(--ink);
    box-shadow: 0 10px 22px rgba(232, 163, 58, 0.32);
    margin-top: 8px;
    padding: 0.9rem 1.7rem;
    font-size: 1rem;
}
.bp-btn:hover { background: var(--gold-700); transform: translateY(-2px); }


.btn {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.78rem 1.25rem;
    border: 1.5px solid transparent;
    border-radius: var(--r-sm);
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn--solid { background: var(--green); color: #fff; box-shadow: var(--sh-green); }
.btn--solid:hover { background: var(--green-700); transform: translateY(-2px); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-700); background: var(--green-50); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.btn--sm { padding: 0.6rem 0.95rem; font-size: 0.86rem; }
.btn:active { transform: translateY(0); }


footer { background: var(--surface-2); border-top: 1.5px solid var(--line); padding: clamp(44px, 6vw, 72px) 0 36px; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; align-items: start; } }
.footer-word {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.footer-word .accent { color: var(--green); }
.footer-tag { margin-top: 12px; font-size: 0.92rem; color: var(--muted); max-width: 34ch; }
.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-link {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.94rem;
    font-weight: 500;
    width: fit-content;
    transition: color 0.15s;
}
.footer-link:hover { color: var(--green-700); }
.footer-contacts { display: flex; flex-direction: column; gap: 12px; }
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 500;
    font-size: 0.94rem;
    width: fit-content;
    transition: color 0.15s;
}
.contact-link:hover { color: var(--green-700); }
.contact-icon { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; color: var(--green); }
.footer-base {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1.5px solid var(--line);
    font-size: 0.82rem;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}


.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(43, 40, 31, 0.42);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.22s;
}
.modal.open { display: flex; opacity: 1; }
.modal-content {
    background: var(--surface);
    border-radius: calc(var(--r) + 6px);
    padding: clamp(24px, 4vw, 38px);
    width: 100%;
    max-width: 580px;
    box-shadow: var(--sh-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.22s;
}
.modal.open .modal-content { transform: none; }
.modal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    letter-spacing: -0.015em;
    margin-bottom: 4px;
}
.modal-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 24px; }
.close-btn {
    position: absolute;
    top: 18px; right: 18px;
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    color: var(--muted);
    transition: background 0.15s, color 0.15s, transform 0.15s;
}
.close-btn:hover { background: var(--green-50); color: var(--green-700); transform: rotate(90deg); }


#detail-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 4.5vw, 2.3rem); letter-spacing: -0.015em; margin-bottom: 6px; }
.detail-hint { font-size: 0.86rem; color: var(--muted); margin-bottom: 18px; }
#detail-body {
    background: var(--surface-2);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    padding: 22px;
    margin-bottom: 24px;
    max-height: 52vh;
    overflow-y: auto;
}
.desc-line { font-family: var(--font-body); font-size: 0.9rem; line-height: 1.55; margin-bottom: 5px; }

.modal-action-btn {
    width: 100%;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    padding: 1.05rem;
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    box-shadow: var(--sh);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s;
}
.modal-action-btn:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); filter: brightness(1.03); }
.modal-action-btn:active { transform: translateY(0); }


#buy-label { font-size: 0.95rem; color: var(--muted); margin-bottom: 24px; }
#buy-label b { color: var(--ink); }
.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: 18px;
    margin-bottom: 8px;
}
.form-input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface-2);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.form-input::placeholder { color: var(--muted); }
.form-input:focus { background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-50); }

.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; margin-bottom: 26px; }
.pay-method {
    padding: 16px 10px;
    text-align: center;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
    transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
}
.pay-method:hover { border-color: var(--green); color: var(--ink); transform: translateY(-2px); }
.pay-method.selected { background: var(--green-50); border-color: var(--green); color: var(--green-700); }
.pay-icon-svg { width: 26px; height: 26px; stroke: currentColor; stroke-width: 1.7; transition: 0.15s; }
.pay-icon-img { height: 26px; width: auto; object-fit: contain; filter: grayscale(60%) opacity(0.8); transition: 0.15s; }
.pay-method.selected .pay-icon-img,
.pay-method:hover .pay-icon-img { filter: grayscale(0%) opacity(1); }
.pay-icon-star { width: 27px; height: 27px; filter: grayscale(55%) opacity(0.85); transition: 0.15s; }
.pay-method.selected .pay-icon-star,
.pay-method:hover .pay-icon-star { filter: none; }


#doc-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    letter-spacing: -0.015em;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1.5px solid var(--line);
}
#doc-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-top: 22px; margin-bottom: 10px; color: var(--ink); }
#doc-body p { margin-bottom: 11px; color: #55503f; font-size: 0.94rem; }
#doc-body ul { margin-left: 20px; margin-bottom: 16px; color: #55503f; font-size: 0.94rem; }
#doc-body li { margin-bottom: 6px; }
#doc-body strong { color: var(--ink); }
#doc-body a { color: var(--green-700); text-decoration: underline; }


.reveal { opacity: 0; animation: rise 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }


@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { animation: none; opacity: 1; }
    * { transition-duration: 0.01ms !important; }
}


@media (max-width: 680px) {
    .header__nav { display: none; }
    .ip-text { font-size: 0.84rem; }
    .section__note { text-align: left; }
    .section__head { align-items: flex-start; }
}
@media (max-width: 380px) {
    .header__brand span.long { display: none; }
}


.page-hero { padding: clamp(36px, 6vw, 76px) 0 clamp(8px, 2vw, 18px); }
.page-hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-top: 6px;
}
.page-hero .lead { color: var(--muted); max-width: 62ch; margin-top: 14px; font-size: 1.04rem; }
.rules-toc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.rules-toc a {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r-pill);
    padding: 9px 17px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .15s, color .15s, background .15s;
}
.rules-toc a:hover { border-color: var(--green); color: var(--green-700); background: var(--green-50); }

.rules { padding: clamp(20px, 3vw, 30px) 0 clamp(48px, 7vw, 96px); }
.rules-block { margin-top: clamp(38px, 5vw, 60px); scroll-margin-top: 84px; }
.rules-block__title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(1.55rem, 3.6vw, 2.2rem);
    letter-spacing: -0.015em;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 2.5px solid var(--ink);
}
.rule-cat { display: flex; align-items: baseline; gap: 11px; margin: 28px 0 14px; }
.rule-cat__num { font-family: var(--font-mono); font-weight: 700; color: var(--green-700); font-size: 1.05rem; }
.rule-cat__title { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; letter-spacing: -0.01em; }

.rule {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--sh);
    padding: 20px 22px;
    margin-bottom: 14px;
}
.rule__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.rule__num {
    font-family: var(--font-mono);
    font-weight: 700; font-size: 0.8rem;
    background: var(--green-50); color: var(--green-700);
    padding: 4px 11px; border-radius: var(--r-pill);
    white-space: nowrap;
}
.rule__title { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; }
.rule__body { color: #514c40; font-size: 0.95rem; line-height: 1.6; }
.rule__body p { margin-bottom: 8px; }
.rule__body p:last-child { margin-bottom: 0; }
.rule__muted { color: var(--muted); font-size: 0.88rem; }

.rule__list { list-style: none; margin: 10px 0 2px; padding: 0; column-width: 210px; column-gap: 26px; }
.rule__list li {
    position: relative; padding-left: 18px; margin-bottom: 7px;
    font-size: 0.92rem; color: #514c40; break-inside: avoid; line-height: 1.45;
}
.rule__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--green); }

.rule__pun {
    display: flex; align-items: center; gap: 9px;
    margin-top: 13px;
    background: #fceee9;
    border: 1.5px solid #f0d0c6;
    border-left: 4px solid var(--danger);
    border-radius: 11px;
    padding: 9px 14px;
    font-weight: 600; font-size: 0.9rem; color: #9c3a25;
}
.rule__pun svg { width: 17px; height: 17px; flex-shrink: 0; }

.rule-note {
    background: var(--green-50);
    border: 1.5px solid #cde5d2;
    border-left: 4px solid var(--green);
    border-radius: 12px;
    padding: 15px 17px;
    margin: 18px 0;
    font-size: 0.93rem; line-height: 1.6; color: #36503b;
}
.rule-note h4 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin-bottom: 6px; color: var(--green-700); }
.rule-note p { margin-bottom: 8px; }
.rule-note p:last-child { margin-bottom: 0; }

.cmd-list { display: grid; gap: 12px; margin-top: 14px; }
.cmd { background: var(--ink); border-radius: 13px; padding: 15px 17px; }
.cmd code { font-family: var(--font-mono); color: var(--gold); font-size: 0.96rem; font-weight: 600; word-break: break-word; }
.cmd p { color: #d7cfbe; font-size: 0.88rem; margin-top: 7px; }
.cmd .syntax { color: #8f8979; font-size: 0.8rem; margin-top: 3px; }

@media (max-width: 560px) {
    .rule__list { column-width: auto; columns: 1; }
}
