/*
Theme Name: STEALTH
Description: Тема сайта STEALTH по макету из Figma: 5 страниц, адаптив под телефоны. Тексты и картинки страниц — обычные блоки редактора.
Version: 1.0.1
Requires at least: 6.3
Text Domain: stealth
*/

/* ---------- base ---------- */
:root {
	--page: 1280px;
	--pad: 68px;
	--gap: 24px;
	--accent: #ffb800;
	--orange: #ff6b00;
	--text-soft: #b0d1e5;
	--line: #056e9e;
	--block: #010506;
	--glow: linear-gradient(90deg, #032938 0, #060909 35%, #ff6e00 50%, #060909 65%, #032938 100%);
}
*, *::before, *::after { box-sizing: border-box; }
.site { overflow-x: clip; }
body {
	margin: 0;
	background: #000;
	color: #fff;
	font: 16px/1.2 Roboto, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.site-main p, .site-main h1, .site-main h2, .site-main ul, .site-main figure { margin: 0; }
.site-main .wp-block-image img { width: 100%; height: 100%; object-fit: contain; }
.only-mobile { display: none !important; }
/* classic themes: WordPress wraps group contents in an extra div — let the children sit in the parent layout */
.wp-block-group__inner-container { display: contents; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
.site-header { max-width: var(--page); margin: 0 auto; padding: 20px var(--pad) 0; position: relative; z-index: 20; }
.site-header__inner {
	position: relative;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-right: 80px;
}
.site-header__inner::before {
	content: "";
	position: absolute;
	inset: 0 calc(-1 * var(--pad)) auto;
	height: 68px;
	background: url(assets/svg/header-left.svg) left top / auto 68px no-repeat,
		url(assets/svg/header-right.svg) right top / auto 68px no-repeat;
	pointer-events: none;
}
/* the outline keeps going on screens wider than the design */
.site-header__inner::after {
	content: "";
	position: absolute;
	top: 0;
	left: calc(100% + var(--pad));
	width: 50vw;
	height: 68px;
	background: linear-gradient(#033d54, #033d54) 0 1px / 100% 1px no-repeat,
		linear-gradient(#033d54, #033d54) 0 44px / 100% 1px no-repeat;
	pointer-events: none;
}
.site-header::before {
	content: "";
	position: absolute;
	top: 44px;
	right: calc(100% - 1px);
	width: 50vw;
	height: 1px;
	background: #043852;
}
.site-logo { position: relative; flex: none; }
.site-logo img { width: 200px; height: 46px; object-fit: contain; }
.site-nav, .site-nav .menu { display: contents; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav a { display: block; font-size: 16px; line-height: 19px; white-space: nowrap; transition: color .2s; }
.site-nav a:hover { color: var(--accent); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--accent); }
.site-nav .current-menu-item > a::after, .site-nav .current_page_item > a::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 36px;
	width: calc(100% + 100px);
	height: 6px;
	transform: translateX(-50%);
	background: url(assets/svg/nav-active.svg) center / 100% 100% no-repeat;
}
.menu-toggle { display: none; }

/* ---------- layout ---------- */
.site-main {
	max-width: var(--page);
	margin: 0 auto;
	padding: var(--gap) var(--pad) 32px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--gap);
}
.site-main.is-wide { --pad: 40px; --gap: 32px; padding-bottom: 40px; }

/* ---------- home: hero ---------- */
.hero {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 740px;
	grid-template-rows: auto auto auto 1fr;
	grid-template-areas: "label img" "logo img" "lead img" "notes img";
	row-gap: 16px;
	min-height: 520px;
}
:where(.hero > *, .hero > .wp-block-group__inner-container > *) { grid-column: 1; padding-left: 18px; max-width: 386px; }
.hero-label { grid-area: label; font-size: 12px; line-height: 14px; color: #78c9eb; }
.hero-logo { grid-area: logo; width: 370px; height: 96px; padding-left: 0; margin-left: 18px; }
.hero-lead { grid-area: lead; position: relative; font-size: 16px; line-height: 19px; max-width: 368px; }
.hero-lead::before {
	content: "";
	position: absolute;
	left: 2px;
	top: -2px;
	bottom: 2px;
	width: 3px;
	background: linear-gradient(#ffbf00, #ff3800);
}
.hero-notes { grid-area: notes; display: flex; flex-direction: column; gap: 16px; max-width: 368px; }
.hero-note { font-style: italic; font-size: 12px; line-height: 15px; color: #98c5d9; }
.hero-image { grid-area: img; grid-column: 2; padding: 0; max-width: none; width: 740px; height: 520px; position: relative; z-index: 1; }
.hero::after {
	content: "";
	position: absolute;
	left: calc(-1 * var(--pad));
	bottom: 19px;
	width: var(--page);
	height: 30px;
	background: url(assets/svg/hero-line.svg) left top / 1280px 30px no-repeat;
	pointer-events: none;
}
.hero::before {
	content: "";
	position: absolute;
	left: calc(1280px - var(--pad));
	bottom: 21px;
	width: 50vw;
	height: 1px;
	background: #195065;
}
.footnote { font-style: italic; font-size: 11px; line-height: 13px; color: #98c5d9; }
.footnote-models { font-style: normal; font-size: 14px; line-height: 18px; color: #a6c7d9; }

/* ---------- «Дополнительная информация» ---------- */
.more {
	background: #040b10;
	border: 1px solid #063040;
	border-radius: 8px;
}
.more > summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 16px 56px 16px 56px;
	font-size: 17px;
	line-height: 20px;
	user-select: none;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before {
	content: "";
	position: absolute;
	left: 16px;
	top: 20px;
	width: 26px;
	height: 32px;
	background: url(assets/svg/doc.svg) center / contain no-repeat;
}
.more > summary::after {
	content: "Подробное описание, особенности, сферы применения и другие материалы";
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 14px;
	color: #89acbe;
	padding-right: 0;
}
.more > summary { background: url(assets/svg/chevron-down.svg) right 16px top 29px / 20px 16px no-repeat; }
.more[open] { padding: 0 24px 24px; }
.more[open] > summary {
	margin: 0 -24px 16px;
	padding: 20px 64px 0 25px;
	background: url(assets/svg/chevron-up.svg) right 12px top 22px / 20px 16px no-repeat;
}
.more[open] > summary::before, .more[open] > summary::after { display: none; }
.more-title { font-weight: 700; font-size: 21px; line-height: 30px; color: #ffb21f; margin: 0 0 16px 1px !important; }
.more-text { font-size: 16px; line-height: 23px; color: #d9e5ed; margin: 0 0 16px 1px !important; }
.more > :last-child { margin-bottom: 0 !important; }

/* ---------- models ---------- */
.page-models .models { display: flex; flex-direction: column; gap: 24px; margin-top: 68px; }
.model-card {
	display: flex;
	align-items: flex-start;
	gap: 30px;
	padding: 22px 20px;
	min-height: 346px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: linear-gradient(#010609, #010609) padding-box, var(--glow) bottom / 100% 1px no-repeat border-box, linear-gradient(#06222e, #06222e) border-box;
}
.model-media { position: relative; flex: none; width: 420px; height: 300px; }
.model-media .wp-block-image { position: absolute; inset: 0; }
.model-deco { opacity: .3; }
.model-info { display: flex; flex-direction: column; gap: 20px; flex: 1; min-width: 0; }
.model-name { font-weight: 700; font-size: 23px; line-height: 29px; }
.model-mod { font-size: 16px; line-height: 20px; color: #a6c7d9; }
.model-price { font-weight: 700; font-size: 30px; line-height: 38px; color: #ff5c00; }

/* ---------- inner pages: heading ---------- */
.page-head {
	display: flex;
	align-items: center;
	gap: 40px;
	margin-left: 40px;
	padding: 42px 0 20px 45px;
	position: relative;
}
.page-head::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 5px;
	height: 90px;
	margin-top: 11px;
	transform: translateY(-50%);
	background: var(--orange);
}
.page-head-text { display: flex; flex-direction: column; gap: 8px; width: 800px; max-width: 100%; }
.page-title { font-weight: 700; font-size: 48px; line-height: 55px; text-transform: uppercase; }
.page-faq .page-title { font-size: 56px; }
.page-subtitle { font-size: 23px; line-height: 30px; }
.page-head-icon { width: 96px; height: 96px; flex: none; }
.page-faq .page-head-text { width: 660px; }
.page-head-art { width: 340px; height: 210px; flex: none; }

/* ---------- framed blocks (agreement, FAQ) ---------- */
.frame { position: relative; background: var(--block); }
.frame::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 15px solid transparent;
	border-image: url(assets/svg/frame.svg) 15;
	pointer-events: none;
}
.frame::after {
	content: "";
	position: absolute;
	left: 15px;
	right: 15px;
	top: 0;
	bottom: 0;
	background: var(--glow) top / 100% 1px no-repeat, var(--glow) bottom / 100% 1px no-repeat;
	pointer-events: none;
}
.agreement-block { display: flex; flex-direction: column; gap: 28px; padding: 42px 52px; }
.agreement-block::after {
	left: 16px;
	right: 16px;
	background:
		linear-gradient(90deg, #02141b 0, #060605 30%, #993000 43%, #ff8704 50%, #993000 57%, #060605 70%, #02141b 100%) top / 100% 1px no-repeat,
		linear-gradient(90deg, #02141b 0, #060605 30%, #993000 43%, #ff8704 50%, #993000 57%, #060605 70%, #02141b 100%) bottom / 100% 1px no-repeat;
	filter: drop-shadow(0 0 2px #1f0900);
}
.block-head { display: flex; align-items: center; gap: 42px; }
.block-icon { width: 80px; height: 80px; flex: none; }
.block-title { font-weight: 700; font-size: 28px; line-height: 34px; }
.block-title::after {
	content: "";
	display: block;
	width: 80px;
	height: 3px;
	margin-top: 18px;
	background: linear-gradient(90deg, #ffa600, #ff4000 55%, #2b0900);
}
.block-text, .dots li { font-size: 20px; line-height: 29px; color: var(--text-soft); }
.dots { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.dots li { position: relative; padding-left: 32px; }
.dots li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8.5px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--orange);
}
.block-divider { border: 0 !important; height: 1px; background: var(--line); margin: 0 !important; opacity: 1; }

.faq-item { display: flex; align-items: flex-start; gap: 40px; padding: 30px 40px; }
.faq-icon { width: 82px; height: 90px; flex: none; }
.faq-body { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; }
.faq-q { font-weight: 700; font-size: 20px; line-height: 29px; }
.faq-a { font-size: 18px; line-height: 26px; color: var(--text-soft); }

/* ---------- contacts ---------- */
.page-contacts .page-head-text { width: 1000px; }
.contacts { display: flex; gap: 24px; min-height: 493px; }
.contacts-info { width: 400px; flex: none; display: flex; flex-direction: column; gap: 30px; padding: 4px 0; position: relative; z-index: 1; }
.contact { position: relative; padding-left: 42px; display: flex; flex-direction: column; gap: 10px; max-width: 400px; }
.contact::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 24px;
	height: 3px;
	background: linear-gradient(90deg, #ffa600, #ff4d00 60%, #260800);
}
.contact-title { font-weight: 700; font-size: 23px; line-height: 32px; }
.contact-text { font-size: 20px; line-height: 28px; color: var(--text-soft); }
.contact-text a { color: #00adf2; }
.contact-text a:hover { text-decoration: underline; }
.contact-divider { border: 0 !important; height: 1px; background: #054d6e; margin: 0 !important; opacity: 1; width: 400px; }
.contacts-map.only-desktop {
	position: absolute;
	top: 28px;
	right: 0;
	width: 880px;
	height: 720px;
	pointer-events: none;
}
.page-contacts .site-main { overflow: visible; }

/* ---------- narrower desktops ---------- */
@media (max-width: 1279px) {
	.hero { grid-template-columns: minmax(0, 1fr) minmax(0, 58%); }
	.hero-image { width: 100%; height: auto; aspect-ratio: 740 / 520; }
	.contacts-map.only-desktop { width: 60%; height: auto; }
}

/* ---------- tablet & phone: header ---------- */
@media (max-width: 1023px) {
	.site-header { padding: 20px 20px 0; }
	.site-header__inner { height: 72px; padding: 0 14px; }
	.site-header__inner::before {
		inset: 0 -20px auto;
		height: 72px;
		background: url(assets/svg/header-mobile.svg) right top / auto 72px no-repeat;
	}
	.site-header__inner::after, .site-header::before { display: none; }
	.site-logo img { width: 140px; height: 48px; }
	.menu-toggle {
		display: block;
		position: relative;
		width: 24px;
		height: 24px;
		margin-right: -5px;
		padding: 0;
		border: 0;
		background: url(assets/svg/burger.svg) center / 24px no-repeat;
		cursor: pointer;
	}
	.menu-open .menu-toggle { background-image: url(assets/svg/close.svg); }
	.site-nav {
		display: none;
		position: absolute;
		left: -20px;
		right: -20px;
		top: 78px;
		padding: 0 20px 4px;
		background: #000;
	}
	.site-nav::before {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: -10px;
		height: 18px;
		background: url(assets/svg/menu-line.svg) center / 100% 100% no-repeat;
	}
	.menu-open .site-nav { display: block; }
	.site-nav .menu { display: block; }
	.site-nav li { height: 54px; }
	.site-nav a { padding: 17px 14px 0; font-size: 17px; line-height: 20px; }
	.site-nav li::after {
		content: "";
		position: absolute;
		left: -20px;
		right: -20px;
		top: 38px;
		height: 18px;
		background: url(assets/svg/menu-line.svg) center / 100% 100% no-repeat;
	}
	.site-nav .current-menu-item::after, .site-nav .current_page_item::after { background-image: url(assets/svg/menu-line-active.svg); }
	.site-nav .current-menu-item > a::after, .site-nav .current_page_item > a::after { display: none; }
}

/* ---------- phone: content ---------- */
@media (max-width: 767px) {
	:root { --pad: 20px; }
	.only-desktop { display: none !important; }
	.only-mobile { display: block !important; }
	.site-main, .site-main.is-wide { --pad: 20px; --gap: 28px; padding: 28px 20px 40px; }
	.page-home, .page-models { --gap: 24px; }
	.page-models { --gap: 20px; }

	.hero { display: flex; flex-direction: column; gap: 18px; min-height: 0; margin: -4px -7px 0; }
	:where(.hero > *, .hero > .wp-block-group__inner-container > *) { padding-left: 14px; max-width: none; }
	.hero-logo { display: none; }
	.hero-label { padding-left: 21px; }
	.hero-lead { font-size: 15.5px; line-height: 18.6px; margin-left: 7px; padding-left: 14px; }
	.hero-lead::before { left: 0; top: 0; bottom: 0; width: 5px; }
	.hero-image { order: 3; width: 100%; height: auto; aspect-ratio: 367 / 326; margin-top: 2px; overflow: hidden; }
	/* Figma mobile image fill: source x = 0.75u + 0.055, y = v. */
	.site-main .hero-image img { width: 133.333333%; max-width: none; height: 100%; object-fit: fill; transform: translateX(-5.5%); }
	.hero-notes { order: 4; margin: 6px 7px 0; padding-left: 14px; position: relative; gap: 12px; }
	.hero-notes::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(#ffbf00, #ff3800); }
	.hero-note { font-size: 12px; line-height: 15px; }
	.hero::after, .hero::before { display: none; }
	.footnote { font-size: 10px; line-height: 13px; }
	.footnote-models { font-size: 12px; line-height: 15px; }

	.more { margin: 0 -10px; }
	.more > summary {
		padding: 17px 58px 17px 59px;
		font-size: 15px;
		line-height: 18px;
		background: url(assets/svg/chevron-right.svg) right 13px top 31px / 18px 26px no-repeat;
	}
	.more > summary::before { left: 16px; top: 28px; width: 22px; height: 28px; }
	.more > summary::after { font-size: 12px; line-height: 15px; }
	.more[open] { padding: 0 18px 24px; }
	.more[open] > summary { margin: 0 -18px 16px; padding: 20px 46px 0 19px; background: url(assets/svg/chevron-up.svg) right 12px top 22px / 20px 16px no-repeat; }
	.more-title { font-size: 17px; line-height: 25px; }
	.more-text { font-size: 14px; line-height: 20px; }

	.page-models .models { gap: 20px; margin-top: 0; }
	.model-card { min-height: 333px; padding: 17px 9px 17px 11px; gap: 10px; align-items: center; border-radius: 7px; }
	.model-media { width: 145px; height: 215px; }
	.model-deco { display: none; }
	.site-main .model-phone img { object-fit: cover; }
	.model-info { gap: 12px; align-self: flex-start; }
	.model-name { font-size: 15px; line-height: 19px; }
	.model-mod { font-size: 11px; line-height: 14px; }
	.model-price { font-size: 23px; line-height: 29px; }

	.page-head { margin-left: 6px; padding: 14px 0 8px 16px; gap: 12px; }
	.page-head::before { width: 4px; height: 56px; margin-top: 3px; }
	.page-head-text { width: auto; flex: 1; }
	.page-title, .page-faq .page-title { font-size: 27px; line-height: 31px; }
	.page-faq .page-title { font-size: 32px; }
	.page-contacts .page-title { font-size: 30px; }
	.page-subtitle { font-size: 12px; line-height: 16px; }
	.page-head-icon { width: 48px; height: 48px; }
	.page-head-art { width: 140px; height: 100px; }

	.agreement-block { padding: 26px 22px; gap: 20px; }
	.block-head { gap: 20px; }
	.block-icon { width: 48px; height: 48px; }
	.block-title { font-size: 19px; line-height: 23px; }
	.block-title::after { width: 44px; margin-top: 12px; }
	.block-text, .dots li { font-size: 15px; line-height: 22px; }
	.dots { gap: 20px; }
	.dots li { padding-left: 20px; }
	.dots li::before { width: 8px; height: 8px; top: 7px; }

	.faq-item { padding: 22px 18px; gap: 16px; }
	.faq-icon { width: 42px; height: 52px; }
	.faq-body { gap: 12px; }
	.faq-q { font-size: 15px; line-height: 22px; }
	.faq-a { font-size: 14px; line-height: 20px; }

	.contacts { flex-direction: column; min-height: 0; }
	.contacts-info { width: auto; padding: 24px; gap: 22px; background: var(--block); border: 1px solid var(--line); }
	.contact { padding-left: 0; gap: 12px; }
	.contact::before { display: none; }
	.contact-title::after { content: ""; display: block; width: 36px; height: 3px; margin-top: 12px; background: #ff6e00; }
	.contact-title { font-size: 21px; line-height: 29px; }
	.contact-text { font-size: 16px; line-height: 22px; }
	.contact-divider { display: none; }
	.contact ~ .contact { border-top: 1px solid #054d6e; padding-top: 22px; }
	.contacts-map.only-mobile { width: 100%; height: auto; aspect-ratio: 353 / 270; }
}
