:root {
	--bg: #020915;
	--bg2: #06172c;
	--panel: rgba(6,19,37,.88);
	--panel2: rgba(8,25,48,.95);
	--line: #2b4164;
	--line2: #1a3153;
	--text: #f6f8ff;
	--muted: #b8c6dc;
	--blue: #347cff;
	--blue2: #65adff;
	--green: #29c86d;
	--red: #ff4343;
	--yellow: #ffc857;
	--shadow: 0 22px 65px rgba(0,0,0,.42);
	--radius: 14px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Inter,Segoe UI,Arial,sans-serif;
	color: var(--text);
	background: radial-gradient(circle at 76% 8%,rgba(52,125,255,.22),transparent 24%),radial-gradient(circle at 18% 40%,rgba(16,80,150,.20),transparent 28%),linear-gradient(180deg,#020713 0%,#041223 50%,#020813 100%);
	min-height: 100vh;
}

body.light {
	--bg: #edf4ff;
	--bg2: #f8fbff;
	--panel: rgba(255,255,255,.93);
	--panel2: rgba(246,250,255,.98);
	--line: #b8c9e3;
	--line2: #d6e1f0;
	--text: #081528;
	--muted: #4c5e74;
	--shadow: 0 18px 45px rgba(45,73,112,.17);
	background: linear-gradient(180deg,#fbfdff,#edf4ff 58%,#e8f0fc);
}

a {
	color: inherit;
	text-decoration: none;
}

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

.page {
	width: min(1420px,calc(100% - 40px));
	margin: 0 auto;
	padding: 18px 0 26px;
}

.topbar {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 18px;
	margin-bottom: 14px;
}

.brand-logo {
	width: min(310px,38vw);
	height: auto;
	filter: drop-shadow(0 8px 20px rgba(0,0,0,.24));
}

.topnav {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.topnav a,.mini-nav a {
	border: 1px solid var(--line);
	background: rgba(10,24,45,.6);
	border-radius: 999px;
	padding: 8px 12px;
	color: var(--muted);
	font-size: 14px;
}

.topnav a:hover,.mini-nav a:hover {
	border-color: var(--blue2);
	color: var(--text);
}

body.light .topnav a,body.light .mini-nav a {
	background: #fff;
}

.theme {
	border: 1px solid var(--line);
	background: var(--panel);
	color: var(--text);
	border-radius: 999px;
	padding: 8px 16px;
	font-weight: 800;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	box-shadow: var(--shadow);
	white-space: nowrap;
}

.theme-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg,#fff,#d8e5ff);
	color: #0b1530;
}

.hero {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	min-height: 315px;
	background: linear-gradient(110deg,#071a31 0%,#07182e 39%,#03101f 100%);
	box-shadow: var(--shadow);
	padding: 44px 45px;
	margin-bottom: 18px;
	isolation: isolate;
}

.hero:before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--hero-image) right center/auto 100% no-repeat;
	opacity: .82;
	z-index: -2;
	height: 130%;
}

.hero:after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,rgba(5,16,31,.98) 0%,rgba(5,16,31,.90) 37%,rgba(5,16,31,.20) 76%,rgba(5,16,31,.06) 100%);
	z-index: -1;
}

body.light .hero {
	background: linear-gradient(110deg,#fff,#eef5ff);
}

body.light .hero:before {
	opacity: .48;
	filter: saturate(.9) brightness(1.06);
}

body.light .hero:after {
	background: linear-gradient(90deg,rgba(250,253,255,.97),rgba(250,253,255,.88) 40%,rgba(250,253,255,.28) 78%);
}

.hero-content {
	max-width: 640px;
}

.hero h1 {
	font-size: 68px;
	line-height: .98;
	margin: 0 0 22px;
	font-weight: 950;
	letter-spacing: -2px;
}

.hero p {
	font-size: 19px;
	line-height: 1.65;
	margin: 0;
	color: var(--text);
}

.grid {
	display: grid;
	gap: 14px;
}

.cols-2 {
	grid-template-columns: 1fr 1.3fr;
}

.cols-3 {
	grid-template-columns: repeat(3,1fr);
}

.card {
	border: 1px solid var(--line);
	background: linear-gradient(180deg,var(--panel2),var(--panel));
	border-radius: var(--radius);
	padding: 24px;
	box-shadow: inset 0 0 0 1px rgba(60,112,190,.05);
}

.card.big {
	padding: 28px;
}

.wide {
	grid-column: 1/-1;
}

.title {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 16px;
	font-size: 25px;
	font-weight: 900;
	line-height: 1.15;
}

.card-icon {
	width: 44px;
	height: 44px;
	object-fit: contain;
	flex: 0 0 auto;
	filter: drop-shadow(0 0 10px rgba(60,130,255,70));
}

.hat-title {
	text-align: left;
}

.hat-img {
	width: 80px;
	filter: drop-shadow(0 14px 22px rgba(0,0,0,.34));
}

.card p,.card li {
	color: var(--muted);
	font-size: 16px;
	line-height: 1.62;
}

.table-wrap {
	overflow: auto;
	margin: 10px 0;
}

.table-wrap table {
	width: 100%;
	border-collapse: collapse;
	color: var(--muted);
	font-size: 15px;
}

.table-wrap th,.table-wrap td {
	border: 1px solid var(--line2);
	padding: 10px;
	text-align: left;
	vertical-align: top;
}

.table-wrap th {
	color: var(--text);
	background: rgba(55,124,255,.12);
}

.card p {
	margin: 0 0 14px;
}

.card ul {
	margin: 0 0 12px;
	padding-left: 22px;
}

.card li::marker {
	color: var(--blue);
	font-size: 1.2em;
}

.page-red .card li::marker {
	color: var(--red);
}

.page-green .card li::marker {
	color: var(--green);
}

.page-yellow .card li::marker {
	color: var(--yellow);
}

.home-hats {
	display: grid;
	gap: 8px;
}

.hat-row {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 18px;
	align-items: center;
	border-bottom: 1px solid var(--line2);
	padding: 10px 0;
}

.hat-row:last-child {
	border-bottom: 0;
}

.hat-row img {
	width: 74px;
	height: 56px;
	object-fit: contain;
	filter: drop-shadow(0 10px 14px rgba(0,0,0,.22));
}

.hat-row b {
	display: block;
	color: var(--text);
	font-size: 18px;
	margin-bottom: 3px;
}

.next-list {
	display: flex;
	flex-direction: column;
}

.next-list a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--line2);
	padding: 15px 0;
	gap: 16px;
}

.next-list b {
	display: block;
	font-size: 19px;
	color: var(--text);
}

.next-list span span {
	display: block;
	color: var(--muted);
	font-size: 14px;
	margin-top: 4px;
}

.test-head {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-bottom: 14px;
}

.test-head img {
	width: 46px;
	height: 46px;
	object-fit: contain;
}

.test-head h2 {
	margin: 0;
	font-size: 26px;
}

.test-head p {
	margin: 2px 0 0;
	font-size: 14px;
}

.test-grid {
	display: grid;
	grid-template-columns: repeat(5,1fr);
	gap: 11px;
}

.q-card {
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 13px;
	background: rgba(3,13,27,.42);
}

body.light .q-card {
	background: #fff;
}

.q-card h3 {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.25;
	margin: 0 0 12px;
}

.num {
	min-width: 30px;
	height: 30px;
	border-radius: 50%;
	background: linear-gradient(135deg,#2164dc,#4ea5ff);
	display: grid;
	place-items: center;
	font-weight: 900;
	color: #fff;
}

.answers {
	display: grid;
	gap: 8px;
}

.answer {
	width: 100%;
	text-align: left;
	border: 1px solid var(--line2);
	background: rgba(5,15,31,.65);
	color: var(--muted);
	border-radius: 8px;
	padding: 10px;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	line-height: 1.35;
}

.answer span {
	color: var(--text);
	margin-right: 5px;
}

.answer:hover {
	border-color: var(--blue2);
}

body.light .answer {
	background: #f6f9ff;
}

.answer.right {
	background: rgba(16,143,52,.36);
	border-color: #159246;
	color: #ecffef;
}

.answer.wrong {
	background: rgba(170,35,35,.35);
	border-color: #d04949;
	color: #ffecec;
}

body.light .answer.right {
	color: #0b541f;
	background: #e5faec;
}

body.light .answer.wrong {
	color: #7a1515;
	background: #fde8e8;
}

.feedback {
	display: none;
	margin-top: 10px;
	border-radius: 8px;
	padding: 10px;
	font-size: 14px;
	line-height: 1.35;
}

.feedback.ok,.feedback.bad {
	display: block;
}

.feedback.ok {
	border: 1px solid #1f7b3d;
	background: rgba(11,75,31,.45);
	color: #7fff9e;
}

.feedback.bad {
	border: 1px solid #aa3838;
	background: rgba(92,16,16,.45);
	color: #ffb8b8;
}

body.light .feedback.ok {
	background: #e7faed;
	color: #0d5d26;
}

body.light .feedback.bad {
	background: #fdeaea;
	color: #8a1c1c;
}

.related {
	margin-top: 14px;
}

.related h2 {
	margin-top: 0;
}

.mini-nav {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.footer {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 18px;
	align-items: center;
	margin-top: 16px;
	color: var(--muted);
}

.disclaimer {
	display: flex;
	gap: 15px;
	align-items: center;
}

.disclaimer img {
	width: 54px;
	height: 54px;
	object-fit: contain;
}

.maplock {
	justify-self: end;
}

.maplock img {
	height: auto;
	opacity: .78;
}

.home-cards {
	margin-top: 14px;
}

.page-home .hero h1 {
	font-size: 62px;
}

.cards-menu {
	display: grid;
	grid-template-columns: repeat(3,1fr);
	gap: 12px;
}
.card.test {
	margin-top: 40px;
}

.menu-card {
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px;
	background: rgba(3,13,27,.35);
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 14px;
	align-items: center;
}

.menu-card img {
	width: 58px;
	height: 48px;
	object-fit: contain;
}

.menu-card b {
	display: block;
	font-size: 18px;
}

.menu-card span {
	display: block;
	color: var(--muted);
	font-size: 14px;
	margin-top: 4px;
	line-height: 1.35;
}

@media(max-width:1200px) {
	.test-grid {
		grid-template-columns: repeat(3,1fr);
	}

	.cards-menu {
		grid-template-columns: repeat(2,1fr);
	}
}

@media(max-width:1050px) {
	.cols-2,.cols-3 {
		grid-template-columns: 1fr 1fr;
	}

	.hero h1,.page-home .hero h1 {
		font-size: 50px;
	}

	.hero:before {
		opacity: .26;
	}

	.topbar {
		grid-template-columns: 1fr auto;
	}

	.topnav {
		grid-column: 1/-1;
		justify-content: flex-start;
		order: 3;
	}
}

@media(max-width:760px) {
	.page {
		width: min(100% - 20px,1420px);
	}

	.cols-2,.cols-3,.test-grid,.cards-menu {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 28px 22px;
		min-height: 260px;
	}

	.hero h1,.page-home .hero h1 {
		font-size: 40px;
		letter-spacing: -1px;
	}

	.hero p {
		font-size: 16px;
	}

	.brand-logo {
		width: min(300px,78vw);
	}

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

	.maplock {
		justify-self: start;
	}

	.hat-row {
		grid-template-columns: 68px 1fr;
	}

	.hat-row img {
		width: 60px;
	}
}


/* Home page final layout overrides */
.page-home {
	width: min(1420px,calc(100% - 42px));
}

.home-hero {
	min-height: 332px;
	padding: 42px 44px;
}

.home-hero::before {
	background: url('../images/hero-home.png') right center/auto 100% no-repeat!important;
	opacity: .86!important;
	filter: none!important;
}

.home-hero::after {
	background: linear-gradient(90deg,rgba(5,16,31,.98) 0%,rgba(5,16,31,.90) 34%,rgba(5,16,31,.18) 68%,rgba(5,16,31,.04) 100%)!important;
}

.hero-art {
	position: absolute;
	right: 0;
	top: 0;
	height: 100%;
	width: auto;
	object-fit: contain;
	object-position: right center;
	z-index: -2;
	opacity: .86;
	pointer-events: none;
}

.home-hero .hero-content {
	max-width: 570px;
}

.home-hero h1 {
	font-size: 62px!important;
	line-height: .98!important;
	margin-bottom: 22px!important;
	letter-spacing: -1.8px;
}

.home-hero p {
	max-width: 520px;
	font-size: 19px;
	line-height: 1.55;
}

body.light .home-hero::before,body.light .home-hero .hero-art {
	opacity: .42!important;
	filter: saturate(.85) brightness(1.05)!important;
}

body.light .home-hero::after {
	background: linear-gradient(90deg,rgba(250,253,255,.98) 0%,rgba(250,253,255,.88) 36%,rgba(250,253,255,.28) 74%,rgba(250,253,255,.08) 100%)!important;
}

.intro-grid {
	margin-bottom: 14px;
}

.home-find {
	margin: 14px 0;
	display: grid;
	grid-template-columns: 500px 1fr;
	gap: 36px;
	align-items: center;
	min-height: 255px;
}

.find-visual {
	display: grid;
	grid-template-columns: 72px 1fr;
	align-items: center;
	gap: 20px;
	min-width: 0;
}

.find-img {
	width: 100%;
	max-height: 230px;
	object-fit: contain;
	filter: drop-shadow(0 16px 28px rgba(0,0,0,.24));
}

.card-icon.large {
	width: 72px;
	height: 72px;
}

.find-text h2 {
	font-size: 26px;
	margin: 0 0 14px;
	font-weight: 900;
}

.find-text p {
	font-size: 16px;
	line-height: 1.62;
	margin: 0 0 13px;
}

.home-bottom {
	margin-top: 14px;
	align-items: stretch;
}

.home-bottom .card {
	min-height: 350px;
}

.start-card {
	position: relative;
	overflow: hidden;
}

.flow-img {
	width: 96%;
	margin: 12px auto 0;
	max-height: 72px;
	object-fit: contain;
	filter: drop-shadow(0 10px 18px rgba(0,0,0,.28));
}

.next-card .next-list a {
	padding: 17px 0;
}

.next-list a em {
	font-style: normal;
	font-size: 38px;
	line-height: 1;
	color: var(--text);
	opacity: .85;
}

.home-footer {
	border: 1px solid var(--line);
	background: linear-gradient(180deg,var(--panel2),var(--panel));
	border-radius: var(--radius);
	padding: 14px 22px;
	margin-top: 14px;
	min-height: 95px;
	grid-template-columns: minmax(360px,1.1fr) auto minmax(260px,.8fr);
	box-shadow: inset 0 0 0 1px rgba(60,112,190,.05);
}

.home-footer .disclaimer p {
	font-size: 13px;
	line-height: 1.35;
	margin: 0;
	color: var(--muted);
}

.home-footer .disclaimer b {
	font-size: 24px;
	color: var(--text);
}

.home-footer .disclaimer img {
	width: 62px;
	height: 62px;
}

.home-footer .copy {
	/*align-self: end;*/
	padding-bottom: 2px;
	white-space: nowrap;
}

.home-footer .maplock img {
	width: 330px;
	max-height:300px;
	object-fit: contain;
	object-position: right center;
	opacity: .95;
}

.related {
	display: none;
}

@media(max-width:1100px) {
	.home-find {
		grid-template-columns: 1fr;
		gap: 18px;
	}

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

	.home-footer .copy {
		align-self: auto;
	}

	.home-footer .maplock {
		justify-self: start;
	}

	.home-footer .maplock img {
		width: 280px;
		object-position: left center;
	}
}

@media(max-width:760px) {
	.home-hero h1 {
		font-size: 40px!important;
	}

	.home-hero {
		min-height: 285px;
		padding: 28px 22px;
	}

	.home-hero::before,.home-hero .hero-art {
		opacity: .20!important;
	}

	.find-visual {
		grid-template-columns: 1fr;
	}

	.card-icon.large {
		width: 54px;
		height: 54px;
	}
}

/* Full navigation + requested cards */
.topnav{
  overflow-x:auto;
  scrollbar-width:thin;
  padding:4px 2px 6px;
}
.topnav a{
  white-space:nowrap;
}
.attack-section{
  padding:22px;
}
.attack-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
}
.attack-card{
  border:1px solid var(--line);
  border-radius:12px;
  padding:14px;
  background:rgba(3,13,27,.42);
  min-height:275px;
  display:flex;
  flex-direction:column;
}
body.light .attack-card{
  background:#fff;
}
.attack-card img{
  width:44px;
  height:44px;
  object-fit:contain;
  margin-bottom:10px;
  filter:drop-shadow(0 0 12px rgba(52,124,255,.42));
}
.attack-card h3{
  margin:0 0 10px;
  font-size:18px;
  color:var(--text);
}
.attack-card p{
  font-size:14px;
  line-height:1.48;
  margin:0 0 10px;
}
.note{
  border:1px solid rgba(55,120,220,.65);
  background:rgba(20,75,160,.13);
  border-radius:10px;
  color:var(--muted);
  padding:13px 15px;
  line-height:1.45;
}
.note.mini{
  margin-top:auto;
  font-size:13px;
  padding:10px 11px;
}
.info-note{
  margin-top:14px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:15px;
}
.info-note img{
  width:24px;
  height:24px;
  object-fit:contain;
  flex:0 0 auto;
}
body.light .note{
  background:rgba(76,138,255,.10);
  color:#31455f;
}
@media(max-width:1320px){
  .attack-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  .attack-grid{grid-template-columns:1fr}
  .attack-card{min-height:auto}
}


/* Page block refinements requested */
.page-row{margin-top:14px;}
.cols-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.compare-card{overflow:hidden;}
.vs-box{display:grid;grid-template-columns:1fr 76px 1fr;align-items:center;gap:18px;margin-top:22px;}
.vs-box>div{border:1px solid var(--line);border-radius:12px;background:rgba(3,13,27,.42);padding:16px;text-align:center;min-height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.vs-box img{height:80px;object-fit:contain;margin-bottom:8px;filter:drop-shadow(0 0 12px rgba(52,124,255,.42));}
.vs-box b{display:block;color:var(--text);font-size:18px;}
.vs-box span{display:block;color:var(--muted);font-size:14px;margin-top:2px;}
.vs-box strong{width:68px;height:68px;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center;color:var(--blue2);font-size:28px;background:rgba(20,75,160,.12);}
.number-case{position:relative;display:grid;grid-template-columns:36px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid var(--line2);}
.number-case:last-child{border-bottom:0;}
.number-case>span{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#2164dc,#4ea5ff);display:grid;place-items:center;font-weight:900;color:#fff;}
.number-case p{margin:0;font-size:15px;line-height:1.52;}
.analog-card{display:flex;flex-direction:column;gap:12px;}
.analog-item{display:grid;grid-template-columns:122px 1fr;gap:14px;align-items:center;border:1px solid var(--line2);border-radius:12px;padding:12px;background:rgba(3,13,27,.35);}
.analog-item img{width:110px;height:82px;object-fit:contain;filter:drop-shadow(0 0 14px rgba(255,255,255,.16));}
.analog-item p{margin:0;font-size:15px;line-height:1.5;}
.gray-cases-row{grid-template-columns:2fr 1fr;}
.case-grid.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.case-box{border:1px solid var(--line);border-radius:12px;padding:14px;background:rgba(3,13,27,.42);min-height:100%;}
.case-box .num{float:left;margin-right:10px;}
.case-box h3{margin:0 0 10px;font-size:18px;color:var(--text);line-height:1.25;}
.case-box p{font-size:15px;line-height:1.52;margin-bottom:10px;}
.check-list{list-style:none!important;padding-left:0!important;}
.check-list li{position:relative;padding-left:28px;margin-bottom:9px;}
.check-list li:before{content:'✓';position:absolute;left:0;top:1px;width:18px;height:18px;border-radius:50%;background:rgba(52,124,255,.22);border:1px solid var(--blue);display:grid;place-items:center;color:var(--blue2);font-size:12px;font-weight:900;}
body.light .vs-box>div,body.light .analog-item,body.light .case-box{background:#fff;}
body.light .vs-box strong{background:#eef5ff;}
@media(max-width:1050px){.gray-cases-row{grid-template-columns:1fr}.case-grid.two{grid-template-columns:1fr}.vs-box{grid-template-columns:1fr}.vs-box strong{margin:auto}.analog-item{grid-template-columns:86px 1fr}.analog-item img{width:78px;height:62px}}
@media(max-width:760px){.cols-2{grid-template-columns:1fr}}


/* Final requested page layouts */
.equal-row>.card{min-height:100%}
.row-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px}
.row-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.row-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:12px}
.case-header{display:flex;gap:18px;align-items:center;margin-bottom:12px}.case-header h2{margin:0}.case-sub{color:var(--muted);font-size:15px}.case-card{border:1px solid var(--line);border-radius:12px;background:rgba(3,13,27,.42);padding:16px;display:flex;flex-direction:column;min-height:100%}.case-card img{object-fit:cover;border-radius:9px;border:1px solid var(--line2);margin-bottom:12px;opacity:.9}.case-card .num{float:none;margin:0 10px 0 0;display:inline-grid;vertical-align:middle}.case-card h3{font-size:19px;line-height:1.22;margin:0 0 12px;color:var(--text)}.case-card p{font-size:15px;line-height:1.52}.case-card .note{margin-top:auto}.inline-cases .number-case{border:1px solid var(--line2);border-radius:12px;padding:13px;margin-bottom:10px;background:rgba(3,13,27,.28)}
.protect-test{display:grid;grid-template-columns:360px 1fr;gap:14px;align-items:stretch}.protect-list{display:grid;grid-template-columns:42px 1fr;gap:14px;margin:12px 0}.protect-list img{width:40px;height:40px;object-fit:contain;border:1px solid var(--line2);border-radius:9px;padding:6px}.protect-list p{margin:0}.subcards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.subcard{border:1px solid var(--line2);border-radius:12px;padding:14px;background:rgba(3,13,27,.28)}.subcard h3{margin:0 0 10px;color:var(--text);font-size:18px}.subcard img{width:38px;height:38px;object-fit:contain;margin-bottom:8px}.compact-list li{font-size:15px;line-height:1.48}.test-grid.six{grid-template-columns:repeat(6,1fr)}.test-grid.five{grid-template-columns:repeat(5,1fr)}.hat-center{display:flex;justify-content:center}.hat-center img{width:210px;max-height:150px;object-fit:contain;filter:drop-shadow(0 18px 25px rgba(0,0,0,.32));margin:4px auto 12px}.wide-title{display:flex;align-items:center;gap:12px;margin-bottom:12px}.wide-title h2{margin:0}.flow-visual{border:1px solid var(--line2);border-radius:12px;background:rgba(3,13,27,.32);padding:12px;margin-top:10px}.flow-visual img{max-height:90px;margin:auto;object-fit:contain}.apt-map img{max-height:100%;object-fit:contain;opacity:.9}.insider-protect{grid-column:span 2}.insider-conclusions{grid-column:span 1}.hero-content p{white-space:normal}.card .note:last-child{margin-bottom:0}.note.warn{border-color:rgba(255,200,87,.7);background:rgba(255,200,87,.1)}
body.light .case-card,body.light .subcard,body.light .flow-visual,body.light .inline-cases .number-case{background:#fff}.page-red .note{border-color:rgba(255,67,67,.42)}.page-red .num{background:linear-gradient(135deg,#b32032,#ff5757)}.page-green .num{background:linear-gradient(135deg,#168c44,#29c86d)}
@media(max-width:1280px){.test-grid.six{grid-template-columns:repeat(3,1fr)}.row-4{grid-template-columns:repeat(2,1fr)}.protect-test{grid-template-columns:1fr}.attack-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:980px){.row-3,.row-2{grid-template-columns:1fr}.subcards{grid-template-columns:1fr}.insider-protect,.insider-conclusions{grid-column:span 1}.test-grid.five,.test-grid.six{grid-template-columns:1fr}.row-4{grid-template-columns:1fr}}


/* Script kiddie final layout */
.script-first-row,.script-middle-row{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:14px}
.script-cases{border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg,var(--panel2),var(--panel));padding:18px;margin-bottom:14px}
.script-cases-head{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.script-cases-head img{width:42px;height:42px;object-fit:contain}.script-cases-head h2{margin:0;font-size:25px}.script-cases-head span{color:var(--muted);font-size:14px;margin-left:auto}
.script-case-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.script-case-card{border:1px solid var(--line);border-radius:12px;background:rgba(4,14,29,.48);padding:16px;display:flex;flex-direction:column;min-height:255px}.script-case-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:10px}.script-case-head h3{margin:0;font-size:20px;line-height:1.2}.script-case-body{display:grid;grid-template-columns:130px 1fr;gap:16px;align-items:start}.script-case-body img{width:100%;height:122px;object-fit:cover;border-radius:8px;border:1px solid var(--line);background:#050d18}.script-case-card p{font-size:14px;line-height:1.48;color:var(--muted);margin:0 0 8px}.script-case-card .note{margin-top:auto}.script-protect .icon-bullet{grid-template-columns:46px 1fr}.script-protect .icon-bullet p{margin:0}.script-protect .icon-bullet b{display:block;color:var(--text);margin-bottom:3px}.script-note-stack{display:grid;gap:10px;margin-top:14px}
body.light .script-cases,body.light .script-case-card{background:#fff}
@media(max-width:1050px){.script-first-row,.script-middle-row,.script-case-grid,.script-case-body{grid-template-columns:1fr}.script-cases-head{flex-wrap:wrap}.script-cases-head span{margin-left:0}}
