:root {
	/* Construction / trust + vivid CTAs */
	--g-ink: #1a2433;
	--g-slate: #3d4f66;
	--g-muted: #5f6f82;
	--g-line: #d8dee8;
	--g-surface: #f3f1ec;
	--g-paper: #ffffff;
	--g-steel: #2c4a66;
	--g-steel-dark: #1f3650;
	--g-accent: #ff5a1f;
	--g-accent-dark: #e0420a;
	--g-accent-bright: #ff7a3d;
	--g-header-bg: #0f172a;
	--g-header-bg2: #111b2e;
	--g-header-text: #f1f5f9;
	--g-header-muted: #94a3b8;
	--g-radius: 10px;
	--g-shadow: 0 10px 28px rgba(26, 36, 51, 0.1);
	--g-container: min(1140px, calc(100% - 2rem));
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--g-ink);
	background: var(--g-paper);
	overflow-x: hidden;
}

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

a {
	color: var(--g-steel);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--g-steel-dark);
}

.gilstro1-skip-link {
	position: absolute;
	left: -999px;
	top: 0.5rem;
	padding: 0.5rem 1rem;
	background: var(--g-ink);
	color: var(--g-paper);
	z-index: 1000;
}

.gilstro1-skip-link:focus {
	left: 0.5rem;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	word-wrap: normal !important;
}

.gilstro1-container {
	width: var(--g-container);
	margin-inline: auto;
}

.gilstro1-main {
	min-height: 50vh;
}

.gilstro1-content {
	padding-block: 2rem 3rem;
}

/* Breadcrumbs (Yoast) */
.gilstro1-breadcrumbs {
	font-size: 0.875rem;
	color: var(--g-muted);
	margin-bottom: 1.25rem;
}

.gilstro1-breadcrumbs a {
	color: inherit;
}

/* Header — высокий контраст */
.gilstro1-header {
	background: linear-gradient(180deg, var(--g-header-bg) 0%, var(--g-header-bg2) 100%);
	border-bottom: 3px solid var(--g-accent);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	position: sticky;
	top: 0;
	z-index: 50;
}

.gilstro1-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	padding: 0.75rem 1rem;
	max-width: 1180px;
	margin-inline: auto;
}

.gilstro1-header__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1 1 220px;
	min-width: 0;
}

.gilstro1-header__logo .custom-logo-link {
	display: inline-flex;
}

.gilstro1-header__logo img {
	max-height: 52px;
	width: auto;
}

.gilstro1-header__sitename {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
}

.gilstro1-header__sitename a {
	color: var(--g-header-text);
	text-decoration: none;
}

.gilstro1-header__sitename a:hover {
	color: #fff;
}

.gilstro1-header__tagline {
	margin: 0.15rem 0 0;
	font-size: 0.8125rem;
	color: var(--g-header-muted);
}

.gilstro1-nav-toggle {
	margin-left: auto;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.06);
	cursor: pointer;
}

.gilstro1-nav-toggle__bar {
	display: block;
	height: 2px;
	width: 22px;
	background: var(--g-header-text);
	margin-inline: auto;
}

.gilstro1-nav {
	flex-basis: 100%;
	display: none;
}

.gilstro1-nav.is-open {
	display: block;
}

.gilstro1-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0 0;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.gilstro1-menu > li > a {
	display: block;
	padding: 0.6rem 0.25rem;
	color: var(--g-header-text);
	text-decoration: none;
	font-weight: 600;
	border-radius: 6px;
}

.gilstro1-menu > .menu-item-has-children {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
}

.gilstro1-submenu-toggle {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.26);
	background: rgba(255, 255, 255, 0.06);
	color: var(--g-header-text);
	border-radius: 6px;
	cursor: pointer;
}

.gilstro1-menu > li > a:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.gilstro1-menu .sub-menu {
	list-style: none;
	margin: 0.25rem 0 0.5rem 0.75rem;
	padding: 0;
	border-left: 2px solid rgba(255, 90, 31, 0.55);
}

.gilstro1-menu .sub-menu a {
	display: block;
	padding: 0.35rem 0.5rem;
	color: #cbd5e1;
	text-decoration: none;
	font-weight: 500;
	font-size: 0.95rem;
}

.gilstro1-menu .sub-menu a:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
	border-radius: 4px;
}

.gilstro1-header__cta {
	display: none;
}

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

	.gilstro1-nav {
		display: block !important;
		flex: 1 1 auto;
	}

	.gilstro1-menu {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 0.25rem 0.75rem;
		padding: 0;
		justify-content: flex-end;
	}

	.gilstro1-menu > li {
		position: relative;
		display: block;
	}

	.gilstro1-menu > .menu-item-has-children {
		display: block;
	}

	.gilstro1-submenu-toggle {
		display: none;
	}

	.gilstro1-menu .sub-menu {
		position: absolute;
		left: 0;
		top: 100%;
		min-width: 220px;
		background: #1e293b;
		border: 1px solid rgba(255, 255, 255, 0.12);
		border-radius: var(--g-radius);
		box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
		margin: 0;
		padding: 0.35rem;
		display: none;
		z-index: 60;
	}

	.gilstro1-menu li:hover > .sub-menu,
	.gilstro1-menu li:focus-within > .sub-menu {
		display: block;
	}

	.gilstro1-menu .sub-menu a {
		border-radius: 6px;
	}

	.gilstro1-header__cta {
		display: inline-flex;
	}
}

body.gilstro1-nav-open {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	overflow: hidden;
}

@media (max-width: 959px) {
	.gilstro1-header {
		position: sticky;
	}

	.gilstro1-nav {
		position: fixed;
		left: 0;
		right: 0;
		top: var(--g-header-height, 72px);
		max-height: calc(100dvh - var(--g-header-height, 72px));
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		background: linear-gradient(180deg, #101a2d 0%, #0d1525 100%);
		padding: 0.85rem 1rem 1.2rem;
		z-index: 60;
	}

	.gilstro1-menu {
		gap: 0.45rem;
	}

	.gilstro1-menu > li > a {
		padding: 0.75rem;
		background: rgba(255, 255, 255, 0.04);
	}

	.gilstro1-menu .sub-menu {
		margin: 0.25rem 0 0.7rem 0;
		border-left: 0;
		padding-left: 0.2rem;
	}

	.gilstro1-menu > .menu-item-has-children:not(.is-expanded) > .sub-menu {
		display: none;
	}

	.gilstro1-menu .sub-menu a {
		padding: 0.5rem 0.65rem;
		background: rgba(255, 255, 255, 0.03);
		border-radius: 6px;
	}

	.gilstro1-nav.is-open {
		display: block;
	}
}

/* Buttons — яркие, заметные */
.gilstro1-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 0.7rem 1.25rem;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.gilstro1-btn--primary {
	background: linear-gradient(180deg, var(--g-accent-bright) 0%, var(--g-accent) 45%, var(--g-accent-dark) 100%);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.35) inset,
		0 3px 0 #9a2f00,
		0 10px 28px rgba(255, 90, 31, 0.45);
	text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}

.gilstro1-btn--primary:hover {
	background: linear-gradient(180deg, #ff8f5c 0%, var(--g-accent-bright) 40%, var(--g-accent) 100%);
	color: #fff;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.45) inset,
		0 3px 0 #b83808,
		0 12px 32px rgba(255, 90, 31, 0.55);
	transform: translateY(-1px);
}

.gilstro1-btn--primary:active {
	transform: translateY(1px);
	box-shadow: 0 2px 12px rgba(255, 90, 31, 0.35);
}

.gilstro1-btn--ghost {
	border-color: rgba(255, 255, 255, 0.55);
	color: #fff;
	background: rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(4px);
}

.gilstro1-btn--ghost:hover {
	background: rgba(0, 0, 0, 0.28);
	color: #fff;
}

/* Кастомные блоки Gutenberg — общий только вертикальный ритм, без общей «коробки» */
.gilstro1-block {
	position: relative;
	margin-block: 2.25rem;
	padding: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	overflow: visible;
}

.gilstro1-block__title {
	margin: 0 0 1rem;
	font-size: clamp(1.15rem, 0.95rem + 1vw, 1.5rem);
	letter-spacing: -0.02em;
	font-weight: 700;
}

/*
 * Заголовки секций — палитра шапки: тёмно-синий градиент, светлый текст, оранжевая полоса снизу (как у .gilstro1-header)
 */
.gilstro1-block--cards .gilstro1-block__title,
.gilstro1-block--contact .gilstro1-block__title,
.gilstro1-block--features .gilstro1-block__title,
.gilstro1-block--work .gilstro1-block__title,
.gilstro1-block--faq .gilstro1-block__title {
	padding: 0.65rem 1rem 0.55rem;
	background: linear-gradient(180deg, var(--g-header-bg) 0%, var(--g-header-bg2) 100%);
	color: var(--g-header-text);
	border-bottom: 3px solid var(--g-accent);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.gilstro1-block--faq .gilstro1-block__title {
	margin-bottom: 0;
}

/* Herobox — только слайдер, без обводки секции */
.gilstro1-block--hero:not(.gilstro1-block--empty) {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

/* Контакты: лид под заголовком — контраст на белом фоне контента */
.gilstro1-block--contact .gilstro1-block__lead {
	margin: 0 0 1.25rem;
	color: var(--g-muted);
	font-size: 0.98rem;
	line-height: 1.55;
}

/* Подзаголовок формы в блоке контактов — в тон шапке */
.gilstro1-block--contact .gilstro1-contact__formtitle {
	margin: 0 0 0.75rem;
	padding: 0.45rem 0.75rem;
	background: linear-gradient(90deg, var(--g-header-bg) 0%, var(--g-header-bg2) 100%);
	color: var(--g-header-text);
	font-size: 1rem;
	font-weight: 700;
	border-left: 3px solid var(--g-accent);
}

/* FAQ: список под «шапочным» заголовком */
.gilstro1-block--faq:not(.gilstro1-block--empty) {
	padding: 0;
	background: transparent;
}

.gilstro1-block--faq .gilstro1-faq {
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-top: none;
	border-radius: 0 0 var(--g-radius) var(--g-radius);
	overflow: hidden;
}

.gilstro1-block--faq .gilstro1-faq__q {
	color: var(--g-header-bg);
}

.gilstro1-block--faq .gilstro1-faq__a {
	color: var(--g-slate);
}

/* Hero */
.gilstro1-hero {
	position: relative;
	border-radius: 0;
	overflow: hidden;
	border: none;
	background: var(--g-header-bg);
}

.gilstro1-hero__viewport {
	position: relative;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

.gilstro1-hero__track {
	display: flex;
	width: 100%;
}

.gilstro1-hero__slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	position: relative;
	min-height: min(40vw, 200px);
	display: grid;
	align-items: end;
}

.gilstro1-hero__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.gilstro1-hero__media--placeholder {
	background: linear-gradient(135deg, #e4e1db, #cfd5df);
}

.gilstro1-hero__caption {
	position: relative;
	z-index: 4;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	padding: 1.1rem 1rem 0.9rem;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(15, 23, 42, 0.18) 40%,
		rgba(15, 23, 42, 0.88) 100%
	);
	color: #fff;
}

.gilstro1-hero__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.2rem, 0.95rem + 1.4vw, 1.65rem);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.gilstro1-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 0.75rem;
}

.gilstro1-hero__actions .gilstro1-btn--ghost {
	border-color: rgba(255, 255, 255, 0.45);
	background: rgba(0, 0, 0, 0.22);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.5rem 0.95rem;
}

.gilstro1-hero__actions .gilstro1-btn--hero-cta {
	font-size: 0.9rem;
	padding: 0.55rem 1.1rem;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.3) inset,
		0 2px 0 rgba(0, 0, 0, 0.2),
		0 6px 18px rgba(0, 0, 0, 0.28);
}

.gilstro1-hero__controls {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
	padding: 0.5rem 0.35rem calc(5.5rem + 4vw) 0.35rem;
}

.gilstro1-hero__btn {
	pointer-events: auto;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.25);
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}

@media (min-width: 560px) {
	.gilstro1-hero__slide {
		min-height: min(34vw, 280px);
	}

	.gilstro1-hero__controls {
		padding-bottom: calc(4.5rem + 3vw);
	}
}

@media (min-width: 960px) {
	.gilstro1-hero__slide {
		min-height: min(26vw, 340px);
	}

	.gilstro1-hero__caption {
		padding: 1.5rem 1.25rem 1.05rem;
	}
}

@media (min-width: 1200px) {
	.gilstro1-hero__slide {
		min-height: min(22vw, 380px);
	}
}

/* Cards */
.gilstro1-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.gilstro1-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 960px) {
	.gilstro1-cards {
		grid-template-columns: repeat(var(--g-cards-cols, 3), minmax(0, 1fr));
	}
}

.gilstro1-card {
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: var(--g-radius);
	overflow: hidden;
	background: var(--g-paper);
	box-shadow: none;
}

.gilstro1-card__link {
	color: inherit;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.gilstro1-card__thumb img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.gilstro1-card__body {
	padding: 1rem 1rem 1.15rem;
}

.gilstro1-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	color: var(--g-header-bg);
}

.gilstro1-card__excerpt {
	margin: 0;
	color: var(--g-muted);
	font-size: 0.95rem;
}

/* Contact block */
.gilstro1-contact__grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 900px) {
	.gilstro1-contact__grid {
		grid-template-columns: 1fr 1fr;
		align-items: start;
	}
}

.gilstro1-contact__info p {
	margin: 0 0 0.75rem;
}

.gilstro1-contact__formwrap {
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: var(--g-radius);
	padding: 1rem 1.1rem;
	background: rgba(255, 255, 255, 0.85);
}

.gilstro1-contact__formtitle {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
}

.gilstro1-field label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.25rem;
}

.gilstro1-field input,
.gilstro1-field textarea {
	width: 100%;
	padding: 0.55rem 0.65rem;
	border-radius: 8px;
	border: 1px solid var(--g-line);
	font: inherit;
	background: var(--g-paper);
}

.gilstro1-field--submit {
	margin-top: 0.5rem;
}

.gilstro1-form-status {
	margin-top: 0.75rem;
	font-size: 0.95rem;
	color: var(--g-slate);
}

/* Features */
.gilstro1-features {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 720px) {
	.gilstro1-features {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.gilstro1-feature {
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: var(--g-radius);
	padding: 1rem;
	background: var(--g-paper);
}

.gilstro1-feature__icon {
	font-size: 1.75rem;
	margin-bottom: 0.35rem;
}

.gilstro1-feature__title {
	margin: 0 0 0.35rem;
	font-size: 1.05rem;
	color: var(--g-header-bg);
}

.gilstro1-feature__text {
	margin: 0;
	color: var(--g-muted);
	font-size: 0.95rem;
}

/* Work grid */
.gilstro1-workgrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

@media (min-width: 720px) {
	.gilstro1-workgrid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.85rem;
	}
}

.gilstro1-workgrid__item {
	margin: 0;
	border-radius: var(--g-radius);
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: var(--g-paper);
}

.gilstro1-workgrid__link {
	display: block;
}

.gilstro1-workgrid__link img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.gilstro1-workgrid__caption {
	padding: 0.45rem 0.55rem;
	font-size: 0.85rem;
}

.gilstro1-workgrid__caption a {
	color: var(--g-header-bg);
	text-decoration: none;
	font-weight: 600;
}

.gilstro1-workgrid__caption a:hover {
	color: var(--g-accent);
}

/* FAQ */
.gilstro1-faq {
	border: 1px solid var(--g-line);
	border-radius: var(--g-radius);
	overflow: hidden;
}

.gilstro1-faq__item + .gilstro1-faq__item {
	border-top: 1px solid var(--g-line);
}

.gilstro1-faq__q {
	cursor: pointer;
	padding: 0.85rem 1rem;
	font-weight: 700;
	list-style: none;
}

.gilstro1-faq__q::-webkit-details-marker {
	display: none;
}

.gilstro1-faq__a {
	padding: 0 1rem 1rem;
	color: var(--g-slate);
}

/* Modal */
.gilstro1-modal[hidden] {
	display: none;
}

.gilstro1-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: grid;
	place-items: center;
	padding: 1rem;
}

.gilstro1-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(26, 36, 51, 0.55);
}

.gilstro1-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	background: var(--g-paper);
	border-radius: var(--g-radius);
	box-shadow: var(--g-shadow);
	padding: 1.25rem 1.25rem 1.5rem;
	border: 1px solid var(--g-line);
}

.gilstro1-modal__title {
	margin: 0 0 0.75rem;
	font-size: 1.2rem;
}

.gilstro1-modal__close {
	position: absolute;
	right: 0.5rem;
	top: 0.5rem;
	border: 0;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: var(--g-muted);
}

body.gilstro1-modal-open {
	overflow: hidden;
}

/* Lightbox */
.gilstro1-lightbox {
	position: fixed;
	inset: 0;
	z-index: 300;
	background: rgba(0, 0, 0, 0.85);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.gilstro1-lightbox.is-open {
	display: flex;
}

.gilstro1-lightbox img {
	max-width: min(1100px, 100%);
	max-height: 90vh;
	border-radius: 8px;
}

.gilstro1-lightbox__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	width: 44px;
	height: 44px;
	border-radius: 999px;
	cursor: pointer;
}

/* Single */
.gilstro1-single__header {
	margin-bottom: 1rem;
}

.gilstro1-single__title {
	margin: 0 0 0.35rem;
	font-size: clamp(1.6rem, 1.2rem + 2vw, 2.25rem);
	line-height: 1.15;
}

.gilstro1-single__meta {
	margin: 0;
	color: var(--g-muted);
	font-size: 0.9rem;
}

.gilstro1-single__thumb {
	margin: 0 0 1.25rem;
	border-radius: var(--g-radius);
	overflow: hidden;
	border: 1px solid var(--g-line);
}

.gilstro1-single__thumb img {
	width: 100%;
}

.gilstro1-single--gallery-single-hero .gilstro1-single__thumb--hero img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.gilstro1-single__thumb--after {
	margin-top: 1.5rem;
}

.gilstro1-prose > *:first-child {
	margin-top: 0;
}

.gilstro1-prose > *:last-child {
	margin-bottom: 0;
}

/* Page / entries */
.gilstro1-page__title,
.gilstro1-entry__title {
	margin: 0 0 1rem;
	font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
}

.gilstro1-entry {
	padding: 1rem 0;
	border-bottom: 1px solid var(--g-line);
}

.gilstro1-pagination {
	margin-top: 1.5rem;
}

/* Footer — контрастный, как шапка */
.gilstro1-footer {
	background: linear-gradient(180deg, var(--g-header-bg2) 0%, #0a0f18 100%);
	border-top: 3px solid var(--g-accent);
	margin-top: 2rem;
	padding: 2.25rem 1rem 2.75rem;
	color: #cbd5e1;
	font-size: 0.95rem;
	box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.25);
}

.gilstro1-footer__menu {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.gilstro1-footer__menu a {
	color: #e2e8f0;
	text-decoration: none;
	font-weight: 600;
}

.gilstro1-footer__menu a:hover {
	color: var(--g-accent-bright);
}

.gilstro1-footer__copy {
	margin: 0 0 0.75rem;
	color: #94a3b8;
}

.gilstro1-footer__requisites {
	color: #cbd5e1;
}

.gilstro1-footer__requisites a {
	color: var(--g-accent-bright);
}

.gilstro1-footer__requisites a:hover {
	color: #fff;
}

.gilstro1-footer__requisites p {
	margin: 0 0 0.35rem;
}

.gilstro1-block--empty {
	margin-block: 1.5rem;
	padding: 0.85rem 1rem;
	border: 1px dashed rgba(148, 163, 184, 0.5);
	border-radius: 8px;
	color: var(--g-muted);
	font-size: 0.95rem;
	background: rgba(248, 250, 252, 0.65);
}

/* --- Многостраничный строительный сайт (секционные шаблоны) --- */
.gilstro1-home__lead {
	padding-block: 0 2.5rem;
}

.gilstro1-services-mega {
	margin: -1rem 0 0.5rem;
	position: relative;
	z-index: 12;
}

.gilstro1-services-mega__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.gilstro1-services-mega__item {
	position: relative;
}

.gilstro1-services-mega__item > a {
	display: inline-flex;
	align-items: center;
	padding: 0.55rem 0.9rem;
	border-radius: 999px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.15);
	text-decoration: none;
	color: var(--g-header-bg);
	font-weight: 700;
	font-size: 0.92rem;
}

.gilstro1-services-mega__item > a:hover {
	border-color: var(--g-accent);
	color: var(--g-accent-dark);
}

.gilstro1-services-mega__submenu {
	position: absolute;
	left: 0;
	top: calc(100% + 0.35rem);
	min-width: 220px;
	margin: 0;
	padding: 0.55rem 0.65rem;
	list-style: none;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.15);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
	display: none;
}

.gilstro1-services-mega__submenu li {
	padding: 0.3rem 0;
	font-size: 0.9rem;
	color: var(--g-slate);
}

.gilstro1-services-mega__submenu li a {
	display: block;
	color: var(--g-slate);
	text-decoration: none;
	padding: 0.25rem 0.35rem;
	border-radius: 6px;
}

.gilstro1-services-mega__submenu li a:hover {
	background: rgba(15, 23, 42, 0.06);
	color: var(--g-header-bg);
}

.gilstro1-services-mega__item:hover .gilstro1-services-mega__submenu,
.gilstro1-services-mega__item:focus-within .gilstro1-services-mega__submenu {
	display: block;
}

@media (max-width: 860px) {
	.gilstro1-services-mega {
		margin-top: 0;
	}

	.gilstro1-services-mega__list {
		gap: 0.45rem;
	}

	.gilstro1-services-mega__item > a {
		width: 100%;
	}

	.gilstro1-services-mega__item {
		width: 100%;
	}

	.gilstro1-services-mega__submenu {
		position: static;
		display: block;
		margin-top: 0.25rem;
		min-width: 0;
		box-shadow: none;
	}
}

.gilstro1-home-hero {
	position: relative;
	overflow: hidden;
	background: var(--g-header-bg);
	color: var(--g-header-text);
	margin: 0 calc(50% - 50vw) 2rem;
	width: 100vw;
	border-bottom: 3px solid var(--g-accent);
}

.gilstro1-home-hero__bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.85) 45%, rgba(15, 23, 42, 0.95) 100%),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M0 0h40v40H0zm40 40h40v40H40z'/%3E%3C/g%3E%3C/svg%3E");
	pointer-events: none;
}

.gilstro1-home-hero__inner {
	position: relative;
	z-index: 1;
	padding: clamp(2rem, 6vw, 3.5rem) 1rem;
	max-width: 1180px;
	margin-inline: auto;
}

.gilstro1-home-hero__title {
	margin: 0 0 1rem;
	font-size: clamp(1.65rem, 1.2rem + 2.2vw, 2.35rem);
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -0.03em;
	max-width: 22ch;
	color: #fff;
}

.gilstro1-home-hero__subtitle {
	margin: 0 0 1.5rem;
	max-width: 52ch;
	color: #cbd5e1;
	font-size: clamp(1rem, 0.92rem + 0.35vw, 1.125rem);
	line-height: 1.55;
}

.gilstro1-home-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
}

.gilstro1-btn--outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.65);
	box-shadow: none;
	text-shadow: none;
	font-weight: 700;
}

.gilstro1-btn--outline:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	border-color: #fff;
	transform: translateY(-1px);
}

.gilstro1-btn--secondary {
	background: var(--g-paper);
	color: var(--g-header-bg);
	border: 1px solid rgba(15, 23, 42, 0.15);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	text-shadow: none;
	font-weight: 700;
}

.gilstro1-btn--secondary:hover {
	background: var(--g-surface);
	color: var(--g-header-bg);
	transform: translateY(-1px);
}

.gilstro1-home-block {
	padding-block: 2.25rem;
}

.gilstro1-home-block--surface {
	background: var(--g-surface);
	padding-block: 2.5rem;
	margin-inline: calc(50% - 50vw);
	padding-inline: calc(50vw - 50%);
	width: 100vw;
	box-sizing: border-box;
}

.gilstro1-section-title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
	font-weight: 800;
	color: var(--g-header-bg);
	letter-spacing: -0.02em;
}

.gilstro1-section-lead {
	margin: 0 0 1.5rem;
	color: var(--g-muted);
	max-width: 60ch;
}

.gilstro1-home-text p {
	margin: 0;
	max-width: 65ch;
}

.gilstro1-card__more {
	display: inline-block;
	margin-top: 0.5rem;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--g-accent);
}

.gilstro1-cta-row {
	margin: 1.25rem 0 0;
}

.gilstro1-section-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin-top: 1.25rem;
}

.gilstro1-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	max-width: 48rem;
}

.gilstro1-steps__item {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 1rem;
	align-items: start;
	padding: 1rem 1.1rem;
	background: var(--g-paper);
	border-radius: var(--g-radius);
	border: 1px solid rgba(15, 23, 42, 0.08);
}

.gilstro1-steps__num {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	background: linear-gradient(180deg, var(--g-accent-bright), var(--g-accent-dark));
	color: #fff;
	font-weight: 800;
	font-size: 0.95rem;
	flex-shrink: 0;
}

.gilstro1-steps__text {
	margin: 0.15rem 0 0;
	color: var(--g-slate);
}

.gilstro1-reviews {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.gilstro1-reviews--compact .gilstro1-review {
	margin: 0;
}

.gilstro1-review {
	margin: 0;
	padding: 1rem 1.15rem;
	background: var(--g-paper);
	border-left: 4px solid var(--g-accent);
	border-radius: 0 var(--g-radius) var(--g-radius) 0;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

.gilstro1-review p {
	margin: 0 0 0.5rem;
	color: var(--g-slate);
}

.gilstro1-review footer {
	color: var(--g-muted);
	font-size: 0.9rem;
}

.gilstro1-lead-section {
	margin-top: 2.5rem;
	padding: 1.5rem 1.25rem 1.75rem;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: var(--g-radius);
	background: linear-gradient(180deg, #fff 0%, var(--g-surface) 100%);
}

.gilstro1-lead-section__form {
	max-width: 28rem;
}

/* Плавающий CTA */
.gilstro1-sticky-cta {
	position: sticky;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 45;
	margin-top: 1rem;
	padding: 0.65rem 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, #fff 40%);
	border-top: 1px solid var(--g-line);
	box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1);
	transition: transform 0.25s ease, opacity 0.25s ease;
	touch-action: pan-y;
}

.gilstro1-sticky-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
}

.gilstro1-sticky-cta__text {
	margin: 0;
	font-size: 0.92rem;
	color: var(--g-muted);
	flex: 1 1 200px;
	max-width: 42ch;
}

.gilstro1-sticky-cta__btn {
	flex-shrink: 0;
}

.gilstro1-sticky-cta__close {
	border: 0;
	background: transparent;
	color: var(--g-muted);
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	padding: 0.2rem;
}

.gilstro1-sticky-cta.is-dismissed {
	transform: translateY(110%);
	opacity: 0;
	pointer-events: none;
}

@media (max-width: 559px) {
	.gilstro1-sticky-cta__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.gilstro1-sticky-cta__btn {
		width: 100%;
	}

	.gilstro1-home-hero__actions .gilstro1-btn {
		width: 100%;
	}

	.gilstro1-section-actions .gilstro1-btn {
		width: 100%;
	}
}

/* Внутренние страницы */
.gilstro1-inner .gilstro1-page-hero {
	margin-bottom: 1.5rem;
}

.gilstro1-page-hero__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.65rem, 1.25rem + 1.8vw, 2.15rem);
	line-height: 1.15;
	font-weight: 800;
	color: var(--g-header-bg);
}

.gilstro1-page-hero__lead {
	margin: 0;
	color: var(--g-muted);
	font-size: 1.05rem;
	max-width: 60ch;
	line-height: 1.55;
}

.gilstro1-h3 {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--g-header-bg);
}

.gilstro1-table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1rem 0 1.5rem;
	border-radius: var(--g-radius);
	border: 1px solid rgba(15, 23, 42, 0.1);
}

.gilstro1-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}

.gilstro1-table th,
.gilstro1-table td {
	padding: 0.65rem 0.85rem;
	text-align: left;
	border-bottom: 1px solid var(--g-line);
}

.gilstro1-table thead th {
	background: var(--g-surface);
	font-weight: 800;
	color: var(--g-header-bg);
}

.gilstro1-project-filter {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 1.25rem 0 1.5rem;
}

.gilstro1-project-filter select {
	padding: 0.5rem 0.65rem;
	border-radius: 8px;
	border: 1px solid var(--g-line);
	font: inherit;
	background: var(--g-paper);
	min-width: 12rem;
}

.gilstro1-project-grid {
	display: grid;
	gap: 1.5rem;
	grid-template-columns: 1fr;
}

@media (min-width: 768px) {
	.gilstro1-project-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.gilstro1-project-card {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: var(--g-radius);
	overflow: hidden;
	background: var(--g-paper);
	box-shadow: 0 6px 22px rgba(15, 23, 42, 0.06);
}

.gilstro1-project-card[hidden] {
	display: none;
}

.gilstro1-project-card__media img {
	width: 100%;
	aspect-ratio: 16 / 11;
	object-fit: cover;
}

.gilstro1-project-card__body {
	padding: 1.1rem 1.15rem 1.25rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.gilstro1-project-card__title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--g-header-bg);
}

.gilstro1-project-card__meta {
	margin: 0 0 0.5rem;
	font-size: 0.88rem;
	color: var(--g-muted);
}

.gilstro1-project-card__desc {
	margin: 0 0 0.75rem;
	flex: 1;
	color: var(--g-slate);
	font-size: 0.96rem;
}

.gilstro1-project-card__price {
	margin: 0 0 1rem;
	font-weight: 800;
	font-size: 1.05rem;
	color: var(--g-accent-dark);
}

.gilstro1-project-card__btn {
	align-self: flex-start;
}

.gilstro1-project-empty {
	margin: 1rem 0;
	color: var(--g-muted);
	font-size: 0.95rem;
}

.gilstro1-portfolio-list {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	margin-top: 1.5rem;
}

.gilstro1-portfolio-item {
	display: grid;
	gap: 1rem;
	align-items: start;
}

@media (min-width: 840px) {
	.gilstro1-portfolio-item {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
		gap: 1.5rem;
	}
}

.gilstro1-portfolio-item__media img {
	width: 100%;
	border-radius: var(--g-radius);
	aspect-ratio: 16 / 11;
	object-fit: cover;
	border: 1px solid rgba(15, 23, 42, 0.08);
}

.gilstro1-portfolio-item__title {
	margin: 0 0 0.5rem;
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--g-header-bg);
}

.gilstro1-portfolio-item__meta {
	margin: 0 0 0.75rem;
	font-size: 0.95rem;
	color: var(--g-muted);
}

.gilstro1-video-placeholder {
	min-height: 200px;
	display: grid;
	place-items: center;
	background: var(--g-surface);
	border-radius: var(--g-radius);
	border: 2px dashed rgba(148, 163, 184, 0.5);
	color: var(--g-muted);
	font-weight: 600;
	margin: 1rem 0 2rem;
}

.gilstro1-contact-page {
	display: grid;
	gap: 1.5rem;
	margin: 1rem 0 2rem;
}

@media (min-width: 640px) {
	.gilstro1-contact-page {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.gilstro1-map {
	position: relative;
	width: 100%;
	border-radius: var(--g-radius);
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.1);
	margin: 1rem 0 2rem;
	aspect-ratio: 16 / 9;
	min-height: 260px;
}

.gilstro1-map iframe {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
