/* ==========================================================================
   Global Software theme — front-end styles
   Colours, font and sizes come from theme.json (--wp--preset--*).
   ========================================================================== */

:root {
	--gs-brand: var(--wp--preset--color--brand, #0569cd);
	--gs-brand-dark: var(--wp--preset--color--brand-dark, #04539f);
	--gs-navy: var(--wp--preset--color--navy, #0f2440);
	--gs-text: var(--wp--preset--color--text, #333);
	--gs-muted: var(--wp--preset--color--muted, #5e6670);
	--gs-light: var(--wp--preset--color--light, #eef4fb);
	--gs-line: var(--wp--preset--color--line, #dce6f2);
	--gs-radius: 14px;
	--gs-shadow: 0 1px 2px rgba(15, 36, 64, 0.05), 0 8px 24px rgba(15, 36, 64, 0.07);
	--gs-shadow-lg: 0 2px 4px rgba(15, 36, 64, 0.06), 0 24px 48px rgba(15, 36, 64, 0.14);
	--gs-gutter: clamp(1rem, 4vw, 2rem);
	--gs-header-h: 88px;
	--gs-section-y: clamp(3.5rem, 8vw, 6rem);

	/* Motion system (NN/g: 100–400 ms, ease-out when entering) */
	--gs-ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
	--gs-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--gs-dur-fast: 150ms;
	--gs-dur: 250ms;
	--gs-dur-reveal: 380ms;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--gs-header-h) + 1rem);
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

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

:focus-visible {
	outline: 3px solid var(--gs-brand);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gs-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: #fff;
	color: var(--gs-navy);
	font-weight: 600;
}

.gs-skip:focus {
	left: 1rem;
	top: 1rem;
}

.gs-container {
	width: 100%;
	max-width: calc(var(--wp--style--global--wide-size, 1200px) + 2 * var(--gs-gutter));
	margin-inline: auto;
	padding-inline: var(--gs-gutter);
}

.gs-icon {
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Header & navigation
   -------------------------------------------------------------------------- */

.gs-header {
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s, box-shadow 0.2s;
}

/* The frosted background sits on its own layer: a backdrop-filter on the header
   itself would trap the phone menu (position: fixed) inside the header's box. */
.gs-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.94);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	backdrop-filter: saturate(180%) blur(12px);
}

.gs-nav-open .gs-header::before {
	background: #fff;
}

.admin-bar .gs-header {
	top: 32px;
}

.gs-header.is-scrolled {
	border-bottom-color: var(--gs-line);
	box-shadow: 0 4px 20px rgba(15, 36, 64, 0.06);
}

.gs-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: var(--gs-header-h);
}

.gs-logo {
	display: inline-flex;
	flex-shrink: 0;
}

.gs-logo img {
	display: block;
	width: auto;
	height: 64px;
	transform-origin: left center;
	transition: transform var(--gs-dur) var(--gs-ease-out);
}

/* Smaller logo once the page scrolls (scale only: no layout shift). */
.gs-header.is-scrolled .gs-logo img {
	transform: scale(0.84);
}

.gs-nav {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

.gs-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gs-menu li {
	position: relative;
}

.gs-menu a {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.6rem 0.95rem;
	border-radius: 8px;
	color: var(--gs-navy);
	font-size: 0.98rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s, background-color 0.15s;
}

.gs-menu a:hover {
	color: var(--gs-brand);
}

/* Animated underline under top-level items */
.gs-menu > li > a {
	position: relative;
}

.gs-menu > li > a::before {
	content: "";
	position: absolute;
	right: 0.95rem;
	bottom: 0.3rem;
	left: 0.95rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--gs-dur) var(--gs-ease-out);
}

.gs-menu > li > a:hover::before,
.gs-menu > li.current-menu-item > a::before,
.gs-menu > li.current-menu-ancestor > a::before,
.gs-menu > li.current-menu-parent > a::before {
	transform: scaleX(1);
}

.gs-menu .sub-menu a:hover {
	background: var(--gs-light);
}

.gs-menu .current-menu-item > a,
.gs-menu .current-menu-ancestor > a,
.gs-menu .current-menu-parent > a,
.gs-menu .current_page_item > a {
	color: var(--gs-brand);
}

.gs-menu > .menu-item-has-children > a::after {
	content: "";
	width: 0.42em;
	height: 0.42em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: 0.65;
}

.gs-menu .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 270px;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	background: #fff;
	border: 1px solid var(--gs-line);
	border-radius: 12px;
	box-shadow: var(--gs-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}

/* invisible bridge so the menu doesn't close while moving the mouse down */
.gs-menu .sub-menu::before {
	content: "";
	position: absolute;
	inset: -10px 0 auto;
	height: 10px;
}

.gs-menu li:hover > .sub-menu,
.gs-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.gs-menu .sub-menu a {
	font-weight: 500;
}

/* "Всички продукти →" closes the products drop-down when there are more products than it lists. */
.gs-menu .sub-menu .gs-menu-all {
	margin-top: 0.25rem;
	padding-top: 0.25rem;
	border-top: 1px solid var(--gs-line);
}

.gs-menu .sub-menu .gs-menu-all > a {
	color: var(--gs-brand);
	font-weight: 700;
}

.gs-lang {
	display: flex;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0.2rem;
	list-style: none;
	border: 1px solid var(--gs-line);
	border-radius: 999px;
}

.gs-lang a {
	display: block;
	padding: 0.3rem 0.65rem;
	border-radius: 999px;
	color: var(--gs-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-decoration: none;
}

.gs-lang a:hover {
	color: var(--gs-brand);
}

.gs-lang .is-current a {
	background: var(--gs-brand);
	color: #fff;
}

.gs-nav-toggle {
	display: none;
}

@media (max-width: 960px) {
	:root {
		--gs-header-h: 70px;
	}

	.gs-logo img {
		height: 50px;
	}

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

	.gs-nav-toggle__bars,
	.gs-nav-toggle__bars::before,
	.gs-nav-toggle__bars::after {
		display: block;
		width: 20px;
		height: 2px;
		border-radius: 2px;
		background: currentColor;
		transition: transform 0.2s, background-color 0.2s;
	}

	.gs-nav-toggle__bars {
		position: relative;
	}

	.gs-nav-toggle__bars::before,
	.gs-nav-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.gs-nav-toggle__bars::before {
		top: -6px;
	}

	.gs-nav-toggle__bars::after {
		top: 6px;
	}

	.gs-nav-toggle[aria-expanded="true"] .gs-nav-toggle__bars {
		background: transparent;
	}

	.gs-nav-toggle[aria-expanded="true"] .gs-nav-toggle__bars::before {
		transform: translateY(6px) rotate(45deg);
	}

	.gs-nav-toggle[aria-expanded="true"] .gs-nav-toggle__bars::after {
		transform: translateY(-6px) rotate(-45deg);
	}

	.gs-nav {
		position: fixed;
		top: var(--gs-header-h);
		right: 0;
		bottom: 0;
		left: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 1.25rem;
		padding: 0.25rem var(--gs-gutter) calc(1.25rem + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--gs-line);
		background: #fff;
		overflow-y: auto;
		overscroll-behavior: contain;
		visibility: hidden;
		opacity: 0;
		transform: translateY(-8px);
		transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
		pointer-events: none; /* the closed menu never catches taps meant for the page */
	}

	.admin-bar .gs-nav {
		top: calc(var(--gs-header-h) + 32px);
	}

	/* Page behind the open menu does not scroll. Only on <html>: hiding overflow on <body>
	   as well would make <body> the header's scroll box, so after scrolling down the sticky
	   header (logo + close button) would jump to the top of the page, out of view. */
	.gs-nav-open {
		overflow: hidden;
	}

	.gs-nav-open .gs-nav {
		visibility: visible;
		opacity: 1;
		transform: none;
		pointer-events: auto;
	}

	.gs-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.gs-menu a {
		padding: 1rem 0.25rem;
		border-bottom: 1px solid var(--gs-line);
		border-radius: 0;
		font-size: 1.15rem;
	}

	.gs-menu .current-menu-item > a,
	.gs-menu .current_page_item > a {
		box-shadow: inset 3px 0 0 var(--gs-brand);
		padding-left: 0.85rem;
	}

	.gs-menu a:hover {
		background: none;
	}

	.gs-menu > li > a::before {
		display: none;
	}

	.gs-menu > .menu-item-has-children > a::after {
		display: none;
	}

	/* products listed under "Продукти" */
	.gs-menu .sub-menu {
		position: static;
		min-width: 0;
		margin: 0.25rem 0 0.5rem 0.4rem;
		padding: 0 0 0 0.9rem;
		border: 0;
		border-left: 2px solid var(--gs-line);
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		/* follows the menu: hidden (and not tappable) while the menu is closed. "visible" here
		   left the product links invisibly tappable over the page when the menu was closed. */
		visibility: inherit;
		transform: none;
	}

	.gs-menu .sub-menu::before {
		display: none;
	}

	.gs-menu .sub-menu a {
		padding: 0.7rem 0.25rem;
		border-bottom: 0;
		color: var(--gs-muted);
		font-size: 1rem;
		font-weight: 600;
	}

	.gs-lang {
		align-self: flex-start;
	}

	.gs-lang a {
		padding: 0.55rem 1rem;
		font-size: 0.9rem;
	}

	/* call / email buttons at the bottom of the phone menu */
	.gs-nav__contact {
		display: grid;
		gap: 0.6rem;
		margin-top: auto;
		padding-top: 1rem;
	}

	.gs-nav__contact a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.6rem;
		padding: 0.9rem 1rem;
		border: 1px solid var(--gs-line);
		border-radius: 10px;
		background: var(--gs-light);
		color: var(--gs-navy);
		font-weight: 700;
		text-decoration: none;
	}

	.gs-nav__contact a.is-primary {
		border-color: var(--gs-brand);
		background: var(--gs-brand);
		color: #fff;
	}
}

/* the call / email buttons are only for the phone menu */
@media (min-width: 961px) {
	.gs-nav__contact {
		display: none;
	}
}

@media (max-width: 782px) {
	.admin-bar .gs-header {
		top: 46px;
	}

	.admin-bar .gs-nav {
		top: calc(var(--gs-header-h) + 46px);
	}
}

@media (max-width: 600px) {
	.admin-bar .gs-header {
		top: 0;
	}
}

/* --------------------------------------------------------------------------
   Buttons & small parts
   -------------------------------------------------------------------------- */

.wp-block-button__link,
.gs-btn {
	transition: background-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.wp-block-button__link:hover,
.gs-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(5, 105, 205, 0.22);
}

.wp-block-button__link:active,
.gs-btn:active {
	transform: translateY(0) scale(0.98);
	transition-duration: 80ms;
}

/* Arrow on primary buttons that nudges on hover (decorative, not read aloud). */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link::after {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: translate var(--gs-dur) var(--gs-ease-out);
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover::after {
	translate: 3px 0;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	padding: calc(0.85em - 2px) calc(1.5em - 2px);
	border: 2px solid var(--gs-line);
	background: #fff;
	color: var(--gs-navy);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--gs-brand);
	color: var(--gs-brand);
	box-shadow: none;
}

.gs-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.85em 1.5em;
	border-radius: 8px;
	background: var(--gs-brand);
	color: #fff;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.gs-btn:hover {
	background: var(--gs-brand-dark);
	color: #fff;
}

.gs-btn--light {
	background: #fff;
	color: var(--gs-brand);
}

.gs-btn--light:hover {
	background: var(--gs-light);
	color: var(--gs-brand-dark);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.gs-eyebrow {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 0.75rem;
	color: var(--gs-brand);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.gs-badge {
	display: inline-block;
	align-self: flex-start;
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	background: #fff1e0;
	color: #a24a06;
	font-size: 0.74rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Page sections (Group blocks with these classes)
   -------------------------------------------------------------------------- */

.entry-content > .alignfull {
	margin-top: 0;
	margin-bottom: 0;
}

.gs-section {
	padding-top: var(--gs-section-y);
	padding-bottom: var(--gs-section-y);
}

.gs-section--light {
	background: var(--gs-light);
}

.gs-section__head {
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.gs-section__head > * {
	max-width: 720px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.gs-section__head > h2 {
	margin-top: 0.35rem !important;
}

.gs-section__head > h2 + p {
	margin-top: 1rem !important;
	color: var(--gs-muted);
	font-size: var(--wp--preset--font-size--large);
}

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

.gs-hero {
	position: relative;
	overflow: hidden;
	padding-top: clamp(3rem, 7vw, 5.5rem);
	padding-bottom: clamp(3.5rem, 8vw, 6rem);
	background:
		radial-gradient(900px 520px at 82% 30%, rgba(5, 105, 205, 0.12), transparent 65%),
		linear-gradient(180deg, #f7faff 0%, var(--gs-light) 100%);
}

.gs-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(5, 105, 205, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(5, 105, 205, 0.07) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 10%, transparent 75%);
	mask-image: radial-gradient(ellipse 60% 70% at 75% 40%, #000 10%, transparent 75%);
	pointer-events: none;
}

.gs-hero > * {
	position: relative;
}

.gs-hero .wp-block-columns {
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
	margin: 0;
}

.gs-hero h1 {
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--huge);
	line-height: 1.1;
	letter-spacing: -0.025em;
}

.gs-hero__lead {
	max-width: 58ch;
	margin: 0;
	color: var(--gs-muted);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
}

.gs-hero .wp-block-buttons {
	margin-top: 2rem;
}

.gs-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 2.25rem 0 0;
	padding: 0;
	list-style: none;
}

.gs-chips li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 0.9rem;
	border: 1px solid var(--gs-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.85);
	color: var(--gs-navy);
	font-size: 0.875rem;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(15, 36, 64, 0.05);
}

.gs-chips li::before {
	content: "";
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--gs-brand);
	box-shadow: 0 0 0 3px rgba(5, 105, 205, 0.15);
}

/* Hero visual: the globe from the logo, a real screenshot in a floating
   window in front of it, and a small label (Baymard: show the real UI early). */
.gs-hero-visual {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 440px;
	margin: 0;
}

.gs-hero-visual > * {
	margin-block: 0 !important;
}

/* Orbit ring with a small dot travelling around it. */
.gs-hero-visual::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: min(112%, 520px);
	aspect-ratio: 1;
	border: 1px dashed rgba(5, 105, 205, 0.28);
	border-radius: 50%;
	background: radial-gradient(circle at 50% 0, var(--gs-brand) 0 5px, rgba(5, 105, 205, 0.18) 6px 10px, transparent 11px);
	translate: -50% -50%;
	pointer-events: none;
}

.gs-hero-globe {
	position: relative;
	margin: 0;
	translate: 10% -6%;
}

.gs-hero-globe::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: -1;
	width: 120%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 70%);
	translate: -50% -50%;
	pointer-events: none;
}

.gs-hero-globe img {
	position: relative;
	display: block;
	width: 330px;
	max-width: 100%;
	filter: drop-shadow(0 28px 50px rgba(5, 105, 205, 0.28));
}

.gs-hero-shot {
	position: absolute !important;
	bottom: 0;
	left: -4%;
	z-index: 2;
	width: 60%;
	overflow: hidden;
	border: 1px solid #d3deeb;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--gs-shadow-lg);
	rotate: -3deg;
	transition: rotate var(--gs-dur) var(--gs-ease-out), translate var(--gs-dur) var(--gs-ease-out);
}

/* Moves only when it is a link – movement on hover promises a click. */
.gs-hero-shot:has(a):hover,
.gs-hero-shot:focus-within {
	rotate: 0deg;
	translate: 0 -4px;
}

.gs-hero-shot a {
	display: block;
}

.gs-hero-shot:focus-within {
	box-shadow: 0 0 0 3px var(--gs-brand), var(--gs-shadow-lg);
}

.gs-hero-shot a:focus-visible {
	outline: none; /* the ring is drawn on the window frame above */
}

/* window title bar with three dots */
.gs-hero-shot::before {
	content: "";
	display: block;
	height: 22px;
	border-bottom: 1px solid #dfe7f1;
	background:
		radial-gradient(circle at 13px 50%, #f26d5b 0 4px, transparent 4.5px),
		radial-gradient(circle at 27px 50%, #f5be4f 0 4px, transparent 4.5px),
		radial-gradient(circle at 41px 50%, #5cc46b 0 4px, transparent 4.5px),
		#edf2f8;
}

.gs-hero-shot img {
	display: block;
	width: 100%;
	height: auto;
}

.gs-hero-badge {
	position: absolute;
	top: 8%;
	left: -2%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	max-width: 240px;
	padding: 0.6rem 0.95rem 0.6rem 0.65rem;
	border: 1px solid var(--gs-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--gs-shadow-lg);
	color: var(--gs-navy);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
}

.gs-hero-badge::before {
	content: "";
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	background: #e3f6e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.95rem no-repeat;
}

@media (max-width: 781px) {
	.gs-hero .wp-block-columns {
		flex-direction: column-reverse;
	}

	.gs-hero-visual {
		min-height: 0;
		padding: 1.25rem 0;
	}

	.gs-hero-visual::before {
		width: 210px;
	}

	.gs-hero-globe {
		translate: none;
	}

	.gs-hero-globe img {
		width: 150px;
	}

	.gs-hero-shot,
	.gs-hero-badge {
		display: none !important;
	}
}

/* --------------------------------------------------------------------------
   Product cards (block "Списък с продукти")
   -------------------------------------------------------------------------- */

.gs-products {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
	gap: clamp(1.25rem, 3vw, 2rem);
}

/* "Всички продукти (N)" under the cards when only the first few are shown (home page). */
.gs-products__more {
	margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
	text-align: center;
}

.gs-products__more .gs-icon {
	width: 1.1em;
	height: 1.1em;
	transition: translate var(--gs-dur) var(--gs-ease-out);
}

.gs-products__more .gs-btn:hover .gs-icon {
	translate: 3px 0;
}

.gs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--gs-line);
	border-radius: var(--gs-radius);
	background: #fff;
	box-shadow: var(--gs-shadow);
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.gs-card:hover {
	transform: translateY(-4px);
	border-color: #c7d8ee;
	box-shadow: var(--gs-shadow-lg);
}

.gs-card__media {
	height: 250px;
	padding: 1.75rem 1.75rem 0;
	overflow: hidden;
	background:
		radial-gradient(400px 200px at 80% 0%, rgba(5, 105, 205, 0.14), transparent 70%),
		var(--gs-light);
}

.gs-window {
	display: block;
	overflow: hidden;
	border: 1px solid #d3deeb;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 14px 34px rgba(15, 36, 64, 0.18);
	transition: transform 0.35s ease;
}

.gs-card__media .gs-window {
	border-bottom: 0;
	border-radius: 10px 10px 0 0;
}

.gs-card:hover .gs-window {
	transform: translateY(-6px);
}

.gs-window__bar {
	display: flex;
	gap: 6px;
	padding: 9px 12px;
	border-bottom: 1px solid #dfe7f1;
	background: #edf2f8;
}

.gs-window__bar i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c5d1df;
}

.gs-window__bar i:first-child {
	background: #f26d5b;
}

.gs-window__bar i:nth-child(2) {
	background: #f5be4f;
}

.gs-window__bar i:nth-child(3) {
	background: #5cc46b;
}

.gs-window img {
	display: block;
	width: 100%;
	height: auto;
}

.gs-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.75rem;
}

.gs-card__title {
	margin: 0;
	font-size: 1.5rem;
	letter-spacing: -0.015em;
}

.gs-card__title a {
	color: var(--gs-navy);
	text-decoration: none;
}

/* the whole card is clickable */
.gs-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.gs-card__tagline {
	margin: 0;
	color: var(--gs-brand);
	font-weight: 600;
}

.gs-card__excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--gs-muted);
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
}

.gs-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 0.75rem;
	color: var(--gs-brand);
	font-weight: 700;
}

.gs-card__more .gs-icon {
	transition: transform 0.2s;
}

.gs-card:hover .gs-card__more .gs-icon {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Feature tiles (Columns block with class gs-features)
   -------------------------------------------------------------------------- */

.wp-block-columns.gs-features {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: clamp(1rem, 2.5vw, 1.5rem);
	counter-reset: gs-feature;
}

.gs-features > .wp-block-column {
	counter-increment: gs-feature;
	padding: 1.75rem;
	border: 1px solid var(--gs-line);
	border-radius: var(--gs-radius);
	background: #fff;
	box-shadow: var(--gs-shadow);
}

.gs-features > .wp-block-column::before {
	content: counter(gs-feature, decimal-leading-zero);
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 1.1rem;
	border-radius: 12px;
	background: var(--gs-light);
	color: var(--gs-brand);
	font-weight: 800;
}

.gs-features h3 {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}

.gs-features p {
	margin: 0;
	color: var(--gs-muted);
	font-size: 0.97rem;
}

.gs-section .wp-block-buttons.gs-section__more {
	margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   Contact band
   -------------------------------------------------------------------------- */

.gs-cta {
	position: relative;
	overflow: hidden;
	padding-block: clamp(3rem, 6vw, 4.5rem);
	background: linear-gradient(135deg, var(--gs-brand) 0%, var(--gs-brand-dark) 100%);
	color: #fff;
}

.gs-cta::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -60px;
	width: 360px;
	height: 360px;
	background: #fff;
	opacity: 0.08;
	transform: translateY(-50%) rotate(-8deg);
	-webkit-mask: url("../images/site-icon.png") center / contain no-repeat;
	mask: url("../images/site-icon.png") center / contain no-repeat;
	pointer-events: none;
}

.gs-cta__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.gs-cta__title {
	margin: 0 0 0.5rem;
	color: #fff;
	font-size: var(--wp--preset--font-size--x-large);
}

.gs-cta p {
	max-width: 52ch;
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
}

.gs-cta__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
}

.gs-cta__link {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	text-decoration: none;
}

.gs-cta__link:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.gs-cta-block {
	margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
   Inner pages
   -------------------------------------------------------------------------- */

.gs-page-hero {
	padding-block: clamp(2.5rem, 6vw, 4.25rem);
	border-bottom: 1px solid var(--gs-line);
	background:
		radial-gradient(700px 300px at 90% 0%, rgba(5, 105, 205, 0.1), transparent 70%),
		linear-gradient(180deg, #f7faff, var(--gs-light));
}

.gs-page-hero__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: -0.02em;
}

.gs-page-hero__lead {
	max-width: 62ch;
	margin: 0.85rem 0 0;
	color: var(--gs-muted);
	font-size: var(--wp--preset--font-size--large);
}

.gs-page-content {
	padding-top: clamp(2.5rem, 6vw, 4rem);
	padding-bottom: clamp(3rem, 7vw, 5rem);
}

.gs-page-content:has(> .gs-cta-block:last-child),
.gs-page-content:has(> .alignfull:last-child) {
	padding-bottom: 0;
}

/* a page that starts with a full-width section: no white gap under the title band */
.gs-page-content:has(> .alignfull:first-child) {
	padding-top: 0;
}

.gs-page-content > .gs-cta-block:last-child {
	margin-top: clamp(3rem, 7vw, 5rem) !important;
}

.entry-content > h2 {
	margin-top: 2em;
}

.gs-page-content > h2 {
	font-size: var(--wp--preset--font-size--x-large);
}

.entry-content > h3 {
	margin-top: 1.75em;
}

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

.entry-content ul.wp-block-list li::marker {
	color: var(--gs-brand);
}

.entry-content ul.wp-block-list li + li {
	margin-top: 0.35em;
}

.gs-page-content .wp-block-image img,
.gs-page-content .wp-block-gallery img {
	border: 1px solid var(--gs-line);
	border-radius: 10px;
	box-shadow: var(--gs-shadow);
}

.gs-page-content .wp-block-gallery.is-cropped .wp-block-image img {
	aspect-ratio: 16 / 10;
	object-fit: cover;
	object-position: left top;
}

/* product page */
.gs-product-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
}

.gs-product-hero__text .gs-badge {
	margin-bottom: 0.9rem;
}

.gs-product-hero__tagline {
	margin: 0.6rem 0 0;
	color: var(--gs-brand);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.gs-product-hero__actions {
	margin: 1.75rem 0 0;
}

.gs-product-hero__media .gs-window {
	transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
	box-shadow: var(--gs-shadow-lg);
}

.gs-back {
	display: flex;
	width: fit-content;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
	color: var(--gs-muted);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
}

.gs-back:hover {
	color: var(--gs-brand);
}

.gs-back .gs-icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 860px) {
	.gs-product-hero__grid {
		grid-template-columns: 1fr;
	}

	.gs-product-hero__media .gs-window {
		transform: none;
	}
}

/* contact cards (block "Данни за контакт") */
.gs-contact-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.gs-contact-card {
	padding: 1.75rem;
	border: 1px solid var(--gs-line);
	border-radius: var(--gs-radius);
	background: #fff;
	box-shadow: var(--gs-shadow);
}

.gs-contact-card__icon {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin-bottom: 1rem;
	border-radius: 12px;
	background: var(--gs-light);
	color: var(--gs-brand);
}

.gs-contact-card__title {
	margin: 0 0 0.5rem !important;
	font-size: 0.82rem !important;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--gs-muted) !important;
}

.gs-contact-card p {
	margin: 0;
	color: var(--gs-navy);
	font-size: 1.05rem;
	font-weight: 500;
}

.gs-contact-card a {
	color: var(--gs-navy);
	text-decoration: none;
}

.gs-contact-card a:hover {
	color: var(--gs-brand);
}

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

.gs-footer {
	padding-top: clamp(3rem, 6vw, 4.5rem);
	background: var(--gs-navy);
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.95rem;
}

.gs-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1.3fr;
	gap: 2.5rem;
}

.gs-footer__logo {
	display: block;
	width: auto;
	height: 72px;
}

.gs-footer__brand p {
	max-width: 34ch;
	margin: 1.25rem 0 0;
}

.gs-footer__title {
	margin: 0 0 1rem;
	color: #fff;
	font-size: 0.8rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.gs-footer a {
	color: #fff;
	text-decoration: none;
}

.gs-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.gs-footer-menu {
	display: grid;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gs-contact-list {
	display: grid;
	gap: 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gs-contact-list li {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 0.75rem;
	align-items: start;
}

.gs-contact-list .gs-icon {
	margin-top: 2px;
	color: #7fb5ec;
}

.gs-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 3rem;
	padding-block: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 0.85rem;
}

.gs-footer__bottom p {
	margin: 0;
}

@media (max-width: 860px) {
	.gs-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
   Small lively details
   -------------------------------------------------------------------------- */

.gs-eyebrow::before {
	content: "";
	flex-shrink: 0;
	width: 1.5rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.gs-chips li {
	transition: border-color var(--gs-dur-fast) var(--gs-ease-out), translate var(--gs-dur-fast) var(--gs-ease-out);
}

.gs-chips li:hover {
	border-color: #b9cfea;
	translate: 0 -1px;
}

.gs-window img {
	transition: transform 400ms var(--gs-ease-out);
}

.gs-card:hover .gs-window img {
	transform: scale(1.03);
}

.gs-features > .wp-block-column,
.gs-contact-card {
	transition: transform var(--gs-dur) var(--gs-ease-out), box-shadow var(--gs-dur) var(--gs-ease-out), border-color var(--gs-dur) var(--gs-ease-out);
}

.gs-features > .wp-block-column:hover,
.gs-contact-card:hover {
	transform: translateY(-3px);
	border-color: #c7d8ee;
	box-shadow: var(--gs-shadow-lg);
}

/* screenshots in galleries: show they can be opened bigger */
.gs-page-content .wp-block-gallery .wp-block-image img,
.gs-page-content > .wp-block-image img {
	cursor: zoom-in;
	transition: transform var(--gs-dur) var(--gs-ease-out), box-shadow var(--gs-dur) var(--gs-ease-out);
}

.gs-page-content .wp-block-gallery .wp-block-image:hover img,
.gs-page-content > .wp-block-image:hover img {
	transform: translateY(-3px);
	box-shadow: var(--gs-shadow-lg);
}

/* --------------------------------------------------------------------------
   Capabilities grid (Columns block with class gs-capabilities, columns gs-cap)
   -------------------------------------------------------------------------- */

.wp-block-columns.gs-capabilities {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: clamp(1rem, 2.5vw, 1.5rem);
}

.gs-cap {
	/* default icon (a tick) when no icon style is picked */
	--gs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	position: relative;
	padding: 1.75rem 1.75rem 1.5rem;
	border: 1px solid var(--gs-line);
	border-radius: var(--gs-radius);
	background: #fff;
	box-shadow: var(--gs-shadow);
	transition: transform var(--gs-dur) var(--gs-ease-out), box-shadow var(--gs-dur) var(--gs-ease-out), border-color var(--gs-dur) var(--gs-ease-out);
}

.gs-cap:hover {
	transform: translateY(-3px);
	border-color: #c7d8ee;
	box-shadow: var(--gs-shadow-lg);
}

/* icon tile: light square + icon drawn with a mask */
.gs-cap::before,
.gs-cap::after {
	content: "";
	display: block;
	width: 3rem;
	height: 3rem;
}

.gs-cap::before {
	margin-bottom: 1.1rem;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--gs-light), #dbe9f8);
	transition: background var(--gs-dur) var(--gs-ease-out);
}

.gs-cap::after {
	position: absolute;
	top: 1.75rem;
	left: 1.75rem;
	background: var(--gs-brand);
	-webkit-mask: var(--gs-ico) center / 1.5rem no-repeat;
	mask: var(--gs-ico) center / 1.5rem no-repeat;
	transition: background var(--gs-dur) var(--gs-ease-out);
}

.gs-cap:hover::before {
	background: var(--gs-brand);
}

.gs-cap:hover::after {
	background: #fff;
}

.gs-cap h3 {
	margin: 0 0 0.45rem;
	font-size: 1.125rem;
}

.gs-cap p {
	margin: 0;
	color: var(--gs-muted);
	font-size: 0.97rem;
}

.gs-cap .gs-cap__tag {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: var(--gs-light);
	color: var(--gs-brand-dark);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

/* icon classes: gs-ico-* (written by the content script) or is-style-gs-icon-* (picked in the editor) */
.is-style-gs-icon-file,
.gs-ico-file { --gs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='m9 15 2 2 4-4'/%3E%3C/svg%3E"); }
.is-style-gs-icon-calendar,
.gs-ico-calendar { --gs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E"); }
.is-style-gs-icon-money,
.gs-ico-money { --gs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E"); }
.is-style-gs-icon-chart,
.gs-ico-chart { --gs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M8 17v-5M13 17V8M18 17v-8'/%3E%3C/svg%3E"); }
.is-style-gs-icon-orders,
.gs-ico-orders { --gs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='2' width='8' height='4' rx='1'/%3E%3Cpath d='M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2'/%3E%3Cpath d='M9 12h6M9 16h4'/%3E%3C/svg%3E"); }
.is-style-gs-icon-users,
.gs-ico-users { --gs-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }

/* --------------------------------------------------------------------------
   Pattern helpers: window frame for screenshots, text + image, FAQ
   -------------------------------------------------------------------------- */

.wp-block-image.gs-window-frame {
	overflow: hidden;
	border: 1px solid #d3deeb;
	border-radius: 10px;
	background: #fff;
	box-shadow: var(--gs-shadow-lg);
}

.wp-block-image.gs-window-frame::before {
	content: "";
	display: block;
	height: 24px;
	border-bottom: 1px solid #dfe7f1;
	background:
		radial-gradient(circle at 14px 50%, #f26d5b 0 4px, transparent 4.5px),
		radial-gradient(circle at 28px 50%, #f5be4f 0 4px, transparent 4.5px),
		radial-gradient(circle at 42px 50%, #5cc46b 0 4px, transparent 4.5px),
		#edf2f8;
}

.wp-block-image.gs-window-frame img {
	display: block;
	width: 100%;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

.gs-text-image {
	gap: clamp(2rem, 5vw, 4rem) !important;
}

.gs-faq {
	max-width: 860px;
}

.gs-faq .wp-block-details {
	margin: 0 0 0.75rem !important;
	border: 1px solid var(--gs-line);
	border-radius: 12px;
	background: #fff;
	transition: border-color var(--gs-dur) var(--gs-ease-out), box-shadow var(--gs-dur) var(--gs-ease-out);
}

.gs-faq .wp-block-details[open] {
	border-color: #c7d8ee;
	box-shadow: var(--gs-shadow);
}

.gs-faq summary {
	position: relative;
	padding: 1.1rem 3.25rem 1.1rem 1.4rem;
	color: var(--gs-navy);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.gs-faq summary::-webkit-details-marker {
	display: none;
}

.gs-faq summary::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 1.4rem;
	width: 0.6rem;
	height: 0.6rem;
	border-right: 2px solid var(--gs-brand);
	border-bottom: 2px solid var(--gs-brand);
	translate: 0 -70%;
	rotate: 45deg;
	transition: rotate var(--gs-dur) var(--gs-ease-out), translate var(--gs-dur) var(--gs-ease-out);
}

.gs-faq .wp-block-details[open] summary::after {
	rotate: 225deg;
	translate: 0 -30%;
}

.gs-faq .wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 1.4rem 1.2rem;
	color: var(--gs-muted);
}

/* --------------------------------------------------------------------------
   Product page: "On this page" menu next to the description
   -------------------------------------------------------------------------- */

.gs-product-body.has-toc {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
}

.gs-product-content > * {
	max-width: 820px;
}

.gs-toc {
	position: sticky;
	top: calc(var(--gs-header-h) + 1.5rem);
	margin-top: clamp(2.5rem, 6vw, 4rem);
}

.admin-bar .gs-toc {
	top: calc(var(--gs-header-h) + 32px + 1.5rem);
}

.gs-toc__title {
	margin: 0 0 0.75rem;
	color: var(--gs-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.gs-toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-left: 2px solid var(--gs-line);
}

.gs-toc a {
	display: block;
	margin-left: -2px;
	padding: 0.4rem 0.9rem;
	border-left: 2px solid transparent;
	color: var(--gs-muted);
	font-size: 0.92rem;
	line-height: 1.35;
	text-decoration: none;
	transition: color var(--gs-dur-fast) var(--gs-ease-out), border-color var(--gs-dur-fast) var(--gs-ease-out);
}

.gs-toc a:hover {
	color: var(--gs-brand);
}

.gs-toc a[aria-current="true"] {
	border-left-color: var(--gs-brand);
	color: var(--gs-brand);
	font-weight: 600;
}

@media (max-width: 1000px) {
	.gs-product-body.has-toc {
		display: block;
	}

	.gs-toc {
		position: static;
		margin-top: 2rem;
	}

	/* on small screens: a row of chips that scrolls sideways */
	.gs-toc ol {
		display: flex;
		gap: 0.5rem;
		padding-bottom: 0.25rem;
		overflow-x: auto;
		border-left: 0;
		scrollbar-width: thin;
	}

	.gs-toc a {
		margin: 0;
		padding: 0.45rem 0.85rem;
		border: 1px solid var(--gs-line);
		border-radius: 999px;
		white-space: nowrap;
	}

	.gs-toc a[aria-current="true"] {
		border-color: var(--gs-brand);
		background: var(--gs-light);
	}
}

/* --------------------------------------------------------------------------
   Back-to-top button (shown by JS after scrolling down)
   -------------------------------------------------------------------------- */

.gs-to-top {
	position: fixed;
	right: clamp(1rem, 3vw, 2rem);
	bottom: clamp(1rem, 3vw, 2rem);
	z-index: 90;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--gs-navy);
	color: #fff;
	box-shadow: 0 8px 24px rgba(15, 36, 64, 0.25);
	opacity: 0;
	visibility: hidden;
	translate: 0 12px;
	transition: opacity var(--gs-dur) var(--gs-ease-out), translate var(--gs-dur) var(--gs-ease-out), visibility var(--gs-dur), background-color var(--gs-dur-fast);
}

.gs-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	translate: 0 0;
}

.gs-to-top:hover {
	background: var(--gs-brand);
	color: #fff;
}

/* --------------------------------------------------------------------------
   Motion: reveal on scroll, hero entrance, orbit (all skipped for "reduce motion")
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
	/* Elements below the fold, prepared by main.js */
	.gs-reveal:not(.is-visible) {
		opacity: 0;
	}

	/* "backwards": hidden during the delay, then hand control back to hover effects */
	.gs-reveal.is-visible {
		animation: gs-reveal var(--gs-dur-reveal) var(--gs-ease-out) var(--gs-delay, 0ms) backwards;
	}

	/* Hero: supporting items glide in on page load (headline and globe stay put, so they paint at once). */
	.gs-hero .wp-block-buttons,
	.gs-hero .gs-chips {
		animation: gs-reveal 420ms var(--gs-ease-out) backwards;
	}

	.gs-hero .wp-block-buttons {
		animation-delay: 120ms;
	}

	.gs-hero .gs-chips {
		animation-delay: 220ms;
	}

	.gs-hero-shot {
		animation: gs-shot-in 480ms var(--gs-ease-out) 200ms backwards;
	}

	.gs-hero-badge {
		animation: gs-badge-in 400ms var(--gs-ease-out) 500ms backwards;
	}

	/* the only ambient loop: one slow lap of the orbit dot every 40 s */
	.gs-hero-visual::before {
		animation: gs-orbit 40s linear infinite;
	}
}

/* Printing: show everything, no motion, no floating buttons. */
@media print {
	.gs-reveal,
	.gs-reveal:not(.is-visible) {
		opacity: 1 !important;
		animation: none !important;
	}

	.gs-to-top,
	.gs-nav-toggle,
	.gs-header {
		display: none !important;
	}
}

@keyframes gs-reveal {
	from {
		opacity: 0;
		translate: 0 14px;
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

@keyframes gs-shot-in {
	from {
		opacity: 0;
		translate: -16px 18px;
	}

	to {
		opacity: 1;
		translate: 0 0;
	}
}

@keyframes gs-badge-in {
	from {
		opacity: 0;
		scale: 0.9;
	}

	to {
		opacity: 1;
		scale: 1;
	}
}

@keyframes gs-orbit {
	to {
		rotate: 360deg;
	}
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

/* --------------------------------------------------------------------------
   Pictures: make clear what a tap does (phones have no hover)
   -------------------------------------------------------------------------- */

/* Screenshots that open bigger: the enlarge icon is always shown on touch screens. */
.wp-lightbox-container > button {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background-color: rgba(15, 36, 64, 0.55) !important;
}

@media (hover: none) {
	.wp-lightbox-container > button {
		opacity: 1;
	}
}

/* The top screenshot of a product page is an image block now (enlarges on click). */
.gs-window .wp-block-image {
	margin: 0;
}

/* Product cards open the product: a round arrow on the picture says so
   (always on touch screens, on hover / highlight with a mouse). */
.gs-card__media {
	position: relative;
}

.gs-card__media::after {
	content: "";
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 2;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230569cd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 1.15rem no-repeat;
	box-shadow: 0 4px 14px rgba(15, 36, 64, 0.18);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity var(--gs-dur) var(--gs-ease-out), transform var(--gs-dur) var(--gs-ease-out);
	pointer-events: none;
}

.gs-card:hover .gs-card__media::after,
.gs-card:focus-within .gs-card__media::after,
.gs-card.is-spotlight .gs-card__media::after {
	opacity: 1;
	transform: none;
}

@media (hover: none) {
	.gs-card__media::after {
		opacity: 1;
		transform: none;
	}

	/* short "pressed" feedback when a card is tapped */
	.gs-card:active {
		transform: scale(0.98);
		transition-duration: 80ms;
	}
}

/* --------------------------------------------------------------------------
   "На тази страница" on small screens: a bar under the header that shows the
   current section; tapping it opens the list of sections (main.js adds .is-compact)
   -------------------------------------------------------------------------- */

.gs-toc__toggle {
	display: none;
}

.gs-toc.is-compact {
	position: sticky;
	top: var(--gs-header-h);
	z-index: 40;
	margin: 0 calc(-1 * var(--gs-gutter)) 1.75rem;
	border-bottom: 1px solid var(--gs-line);
	background: #fff;
	box-shadow: 0 6px 16px rgba(15, 36, 64, 0.06);
}

.admin-bar .gs-toc.is-compact {
	top: calc(var(--gs-header-h) + 46px);
}

.gs-toc.is-compact .gs-toc__title {
	display: none;
}

.gs-toc.is-compact .gs-toc__toggle {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.75rem var(--gs-gutter);
	border: 0;
	background: none;
	color: var(--gs-navy);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.gs-toc__label {
	flex-shrink: 0;
	color: var(--gs-muted);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gs-toc__current {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	color: var(--gs-brand);
	font-size: 0.95rem;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* chevron: down when closed, up when open */
.gs-toc__toggle::after {
	content: "";
	flex-shrink: 0;
	width: 0.5rem;
	height: 0.5rem;
	margin: 0 0.2rem 0.25rem 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform var(--gs-dur) var(--gs-ease-out);
}

.gs-toc.is-open .gs-toc__toggle::after {
	margin-bottom: -0.2rem;
	transform: rotate(-135deg);
}

/* the list: a dropdown under the bar, one section per line */
.gs-product-body .gs-toc.is-compact ol {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	display: none;
	max-height: min(60vh, 26rem);
	margin: 0;
	padding: 0.35rem 0;
	overflow-y: auto;
	border: 0;
	border-top: 1px solid var(--gs-line);
	border-bottom: 1px solid var(--gs-line);
	background: #fff;
	box-shadow: 0 14px 28px rgba(15, 36, 64, 0.14);
	overscroll-behavior: contain;
}

.gs-product-body .gs-toc.is-compact.is-open ol {
	display: block;
}

.gs-product-body .gs-toc.is-compact ol a {
	display: block;
	margin: 0;
	padding: 0.7rem var(--gs-gutter);
	border: 0;
	border-left: 3px solid transparent;
	border-radius: 0;
	background: none;
	color: var(--gs-text);
	font-size: 0.98rem;
	line-height: 1.35;
	white-space: normal;
}

.gs-product-body .gs-toc.is-compact ol a[aria-current="true"] {
	border-left-color: var(--gs-brand);
	background: var(--gs-light);
	color: var(--gs-brand);
	font-weight: 600;
}

/* jumping to a section: leave room for the header + this bar */
html:has(.gs-toc.is-compact) {
	scroll-padding-top: calc(var(--gs-header-h) + 4.5rem);
}
