:root {
    --wv-bg: #f6f9fc;
    --wv-surface: #ffffff;
    --wv-surface-soft: #f3f7fb;
    --wv-text: #10243e;
    --wv-muted: #66758a;
    --wv-blue: #246bfd;
    --wv-blue-dark: #174ec0;
    --wv-border: #dfe7f0;
    --wv-shadow: 0 12px 36px rgba(25, 55, 95, 0.08);
    --wv-radius: 18px;
    --wv-content: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 !important;
    background:
        radial-gradient(
            circle at 50% -180px,
            #eaf3ff 0,
            #f7faff 390px,
            var(--wv-bg) 720px
        ) !important;
    color: var(--wv-text) !important;
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif !important;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--wv-blue);
    text-decoration: none;
}

a:hover {
    color: var(--wv-blue-dark);
}

.wv-ui-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--wv-border);
}

.wv-ui-topbar-inner {
    max-width: var(--wv-content);
    height: 100%;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wv-ui-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--wv-text) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wv-ui-brand img {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 34px;
    object-fit: contain;
}

.wv-ui-brand-divider {
    width: 1px;
    height: 28px;
    background: var(--wv-border);
}

.wv-ui-brand-title {
    font-size: 15px;
    color: #53647a;
    font-weight: 650;
}

.wv-ui-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wv-ui-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    color: #42546b;
    font-size: 14px;
    font-weight: 650;
}

.wv-ui-nav a:hover {
    background: #f0f5fb;
    color: var(--wv-text);
}

.wv-ui-nav .wv-ui-product {
    color: #ffffff;
    background: var(--wv-blue);
    box-shadow: 0 5px 14px rgba(36, 107, 253, 0.18);
}

.wv-ui-nav .wv-ui-product:hover {
    background: var(--wv-blue-dark);
    color: #ffffff;
}

main,
.main,
.container,
.content,
.page-container {
    max-width: var(--wv-content);
    margin-left: auto;
    margin-right: auto;
}

main {
    padding: 52px 28px 80px;
}

h1,
h2,
h3 {
    color: var(--wv-text);
    letter-spacing: -0.035em;
}

h1 {
    margin-top: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.08;
    font-weight: 760;
}

h2 {
    margin-top: 42px;
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.2;
    font-weight: 720;
}

h3 {
    font-size: 20px;
    font-weight: 700;
}

p {
    color: #40536c;
}

.hero,
.help-hero,
.home-hero,
.search-hero,
.hero-section {
    text-align: center;
    max-width: 840px;
    margin: 18px auto 50px;
}

.hero h1,
.help-hero h1,
.home-hero h1,
.search-hero h1 {
    margin-bottom: 16px;
}

.hero p,
.help-hero p,
.home-hero p,
.search-hero p {
    max-width: 720px;
    margin: 0 auto 28px;
    font-size: 18px;
    color: var(--wv-muted);
}

input[type="search"],
input[type="text"],
.search-input,
.search-box input,
form[role="search"] input {
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    border: 1px solid #d5e0ec;
    border-radius: 15px;
    background: #ffffff;
    color: var(--wv-text);
    font: inherit;
    font-size: 16px;
    outline: none;
    box-shadow: 0 10px 30px rgba(27, 65, 108, 0.07);
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        transform .16s ease;
}

input[type="search"]:focus,
input[type="text"]:focus,
.search-input:focus,
.search-box input:focus {
    border-color: #79a9ff;
    box-shadow:
        0 0 0 4px rgba(36, 107, 253, 0.10),
        0 12px 34px rgba(27, 65, 108, 0.09);
}

button,
.button,
.btn,
input[type="submit"] {
    min-height: 44px;
    border: 0;
    border-radius: 11px;
    padding: 0 18px;
    background: var(--wv-blue);
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover,
.button:hover,
.btn:hover,
input[type="submit"]:hover {
    background: var(--wv-blue-dark);
}

.categories,
.category-grid,
.card-grid,
.help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.category-card,
.help-card,
.card,
.category-grid > a,
.categories > a {
    display: block;
    min-height: 150px;
    padding: 24px;
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    border-radius: var(--wv-radius);
    box-shadow: 0 4px 16px rgba(25, 55, 95, 0.035);
    color: var(--wv-text);
    transition:
        transform .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}

.category-card:hover,
.help-card:hover,
.card:hover,
.category-grid > a:hover,
.categories > a:hover {
    transform: translateY(-2px);
    border-color: #c3d7ee;
    box-shadow: var(--wv-shadow);
    color: var(--wv-text);
}

.category-card h2,
.category-card h3,
.help-card h2,
.help-card h3,
.card h2,
.card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.category-card p,
.help-card p,
.card p {
    margin-bottom: 0;
    color: var(--wv-muted);
}

article,
.article,
.article-content {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

article p,
.article p,
.article-content p,
article li {
    font-size: 17px;
    line-height: 1.75;
}

article h1,
.article h1,
.article-content h1 {
    margin-bottom: 18px;
}

article h2,
.article h2,
.article-content h2 {
    padding-top: 12px;
    margin-top: 42px;
    margin-bottom: 14px;
}

article a {
    font-weight: 600;
}

.breadcrumb,
.breadcrumbs,
nav[aria-label="breadcrumb"] {
    max-width: 820px;
    margin: 0 auto 28px;
    color: var(--wv-muted);
    font-size: 14px;
}

.article-list,
.search-results,
.results {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.article-list a,
.search-results a,
.results a,
.search-result {
    display: block;
    padding: 18px 20px;
    background: var(--wv-surface);
    border: 1px solid var(--wv-border);
    border-radius: 13px;
    color: var(--wv-text);
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.article-list a:hover,
.search-results a:hover,
.results a:hover,
.search-result:hover {
    border-color: #bfd3eb;
    box-shadow: 0 8px 25px rgba(25, 55, 95, 0.06);
}

code {
    padding: 2px 6px;
    border-radius: 6px;
    background: #edf3f9;
}

blockquote {
    margin: 26px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--wv-blue);
    border-radius: 0 12px 12px 0;
    background: #f0f6ff;
}

hr {
    border: 0;
    border-top: 1px solid var(--wv-border);
    margin: 40px 0;
}

.wv-ui-footer {
    border-top: 1px solid var(--wv-border);
    background: #ffffff;
}

.wv-ui-footer-inner {
    max-width: var(--wv-content);
    margin: 0 auto;
    padding: 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--wv-muted);
    font-size: 13px;
}

.wv-ui-footer a {
    color: #53647a;
}

@media (max-width: 900px) {
    .categories,
    .category-grid,
    .card-grid,
    .help-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    main {
        padding-top: 38px;
    }
}

@media (max-width: 640px) {
    .wv-ui-topbar {
        height: 64px;
    }

    .wv-ui-topbar-inner {
        padding: 0 18px;
    }

    .wv-ui-brand-divider,
    .wv-ui-brand-title,
    .wv-ui-nav > a:first-child {
        display: none;
    }

    .wv-ui-brand img {
        max-width: 125px;
        max-height: 30px;
    }

    .wv-ui-nav a {
        min-height: 38px;
        padding: 0 11px;
        font-size: 13px;
    }

    main {
        padding: 32px 18px 60px;
    }

    h1 {
        font-size: 36px;
    }

    .categories,
    .category-grid,
    .card-grid,
    .help-grid {
        grid-template-columns: 1fr;
    }

    .category-card,
    .help-card,
    .card,
    .category-grid > a,
    .categories > a {
        min-height: 0;
        padding: 20px;
    }

    article p,
    .article p,
    .article-content p,
    article li {
        font-size: 16px;
    }

    .wv-ui-footer-inner {
        padding: 24px 18px;
        flex-direction: column;
    }
}
