/*
 * Corenet theme styles
 * Palette: paper / mist / ink (navy) / signal (amber status-LED accent)
 * Type: Archivo, using its width axis for headlines
 */

:root {
	--paper: #ffffff;
	--mist: #f3f5f7;
	--ink: #15243b;
	--text: #46525f;
	--muted: #6a7683;
	--line: #dce1e7;
	--line-strong: #b9c3ce;
	--signal: #f0a202;
	--signal-text: #8f5b00;
	--btn: #15243b;
	--btn-ink: #ffffff;
	--btn-hover: #213759;
	--foot: #15243b;
	--foot-text: #b8c2d0;
	--foot-ink: #ffffff;
	--foot-line: rgba(255, 255, 255, 0.12);
	--danger: #b8402c;

	--font: "Archivo", "Onest", "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--wide: 116%;
	--header-h: 80px;
	--wrap: 1200px;
	--gutter: 24px;

	color-scheme: light;
	box-sizing: border-box;
	padding-top: env(safe-area-inset-top, 0px);
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #0e1622;
		--mist: #131d2b;
		--ink: #e9eef5;
		--text: #b3bdca;
		--muted: #8a97a7;
		--line: #243042;
		--line-strong: #3a4a60;
		--signal: #f5b12a;
		--signal-text: #f5b12a;
		--btn: #f5b12a;
		--btn-ink: #1a1300;
		--btn-hover: #ffc24d;
		--foot: #0a1019;
		--foot-text: #9eabbb;
		--foot-ink: #ffffff;
		--foot-line: rgba(255, 255, 255, 0.08);
		--danger: #ff8a73;
		color-scheme: dark;
	}
}

:root[data-theme="dark"] {
	--paper: #0e1622;
	--mist: #131d2b;
	--ink: #e9eef5;
	--text: #b3bdca;
	--muted: #8a97a7;
	--line: #243042;
	--line-strong: #3a4a60;
	--signal: #f5b12a;
	--signal-text: #f5b12a;
	--btn: #f5b12a;
	--btn-ink: #1a1300;
	--btn-hover: #ffc24d;
	--foot: #0a1019;
	--foot-text: #9eabbb;
	--foot-ink: #ffffff;
	--foot-line: rgba(255, 255, 255, 0.08);
	--danger: #ff8a73;
	color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
	background: var(--foot);
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 24px);
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

body::before {
	content: "";
	position: fixed;
	inset: 0 0 auto;
	height: env(safe-area-inset-top, 0px);
	z-index: 60;
	background: var(--paper);
}

[hidden] {
	display: none !important;
}

img,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--ink);
	text-decoration-color: var(--line-strong);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
	text-decoration-color: var(--signal);
}

:focus-visible {
	outline: 2px solid var(--signal);
	outline-offset: 3px;
	border-radius: 3px;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--ink);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

.wrap {
	width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -80px;
	z-index: 100;
	padding: 10px 16px;
	border-radius: 6px;
	background: var(--btn);
	color: var(--btn-ink);
	text-decoration: none;
	font-weight: 600;
}

.skip-link:focus {
	top: calc(env(safe-area-inset-top, 0px) + 12px);
}

.icon {
	display: block;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.icon .f {
	fill: currentColor;
	stroke: none;
}

/* Georgian text: taller letterforms and longer words */
:lang(ka) h1,
:lang(ka) h2,
:lang(ka) h3 {
	line-height: 1.3;
	letter-spacing: 0;
}

.hero h1:lang(ka) {
	max-width: 14em;
	font-size: clamp(1.9rem, 3.4vw, 2.9rem);
}

.page-hero h1:lang(ka) {
	font-size: clamp(1.9rem, 3.8vw, 3.1rem);
}

.footer-cta h2:lang(ka),
.section-head h2:lang(ka),
.why-head h2:lang(ka) {
	font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

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

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55em;
	min-height: 48px;
	padding: 0.75em 1.4em;
	border: 1.5px solid transparent;
	border-radius: 6px;
	font: inherit;
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-solid {
	background: var(--btn);
	color: var(--btn-ink);
}

.btn-solid:hover {
	background: var(--btn-hover);
}

.btn-line {
	border-color: var(--line-strong);
	background: transparent;
	color: var(--ink);
}

.btn-line:hover {
	border-color: var(--ink);
}

.btn-signal {
	background: var(--signal);
	color: #1a1300;
}

.btn-signal:hover {
	background: #ffbb2e;
}

.site-footer .btn-signal,
.site-footer .btn-signal:hover {
	color: #1a1300;
}

.btn-sm {
	min-height: 40px;
	padding: 0.55em 1.05em;
	font-size: 0.92rem;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: env(safe-area-inset-top, 0px);
	z-index: 50;
	background: var(--paper);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
	box-shadow: 0 10px 30px -18px rgba(21, 36, 59, 0.35);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	height: var(--header-h);
}

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

.brand-mark {
	display: block;
	width: 34px;
	height: 34px;
	flex: none;
}

.m-ring {
	fill: none;
	stroke: currentColor;
	stroke-width: 3.2;
	stroke-linecap: round;
}

.m-core {
	fill: currentColor;
}

.m-node {
	fill: var(--signal);
}

.brand-word {
	font-size: 1.5rem;
	font-weight: 620;
	font-stretch: 122%;
	letter-spacing: -0.02em;
	line-height: 1;
	text-transform: lowercase;
}

.custom-logo {
	display: block;
	max-height: 46px;
	width: auto;
}

.primary-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
}

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

.nav-list a {
	position: relative;
	display: block;
	padding: 10px 11px;
	border-radius: 6px;
	color: var(--text);
	font-size: 0.97rem;
	font-weight: 500;
	text-decoration: none;
}

.nav-list a:hover {
	color: var(--ink);
}

.nav-list a,
.btn {
	white-space: nowrap;
}

.nav-list a:lang(ka) {
	padding-inline: 5px;
	font-size: 0.86rem;
}

.primary-nav:lang(ka) {
	gap: 16px;
}

.nav-list a[aria-current="page"] {
	color: var(--ink);
}

.nav-list a[aria-current="page"]::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 6px;
	height: 6px;
	margin-left: -3px;
	border-radius: 1.5px;
	background: var(--signal);
}

.nav-extra {
	display: flex;
	align-items: center;
	gap: 14px;
}

/* Language dropdown, top right */
.lang-menu {
	position: relative;
	flex: none;
}

.lang-menu > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 11px;
	border: 1px solid var(--line);
	border-radius: 6px;
	color: var(--ink);
	font-size: 0.88rem;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.15s, background-color 0.15s;
}

.lang-menu > summary::-webkit-details-marker {
	display: none;
}

.lang-menu > summary::marker {
	content: "";
}

.lang-menu > summary:hover,
.lang-menu[open] > summary {
	border-color: var(--line-strong);
	background: var(--mist);
}

.lang-chev {
	width: 7px;
	height: 7px;
	margin: 0 1px 0 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.15s;
}

.lang-menu[open] .lang-chev {
	transform: translateY(2px) rotate(-135deg);
}

.lang-list {
	position: absolute;
	right: 0;
	top: calc(100% + 8px);
	z-index: 70;
	min-width: 196px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 8px;
	box-shadow: 0 18px 40px -20px rgba(21, 36, 59, 0.45);
}

.lang-list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 10px;
	border-radius: 5px;
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
}

.lang-list a:hover,
.lang-list a:focus-visible {
	background: var(--mist);
}

.lang-list a.is-current {
	background: var(--mist);
}

.lang-list a.is-current::after {
	content: "";
	width: 6px;
	height: 6px;
	margin-left: 8px;
	border-radius: 1.5px;
	background: var(--signal);
}

.lang-name {
	margin-left: auto;
	color: var(--muted);
	font-size: 0.82rem;
	font-weight: 400;
}

.flag {
	display: block;
	flex: none;
	width: 20px;
	height: 14px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(21, 36, 59, 0.14);
}

.nav-toggle {
	display: none;
}

/* ---------- Home hero ---------- */

.hero {
	overflow: hidden;
	background: var(--paper);
}

.hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
	padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px);
}

.hero h1 {
	max-width: 11em;
	font-size: clamp(2.3rem, 4.7vw, 3.9rem);
	font-stretch: var(--wide);
	line-height: 1.04;
	letter-spacing: -0.025em;
}

.hero-lead {
	max-width: 32em;
	margin: 28px 0 0;
	font-size: clamp(1.06rem, 1.45vw, 1.22rem);
	line-height: 1.55;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 36px;
}

.hero-art {
	width: 100%;
}

.hero-solo {
	grid-template-columns: minmax(0, 1fr);
}

.hero-solo h1 {
	max-width: 16em;
}

/* Network topology drawing */

.topo {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.topo .t-wire {
	fill: none;
	stroke: var(--line-strong);
	stroke-width: 1.5;
}

.topo .t-wan {
	fill: none;
	stroke: var(--line-strong);
	stroke-width: 1.5;
	stroke-dasharray: 3 6;
	stroke-linecap: round;
}

.topo .t-box {
	fill: var(--paper);
	stroke: var(--ink);
	stroke-width: 1.5;
}

.topo .t-ic {
	fill: none;
	stroke: var(--ink);
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.topo .t-ic .f {
	fill: var(--ink);
	stroke: none;
}

.topo .t-led {
	fill: var(--signal);
}

.topo .t-label {
	fill: var(--muted);
	font-family: var(--font);
	font-size: 15px;
	font-weight: 500;
}

.topo .t-orbit {
	fill: none;
	stroke: var(--line-strong);
	stroke-width: 1.5;
	stroke-dasharray: 2 7;
	stroke-linecap: round;
}

.topo .t-halo {
	fill: none;
	stroke: var(--signal);
	stroke-width: 2;
}

.topo .t-disc {
	fill: var(--ink);
}

.topo .t-mark .m-ring {
	stroke: var(--paper);
}

.topo .t-mark .m-core {
	fill: var(--paper);
}

.topo .t-packet {
	fill: var(--signal);
}

@media (prefers-reduced-motion: no-preference) {
	.topo .t-wire {
		stroke-dasharray: 1;
		stroke-dashoffset: 1;
		animation: topo-draw 0.9s cubic-bezier(0.6, 0, 0.2, 1) var(--d, 0s) forwards;
	}

	.topo .t-wan,
	.topo .t-node,
	.topo .t-core {
		opacity: 0;
		animation: topo-fade 0.6s ease var(--d, 0s) forwards;
	}

	.topo .t-orbit {
		transform-box: fill-box;
		transform-origin: center;
		animation: topo-spin 90s linear infinite;
	}
}

@media (prefers-reduced-motion: reduce) {
	.topo .t-packet {
		display: none;
	}
}

@keyframes topo-draw {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes topo-fade {
	to {
		opacity: 1;
	}
}

@keyframes topo-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Home sections ---------- */

.section {
	padding: clamp(64px, 8vw, 112px) 0;
}

.band-mist {
	background: var(--mist);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.section-head {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 16px 48px;
	align-items: end;
	margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head h2,
.why-head h2 {
	font-size: clamp(1.9rem, 3.3vw, 2.7rem);
	font-stretch: var(--wide);
	letter-spacing: -0.02em;
}

.section-head p {
	max-width: 36em;
	margin: 0;
}

/* Patch panel of practice areas */

.panel {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1px;
	overflow: hidden;
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 8px;
}

.port {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 26px 24px 24px;
	background: var(--paper);
	transition: background-color 0.2s;
}

.port:hover {
	background: color-mix(in srgb, var(--paper) 94%, var(--signal));
}

.port-led {
	display: block;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--line-strong);
	transition: background-color 0.2s, box-shadow 0.2s;
}

.port:hover .port-led,
.port:focus-within .port-led {
	background: var(--signal);
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--signal) 22%, transparent);
}

.port-icon {
	display: block;
	width: 40px;
	height: 40px;
	margin: 28px 0 20px;
	color: var(--ink);
}

.port-icon .icon {
	width: 40px;
	height: 40px;
	stroke-width: 1.3;
}

.port h3 {
	font-size: 1.22rem;
	font-stretch: var(--wide);
}

.port h3 a {
	color: inherit;
	text-decoration: none;
}

.port h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.port h3 a:focus-visible {
	outline: none;
}

.port:focus-within {
	outline: 2px solid var(--signal);
	outline-offset: -2px;
}

.port p {
	margin: 10px 0 18px;
	font-size: 0.95rem;
	line-height: 1.55;
}

.port ul {
	display: grid;
	gap: 7px;
	margin: 0;
	padding: 16px 0 0;
	border-top: 1px solid var(--line);
	list-style: none;
	color: var(--muted);
	font-size: 0.88rem;
	line-height: 1.4;
}

.port-more {
	margin-top: auto;
	padding-top: 22px;
	color: var(--ink);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--line-strong);
	text-underline-offset: 0.25em;
}

.port:hover .port-more {
	text-decoration-color: var(--signal);
}

/* Project stages */

.steps {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.steps::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 20px;
	height: 1px;
	background: var(--line-strong);
}

.step {
	position: relative;
}

.step-node {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1.5px solid var(--ink);
	border-radius: 50%;
	background: var(--paper);
	color: var(--ink);
	font-size: 0.95rem;
	font-weight: 600;
}

.step h3 {
	margin: 24px 0 10px;
	font-size: 1.25rem;
	font-stretch: var(--wide);
}

.step p {
	margin: 0;
	font-size: 0.97rem;
}

/* Why Corenet */

.why {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 32px 48px;
}

.why-head p {
	max-width: 26em;
	margin: 16px 0 0;
}

.why-list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.why-item {
	padding: 24px 0 28px;
	border-top: 1px solid var(--line);
}

.why-item .icon {
	width: 28px;
	height: 28px;
	color: var(--ink);
}

.why-item h3 {
	margin: 16px 0 8px;
	font-size: 1.1rem;
}

.why-item p {
	margin: 0;
	font-size: 0.97rem;
}

.front-content {
	padding-bottom: clamp(64px, 8vw, 112px);
}

/* ---------- Inner page hero ---------- */

.page-hero {
	background: var(--mist);
	border-bottom: 1px solid var(--line);
}

.page-hero-inner {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: 40px 64px;
	align-items: end;
	padding: clamp(36px, 4.5vw, 56px) 0 clamp(48px, 6vw, 80px);
}

.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 0.9rem;
}

.crumbs li + li::before {
	content: "/";
	margin-right: 8px;
	color: var(--line-strong);
}

.crumbs a {
	color: var(--muted);
	text-decoration: none;
}

.crumbs a:hover {
	color: var(--ink);
}

.page-hero h1 {
	font-size: clamp(2.3rem, 5vw, 4rem);
	font-stretch: var(--wide);
	line-height: 1.03;
	letter-spacing: -0.025em;
}

.page-lead {
	max-width: 34em;
	margin: 22px 0 0;
	font-size: clamp(1.06rem, 1.55vw, 1.28rem);
	line-height: 1.5;
}

.toc {
	padding-left: 24px;
	border-left: 1px solid var(--line-strong);
}

.toc-title {
	margin: 0 0 10px;
	color: var(--muted);
	font-size: 0.9rem;
	font-weight: 500;
}

.toc ul {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.toc a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 5px 0;
	color: var(--ink);
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none;
}

.toc a::before {
	content: "";
	flex: none;
	width: 9px;
	height: 9px;
	border: 1.5px solid var(--ink);
	border-radius: 2px;
	transition: background-color 0.15s, border-color 0.15s;
}

.toc a:hover::before {
	border-color: var(--signal);
	background: var(--signal);
}

/* ---------- Page content ---------- */

.entry {
	padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 112px);
}

.entry > :first-child {
	margin-top: 0;
}

.entry > :not(.cn-intro):not(.cn-section) {
	max-width: 72ch;
}

.entry > h2 {
	margin: 1.6em 0 0.6em;
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-stretch: var(--wide);
}

.entry > h3 {
	margin: 1.4em 0 0.5em;
	font-size: 1.25rem;
}

/* WordPress wraps group content in an inner container for classic themes */
.entry .wp-block-group__inner-container {
	display: contents;
}

.entry .cn-intro,
.entry .cn-section {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	column-gap: 48px;
	row-gap: 0;
	margin: 0;
}

.entry :is(.cn-intro, .cn-intro > .wp-block-group__inner-container) > *,
.entry :is(.cn-section, .cn-section > .wp-block-group__inner-container) > * {
	margin-block: 0;
}

.entry .cn-intro {
	padding-bottom: clamp(40px, 5vw, 72px);
}

.entry :is(.cn-intro, .cn-intro > .wp-block-group__inner-container) > p {
	grid-column: 2;
	max-width: 62ch;
	margin-top: 16px;
}

.entry :is(.cn-intro, .cn-intro > .wp-block-group__inner-container) > p:first-child {
	grid-column: 1 / -1;
	max-width: 34em;
	margin: 0 0 12px;
	color: var(--ink);
	font-size: clamp(1.3rem, 2.2vw, 1.7rem);
	line-height: 1.42;
	letter-spacing: -0.005em;
}

.entry .cn-section {
	padding: clamp(36px, 4.5vw, 56px) 0;
	border-top: 1px solid var(--line);
}

.entry :is(.cn-section, .cn-section > .wp-block-group__inner-container) > h2 {
	position: sticky;
	top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 32px);
	grid-column: 1;
	grid-row: 1 / span 20;
	align-self: start;
	padding-right: 16px;
	font-size: clamp(1.45rem, 2.3vw, 1.95rem);
	font-stretch: var(--wide);
	letter-spacing: -0.015em;
}

.entry :is(.cn-section, .cn-section > .wp-block-group__inner-container) > :not(h2) {
	grid-column: 2;
}

.entry :is(.cn-section, .cn-section > .wp-block-group__inner-container) > p {
	max-width: 62ch;
	margin-bottom: 20px;
}

.entry :is(.cn-section, .cn-section > .wp-block-group__inner-container) > p:last-child {
	margin-bottom: 0;
}

.entry :is(.cn-section, .cn-section > .wp-block-group__inner-container) > ul {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 32px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.entry :is(.cn-section, .cn-section > .wp-block-group__inner-container) > ul > li {
	position: relative;
	padding: 12px 0 12px 24px;
	border-top: 1px solid var(--line);
	color: var(--ink);
	font-size: 0.98rem;
	line-height: 1.45;
}

.entry :is(.cn-section, .cn-section > .wp-block-group__inner-container) > ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 19px;
	width: 9px;
	height: 9px;
	border: 1.5px solid var(--ink);
	border-radius: 2px;
}

.entry .cn-section strong {
	font-weight: 600;
}

/* ---------- Contact page ---------- */

.contact {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
	gap: 48px 64px;
	padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 112px);
}

.form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.field {
	display: grid;
	align-content: start;
	gap: 8px;
}

.field-full {
	grid-column: 1 / -1;
}

.field label {
	color: var(--ink);
	font-size: 0.92rem;
	font-weight: 600;
}

.field .req {
	color: var(--signal-text);
}

.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	border: 1px solid var(--line-strong);
	border-radius: 6px;
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
	min-height: 168px;
	resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 45%, transparent);
}

.select-wrap {
	position: relative;
}

.select-wrap select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 44px;
}

.select-wrap::after {
	content: "";
	position: absolute;
	right: 18px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 1.5px solid var(--ink);
	border-bottom: 1.5px solid var(--ink);
	transform: translateY(-70%) rotate(45deg);
	pointer-events: none;
}

.form-foot {
	display: flex;
	flex-wrap: wrap;
	grid-column: 1 / -1;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-top: 4px;
}

.form-note {
	max-width: 30em;
	margin: 0;
	color: var(--muted);
	font-size: 0.88rem;
}

.hp-field {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.notice {
	grid-column: 1 / -1;
	padding: 14px 16px;
	border: 1px solid;
	border-radius: 6px;
	color: var(--ink);
	font-size: 0.97rem;
}

.notice:focus {
	outline: none;
}

.notice-ok {
	border-color: color-mix(in srgb, var(--signal) 70%, transparent);
	background: color-mix(in srgb, var(--signal) 12%, var(--paper));
}

.notice-err {
	border-color: var(--danger);
	background: color-mix(in srgb, var(--danger) 9%, var(--paper));
}

.details {
	align-self: start;
	padding: 32px;
	background: var(--mist);
	border: 1px solid var(--line);
	border-radius: 8px;
}

.details h2 {
	margin-bottom: 8px;
	font-size: 1.3rem;
	font-stretch: var(--wide);
}

.details dl {
	margin: 0;
}

.details .row {
	display: grid;
	grid-template-columns: 22px 1fr;
	gap: 2px 14px;
	padding: 16px 0;
	border-top: 1px solid var(--line);
}

.details .row:last-child {
	padding-bottom: 0;
}

.details .icon {
	grid-row: 1 / span 2;
	width: 20px;
	height: 20px;
	margin-top: 2px;
	color: var(--ink);
}

.details dt {
	grid-column: 2;
	color: var(--muted);
	font-size: 0.86rem;
}

.details dd {
	grid-column: 2;
	margin: 0;
	color: var(--ink);
	font-weight: 500;
	overflow-wrap: anywhere;
}

.details dd a {
	text-decoration: none;
}

.details dd a:hover {
	text-decoration: underline;
	text-decoration-color: var(--signal);
}

/* ---------- Simple pages (blog index, 404) ---------- */

.simple {
	padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 112px);
}

.post-list {
	display: grid;
	gap: 0;
	max-width: 72ch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.post-list li {
	padding: 24px 0;
	border-top: 1px solid var(--line);
}

.post-list h2 {
	font-size: 1.4rem;
	font-stretch: var(--wide);
}

.post-list h2 a {
	text-decoration: none;
}

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

.site-footer {
	background: var(--foot);
	color: var(--foot-text);
	font-size: 0.95rem;
}

.site-footer a {
	color: var(--foot-text);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--foot-ink);
}

.footer-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 48px;
	padding: clamp(48px, 6vw, 80px) 0;
	border-bottom: 1px solid var(--foot-line);
}

.footer-cta h2 {
	max-width: 17em;
	color: var(--foot-ink);
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	font-stretch: var(--wide);
	letter-spacing: -0.02em;
}

.footer-cta p {
	max-width: 36em;
	margin: 14px 0 0;
}

.footer-main {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
	gap: 40px;
	padding: 56px 0;
}

.footer-main .brand {
	color: var(--foot-ink);
}

.footer-about {
	max-width: 26em;
	margin: 18px 0 0;
}

.footer-title {
	margin: 0 0 16px;
	color: var(--foot-ink);
	font-size: 0.95rem;
	font-weight: 600;
}

.footer-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-contact li {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 12px;
	align-items: start;
	overflow-wrap: anywhere;
}

.footer-contact .icon {
	width: 18px;
	height: 18px;
	margin-top: 3px;
}

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 24px;
	padding: 24px 0 32px;
	border-top: 1px solid var(--foot-line);
	font-size: 0.86rem;
}

.footer-social {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
	.header-inner {
		gap: 10px;
	}

	.header-inner > .lang-menu {
		margin-left: auto;
	}

	.nav-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		padding: 0;
		border: 1px solid var(--line);
		border-radius: 6px;
		background: var(--paper);
		color: var(--ink);
		cursor: pointer;
	}

	.nav-toggle .icon {
		width: 22px;
		height: 22px;
	}

	.nav-toggle .i-close,
	.nav-open .nav-toggle .i-open {
		display: none;
	}

	.nav-open .nav-toggle .i-close {
		display: block;
	}

	.primary-nav {
		position: fixed;
		left: 0;
		right: 0;
		top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
		bottom: 0;
		flex-direction: column;
		align-items: stretch;
		justify-content: space-between;
		gap: 24px;
		margin: 0;
		padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
		overflow-y: auto;
		background: var(--paper);
		border-top: 1px solid var(--line);
		visibility: hidden;
		opacity: 0;
		transform: translateY(-6px);
		transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
	}

	.nav-open .primary-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		transition: opacity 0.2s, transform 0.2s;
	}

	.nav-open {
		overflow: hidden;
	}

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-list li {
		border-bottom: 1px solid var(--line);
	}

	.nav-list a,
	.nav-list a:lang(ka) {
		padding: 16px 4px;
		font-size: 1.2rem;
		font-stretch: var(--wide);
	}

	.nav-list a[aria-current="page"]::before {
		left: auto;
		right: 6px;
		top: 50%;
		margin: -3px 0 0;
	}

	.nav-extra .btn {
		flex: 1;
	}
}

@media (max-width: 1080px) {
	.panel {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.panel .port:last-child {
		grid-column: 1 / -1;
	}

	.footer-main {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.hero-inner,
	.page-hero-inner,
	.section-head,
	.why,
	.contact,
	.entry .cn-intro,
	.entry .cn-section {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero-art {
		max-width: 560px;
	}

	.page-hero-inner {
		align-items: start;
	}

	.toc {
		padding: 20px 0 0;
		border-left: 0;
		border-top: 1px solid var(--line-strong);
	}

	.entry :is(.cn-intro, .cn-intro > .wp-block-group__inner-container) > p,
	.entry :is(.cn-section, .cn-section > .wp-block-group__inner-container) > :not(h2) {
		grid-column: 1;
	}

	.entry :is(.cn-section, .cn-section > .wp-block-group__inner-container) > h2 {
		position: static;
		grid-row: auto;
		margin-bottom: 16px;
		padding-right: 0;
	}

	.steps {
		grid-template-columns: 1fr 1fr;
		gap: 40px 32px;
	}

	.steps::before {
		display: none;
	}
}

@media (max-width: 640px) {
	:root {
		--gutter: 20px;
		--header-h: 68px;
	}

	.brand-word {
		font-size: 1.32rem;
	}

	.brand-mark {
		width: 30px;
		height: 30px;
	}

	.panel,
	.why-list,
	.form,
	.footer-main,
	.entry :is(.cn-section, .cn-section > .wp-block-group__inner-container) > ul {
		grid-template-columns: minmax(0, 1fr);
	}

	.panel .port:last-child {
		grid-column: auto;
	}

	.port-icon {
		margin: 20px 0 16px;
	}

	.steps {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.steps::before {
		display: block;
		left: 20px;
		right: auto;
		top: 8px;
		bottom: 8px;
		width: 1px;
		height: auto;
	}

	.step {
		padding-left: 64px;
	}

	.step-node {
		position: absolute;
		left: 0;
		top: 0;
	}

	.step h3 {
		margin-top: 7px;
	}

	.details {
		padding: 24px;
	}

	.hero-actions .btn {
		flex: 1 1 auto;
	}
}
