* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --color-black: #08090b;
    --color-ink: #f7f8fa;
    --color-muted: #c4c9d2;
    --color-soft: #9fa7b3;
    --color-line: rgba(255, 255, 255, 0.15);
    --color-glass: rgba(7, 9, 14, 0.72);
    --color-glass-strong: rgba(12, 15, 22, 0.88);
    --color-red: #df291f;
    --color-red-soft: rgba(223, 41, 31, 0.18);
    --color-blue: #1478d4;
    --color-orange: #ff8a1f;
    --space-page: clamp(20px, 5vw, 64px);
    --radius-card: 8px;
    --shadow-deep: 0 28px 80px rgba(0, 0, 0, 0.36);
    --font-system: Inter, Avenir Next, Segoe UI, Helvetica, Arial, sans-serif;
}

html {
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--color-ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(229, 43, 33, 0.17), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(20, 120, 212, 0.2), transparent 30rem),
        linear-gradient(145deg, #08090b 0%, #0a0d13 42%, #030406 100%);
    font-family: var(--font-system);
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 36%, rgba(20, 120, 212, 0.08) 48%, transparent 60%),
        linear-gradient(62deg, transparent 0 58%, rgba(229, 43, 33, 0.1) 68%, transparent 78%);
    opacity: 0.78;
}

a {
    color: #ff8d87;
    font-weight: 700;
    overflow-wrap: anywhere;
    text-underline-offset: 0.18em;
}

a:hover {
    color: #ffffff;
}

:where(a, button, input, textarea, select):focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 20;
    transform: translateY(-180%);
    padding: 12px 16px;
    color: #08090b;
    background: #ffffff;
    font-weight: 800;
}

.skip-link:focus {
    transform: none;
}

.site-shell {
    min-height: 100vh;
    overflow-x: clip;
}

.wrap {
    width: min(980px, 100% - (var(--space-page) * 2));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--color-line);
    background: rgba(8, 9, 11, 0.76);
    backdrop-filter: blur(18px) saturate(125%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    text-decoration: none;
}

.mark {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-left: 3px solid var(--color-red);
    background: linear-gradient(145deg, #df291f, #bd530c);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 12px 34px rgba(229, 43, 33, 0.22);
}

.brand__text {
    display: grid;
    gap: 2px;
}

.brand__name {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand__meta {
    color: var(--color-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.site-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: #ffffff;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(58px, 9vw, 96px) 0 clamp(42px, 7vw, 76px);
    border-bottom: 1px solid var(--color-line);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -55% 16%;
    height: 340px;
    transform: rotate(-8deg);
    background: linear-gradient(90deg, transparent, rgba(20, 120, 212, 0.22), rgba(229, 43, 33, 0.2), transparent);
    filter: blur(24px);
    opacity: 0.72;
}

.hero .wrap {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--color-soft);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    color: #ffffff;
    line-height: 1.05;
}

h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.65rem, 8vw, 5.5rem);
    font-weight: 850;
}

.subtitle {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--color-muted);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    font-weight: 600;
    line-height: 1.7;
}

main {
    padding: clamp(28px, 6vw, 70px) 0 clamp(54px, 8vw, 110px);
}

.content-panel,
.reset-panel {
    border: 1px solid var(--color-line);
    border-left: 3px solid var(--color-red);
    border-radius: var(--radius-card);
    background: var(--color-glass);
    box-shadow: var(--shadow-deep);
    backdrop-filter: blur(22px) saturate(120%);
}

.content-panel {
    padding: clamp(22px, 4vw, 42px);
}

section {
    padding: clamp(22px, 4vw, 34px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

section:first-child {
    padding-top: 0;
}

section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
}

p,
ul,
ol,
address {
    max-width: 780px;
}

p,
ul,
ol {
    color: #d7dce5;
}

address {
    color: #eef1f5;
    font-style: normal;
}

li + li {
    margin-top: 8px;
}

code {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    padding: 2px 5px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.updated {
    margin: 0;
    color: var(--color-soft);
    font-size: 0.95rem;
    font-weight: 800;
}

.notice {
    border: 1px solid rgba(229, 43, 33, 0.36);
    border-left: 3px solid var(--color-orange);
    border-radius: 6px;
    padding: 16px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(229, 43, 33, 0.17), rgba(255, 138, 31, 0.09));
}

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 0 18px;
    background: var(--color-red);
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
button:hover {
    background: #d3241c;
    color: #ffffff;
}

button:disabled {
    cursor: default;
    opacity: 0.62;
}

.reset-panel {
    width: min(520px, 100% - (var(--space-page) * 2));
    margin: 0 auto;
    padding: clamp(24px, 5vw, 38px);
}

.reset-panel h1 {
    font-size: clamp(2.2rem, 7vw, 3.4rem);
}

form {
    display: grid;
    gap: 15px;
    margin-top: 28px;
}

label {
    display: grid;
    gap: 7px;
    color: #ffffff;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 12px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);
    font: inherit;
}

input[readonly],
input:disabled {
    color: #c5cad3;
    background: rgba(255, 255, 255, 0.05);
}

.msg {
    min-height: 1.5em;
    margin-top: 18px;
    color: #ffffff;
    font-weight: 800;
}

.site-footer {
    border-top: 1px solid var(--color-line);
    padding: 28px 0 38px;
    color: var(--color-soft);
    background: rgba(3, 4, 6, 0.56);
}

.site-footer__inner {
    display: grid;
    gap: 14px;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.site-footer a {
    color: var(--color-muted);
    font-size: 0.92rem;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
}

.site-footer p {
    margin: 0;
    color: var(--color-soft);
}

@media (max-width: 760px) {
    .site-header__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 4px 16px;
    }

    .site-nav a {
        min-height: 40px;
    }

    .brand__name {
        font-size: 13px;
    }
}

@media (max-width: 430px) {
    :root {
        --space-page: 18px;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(2rem, 8.8vw, 2.65rem);
        white-space: normal;
        hyphens: auto;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .mark {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .brand {
        gap: 11px;
    }

    .brand__meta {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
