:root {
    --sw-bg: #1e1126;
    --sw-surface: #2c183a;
    --sw-accent: #7b3ead;
    --sw-text: #ffffff;
    --sw-muted: rgba(255, 255, 255, 0.78);
    --sw-border: rgba(255, 255, 255, 0.18);
}

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

body.sw-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Roboto Serif", serif;
    color: var(--sw-text);
    background:
        radial-gradient(circle at 20% 10%, rgba(123, 62, 173, 0.25), transparent 45%),
        radial-gradient(circle at 80% 90%, rgba(123, 62, 173, 0.2), transparent 50%),
        var(--sw-bg);
}

a {
    color: var(--sw-text);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.9;
}

.sw-site {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.sw-main {
    flex: 1;
    padding: 1.25rem 0 2rem;
}

.sw-shell {
    width: min(1200px, calc(100% - 2rem));
    margin-right: auto;
    margin-left: auto;
}

.sw-glass {
    border: 1px solid var(--sw-border);
    border-radius: 18px;
    background: rgba(44, 24, 58, 0.72);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
    animation: sw-rise 0.35s ease;
}

.sw-header {
    padding: 1rem 0 0.6rem;
}

.sw-header__inner {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
}

.sw-brand {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.sw-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.sw-nav a {
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(123, 62, 173, 0.72), rgba(89, 39, 128, 0.58));
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sw-nav a:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.sw-home-intro,
.sw-home-catalog,
.sw-page-content,
.sw-footer__inner {
    padding: 1.25rem;
}

.sw-home-intro p,
.sw-section-head p,
.sw-notice,
.sw-footer__copy {
    margin: 0.45rem 0 0;
    color: var(--sw-muted);
}

.sw-home-catalog,
.sw-page-content {
    margin-top: 1rem;
}

.sw-section-head {
    margin-bottom: 1.1rem;
}

.sw-products .products {
    margin: 0;
    padding: 0;
}

.sw-products ul.products li.product,
.sw-page-content ul.products li.product {
    border: 1px solid var(--sw-border);
    border-radius: 16px;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
}

.sw-products .button,
.sw-page-content .button,
button,
input[type="submit"] {
    border: 0;
    border-radius: 999px;
    color: var(--sw-text);
    background: linear-gradient(135deg, var(--sw-accent), #9a58d1);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.sw-products .button:hover,
.sw-page-content .button:hover,
button:hover,
input[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

.sw-article {
    padding: 1.2rem;
    border: 1px solid var(--sw-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
}

.sw-article__title {
    margin-top: 0;
}

.sw-footer {
    margin-top: auto;
    padding: 1rem 0 1.4rem;
}

.sw-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.sw-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .sw-main {
        padding-top: 1.8rem;
    }

    .sw-header__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
    }

    .sw-home-intro,
    .sw-home-catalog,
    .sw-page-content,
    .sw-footer__inner {
        padding: 1.5rem;
    }
}

@keyframes sw-rise {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
