/* Oxygen Proxy — marketing site
   Strict black / white / gray. No color accents, no gradients, no glow,
   no radius, no animation. */

:root {
	--bg: #000000;
	--text: #ffffff;
	--muted: #888888;
	--border: #333333;
	--font-heading: "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-mono: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
	--max-width: 1200px;
	--nav-height: 72px;
}

* {
	box-sizing: border-box;
}

html,
body {
	background: var(--bg);
}

body {
	margin: 0;
	color: var(--text);
	font-family: var(--font-heading);
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

::selection {
	background: var(--text);
	color: var(--bg);
}

.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 16px 32px;
	border-radius: 0;
	border: 1px solid var(--text);
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	background: transparent;
	color: var(--text);
	transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline:hover {
	background: var(--text);
	color: var(--bg);
}

.btn-filled {
	background: var(--text);
	color: var(--bg);
}

.btn-filled:hover {
	background: var(--muted);
	border-color: var(--muted);
}

/* ---------- Nav ---------- */

.nav {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg);
	border-bottom: 1px solid var(--border);
}

.nav-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
	height: var(--nav-height);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--text);
}

.brand-mark {
	width: 32px;
	height: 32px;
	object-fit: contain;
}

.brand-text {
	font-family: var(--font-heading);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 36px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-links a {
	font-family: var(--font-mono);
	color: var(--muted);
	text-decoration: none;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: 0.06em;
	transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
	color: var(--text);
}

.nav-toggle {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 38px;
	height: 38px;
	border: 1px solid var(--border);
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.nav-toggle span {
	display: block;
	width: 16px;
	height: 1px;
	margin: 0 auto;
	background: var(--text);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
	.nav-links {
		position: fixed;
		inset: var(--nav-height) 0 0 0;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 0;
		padding: 8px 24px;
		background: var(--bg);
		transform: translateX(100%);
		transition: transform 0.2s ease;
		overflow-y: auto;
	}

	.nav-links.open {
		transform: translateX(0);
	}

	.nav-links a {
		width: 100%;
		padding: 18px 0;
		font-size: 15px;
		border-bottom: 1px solid var(--border);
	}
}

@media (min-width: 861px) {
	.nav-toggle {
		display: none;
	}
}

/* ---------- Hero (index only) ---------- */

.hero {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 0 24px 56px;  /* убрал отступ сверху */
}

.hero-logo {
    height: min(48vh, 460px);
    width: auto;
    margin: auto 0;  /* подтянет логотип ближе к навбару */
}

.hero h1 {
	margin: -48px 0 0;
	font-family: var(--font-heading);
	font-size: clamp(2.75rem, 9vw, 7rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
	text-wrap: balance;
}

.hero .subtitle {
	margin: 24px 0 0;
	color: var(--muted);
	font-size: 18px;
	font-weight: 400;
}

.hero-actions {
	margin-top: 44px;
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.hero-tagline {
	text-align: center;
	padding: 0 24px 56px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	letter-spacing: 0.08em;
	color: var(--muted);
	text-transform: uppercase;
}

/* ---------- Page header (all other pages) ---------- */

.page-head {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 72px 24px 48px;
	border-bottom: 1px solid var(--border);
}

.page-head h1 {
	font-family: var(--font-heading);
	font-size: clamp(2.25rem, 6vw, 3.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0;
}

.page-head p {
	margin: 16px 0 0;
	color: var(--muted);
	font-size: 16px;
	max-width: 620px;
	line-height: 1.7;
}

/* ---------- Numbered sections (protocols, install) ---------- */

.numbered-list {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.numbered-item {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 32px;
	padding: 56px 0;
	border-bottom: 1px solid var(--border);
}

.numbered-item:last-child {
	border-bottom: none;
}

.numbered-item .num {
	font-family: var(--font-mono);
	font-size: 56px;
	font-weight: 300;
	color: var(--muted);
	line-height: 1;
}

.numbered-item .body h2,
.numbered-item .body h3 {
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 14px;
}

.numbered-item .body p {
	margin: 0 0 20px;
	color: var(--muted);
	font-size: 15.5px;
	line-height: 1.75;
	max-width: 640px;
}

.numbered-item .body p:last-child {
	margin-bottom: 0;
}

.download-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.download-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border: 1px solid var(--border);
	color: var(--text);
	text-decoration: none;
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.02em;
	transition: border-color 0.15s ease;
}

.download-btn:hover {
	border-color: var(--text);
}

@media (max-width: 640px) {
	.numbered-item {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 40px 0;
	}

	.numbered-item .num {
		font-size: 40px;
	}
}

/* ---------- Servers list ---------- */

.server-list {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 8px 24px 0;
}

.server-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 24px 0;
	border-bottom: 1px solid var(--border);
}

.server-row .location {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 16px;
}

.server-row .flag {
	font-size: 20px;
}

.server-row .status {
	font-family: var(--font-mono);
	font-size: 13px;
	color: var(--muted);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.server-note {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 32px 24px 96px;
	color: var(--muted);
	font-family: var(--font-mono);
	font-size: 13px;
	letter-spacing: 0.02em;
}

/* ---------- Pricing table ---------- */

.pricing-list {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 8px 24px 0;
}

.price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 28px 0;
	border-bottom: 1px solid var(--border);
}

.price-row .term {
	font-size: 17px;
}

.price-row .amount {
	font-family: var(--font-mono);
	font-size: 22px;
	font-weight: 700;
	text-align: right;
}

.price-row .per-month {
	display: block;
	margin-top: 4px;
	font-family: var(--font-mono);
	font-size: 12.5px;
	font-weight: 400;
	color: var(--muted);
}

.pricing-cta {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 56px 24px 96px;
	text-align: center;
}

/* ---------- Contacts ---------- */

.contact-list {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 8px 24px 96px;
}

.contact-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 26px 0;
	border-bottom: 1px solid var(--border);
	flex-wrap: wrap;
}

.contact-row:last-child {
	border-bottom: none;
}

.contact-row .label {
	font-family: var(--font-mono);
	font-size: 12.5px;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.contact-row .value {
	font-size: 17px;
	text-decoration: none;
	color: var(--text);
}

.contact-row .value:hover {
	color: var(--muted);
}

/* ---------- Legal pages ---------- */

.legal {
	max-width: 760px;
	margin: 0 auto;
	padding: 72px 24px 120px;
}

.legal h1 {
	font-family: var(--font-heading);
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 48px;
}

.legal h2 {
	font-family: var(--font-heading);
	font-size: 18px;
	font-weight: 700;
	margin: 40px 0 16px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

.legal h2:first-of-type {
	border-top: none;
	padding-top: 0;
	margin-top: 8px;
}

.legal p {
	color: var(--muted);
	font-size: 15px;
	line-height: 1.8;
	margin: 0 0 14px;
}

.legal p.closing {
	color: var(--text);
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
}

/* ---------- Footer ---------- */

.site-footer {
	border-top: 1px solid var(--border);
	padding: 40px 0;
}

.footer-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	text-align: center;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 28px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links a {
	font-family: var(--font-mono);
	color: var(--muted);
	text-decoration: none;
	font-size: 12.5px;
	letter-spacing: 0.02em;
	transition: color 0.15s ease;
}

.footer-links a:hover {
	color: var(--text);
}

.footer-copy {
	font-family: var(--font-mono);
	color: var(--muted);
	font-size: 12px;
	letter-spacing: 0.02em;
}
