/* OneSite template styles */

/* ---------- Tokens ---------- */
:root {
	--c-ink: #14161b;
	--c-ink-2: #1c1f26;
	--c-ink-3: #262a33;
	--c-text: #1f2329;
	--c-muted: #5d6573;
	--c-line: #e5e7eb;
	--c-bg: #ffffff;
	--c-soft: #f4f5f7;
	--c-accent: #e5383b;
	--c-accent-dark: #c62b2e;
	--c-accent-soft: #fdecec;
	--c-on-dark: #f3f4f6;
	--c-on-dark-muted: #a9afbb;

	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(20, 22, 27, .04), 0 8px 24px rgba(20, 22, 27, .06);
	--shadow-lg: 0 18px 50px rgba(20, 22, 27, .14);
	--container: 1200px;
	--gutter: 24px;
	--header-h: 76px;
	--section-y: clamp(56px, 8vw, 104px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-accent); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-accent); color: #fff; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(780px + var(--gutter) * 2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--c-ink); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.site-main { min-height: 50vh; }
.site-main:focus { outline: none; }

/* ---------- Buttons ---------- */
.btn {
	white-space: nowrap;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px;
	font: 700 16px/1 var(--font);
	border-radius: 999px; border: 2px solid transparent;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary, .btn-primary { background: var(--c-accent); color: #fff; box-shadow: 0 8px 22px rgba(229, 56, 59, .28); }
.btn--primary:hover, .btn-primary:hover { background: var(--c-accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }
.btn--light { background: #fff; color: var(--c-ink); }
.btn--light:hover { background: var(--c-soft); color: var(--c-ink); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, .35); background: transparent; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-accent-dark); text-decoration: none; }
.link-arrow::after { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i-arrow) center / contain no-repeat; mask: var(--i-arrow) center / contain no-repeat; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow--back { flex-direction: row-reverse; }
.link-arrow--back::after { transform: rotate(180deg); }
.link-arrow--back:hover::after { transform: rotate(180deg) translateX(4px); }

.eyebrow { display: inline-block; margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent); }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--c-muted); line-height: 1.6; }

/* ---------- Header ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .92);
	-webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); box-shadow: 0 6px 24px rgba(20, 22, 27, .06); }
.site-header__inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; color: var(--c-ink); }
.brand__logo { width: 150px; height: auto; }
.brand--light { color: #fff; }
.site-header__actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--c-ink); text-decoration: none; white-space: nowrap; }
.header-phone svg { color: var(--c-accent); }
.header-phone:hover { color: var(--c-accent); }

/* Nav (desktop) */
.site-nav .menu { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.menu__item { position: relative; display: flex; align-items: center; }
.site-nav .menu > .menu__item > a,
.site-nav .menu > .menu__item > span {
	display: block; padding: 10px 12px; border-radius: 10px;
	font-weight: 700; font-size: 15.5px; color: var(--c-ink); text-decoration: none; white-space: nowrap;
}
.site-nav .menu > .menu__item > a:hover,
.site-nav .menu > .menu__item.is-active > a { color: var(--c-accent); }
.menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: -8px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--c-ink); cursor: pointer; }
.menu__toggle svg { transition: transform .2s; }
.menu__item.is-open > .menu__toggle svg { transform: rotate(180deg); }
.menu__sub {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
	margin: 0; padding: 10px; list-style: none;
	background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.menu__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.menu__item.has-children:hover > .menu__sub,
.menu__item.is-open > .menu__sub { opacity: 1; visibility: visible; transform: none; }
.menu__sub .menu__item { display: block; }
.menu__sub a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--c-text); font-weight: 600; font-size: 15px; text-decoration: none; }
.menu__sub a:hover, .menu__sub .is-current > a { background: var(--c-soft); color: var(--c-accent-dark); }
.site-nav__mobile-extra { display: none; }

.burger { display: none; position: relative; width: 46px; height: 46px; padding: 0; border: 1px solid var(--c-line); border-radius: 12px; background: #fff; cursor: pointer; }
.burger__line { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--c-ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger__line:nth-child(1) { top: 15px; }
.burger__line:nth-child(2) { top: 22px; }
.burger__line:nth-child(3) { top: 29px; }
.nav-open .burger__line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger__line:nth-child(2) { opacity: 0; }
.nav-open .burger__line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(20, 22, 27, .45); }

@media (max-width: 1120px) {
	.header-phone span { display: none; }
	.header-phone { width: 46px; height: 46px; justify-content: center; border: 1px solid var(--c-line); border-radius: 12px; }
}
@media (max-width: 980px) {
	:root { --header-h: 66px; }
	.brand__logo { width: 132px; }
	.burger { display: inline-block; }
	.header-cta { display: none; }
	.site-nav {
		position: fixed; z-index: 95; top: 100%; right: 0;
		height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
		width: min(420px, 100%); padding: 20px var(--gutter) 32px;
		background: #fff; overflow-y: auto; overscroll-behavior: contain;
		display: none; box-shadow: var(--shadow-lg);
	}
	.nav-open .site-nav { display: block; animation: nav-in .28s ease; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > .menu__item { flex-wrap: wrap; border-bottom: 1px solid var(--c-line); }
	.site-nav .menu > .menu__item > a, .site-nav .menu > .menu__item > span { flex: 1; padding: 16px 0; font-size: 18px; }
	.menu__toggle { width: 44px; height: 44px; margin: 0; }
	.menu__sub {
		position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px 12px;
		border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none;
	}
	.menu__item.is-open > .menu__sub { display: block; }
	.site-nav__mobile-extra { display: grid; gap: 10px; margin-top: 24px; }
	.site-nav__phone { font-weight: 700; font-size: 18px; color: var(--c-ink); text-decoration: none; }
	.site-nav__mobile-extra .btn { margin-top: 10px; }
}
@media (max-width: 420px) {
	.header-phone { display: none; }
}
body.nav-open { overflow: hidden; }
@keyframes nav-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section--tight { padding-top: clamp(36px, 5vw, 64px); }
.section--soft { background: var(--c-soft); }
.section--dark { background: var(--c-ink); color: var(--c-on-dark); }
.section--dark h2, .section--dark h3, .section--dark .section__title { color: #fff; }
.section--dark p, .section--dark li { color: var(--c-on-dark-muted); }
.section__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head--center, .section--center .section__head { margin-left: auto; margin-right: auto; text-align: center; }
.section__title { margin: 0; }
.section__sub { margin: 14px 0 0; color: var(--c-muted); font-size: 18px; }
.section + .section--soft, .section--soft + .section { border-top: 0; }
.section-more { margin-top: 36px; text-align: center; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Icons (CSS masks, editor-safe) ---------- */
:root {
	--i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.2 5.3 19.9 12l-6.7 6.7-1.4-1.4 4.3-4.3H4v-2h12.1l-4.3-4.3z'/%3E%3C/svg%3E");
	--i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.6 16.2-4.2-4.2-1.4 1.4 5.6 5.6 10.4-10.4-1.4-1.4z'/%3E%3C/svg%3E");
	--i-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 21V3h11v6h5v12h-7v-4h-2v4zm2-2h3v-2h-3zm0-4h3v-2h-3zm0-4h3V9h-3zm0-4h3V5h-3zm5 8h2v-2h-2zm0-4h2V9h-2zm0-4h2V5h-2zm4 8h3v-2h-3zm0-4h3v-2h-3z'/%3E%3C/svg%3E");
	--i-cart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 18a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm10 0a2 2 0 1 0 0 4 2 2 0 0 0 0-4zM5.2 4H2V2h4.6l.9 2H22l-3.6 8.5a2 2 0 0 1-1.8 1.2H8.1l-.9 1.8V16h12v2H5.1v-3l1.4-2.6L5.2 4z'/%3E%3C/svg%3E");
	--i-target: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm0-14a6 6 0 1 0 6 6 6 6 0 0 0-6-6zm0 10a4 4 0 1 1 4-4 4 4 0 0 1-4 4zm0-6a2 2 0 1 0 2 2 2 2 0 0 0-2-2z'/%3E%3C/svg%3E");
	--i-gallery: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 14H4V6h16zm-6.5-6.5L10 16l-2.5-3L4 18h16z'/%3E%3C/svg%3E");
	--i-mobile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H8a3 3 0 0 0-3 3v16a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V4a3 3 0 0 0-3-3zm1 19a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1zm-5-3a1.5 1.5 0 1 0 1.5 1.5A1.5 1.5 0 0 0 12 17z'/%3E%3C/svg%3E");
	--i-speed: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4a10 10 0 0 0-8.7 15h17.4A10 10 0 0 0 12 4zm7.5 13h-15a8 8 0 1 1 15 0zM15.5 8.5 11 13a1.5 1.5 0 1 0 2 2l4.5-4.5z'/%3E%3C/svg%3E");
	--i-support: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a9 9 0 0 0-9 9v6a3 3 0 0 0 3 3h2v-8H5v-1a7 7 0 0 1 14 0v1h-3v8h3v1h-6v2h6a2 2 0 0 0 2-2v-9a9 9 0 0 0-9-9z'/%3E%3C/svg%3E");
	--i-content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8zm4 18H6V4h7v5h5zM8 12h8v2H8zm0 4h8v2H8z'/%3E%3C/svg%3E");
	--i-learn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 1 9l11 6 9-4.9V17h2V9zM5 13.2v4L12 21l7-3.8v-4L12 17z'/%3E%3C/svg%3E");
	--i-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm0 14H5.2L4 17.2V4h16zM7 9h10v2H7zm0-3h10v2H7zm0 6h7v2H7z'/%3E%3C/svg%3E");
	--i-link: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10.6 13.4a1 1 0 0 1 0-1.4l4-4a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0zM7.8 19.8a4 4 0 0 1-2.8-6.8l2.1-2.1 1.4 1.4-2.1 2.1a2 2 0 1 0 2.8 2.8l2.1-2.1 1.4 1.4-2.1 2.1a4 4 0 0 1-2.8 1.2zm8.5-6.7-1.4-1.4 2.1-2.1a2 2 0 1 0-2.8-2.8l-2.1 2.1-1.4-1.4 2.1-2.1a4 4 0 0 1 5.7 5.7z'/%3E%3C/svg%3E");
	--i-free: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10A10 10 0 0 0 12 2zm0 18a8 8 0 1 1 8-8 8 8 0 0 1-8 8zm-1-13h2v6h-2zm0 8h2v2h-2z'/%3E%3C/svg%3E");
	--i-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 17.3 6.2 3.7-1.6-7 5.4-4.7-7.1-.6L12 2 9.1 8.7 2 9.3l5.4 4.7-1.6 7z'/%3E%3C/svg%3E");
	--i-person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a5 5 0 1 0-5-5 5 5 0 0 0 5 5zm0-8a3 3 0 1 1-3 3 3 3 0 0 1 3-3zm0 10c-4.4 0-8 2.2-8 5v3h16v-3c0-2.8-3.6-5-8-5zm6 6H6v-1c0-1.2 2.5-3 6-3s6 1.8 6 3z'/%3E%3C/svg%3E");
	--i-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1 3 5v6c0 5.5 3.8 10.7 9 12 5.2-1.3 9-6.5 9-12V5zm0 19.9c-3.8-1.2-7-5.4-7-9.9V6.3l7-3.1 7 3.1V11c0 4.5-3.2 8.7-7 9.9z'/%3E%3C/svg%3E");
	--i-code: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.7 16.6 4.1 12l4.6-4.6L7.3 6l-6 6 6 6zm6.6 0 4.6-4.6-4.6-4.6L16.7 6l6 6-6 6z'/%3E%3C/svg%3E");
}
.ic { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--c-accent-soft); color: var(--c-accent); }
.ic::before { content: ""; width: 26px; height: 26px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.section--dark .ic { background: rgba(229, 56, 59, .14); }
.ic--building { --ic: var(--i-building); }
.ic--cart { --ic: var(--i-cart); }
.ic--target { --ic: var(--i-target); }
.ic--gallery { --ic: var(--i-gallery); }
.ic--mobile { --ic: var(--i-mobile); }
.ic--speed { --ic: var(--i-speed); }
.ic--support { --ic: var(--i-support); }
.ic--content { --ic: var(--i-content); }
.ic--learn { --ic: var(--i-learn); }
.ic--chat { --ic: var(--i-chat); }
.ic--link { --ic: var(--i-link); }
.ic--free { --ic: var(--i-free); }
.ic--star { --ic: var(--i-star); }
.ic--person { --ic: var(--i-person); }
.ic--shield { --ic: var(--i-shield); }
.ic--code { --ic: var(--i-code); }

/* ---------- Home hero ---------- */
.hero {
	position: relative; overflow: hidden;
	padding: clamp(64px, 9vw, 128px) 0 clamp(64px, 8vw, 112px);
	background: radial-gradient(1200px 520px at 85% 10%, rgba(229, 56, 59, .22), transparent 60%), radial-gradient(800px 400px at 0% 100%, rgba(229, 56, 59, .10), transparent 60%), var(--c-ink);
	color: var(--c-on-dark);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--c-accent); }
.hero .lead { color: var(--c-on-dark-muted); max-width: 580px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 40px 0 0; padding: 0; list-style: none; }
.hero__stats li { display: grid; gap: 2px; }
.hero__stats strong { font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.hero__stats span { font-size: 14px; color: var(--c-on-dark-muted); }
.hero .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.hero .btn--ghost:hover { border-color: #fff; color: #fff; }

/* Decorative browser mockup */
.mock { position: relative; }
.mock__window { position: relative; z-index: 1; border-radius: 16px; background: var(--c-ink-2); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 40px 80px rgba(0, 0, 0, .45); overflow: hidden; }
.mock__bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.mock__bar i:first-child { background: var(--c-accent); }
.mock__body { display: grid; gap: 14px; padding: 22px; }
.mock__line { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.mock__line--title { width: 70%; height: 22px; background: rgba(255, 255, 255, .16); }
.mock__line--short { width: 45%; }
.mock__line--accent { width: 34%; height: 38px; border-radius: 999px; background: var(--c-accent); }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.mock__cards span { height: 76px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.mock__phone { position: absolute; z-index: 2; right: -14px; bottom: -34px; width: 34%; aspect-ratio: 9 / 18; border-radius: 22px; background: var(--c-ink-3); border: 6px solid #0b0c0f; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); display: grid; align-content: start; gap: 10px; padding: 26px 12px; }
.mock__phone span { height: 9px; border-radius: 5px; background: rgba(255, 255, 255, .12); }
.mock__phone span:nth-child(2) { width: 70%; }
.mock__phone span:nth-child(3) { height: 60px; border-radius: 10px; background: rgba(229, 56, 59, .5); }
.mock__badge { position: absolute; z-index: 3; left: -18px; top: 38%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; background: #fff; color: var(--c-ink); font-weight: 800; font-size: 14px; box-shadow: var(--shadow-lg); }
.mock__badge b { color: #16a34a; font-size: 20px; }
@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.mock { max-width: 520px; margin: 12px 18px 30px; }
}

/* ---------- Feature cards ---------- */
.feature { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature h3 { margin: 4px 0 0; }
.feature p { margin: 0; color: var(--c-muted); }
.feature .checks { margin-top: 4px; }
.feature .link-arrow { margin-top: auto; padding-top: 8px; }
a.feature, .feature--link { color: inherit; text-decoration: none; }
a.feature:hover, .feature--link:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.feature--plain { padding: 0; border: 0; background: none; }
.feature--plain:hover { box-shadow: none; transform: none; }
.section--soft .feature { border-color: transparent; box-shadow: var(--shadow); }
.section--dark .feature { background: var(--c-ink-2); border-color: rgba(255, 255, 255, .07); }
.section--dark .feature p { color: var(--c-on-dark-muted); }
.feature__row { display: flex; align-items: flex-start; gap: 16px; }
.feature__row .ic { width: 46px; height: 46px; }
.feature__row h3 { font-size: 18px; margin-bottom: 6px; }

/* ---------- Lists ---------- */
.checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-accent-soft); }
.checks li::after { content: ""; position: absolute; left: 4px; top: 7px; width: 14px; height: 14px; background: var(--c-accent); -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat; }
.section--dark .checks li::before { background: rgba(229, 56, 59, .18); }
.checks--compact { gap: 6px; font-size: 15.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-top: 64px; counter-increment: step; }
.steps li::before { content: "0" counter(step); position: absolute; top: 0; left: 0; font-size: 40px; font-weight: 800; line-height: 1; color: var(--c-accent); letter-spacing: -.03em; }
.steps li::after { content: ""; position: absolute; top: 20px; left: 72px; right: 8px; height: 2px; background: linear-gradient(90deg, var(--c-line), transparent); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--c-muted); font-size: 16px; }
.section--dark .steps li::after { background: linear-gradient(90deg, rgba(255, 255, 255, .14), transparent); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 8px; padding: 0; list-style: none; }
.stats li { padding: 24px; border-radius: var(--radius); background: var(--c-soft); }
.stats strong { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 800; line-height: 1.1; color: var(--c-accent); letter-spacing: -.03em; }
.stats span { display: block; margin-top: 8px; color: var(--c-muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Ideal client traits */
.traits { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.traits li { padding: 24px 22px; border-radius: var(--radius); background: var(--c-ink-2); border: 1px solid rgba(255, 255, 255, .07); }
.traits strong { display: block; margin-bottom: 8px; font-size: 18px; color: #fff; }
.traits span { display: block; color: var(--c-on-dark-muted); font-size: 15.5px; line-height: 1.55; }
@media (max-width: 1100px) { .traits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .traits { grid-template-columns: 1fr; } }

/* Split block */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* Note / callout */
.note { padding: 22px 24px; border-left: 4px solid var(--c-accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--c-soft); }
.note p:last-child { margin-bottom: 0; }

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(48px, 6vw, 80px) 0; background: var(--c-bg); }
.cta-band__box {
	position: relative; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: 28px;
	padding: clamp(32px, 5vw, 60px);
	border-radius: 28px; color: #fff;
	background: radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, var(--c-accent) 0%, #b51f22 100%);
}
.cta-band__box h2 { color: #fff; margin-bottom: 10px; }
.cta-band__box p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 18px; max-width: 620px; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; }
.cta-band__phone { font-weight: 800; font-size: 22px; color: #fff; text-decoration: none; white-space: nowrap; }
.cta-band__phone:hover { color: #fff; text-decoration: underline; }
@media (max-width: 820px) { .cta-band__box { grid-template-columns: 1fr; } .cta-band__actions { align-items: flex-start; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: radial-gradient(900px 380px at 90% 0%, rgba(229, 56, 59, .2), transparent 60%), var(--c-ink); color: var(--c-on-dark); }
.page-hero__inner > * { max-width: 900px; }
.page-hero .eyebrow a:hover { color: #fff; }
.page-hero__title { margin: 0; color: #fff; font-size: clamp(32px, 4.6vw, 54px); }
.page-hero__lead, .page-hero__lead p { margin: 18px 0 0; color: var(--c-on-dark-muted); font-size: clamp(17px, 1.5vw, 20px); }
.page-hero__lead p { margin-top: 0; }
.page-hero__meta { margin: 16px 0 0; color: var(--c-on-dark-muted); font-size: 15px; }
.breadcrumbs-wrap { display: none; }

/* Service / page body blocks */
.page-body > section:first-child { padding-top: clamp(48px, 6vw, 80px); }
.page-body .container > h2:first-child { margin-top: 0; }

/* ---------- Prose ---------- */
.prose { font-size: 18px; line-height: 1.75; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin: 1.8em 0 .6em; font-size: clamp(24px, 2.6vw, 32px); }
.prose h3 { margin: 1.6em 0 .5em; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.1em; }
.prose li { margin-bottom: .45em; }
.prose ul li::marker { color: var(--c-accent); }
.prose ol li::marker { color: var(--c-accent); font-weight: 800; }
.prose img { border-radius: var(--radius-sm); margin: 1.6em 0; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--c-accent); font-size: 20px; font-weight: 600; color: var(--c-ink); }
.prose--intro { max-width: 900px; }
.prose--intro h2 { margin-top: 0; }
.section--intro { padding-bottom: 0; }

/* ---------- Cards (portfolio / blog) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); transition: box-shadow .25s, transform .25s, border-color .25s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card[hidden] { display: none; }
.card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-soft); }
.card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.cards--portfolio .card__media { aspect-ratio: 4 / 3; }
.card__body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.card__title { margin: 0; font-size: 19px; line-height: 1.35; letter-spacing: -.01em; }
.card__title a { color: var(--c-ink); text-decoration: none; }
.card__title a:hover { color: var(--c-accent-dark); }
.card__text { margin: 0; color: var(--c-muted); font-size: 15.5px; line-height: 1.6; }
.card__meta { font-size: 14px; color: var(--c-muted); }
.card .link-arrow { margin-top: auto; font-size: 15px; }
.section--soft .card { border-color: transparent; box-shadow: var(--shadow); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { padding: 4px 10px; border-radius: 999px; background: var(--c-accent-soft); color: var(--c-accent-dark); font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.chips--hero { margin-top: 20px; }
.chips--hero .chip { background: rgba(255, 255, 255, .1); color: #fff; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter { min-height: 42px; padding: 0 18px; border: 1px solid var(--c-line); border-radius: 999px; background: #fff; font: 700 15px/1 var(--font); color: var(--c-text); cursor: pointer; transition: all .2s; }
.filter:hover { border-color: var(--c-ink); }
.filter.is-active { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

/* Pagination */
.pagination-wrap { margin-top: 40px; }
.pagination-wrap ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pagination-wrap a, .pagination-wrap span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-weight: 700; }
.pagination-wrap .active span, .pagination-wrap [aria-current] { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ---------- Project page ---------- */
.project { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--section-y); align-items: start; }
.project__shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--shadow-lg); }
.project__img { width: 100%; }
.project__body { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 900px) { .project { grid-template-columns: 1fr; } .project__body { position: static; } }

/* ---------- Post page ---------- */
.post { padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--section-y); }
.post__cover { margin: 0 0 36px; border-radius: var(--radius); overflow: hidden; }
.post__img { width: 100%; }
.post__back { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--c-line); }

/* ---------- Contact page & forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: var(--section-y); }
.contact-info { display: grid; gap: 28px; }
.contact-info__label { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.contact-info__value { display: block; font-size: 22px; font-weight: 800; color: var(--c-ink); text-decoration: none; line-height: 1.5; }
.contact-info__value:hover { color: var(--c-accent); }
.contact-info p { margin: 0; color: var(--c-muted); }
.contact-form-card { padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: #fff; border: 1px solid var(--c-line); box-shadow: var(--shadow-lg); }
.contact-form-card__title { font-size: clamp(22px, 2.4vw, 28px); }
.contact-form-card__text { color: var(--c-muted); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form fieldset { margin: 0; padding: 0; border: 0; }
.contact-form legend { display: none; }
.control-group { margin-bottom: 18px; }
.control-label label, .control-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--c-ink); }
.control-label .star { color: var(--c-accent); }
.form-control, .contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form textarea {
	width: 100%; min-height: 52px; padding: 12px 16px;
	font: 500 16px/1.5 var(--font); color: var(--c-text);
	background: var(--c-soft); border: 1px solid transparent; border-radius: 12px;
	transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.contact-form textarea { min-height: 150px; height: 170px; resize: vertical; }
.form-control:focus, .contact-form input:focus, .contact-form textarea:focus { outline: none; background: #fff; border-color: var(--c-accent); box-shadow: 0 0 0 4px rgba(229, 56, 59, .12); }
.form-check { display: flex; gap: 10px; align-items: flex-start; }
.form-check-input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--c-accent); }
.contact-form .invalid { border-color: var(--c-accent) !important; }
.contact-form label.invalid { color: var(--c-accent); }
.contact-form .form-control-feedback, .contact-form .invalid-feedback { color: var(--c-accent); font-size: 14px; }
.contact-form .btn { width: 100%; min-height: 56px; border: 0; font-size: 17px; }
.contact-form .controls .btn { margin-top: 6px; }

/* System messages */
.system-messages:empty { display: none; }
joomla-alert, .alert { display: block; margin: 20px 0; padding: 16px 20px; border-radius: 12px; background: var(--c-soft); border-left: 4px solid var(--c-ink); }
joomla-alert[type="success"], .alert-success { border-left-color: #16a34a; background: #effaf2; }
joomla-alert[type="danger"], joomla-alert[type="error"], .alert-danger { border-left-color: var(--c-accent); background: var(--c-accent-soft); }
joomla-alert .joomla-alert--close, joomla-alert button { float: right; border: 0; background: none; font-size: 22px; cursor: pointer; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(56px, 7vw, 88px); background: var(--c-ink); color: var(--c-on-dark-muted); font-size: 15.5px; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 48px; }
.site-footer__tagline { margin: 18px 0 6px; font-weight: 800; color: #fff; font-size: 18px; }
.site-footer__about { margin: 0; max-width: 300px; }
.site-footer__title { margin: 6px 0 16px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--c-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .menu__toggle, .site-footer .menu__sub { display: none; }
.site-footer__contacts a { color: #fff; font-weight: 700; }
.site-footer__bottom { padding-top: 22px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Error page ---------- */
.error { padding: clamp(64px, 10vw, 140px) 0; text-align: center; }
.error__inner { max-width: 720px; }
.error__code { margin: 0; font-size: clamp(90px, 16vw, 180px); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--c-accent); }
.error__title { margin: 12px 0 14px; }
.error__text { color: var(--c-muted); font-size: 18px; }
.error .btn-row { justify-content: center; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.reveal { opacity: 1; transform: none; }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }
	.btn { min-height: 50px; padding: 0 22px; }
	.btn-row .btn { flex: 1 1 100%; }
	.feature { padding: 22px; }
	.prose { font-size: 17px; }
	.hero__stats { gap: 14px 28px; }
	.hero__stats strong { font-size: 26px; }
	.mock__badge { left: -6px; }
}
