:root {
	--bg: #ffffff;
	--surface: #f5f5f7;
	--ink: #0a0a0a;
	--muted: #6e6e73;
	--line: #e5e5ea;
	--accent: #0071e3;
	--radius: 16px;
	--shadow: 0 10px 30px rgba(0, 0, 0, .08);
	--maxw: 1200px;
	--sidebar: 280px;
}

/* Wider content and centered hero on large desktops without affecting 13" */
@media (min-width: 1711px) {
	:root { --maxw: 1500px; }
	.container { padding: 0 32px; }
	.hero-cta { justify-content: center; }
	.hero h1, .hero p, .hero-cta { text-align: center; margin-left: auto; margin-right: auto; }
}

* {
	box-sizing: border-box;
	padding: 0;
	margin: 0;
}

html {
	scroll-behavior: smooth
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	color: var(--ink);
	background: var(--bg)
}

body.menu-open { overflow: hidden; }

/* Mobile top bar (hamburger) */
.mobile-bar {
	position: sticky;
	top: 0;
	z-index: 210;

/* Make comparison table horizontally scrollable on narrow screens */
.compare-panel { overflow-x: auto; }
.compare-table { min-width: 640px; }

/* Reduce tall step-cards on very small screens to avoid excessive vertical scrolling */
@media (max-width:480px) {
  .step-card { min-height: 180px; grid-template-columns: 40% 60%; }
}
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: rgba(255,255,255,0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}

.mobile-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 18px;
}

.mobile-brand img { height: 28px; width: auto; display:block; }

.hamburger {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	cursor: pointer;
	transition: background .2s ease;
}

.hamburger:hover { background: #f4f4f5; }

.hamburger span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--ink);
	border-radius: 999px;
	transition: transform .2s ease, opacity .2s ease;
}

body.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .hamburger span:nth-child(2) { opacity: 0; }
body.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.menu-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.4);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease;
	z-index: 180;
}

body.menu-open .menu-backdrop { opacity:1; visibility: visible; }

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

/* Layout */
.layout {
	display: grid;
	grid-template-columns: var(--sidebar) 1fr;
	min-height: 100dvh
}

aside {
	position: sticky;
	top: 0;
	align-self: start;
	height: 100dvh;
	border-right: 1px solid var(--line);
	background: #fff;
	padding: 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 14px
}

body.menu-open aside { box-shadow: 0 18px 42px rgba(0,0,0,0.12); }

.brand {
	display: block;
	padding: 12px 10px;
	font-weight: 800;
	font-size: 18px;
}

.brand-logo { display:block; width:100%; height:auto; max-height:none }

/* Fixed language switch top-right */
.lang-fixed {
	position: fixed;
	top: 12px;
	right: 18px;
	display: flex;
	gap: 8px;
	z-index: 200;
}
.lang-fixed button { padding:6px 10px; border-radius:8px; border:1px solid var(--line); background:transparent; cursor:pointer }

.side-links {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 8px
}

.side-links a {
	padding: 8px 6px;
	border-radius: 6px;
	border: none;
	background: transparent;
	color: var(--ink);
	font-size: 16px;
}

.side-links a.active {
	background: #f2f2f7;
	border-color: var(--line)
}

.lang {
	margin-top: auto;
	display: flex;
	gap: 8px
}

.lang button {
	padding: 8px 12px;
	border: 1px solid var(--line);
	border-radius: 10px;
	background: transparent;
	cursor: pointer
}

/* Top-right language buttons */
.lang-top { display:flex; gap:8px }
.lang-top button { padding:6px 10px; border-radius:8px; background:transparent; border:1px solid var(--line); cursor: pointer }

main {
	min-width: 0;
	position: relative
}

.container {
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 24px
}

/* Utility */
.muted {
	color: var(--muted)
}

.tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: #000;
	border: 1px solid var(--line);
	color: #fff;
	font-size: 12px
}

.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 18px;
	border-radius: 12px;
	font-weight: 600;
	border: 1px solid var(--line);
	background: transparent;
	color: var(--ink);
	transition: .2s ease;
	cursor: pointer
}

.btn:hover {
	background: #f2f2f7
}

.btn-primary {
	border-color: var(--accent);
	background-color: var(--accent);
	color: #fff
}

.btn-primary:hover {
	background: #f2f2f7;
	color: #0a0a0a
}

.section {
	padding: 32px 0
}

.section h2 {
	font-size: 34px;
	margin: 0 0 6px;
	letter-spacing: -.02em
}

/* Hero */
.hero {
	padding: 48px 0 32px
}

.hero-grid {
	display: grid;
	grid-template-columns: 1.5fr .95fr;
	gap: 40px;
	align-items: center
}

.hero h1 {
	font-size: 46px;
	line-height: 1.08;
	margin: 6px 0 14px
}

.hero p {
	font-size: 24px;
	color: #3a3a3c;
	margin: 0 0 22px
}

.hero-cta {
	display: flex;
	gap: 12px;
	flex-wrap: wrap
}

.panel {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow)
}

/* For the embedded widget (video/chat) we want it visually borderless */
.panel.widget {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

/* Plain panel: typography and spacing without visible border/background */
.panel--plain {
	padding: 24px;
	border: none;
	background: transparent;
	box-shadow: none;
	color: var(--ink);
	font-size: 16px;
	line-height: 1.6;
}

.panel--plain h1 {
	font-size: 34px;
	margin: 0 0 14px;
	font-weight: 700;
}

.panel--plain h3 {
	font-size: 18px;
	margin: 18px 0 8px;
	font-weight: 700;
}

.panel--plain p {
	margin: 0 0 14px;
	font-size: 16px;
	color: var(--ink);
}

.panel--plain ul {
	margin: 8px 0 18px 22px;
	padding: 0;
}

.panel--plain ul li {
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 8px;
	list-style-type: disc;
}

.panel--plain strong, .panel--plain b { font-weight: 700 }

/* Make panels use the same content spacing and typography as `.card-row__text` (except how-panel) */
.panel {
	padding: 24px; /* default panel padding */
}


/* But keep pricing/stability specific panels untouched */
.panel:not(.intro-image):not(.intro-text):not(.stability-left):not(.stability-right) h3,
.panel:not(.intro-image):not(.intro-text):not(.stability-left):not(.stability-right) .title { font-size: 20px; }
.panel:not(.intro-image):not(.intro-text):not(.stability-left):not(.stability-right) p,
.panel:not(.intro-image):not(.intro-text):not(.stability-left):not(.stability-right) .muted { font-size: 16px; line-height:1.5 }
.panel:not(.intro-image):not(.intro-text):not(.stability-left):not(.stability-right) ul li { font-size: 18px; line-height:1.6 }

/* Don't change the how-panel internals (they use their own .step-panel/.step-card styles) */
.how-panel .panel, .how-panel .step-panel { padding: 28px 24px; }

/* Messenger widget (top-right) */
.widget {
	position: sticky;
	top: 10px;
	height: 100%
}

/* Make a video inside .panel.widget fill the panel without overlapping its border-radius */
.panel.widget {
	overflow: hidden; /* ensure rounded corners crop the video */
	padding: 0; /* video will occupy full panel area */
	position: relative;
}

.panel.widget video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover; /* fill while preserving aspect ratio */
	border-radius: inherit; /* match panel rounding */
}

.chat {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 0 16px;
}
.chat__header {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.chat-example {
	border: 2px solid lightgrey;
	border-radius: 16px;
	min-height: 250px;
}

/*.chat {*/
	/*display: flex;*/
	/*flex-direction: column;*/
	/*gap: 16px;*/
	/*padding: 16px*/
/*}*/

/*.chat-header {*/
	/*display: flex;*/
	/*align-items: center;*/
	/*gap: 10px;*/
	/*margin: 4px 0 8px*/
/*}*/

.avatar {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	background: #e5f0ff;
	display: inline-grid;
	place-items: center;
	border: 1px solid var(--line);
	font-size: 12px
}

.bubble {
	max-width: 85%;
	padding: 12px 14px;
	border-radius: 14px;
	border: 1px solid var(--line);
	background: var(--surface);
	position: relative;
	margin-bottom: 14px
}

.bubble.user {
	margin-left: auto;
	background: #fff
}

.cursor {
	display: inline-block;
	width: 10px;
	height: 20px;
	background: #0a0a0a;
	margin-left: 2px;
	animation: blink 1s steps(1) infinite
}

@keyframes blink {
	50% {
		opacity: 0
	}
}

/* Two-columns with visuals (placeholders) */
.grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px
}

.visual {
	height: 220px;
	border: 1px dashed var(--line);
	border-radius: 14px;
	background: linear-gradient(180deg, #fafafa, #fff)
}

/* Tiles */
.tiles {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
}

.tile {
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 16px;
	background: #fff;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: flex-start
}

.logo-box {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	/* border: 1px solid var(--line); */
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Integrations specific */
.integrations-panel .tiles {
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}

.tile {
	border-radius: 12px;
	padding: 22px 18px;
	background: #fff;
	border: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	min-height: 130px;
	justify-content: flex-start;
}

.tile b {
	display: block;
	margin-top: 6px;
}

.tile .muted {
	font-size: 13px;
	color: var(--muted);
	margin-top: 6px;
}

.tiles--small { grid-template-columns: repeat(5, 1fr); }

.tile--faded { opacity: 0.28; }

/* small logo variations for some tiles (placeholders) */
.logo-telegram { background: radial-gradient(circle at 30% 30%, #2DA5E0, #0A8BD8); }
.logo-bitrix { background: radial-gradient(circle at 30% 30%, #2DB5E8, #67D1FF); }
.logo-amocrm { background: radial-gradient(circle at 30% 30%, #5BC0F8, #2BA3F0); }
.logo-sitechat { background: radial-gradient(circle at 30% 30%, #86C6EA, #BDE6FF); }
.logo-avito { background: radial-gradient(circle at 30% 30%, #FFC9C9, #FF9EA1); }
.logo-hh { background: radial-gradient(circle at 30% 30%, #FFCDD6, #FF9EA1); }

.problem-solution {
	display: flex;
	flex-direction: column;
	gap: 24px;
	max-width: var(--maxw);
	margin: 0 auto;
}

.problem-solution .container {
	border: 2px solid lightgray;
	border-radius: 16px;
	padding: 12px;
	width: 100%;
}

.cards-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cards-row .card-row:nth-child(2n-1){
	background: #000;
}
.cards-row .card-row:nth-child(2n){
	background: var(--accent);
}

.card-row__list-item {
	font-size: 20px;
}


.card-row {
	display: flex;
	color: #fff;
	height: 300px;
	border-radius: 16px;
	overflow: hidden;
}

.card-row.is-reversed {
	flex-direction: row-reverse;
	border-radius: 0px 16px 16px 0px;
}

.card-row__text {
	padding: 24px;
	flex: .5
}

.card-row__image {
	flex: .5;
}
.card-row__image img {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
	object-fit: cover;
}

.card-row__title {
	font-size: 24px;
	font-weight: bold;
}

/* Apply problem-solution-like typography to general cards (not how-panel) */
.card h3, .card p, .card .muted { font-size: 18px }
.card .muted { font-size: 14px }
.card .title, .card h3 { font-size: 20px }
.card ul li, .card .card-row__list-item { font-size: 20px }

.card-row__list {
	display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
	padding: 12px 24px ;
	height: 80%;
}

/* Cards & grids */
.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px
}

/* "Who it helps" grid */
.who-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: auto auto;
	gap: 18px;
}

.who-item {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	overflow: hidden;
	position: relative;
}

/* subtle overlay between background image and content to improve contrast */
.who-item.big::before,
.who-item.big-right::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1; /* above the image (z-index:0) but below content (z-index:3) */
	/* lightening overlay for big tiles so black text remains readable */
	background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.12));
	pointer-events: none;
}

/* Top row: three small image tiles with overlay text in left-top */
.who-item.top {
	height: 200px;
}
.who-item.top .who-img {
	height: 100%;
}

/* Bottom row: two large tiles */
.who-item.big {
	grid-column: 1 / span 2;
	grid-row: 2 / span 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: stretch;
	min-height: 320px;
}
.who-item.big-right {
	grid-column: 3 / span 1;
	grid-row: 2 / span 1;
	display: grid;
	grid-template-columns: 1fr;
	min-height: 320px;
}

.who-img {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 100%;
	/* make the image a positioned background layer so content can overlay without shifting */
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 0;
	/* ensure images cover and are crisp when used as backgrounds */
	background-repeat: no-repeat;
}

/* Overlay label for authorship/placeholder */
.who-img-label {
	position: absolute;
	left: 12px;
	top: 12px;
	background: rgba(255,255,255,0.85);
	padding: 6px 8px;
	border-radius: 6px;
	font-size: 12px;
}

/* Overlay text for small top tiles */
.who-item.top .who-content {
	position: absolute;
	left: 16px;
	top: 16px;
	right: 16px;
	color: #fff;
	z-index: 3; /* above the background image */
	text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.who-item.top .who-content h3 { margin: 0 0 4px; color: #000000; font-size: 15px; line-height: 1.1 }
.who-item.top .who-content .muted { color: rgba(0, 0, 0, 0.95); font-size: 12px; line-height: 1.2 }

/* Ensure big tiles' headings and text are white (override top small tile rules) */
.who-item.big .who-content h3,
.who-item.big-right .who-content h3 {
	color: #000;
}
.who-item.big .who-content .muted,
.who-item.big-right .who-content .muted {
	color: rgba(0,0,0,0.95);
}

/* For big items place small text in the top-right of the content area */
.who-item.big .who-content,
.who-item.big-right .who-content {
	position: relative;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-end;
	text-align: right;
	z-index: 3; /* ensure text is above the image layer */
}
.who-item.big .who-content,
.who-item.big-right .who-content {
	color: #000000; /* use black text as requested */
}

/* Position content to the top-right inside big tiles */
.who-item.big { display: grid; grid-template-columns: 1fr 1fr; }
.who-item.big .who-content { grid-column: 2 / 3; grid-row: 1; align-items: flex-start; text-align: right; }

/* For the right big tile keep text on its single column but at top */
.who-item.big-right { display: block; }
.who-item.big-right .who-content {
	position: absolute;
	top: 12px;
	right: 12px;
	left: auto;
	grid-column: auto;
	z-index: 3;
	align-items: flex-start;
	text-align: right;
	color: #000000;
}
.who-item.big-right .who-content h3 { color: #000000 }
.who-item.big .who-content h3,
.who-item.big-right .who-content h3 { margin: 0 0 8px; font-size: 20px }
.who-item.big .who-content .muted,
.who-item.big-right .who-content .muted { margin: 0; font-size: 13px }

@media (max-width:1100px) {
	.who-grid { grid-template-columns: repeat(2, 1fr); }
	.who-item.big { grid-column: 1 / span 2; }
	.who-item.big-right { grid-column: 1 / span 2; }
}

@media (max-width:780px) {
	.who-grid { grid-template-columns: 1fr; }
	.who-item { height: auto; }
	.who-item.big { grid-column: 1 / span 1; display: block }
	.who-item.big-right { grid-column: 1 / span 1 }
	.who-item.top .who-content { position: relative; color: inherit; text-shadow: none }
	.who-item.big .who-content,.who-item.big-right .who-content { align-items: flex-start; text-align: left }
}

.card {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 16px;
	padding: 18px;
	box-shadow: var(--shadow)
}

/* How it works 4-step custom styles */
.how-panel {
	border: 2px solid var(--line);
	border-radius: 12px;
	padding: 18px;
	background: #fff;
	box-shadow: 0 6px 18px rgba(0,0,0,0.04);
	margin-top: 12px;
}

.steps-wrapper {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: stretch;
}

.step-card {
	display: grid;
	grid-template-columns: 45% 55%; /* image 45%, content 55% */
	min-height: 360px; /* increased height */
	border-radius: 12px;
	background: transparent;
	box-shadow: 0 6px 20px rgba(0,0,0,0.06);
	overflow: visible; /* allow text to flow and not be clipped */
}

.step-image {
	width: 100%;
	height: 100%;
	display: block;
	background: linear-gradient(180deg,#f3f3f5,#fff);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9aa0a6;
	font-weight: 600;
	font-size: 14px;
	overflow: hidden; /* keep visual cropping for the image area */
}

.placeholder {
	border-right: 1px solid rgba(0,0,0,0.06);
}

.step-panel {
	padding: 28px 24px; /* slightly more padding for taller cards */
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	min-width: 0; /* allow children to shrink inside flex/grid */
}

.black-panel {
	background: #000;
	color: #fff;
}

.blue-panel {
	background: var(--accent);
	color: #fff;
}

.step-number {
	font-size: 40px;
	font-weight: 800;
	line-height: 1;
}

.step-title {
	font-size: 18px;
	font-weight: 700;
	word-break: normal;
}

.step-desc {
	font-size: 13px;
	color: rgba(255,255,255,0.85);
	max-width: none; /* let it use panel width */
	width: 100%;
	white-space: normal; /* allow wrapping */
	overflow-wrap: break-word; /* break long words when needed */
	word-break: break-word; /* fallback for different browsers */
}

/* Decrease typography only for the 3rd step-card inside how-panel */
.how-panel .steps-wrapper .step-card:nth-child(3) .step-number { font-size: 28px }
.how-panel .steps-wrapper .step-card:nth-child(3) .step-title { font-size: 16px }
.how-panel .steps-wrapper .step-card:nth-child(3) .step-desc { font-size: 12px }

@media (max-width:1100px) {
	.steps-wrapper { grid-template-columns: repeat(2,1fr); }
	.step-card { grid-template-columns: 45% 55%; min-height: 320px }
}

@media (max-width:780px) {
	.steps-wrapper { grid-template-columns: 1fr; }
	.step-card { grid-template-columns: 45% 55%; min-height: 220px }
	.how-panel { padding: 12px }
}

.card h3 {
	margin: 0 0 6px;
	font-size: 18px
}

/* Pricing */
.pricing {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px
}

.plan {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 18px;
	padding: 18px;
	display: flex;
	flex-direction: column
}

.plan.featured {
	box-shadow: 0 0 0 2px #0071e3 inset
}

.price {
	font-size: 28px;
	font-weight: 800
}

.save {
	color: #047857;
	font-size: 12px
}

/* Final CTA */
.cta {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 18px;
	padding: 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px
}

/* CTA panel used under steps */
.cta-panel {
	border: 1px solid var(--line);
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.04);
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 140px;
}

.cta-panel h2 {
	font-size: 28px;
	margin: 0 0 8px;
	line-height: 1.05;
}

.cta-panel .muted {
	font-size: 13px;
	margin-bottom: 12px;
}

.cta-panel .cta-actions {
	display: flex;
	justify-content: flex-end;
}

/* CTA used under how-steps: left text, right action */
.cta-under-steps {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	/* ensure this wins over .cta-panel's column layout */
	flex-direction: row !important;
}
.cta-under-steps__left {
	flex: 1 1 auto;
}
.cta-under-steps__left h2 {
	font-size: 20px;
	margin: 0 0 6px;
}
.cta-under-steps__left .muted {
	color: var(--muted);
	margin: 0;
}
.cta-under-steps__right {
	flex: 0 0 auto;
}
.cta-under-steps__right { min-width: max-content; }
.cta-under-steps__right .btn {
	padding: 10px 18px;
}

@media (max-width: 720px) {
	.cta-under-steps {
		flex-direction: column;
		align-items: stretch;
		text-align: left;
	}
	.cta-under-steps__right {
		margin-top: 12px;
		display:flex;
		justify-content:flex-start;
	}
}

/* Ensure right column is aligned to the right on wide screens */
@media (min-width: 721px) {
  .cta-under-steps__right { display:flex; justify-content:flex-end; }
}

/* Calculator styles */
.calculator .panel { border-radius: 12px }
.calculator label { display:block; margin-bottom:6px; color: #222; font-weight:600 }
.calculator input[type=range] { width:100%; margin:6px 0 6px }
.calculator input[type=text], .calculator select { font-size:14px }
.result-panel h2 { color: #111 }
.calc-panel .btn { display:block }

@media (max-width:780px) {
	.calculator { grid-template-columns: 1fr !important }
}

/* Testimonials */
.testimonials {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
	align-items: stretch;
}

.testimonial {
	padding: 18px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--surface);
	min-height: 200px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.testimonial p { font-size: 13px; color: #333; margin: 0; line-height: 1.45 }
.testimonial b { font-size: 13px; color: #111 }

@media (max-width:1100px) {
	.testimonials { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width:780px) {
	.testimonials { grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; padding-bottom: 8px }
	.testimonial { min-height: 220px }
}

/* Comparison table styles */
.compare-panel { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff }
.compare-table th, .compare-table td { border: 1px solid var(--line); padding: 18px; text-align: left }
.compare-table thead th { background: var(--surface); font-size: 22px }
.compare-table td { font-size: 16px }

@media (max-width:780px) {
	.compare-table thead th { font-size: 18px }
	.compare-table td { font-size: 14px }
}

/* Pricing intro panel (text + placeholder image) */
.pricing-intro-panel { display: grid; grid-template-columns: 1fr 1fr; gap:0; border-radius:12px; overflow:hidden }
.pricing-intro-panel .intro-text ul { margin:0 0 0 12px }
.pricing-intro-panel .intro-text li { margin:10px 0; line-height:1.5 }
.pricing-intro-panel .intro-text p { color:#fff }

/* Make the two panels visually flush with no gap or double-border */
.pricing-intro-panel .panel { border: none; border-radius: 0; }
.pricing-intro-panel .intro-text { padding: 28px; }
.pricing-intro-panel .intro-image { padding: 0; }
.image-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:18px }

@media (max-width:780px) {
	.pricing-intro-panel { grid-template-columns: 1fr; }
	.image-placeholder { min-height:200px }
}

/* Payments */
.payments { display:flex; flex-direction:column; gap:18px; align-items:center; justify-content:center; text-align:center }
.payments-row { display:flex; gap:28px; align-items:center; justify-content:center; flex-wrap:wrap }
.pay-item { display:flex; flex-direction:column; align-items:center; gap:10px; min-width:140px }
.pay-img { width:160px; height:72px; border-radius:6px; display:flex; align-items:center; justify-content:center; background:#fff; border:1px solid var(--line) }
.pay-img span { font-weight:700; color:#444 }
.pay-label { font-size:14px; margin-top:6px; font-weight:700 }

/* Analytics dashboard */
.analytics-grid {
	display: grid;
	grid-template-columns: 1fr 360px;
	gap: 18px;
}

.analytics-left { display:flex; flex-direction:column }
.analytics-left .stats-panel { border-radius: 12px; background: var(--surface); padding: 22px; min-height: 200px }
.analytics-left .black-box, .analytics-left .blue-box { border-radius:12px; min-height: 260px; padding:22px }
.analytics-right .stats-box { border-radius:12px; background:var(--surface); padding:24px; min-height: 420px; display:flex; flex-direction:column; justify-content:flex-start }

/* Inner placeholder cards inside panels */
.analytics-grid .stats-panel > div > div,
.analytics-grid .stats-box > div > div {
	box-shadow: var(--shadow);
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--line);
}

/* Make left stats panel slightly taller to match visual */
.analytics-grid .stats-panel { min-height: 160px }
.analytics-grid .stats-box { min-height: 84% }


/* Inner placeholder wrappers */
.inner-wrap { display:flex }
.stats-wrap { justify-content:flex-end }
.econ-wrap { justify-content:flex-end }

.inner-placeholder { width: 240px; height: 160px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.analytics-right .inner-wrap { justify-content:flex-end }
.analytics-right .econ-img { transform: translateY(6px); }
.stats-img { width: 240px; height: 160px }
.econ-img { width: 240px; height:160px }

/* Analytics CTA styling: left text + right button like in screenshot */
.analytics-cta { display:flex; justify-content:space-between; align-items:center; padding:12px; border-radius:12px }
.analytics-cta .btn { margin-left:18px }

/* CTA text styles */
.analytics-cta-text { font-weight: 400; font-size: 18px; color: var(--ink) }
.analytics-cta .btn { padding: 8px 14px; border-radius:10px }

@media (max-width: 800px) {
	.inner-placeholder { width: 140px; height: 90px }
	.stats-img, .econ-img { width: 160px; height: 100px }
	.analytics-cta { flex-direction:column; gap:10px; align-items:flex-start }
	.analytics-cta .btn { margin-left:0 }
}

@media (max-width: 800px) {
	.analytics-grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"stats"
			"econ"
			"black"
			"blue"
			"cta";
		gap: 12px;
	}
}

/* CTA panel full width style */
.analytics-grid .panel[style*="display:flex"] { border-radius:12px }

@media (max-width:780px) {
	.analytics-grid { grid-template-columns: 1fr; }
	.analytics-grid > div[style*="grid-column:1 / span 2"] { grid-column: auto }
	.stats-panel { grid-template-columns: 1fr }
}

@media (max-width:780px) {
	.payments { flex-wrap:wrap }
}

/* Stability section */
.stability-grid { align-items: stretch; gap: 0; border-radius:12px; overflow:hidden }
.stability-grid .panel { background: var(--surface); min-height: 340px; display:flex; align-items:stretch; border: none; border-radius: 0 }
.stability-img { background-image: url('stability-placeholder.jpg'); background-size: cover; background-position: center; width:100%; height:100%; display:block }
.stability-grid .panel > .stability-img { flex:0 0 auto }
.stability-right { display:flex; align-items:flex-start; }
.stability-right .stability-img { margin-top:0; display:block; width:100%; height:100%; object-fit:cover }
.stability-left { display:flex; align-items:flex-start }
.stability-left .stability-img { margin-top:0 }

/* Make stability-left text match card-row__text sizing */
.stability-left { padding: 24px }
.stability-left ul { margin: 0; padding-left: 20px; }
.stability-left ul li { font-size: 20px; line-height: 1.6; color: inherit; margin: 10px 0 }
.stability-left p, .stability-left .muted { font-size: 16px; color: inherit }

/* Dark variant for stability panel with image */
.stability-dark { background: #000; color: #fff }
.stability-dark ul, .stability-dark p, .stability-dark li { color: #fff }
.stability-dark .stability-img { border: 1px solid rgba(255,255,255,0.06); }
.stability-img img { display:block; width:100%; height:100%; object-fit:cover }

/* Right panel uses background image to fill entire panel */
.stability-image { width:100%; height:100%; min-height: 240px; border-radius:10px; box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,0.08); }
.stability-image .stability-img { display:block; width:100%; height:100%; object-fit:cover }

/* Left panel dark variant specific adjustments */
.stability-left.stability-dark { background: #000; color:#fff }
.stability-left.stability-dark ul { color: #fff }
.stability-left.stability-dark li { color:#fff }

/* FAQ */
.faq-panel { border-radius: 10px; background: #fff; padding: 18px; border: 1px solid var(--line) }
.faq-question { font-weight:600; margin-bottom:6px; font-size:16px }
.faq-answer { margin-bottom: 12px; color: var(--muted); line-height:1.45 }

/* Final try */
.final-try { border-radius:12px; border:1px solid var(--line); background:#fff; padding:16px }
.final-try-text { font-weight:600; font-size:20px }

@media (max-width:900px) {
	.stability-grid { grid-template-columns: 1fr }
	.stability-img { height:180px }
}

/* Back to top */
.to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	padding: 12px 14px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: #fff;
	box-shadow: var(--shadow);
	opacity: .9
}

/* Mobile */
@media (max-width:1100px) {
	.hero-grid {
		grid-template-columns: 1fr
	}

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

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

	.pricing {
		grid-template-columns: repeat(2, 1fr)
	}
}

@media (max-width:780px) {
	.mobile-bar { display: flex; }
	.layout { grid-template-columns: 1fr; }
	aside { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: .25s ease; z-index: 200; width: 82%; max-width: 340px; box-shadow: none; }
	body.menu-open aside, aside.open { transform: none; }
	.brand { padding: 6px 10px; }
	.lang-fixed { top: auto; bottom: 16px; right: 16px; }



	.cards,
	.tiles,
	.pricing {
		grid-template-columns: 1fr
	}

	.cta {
		flex-direction: column;
		align-items: flex-start
	}
}

/*.section:hover {*/
	/*background: linear-gradient(180deg, #ffffff, #fbfbfd);*/
	/*box-shadow: 0 6px 30px rgba(0, 0, 0, .06);*/
	/*transition: .25s ease*/
/*}*/

.calc-section{ margin-top:28px }
.calc-section h2{ font-size:26px; margin-bottom:12px }
.calc-grid{ display:grid; grid-template-columns: 360px 1fr; gap:18px }
.calc-form{ border:1px solid var(--border); padding:16px; border-radius:8px; background:#fff }
.label-title{ font-size:13px; color:var(--muted); margin-bottom:6px }
.input{ width:100%; padding:10px; border:1px solid var(--border); border-radius:8px; margin-bottom:12px }
.calc-btn{ width:100%; margin-top:6px }
.calc-result{ border:1px solid var(--border); padding:20px; border-radius:8px; background:#fff }
.formula{ color:var(--muted); margin-bottom:8px }
.result-amount{ font-size:20px; margin:6px 0 12px 0 }
.result-extra p{ margin:0 0 6px 0 }
.result-extra ul{ margin:0; padding-left:18px }
.result-cta{ display:flex; justify-content:space-between; align-items:center; margin-top:12px }

@media (max-width: 980px){
    .calc-grid{ grid-template-columns: 1fr }
}
