:root {
	--bg: #f6f4ef;
	--surface: #fffdf8;
	--ink: #1d1d1b;
	--muted: #56524a;
	--primary: #e85d2a;
	--primary-dark: #bf4217;
	--accent: #0f766e;
	--border: #d9d1c3;
	--shadow: 0 12px 40px rgba(29, 29, 27, 0.12);
	--radius-lg: 20px;
	--radius-md: 14px;
	--max-width: 1120px;
}

body.theme-dark {
	--bg: #0f1216;
	--surface: #171b21;
	--ink: #edf2f7;
	--muted: #a8b2be;
	--primary: #ff7a45;
	--primary-dark: #ff9566;
	--accent: #52d3c7;
	--border: #2a3440;
	--shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: "Space Grotesk", "Segoe UI", sans-serif;
	color: var(--ink);
	background:
		radial-gradient(circle at 10% 10%, #ffe0c8 0, transparent 38%),
		radial-gradient(circle at 95% 85%, #d8f1ee 0, transparent 35%),
		var(--bg);
	line-height: 1.6;
}

body.theme-dark {
	background:
		radial-gradient(circle at 12% 14%, #3c2318 0, transparent 35%),
		radial-gradient(circle at 92% 80%, #103637 0, transparent 33%),
		var(--bg);
}

body.lang-fade {
	animation: langFade 0.35s ease;
}

html {
	scroll-behavior: smooth;
}

.wrapper {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 24px;
}

header {
	position: sticky;
	top: 0;
	background: rgba(246, 244, 239, 0.84);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(217, 209, 195, 0.7);
	z-index: 60;
}

.nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 14px;
	padding-bottom: 14px;
}

.nav-right {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: nowrap;
}

.nav-toggle {
	display: none;
	position: relative;
	z-index: 80;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	border: 1px solid var(--border);
	border-radius: 14px;
	background: var(--surface);
	color: var(--ink);
	box-shadow: 0 8px 24px rgba(29, 29, 27, 0.08);
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
}

.nav-toggle:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 28px rgba(29, 29, 27, 0.12);
}

.nav-toggle:focus-visible {
	outline: 3px solid rgba(232, 93, 42, 0.28);
	outline-offset: 3px;
}

.nav-toggle.active {
	background: var(--primary);
	border-color: var(--primary-dark);
	color: #fff;
	box-shadow: 0 12px 30px rgba(232, 93, 42, 0.26);
}

.nav-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transition: transform 0.22s ease, opacity 0.18s ease, width 0.22s ease;
	transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
	width: 20px;
}

.nav-toggle.active span:nth-child(2) {
	opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
	width: 20px;
}

.nav-links {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--border);
	height: 42px;
	flex-shrink: 0;
}

.nav-link {
	color: var(--muted);
	text-decoration: none;
	font-size: 0.84rem;
	font-weight: 700;
	padding: 7px 11px;
	border-radius: 999px;
	transition: background-color 0.2s ease, color 0.2s ease;
	min-width: 62px;
	text-align: center;
}

.nav-link:hover {
	background: #ffffff;
	color: var(--ink);
}

.nav-link.active {
	background: var(--primary);
	color: #fff;
}

.theme-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 70px;
	height: 36px;
	padding: 4px 10px;
	border: 1px solid var(--border);
	background: var(--surface);
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
	flex-shrink: 0;
}

/* Mobile-specific theme toggle: hidden on desktop, visible on small screens */
.theme-toggle-mobile {
	display: none; /* shown under breakpoint */
	width: 52px;
	height: 44px;
	padding: 6px 10px;
	border-radius: 12px;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-shrink: 0;
}

.theme-toggle:hover {
	transform: translateY(-1px);
}

.theme-icon {
	position: relative;
	z-index: 2;
	width: 18px;
	height: 18px;
	display: block;
	line-height: 1;
	transition: opacity 0.2s ease, transform 0.2s ease;
	user-select: none;
}

.theme-icon-sun {
	opacity: 0.95;
}

.theme-icon-moon {
	opacity: 0.7;
	transform: translateX(2px);
}

.theme-thumb {
	position: absolute;
		top: 50%; /* Keep the theme thumb vertically centered */
	left: 8px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	transition: transform 0.24s ease;
	transform: translate(0, -50%);
}

body.theme-dark .theme-thumb {
	transform: translate(28px, -50%);
}

body.theme-dark .theme-icon-sun {
	opacity: 0.55;
}

body.theme-dark .theme-icon-moon {
	opacity: 0.98;
}

.brand {
	font-family: "Sora", sans-serif;
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #fff4e8;
	border: 1px solid #ffd0ad;
	color: var(--primary-dark);
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	height: 34px;
	flex-shrink: 0;
}

.lang-switch {
	display: inline-flex;
	gap: 6px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 999px;
	padding: 4px;
	height: 34px;
	flex-shrink: 0;
}

.lang-btn {
	border: 0;
	background: transparent;
	color: var(--muted);
	font-family: "Space Grotesk", "Segoe UI", sans-serif;
	font-weight: 700;
	font-size: 0.78rem;
	padding: 6px 10px;
	border-radius: 999px;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
	min-width: 38px;
	text-align: center;
}

body.lang-fade .lang-btn {
	animation: langFade 0.35s ease;
}

.lang-btn.active {
	background: var(--ink);
	color: #fff;
}

body.theme-dark header {
	background: rgba(15, 18, 22, 0.84);
	border-bottom: 1px solid rgba(42, 52, 64, 0.9);
}

body.theme-dark .nav-links,
body.theme-dark .lang-switch {
	background: rgba(23, 27, 33, 0.9);
}

body.theme-dark .nav-toggle {
	background: #171b21;
	border-color: #334050;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

body.theme-dark .nav-link.active,
body.theme-dark .lang-btn.active {
	background: var(--primary);
	color: #fff;
	border-color: var(--primary);
}

body.theme-dark .theme-toggle {
	background: #151a21;
	border-color: #334050;
}

body.theme-dark .badge {
	background: #2a1f1a;
	border-color: #6d4832;
	color: #ffc9ab;
}

.hero {
	padding: 72px 0 38px;
	display: grid;
	gap: 28px;
	align-items: center;
	grid-template-columns: 1.2fr 0.8fr;
	animation: fadeUp 0.7s ease;
}

.hero h1 {
	font-family: "Sora", sans-serif;
	font-size: clamp(2rem, 6vw, 3.9rem);
	line-height: 1.06;
	margin: 16px 0 18px;
	max-width: 15ch;
}

.hero p {
	color: var(--muted);
	max-width: 60ch;
	font-size: 1.05rem;
}

.hero-actions {
	margin-top: 26px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.btn {
	text-decoration: none;
	border-radius: 12px;
	padding: 11px 18px;
	border: 1px solid transparent;
	font-weight: 700;
	transition: transform 0.2s ease, background-color 0.2s ease;
	display: inline-block;
}

.btn:hover {
	transform: translateY(-2px);
}

.btn-primary {
	background: var(--primary);
	color: #fff;
}

.btn-primary:hover {
	background: var(--primary-dark);
}

.btn-secondary {
	border-color: var(--border);
	color: var(--ink);
	background: #fff;
}

body.theme-dark .btn-secondary {
	color: var(--ink);
	background: rgba(255, 255, 255, 0.12);
	border-color: rgba(255, 255, 255, 0.25);
}

body.theme-dark .btn-secondary:hover {
	background: rgba(255, 255, 255, 0.2);
}

.hero-card {
	background: linear-gradient(140deg, #ffffff, #fff6ec);
	border: 1px solid #edd8c1;
	border-radius: var(--radius-lg);
	padding: 24px;
	box-shadow: var(--shadow);
	animation: fadeUp 0.95s ease;
}

body.theme-dark .hero-card {
	background: linear-gradient(140deg, #1a2028, #232a33);
	border-color: var(--border);
}

.hero-card h3 {
	font-family: "Sora", sans-serif;
	margin-bottom: 10px;
	font-size: 1.15rem;
}

.metrics {
	list-style: none;
	display: grid;
	gap: 10px;
	color: var(--muted);
}

.metrics strong {
	color: var(--ink);
}

.section {
	padding: 30px 0;
}

section[id] {
	scroll-margin-top: 130px;
}

.section-title {
	font-family: "Sora", sans-serif;
	font-size: clamp(1.4rem, 3.6vw, 2.1rem);
	margin-bottom: 14px;
}

.grid {
	display: grid;
	gap: 16px;
}

.services {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	padding: 18px;
	box-shadow: 0 5px 16px rgba(29, 29, 27, 0.05);
	animation: fadeUp 1.05s ease;
}

.card h3 {
	font-family: "Sora", sans-serif;
	margin-bottom: 8px;
	font-size: 1.06rem;
}

.card p {
	color: var(--muted);
	font-size: 0.97rem;
}

.pricing {
	background: linear-gradient(135deg, #fff, #fff2e6);
	border: 1px solid #f0ccb1;
	border-radius: var(--radius-lg);
	padding: 24px;
	box-shadow: var(--shadow);
	animation: fadeUp 1.1s ease;
}

body.theme-dark .pricing {
	background: linear-gradient(135deg, #151a21, #1f252d);
	border-color: var(--border);
}

.pricing p {
	color: var(--muted);
}

.price-tag {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid #f2b893;
	font-weight: 700;
	color: var(--primary-dark);
}

body.theme-dark .price-tag {
	background: #11161d;
	border-color: #4b5664;
}

.case {
	background: linear-gradient(120deg, #fff, #edf8f6);
	border: 1px solid #c8e4df;
	border-radius: var(--radius-lg);
	padding: 26px;
	box-shadow: var(--shadow);
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 18px;
	align-items: center;
	animation: fadeUp 1.2s ease;
}

body.theme-dark .case {
	background: linear-gradient(120deg, #161b22, #1d252d);
	border-color: #30414a;
}

.case small {
	color: var(--accent);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.case h3 {
	font-family: "Sora", sans-serif;
	margin: 8px 0 10px;
	font-size: 1.75rem;
}

.case p {
	color: var(--muted);
}

.link-box {
	background: #ffffff;
	border: 1px dashed #9ed0c8;
	border-radius: 14px;
	padding: 16px;
}

body.theme-dark .link-box {
	background: #11161c;
	border-color: #3c5860;
}

.link-box a {
	color: var(--accent);
	text-decoration: none;
	font-weight: 700;
	word-break: break-word;
}

.link-box a:hover {
	text-decoration: underline;
}

.contact {
	margin-top: 30px;
	background: #1f2b2a;
	color: #f3f8f7;
	border-radius: var(--radius-lg);
	padding: 26px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px;
	align-items: center;
	animation: fadeUp 1.25s ease;
}

.contact h3 {
	font-family: "Sora", sans-serif;
	margin-bottom: 4px;
	font-size: 1.35rem;
}

.contact p {
	color: #d8e4e2;
}

.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.contact-links .btn-secondary {
	background: transparent;
	color: #f3f8f7;
	border-color: #6f8f8b;
}

.contact-links .btn-secondary:hover {
	background: rgba(255, 255, 255, 0.08);
}

.contact-form {
	margin-top: 14px;
	display: grid;
	gap: 10px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
	border: 1px solid #6f8f8b;
	border-radius: 10px;
	padding: 10px 12px;
	font-family: "Space Grotesk", "Segoe UI", sans-serif;
	font-size: 0.95rem;
	background: rgba(255, 255, 255, 0.96);
	color: #1f2b2a;
}

body.theme-dark .contact-form input,
body.theme-dark .contact-form select,
body.theme-dark .contact-form textarea {
	background: #0f1419;
	border-color: #3f5560;
	color: #f0f6f8;
}

.contact-form textarea {
	min-height: 96px;
	resize: vertical;
}

.form-note {
	font-size: 0.84rem;
	color: #c4d4d1;
}

.hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.form-status {
	font-size: 0.9rem;
	font-weight: 600;
	min-height: 1.2em;
}

.form-status.success {
	color: #8cf2c7;
}

.form-status.error {
	color: #ffc4c4;
}

footer {
	padding: 26px 0 40px;
	color: var(--muted);
	font-size: 0.92rem;
}

@keyframes fadeUp {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes langFade {
	from {
		opacity: 0.76;
		transform: translateY(2px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 980px) {
	.nav-right {
		gap: 8px;
	}

	.badge {
		font-size: 0.85rem;
		padding: 7px 10px;
	}

	.theme-toggle {
		width: 65px;
		height: 34px;
	}

	.theme-icon {
		width: 16px;
		height: 16px;
	}

	.theme-thumb {
		width: 24px;
		height: 24px;
	}

	body.theme-dark .theme-thumb {
		transform: translate(31px, -50%);
	}

	.lang-switch {
		gap: 4px;
	}

	.lang-btn {
		font-size: 0.72rem;
		padding: 5px 8px;
	}

	.hero,
	.case,
	.services {
		grid-template-columns: 1fr;
	}

	.contact {
		grid-template-columns: 1fr;
	}

	.contact-links {
		justify-content: flex-start;
	}
}

@media (max-width: 620px) {
	.wrapper {
		padding: 18px;
	}

	.nav {
		align-items: center;
		gap: 12px;
	}

	.nav-right {
		gap: 4px;
	}

	.badge {
		display: none;
	}

	.theme-toggle {
		width: 60px;
		height: 32px;
		padding: 3px 8px;
	}

	.theme-icon {
		width: 14px;
		height: 14px;
	}

	.theme-thumb {
		width: 22px;
		height: 22px;
		top: 50%; /* Adjust top to center vertically */
		left: 8px;
	}

	body.theme-dark .theme-thumb {
		left: auto;
		right: 7px;
		transform: translate(0, -50%);
	}

	.lang-switch {
		gap: 2px;
		padding: 3px;
	}

	.lang-btn {
		font-size: 0.65rem;
		padding: 4px 6px;
	}

	.hero {
		padding-top: 46px;
	}

	.badge {
		font-size: 0.82rem;
	}

	.btn {
		width: 100%;
		text-align: center;
	}

	.contact-links {
		width: 100%;
	}
}

@media (max-width: 768px) {
	body.nav-open {
		overflow: hidden;
	}

	header {
		overflow: visible;
	}

	.nav {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
	}

	.nav-toggle {
		display: inline-flex;
	}

	.nav-right {
		position: fixed;
		top: 74px;
		left: 16px;
		right: 16px;
		z-index: 70;
		display: grid;
		gap: 14px;
		padding: 16px;
		background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 248, 238, 0.98));
		border: 1px solid var(--border);
		border-radius: 24px;
		box-shadow: 0 24px 60px rgba(29, 29, 27, 0.16);
		max-height: calc(100vh - 92px);
		overflow: auto;
		opacity: 0;
		pointer-events: none;
		transform: translateY(-10px) scale(0.98);
		transform-origin: top right;
		transition: opacity 0.22s ease, transform 0.22s ease;
	}

	.nav-right.active {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0) scale(1);
	}

	.nav-links {
		width: 100%;
		height: auto;
		padding: 0;
		background: transparent;
		border: 0;
		gap: 8px;
		flex-direction: column;
		align-items: stretch;
	}

	.nav-link {
		width: 100%;
		min-width: 0;
		padding: 14px 16px;
		text-align: left;
		border: 1px solid transparent;
		border-radius: 16px;
		background: rgba(232, 93, 42, 0.06);
	}

	.nav-link:hover,
	.nav-link.active {
		background: var(--primary);
		color: #fff;
	}

	.theme-toggle,
	.lang-switch {
		width: 100%;
	}

	.theme-toggle {
		justify-content: space-between;
		padding-inline: 12px;
	}

	.lang-switch {
		justify-content: space-between;
		height: auto;
		padding: 6px;
	}

	.badge {
		display: none;
	}

	.nav-backdrop {
		position: fixed;
		inset: 0;
		top: 74px;
		z-index: 50;
		background: rgba(15, 18, 22, 0.45);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.22s ease;
	}

	.nav-backdrop.active {
		opacity: 1;
		pointer-events: auto;
	}

	body.theme-dark .nav-link {
		background: rgba(255, 255, 255, 0.04);
		border-color: rgba(255, 255, 255, 0.08);
	}

	body.theme-dark .nav-link:hover,
	body.theme-dark .nav-link.active {
		background: var(--primary);
		color: #fff;
	}

	body.theme-dark .nav-right {
		background: linear-gradient(180deg, rgba(23, 27, 33, 0.98), rgba(17, 21, 27, 0.98));
		border-color: rgba(82, 211, 199, 0.14);
	}

	body.theme-dark .nav-backdrop {
		background: rgba(0, 0, 0, 0.6);
	}
}
