:root {
    color-scheme: dark;
    --bg: #09191c;
    --bg-raised: #102429;
    --bg-card: #0d2024;
    --bg-card-hover: #112a2e;
    --line: #263b40;
    --line-light: #314b50;
    --text: #f0f6f5;
    --copy: #b9cbd0;
    --muted: #849da2;
    --teal: #34d5c4;
    --teal-light: #73e6d8;
    --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-brand: 'Outfit', 'DM Sans', ui-sans-serif, system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
    --wrap: 1190px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--copy); font: 400 15px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; min-width: 0; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; width: 20px; height: 20px; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 4px; }
::selection { background: #286962; color: #fff; }
.container { width: min(var(--wrap), calc(100% - 64px)); margin-inline: auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 12px; transform: translateY(-160%); padding: 10px 16px; background: var(--teal); color: #061719; border-radius: 6px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { height: 82px; background: rgba(9, 25, 28, .97); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-icon { width: 43px; height: 43px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; white-space: nowrap; }
.brand-name { font: 600 17px/1.2 var(--font-brand); letter-spacing: .005em; color: #eff8f5; }
.brand-service { font: 500 11.5px/1.4 var(--font-body); letter-spacing: .075em; color: #66d5c9; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(10px, 1.45vw, 21px); font-size: 12.7px; font-weight: 650; }
.site-nav > a { white-space: nowrap; color: #afc2c7; transition: color .17s; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--teal-light); }
.account-nav { display: flex; align-items: center; gap: 18px; margin-left: 1px; padding-left: 19px; border-left: 1px solid var(--line-light); white-space: nowrap; }
.account-nav > a:not(.register-link) { color: #d0e0e0; }
.account-nav > a:not(.register-link):hover { color: var(--teal-light); }
.account-nav .register-link { background: var(--teal); color: #05201f; border: 1px solid var(--teal); padding: 9px 13px; border-radius: 8px; font-weight: 750; transition: background .16s; }
.account-nav .register-link:hover { background: #75e5d8; }
.menu-toggle { display: none; border: 1px solid var(--line-light); border-radius: 9px; background: #12272b; color: #d5e9e8; width: 43px; height: 43px; align-items: center; justify-content: center; }
.menu-toggle .icon-close { display: none; }

.search-form { width: 100%; display: flex; align-items: center; min-height: 65px; background: #f0f7f6; border: 1px solid rgba(255, 255, 255, .75); border-radius: 11px; padding: 7px 7px 7px 19px; box-shadow: 0 9px 30px rgba(0, 0, 0, .12); }
.search-form:focus-within { outline: 2px solid var(--teal); outline-offset: 3px; }
.search-icon { color: #5b7778; flex-shrink: 0; width: 20px; height: 20px; margin-right: 13px; }
.search-form input { width: 100%; flex: 1; border: 0; outline: 0; background: transparent; color: #183034; font-size: 14.5px; font-weight: 550; }
.search-form input::placeholder { color: #637e81; opacity: 1; }
.search-form input::-webkit-search-cancel-button { cursor: pointer; }
.search-form button { align-self: stretch; flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 11px; border: 0; border-radius: 7px; padding: 0 22px; background: #0c827b; color: #fff; font-weight: 700; font-size: 13.5px; transition: background .2s; }
.search-form button:hover { background: #0a6e68; }
.search-form button svg { width: 16px; height: 16px; }

.footer { border-top: 1px solid var(--line); background: #071619; }
.footer a { color: #a5c4c3; }
.footer a:hover { color: var(--teal-light); }
.site-footer { background: radial-gradient(ellipse 490px 290px at 0% 0%, rgba(28, 95, 88, .095), transparent 85%), #071619; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1fr) 206px; gap: clamp(38px, 7vw, 108px); align-items: start; padding: 51px 0 43px; }
.footer-about { min-width: 0; max-width: 720px; }
.footer-logo { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; }
.footer-logo img { display: block; width: min(180px, 100%); height: auto; object-fit: contain; }
.footer-about p { max-width: 690px; margin-top: 22px; color: #95afb2; font-size: 13px; line-height: 1.85; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; padding-top: 6px; width: 100%; }
.footer-links a { display: block; color: #b7cdcc; font-size: 13px; font-weight: 600; line-height: 1.45; transition: color .15s, transform .15s; }
.footer-links a:hover { color: var(--teal-light); transform: translateX(2px); }
.footer-bottom { display: flex; align-items: center; min-height: 55px; padding: 16px 0 19px; border-top: 1px solid #21373b; color: #779196; font-size: 11.5px; }

@media (max-width: 1220px) {
    .site-header { height: 76px; }
    .menu-toggle { display: flex; flex-shrink: 0; }
    .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
    .menu-toggle[aria-expanded="true"] .icon-close { display: block; }
    .site-nav { display: none; position: absolute; top: 75px; left: 0; right: 0; padding: 12px max(24px, calc((100vw - var(--wrap)) / 2)); background: #0c2023; border-bottom: 1px solid var(--line); box-shadow: 0 20px 25px #0004; align-items: stretch; flex-direction: column; gap: 0; font-size: 14px; }
    .site-nav.is-open { display: flex; }
    .site-nav > a { padding: 13px 4px; border-bottom: 1px solid #264148; }
    .account-nav { padding: 14px 0 4px; margin: 0; border-left: 0; justify-content: space-between; }
}

@media (max-width: 790px) {
    .container { width: min(var(--wrap), calc(100% - 40px)); }
    .footer-top { grid-template-columns: minmax(0, 1fr) 170px; gap: 28px; }
    .footer-about p { font-size: 12.5px; }
}

@media (max-width: 650px) {
    .footer-top { grid-template-columns: 1fr; gap: 30px; padding: 37px 0 29px; }
    .footer-about { max-width: none; }
    .footer-about p { max-width: 100%; margin-top: 18px; }
    .footer-links { padding-top: 22px; border-top: 1px solid #21373b; gap: 12px; }
}

@media (max-width: 550px) {
    .site-header { height: 72px; }
    .site-nav { top: 71px; }
    .brand-icon { width: 38px; height: 38px; }
    .brand { gap: 9px; }
    .brand-name { font-size: 15px; }
    .brand-service { font-size: 10.5px; letter-spacing: .055em; }
    .container { width: calc(100% - 32px); }
    .search-form { min-height: 58px; padding: 6px 6px 6px 13px; }
    .search-icon { width: 17px; height: 17px; margin-right: 9px; }
    .search-form input { font-size: 12px; }
    .search-form button { font-size: 0; padding: 0; width: 45px; gap: 0; }
    .search-form button svg { height: 19px; width: 19px; }
    .footer-logo img { width: min(225px, 100%); }
    .footer-bottom { padding: 17px 0 21px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
