:root {
    --bg: #f3f4f7; --card: #ffffff; --text: #15171c; --muted: #6b7280; --line: #e4e6eb;
    --field: #f8f9fb; --accent: #4f46e5; --accent-2: #4338ca; --tint: rgba(79, 70, 229, .07);
    --ok: #16a34a; --ok-bg: #e8f7ee;
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.06);
    --radius: 16px;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1115; --card: #181b21; --text: #eceef2; --muted: #9097a3; --line: #2a2f38;
        --field: #1f232b; --accent: #7c74ff; --accent-2: #6a61f5; --tint: rgba(124, 116, 255, .1);
        --ok: #3ccf78; --ok-bg: rgba(60,207,120,.12);
        --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
    }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column;
    font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

/* шапка */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 880px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
    width: 38px; height: 38px; border-radius: 12px; position: relative; display: grid; place-items: center; color: #fff;
    background: linear-gradient(160deg, #818cf8, #7c3aed 55%, #db2777);
    box-shadow: 0 4px 0 #5b21b6, 0 8px 14px rgba(91, 33, 182, .4), inset 0 2px 0 rgba(255, 255, 255, .35);
    transform: translateY(-2px);
}
.logo-mark::after { content: ""; position: absolute; left: 5px; right: 5px; top: 3px; height: 40%;
    border-radius: 9px 9px 16px 16px; background: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,0)); }
.logo-mark svg { position: relative; z-index: 1; }
.logo-text { font-size: 26px; font-weight: 800; letter-spacing: -.035em; line-height: 1;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 50%, #db2777);
    -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text span { opacity: .55; }
@media (prefers-color-scheme: dark) { .logo-text { background-image: linear-gradient(135deg, #a5b4fc, #c4b5fd 50%, #f9a8d4); } }

.nav { display: flex; gap: 6px; }
.nav a, .mnav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 10px; transition: background .15s, color .15s; }
.nav a:hover, .mnav a:hover { background: var(--field); }
.nav a.active, .mnav a.active { background: var(--accent); color: #fff; }
.menu-btn { display: none; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; cursor: pointer; }
.mnav { display: none; }

/* контент */
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 28px 16px 48px; flex: 1; }
.card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); }
.page { padding: 40px 44px; }
.page.narrow { max-width: 600px; margin: 0 auto; text-align: center; }
.page h1 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; text-align: center; margin: 0 0 32px; }
.page h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; margin: 32px 0 14px; }
.page h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.page p { margin: 0 0 14px; }
.page ul { margin: 12px 0; padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page strong { font-weight: 700; }

.highlight-block { background: var(--tint); border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; padding: 18px 20px; margin: 20px 0; }
.highlight-block p { margin: 0; font-weight: 500; }
.info-block { background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin: 22px 0; }
.info-block p:last-child { margin-bottom: 0; }

.cta-button { display: block; width: 100%; max-width: 320px; margin: 36px auto 0; text-align: center; text-decoration: none;
    background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 12px;
    border: 0; cursor: pointer; transition: background .15s, transform .1s; }
.cta-button:hover { background: var(--accent-2); }
.cta-button:active { transform: translateY(1px); }

/* стоимость */
.service-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.price-block { height: 100%; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 8px; }
.price-block h3 { margin: 0 0 10px; color: var(--accent); }
.price-number { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed 50%, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .price-number { background-image: linear-gradient(135deg, #a5b4fc, #c4b5fd 50%, #f9a8d4); } }

/* контакты */
.contacts-list { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.contact-item, .email-field, .link-field { display: block; width: 100%; max-width: 320px; padding: 14px 24px; border-radius: 12px;
    font: inherit; font-size: 16px; font-weight: 600; text-align: center; }
.contact-item { background: var(--accent); color: #fff; border: 0; cursor: pointer; transition: background .15s; }
.contact-item:hover { background: var(--accent-2); }
.email-field, .link-field { background: var(--field); color: var(--text); border: 1px solid var(--line); outline: 0; user-select: all; }
.link-field { color: var(--accent); text-decoration: underline; }
.company-info { margin-top: 32px; padding: 20px; background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); }
.company-info p { margin: 6px 0; font-size: 14px; }
.company-info p:first-child { font-weight: 700; font-size: 15px; }
.rusprofile-btn { display: block; margin: 14px auto 0; background: transparent; color: var(--text); border: 0;
    box-shadow: inset 0 0 0 1px var(--line); border-radius: 10px; padding: 9px 20px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rusprofile-btn:hover { background: var(--card); }

/* документы */
.legal p { font-size: 14px; }
.legal h1 { font-size: 26px; }
.legal h2 { font-size: 18px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.section-number { color: var(--accent); font-weight: 800; }
.subsection { margin-left: 12px; }
.entity-info, .contact-info { background: var(--field); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.entity-info p, .contact-info p { margin: 4px 0; }
.contact-info h3 { margin-top: 0; }
.last-updated { text-align: center; color: var(--muted); font-style: italic; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.last-updated p { margin: 0; }

/* подвал */
.foot { border-top: 1px solid var(--line); padding: 22px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 8px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--accent); }

@media (max-width: 720px) {
    .nav { display: none; }
    .menu-btn { display: block; }
    .mnav { display: none; flex-direction: column; gap: 4px; padding: 0 16px 14px; }
    .mnav.open { display: flex; }
    .logo-text { font-size: 22px; }
    .wrap { padding: 16px 12px 32px; }
    .page { padding: 26px 18px; }
    .page h1 { font-size: 24px; margin-bottom: 24px; }
    .legal h1 { font-size: 21px; }
    .page h2 { font-size: 18px; }
    .service-list { grid-template-columns: 1fr; }
    .subsection { margin-left: 0; }
    .legal p { text-align: left; }
}
