/* =========================================================
   ПОРТФОЛІО — стилі
   Кольори та шрифти — у змінних нижче.
   ========================================================= */
:root {
	--bg: #0a0a0a;
	--surface: #121212;
	--surface-2: #171717;
	--text: #f2efe9;
	--text-2: #d6d2cb;
	--muted: #8f8a82;
	--line: rgba(242, 239, 233, 0.12);
	--line-2: rgba(242, 239, 233, 0.22);
	--accent: #c8ff4d;           /* акцент: лаймовий */
	--font-head: "Unbounded", "Onest", system-ui, sans-serif;
	--font-body: "Onest", system-ui, sans-serif;
	--gutter: clamp(16px, 4vw, 56px);
	--header-h: 76px;
}

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

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

body {
	margin: 0;
	background: var(--bg);
	color: var(--text-2);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

::selection {
	background: var(--accent);
	color: var(--bg);
}

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

a {
	color: inherit;
}

h1, h2, h3 {
	font-family: var(--font-head);
	color: var(--text);
	font-weight: 500;
	line-height: 1.1;
	margin: 0;
}

.wrap {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}
.wrap--narrow {
	max-width: 900px;
}

.kicker {
	margin: 0 0 18px;
	color: var(--accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
}

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 30px;
	background: var(--text);
	color: var(--bg);
	border: 1px solid var(--text);
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--bg);
}
.btn--ghost {
	background: transparent;
	color: var(--text);
	border-color: var(--line-2);
}
.btn--ghost:hover {
	background: transparent;
	border-color: var(--text);
	color: var(--text);
}
.btn--small {
	min-height: 42px;
	padding: 0 20px;
	font-size: 11px;
}
.btn--big {
	min-height: 64px;
	padding: 0 36px;
	font-size: 14px;
}
.btn svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.btn[hidden] {
	display: none;
}

/* ---------- Шапка ---------- */
.header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	transition: background 0.3s ease, border-color 0.3s ease;
	border-bottom: 1px solid transparent;
}
.header.is-scrolled,
.menu-open .header {
	background: rgba(10, 10, 10, 0.88);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom-color: var(--line);
}
.header__inner {
	display: flex;
	align-items: center;
	gap: 40px;
	height: var(--header-h);
}
.logo {
	font-family: var(--font-head);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
}
.logo::after {
	content: ".";
	color: var(--accent);
}
.nav {
	display: flex;
	gap: 32px;
}
.nav a {
	position: relative;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text-2);
	padding: 6px 0;
	transition: color 0.2s ease;
}
.nav a:hover {
	color: var(--text);
}
.header__right {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-left: auto;
}
.lang {
	display: flex;
	border: 1px solid var(--line-2);
}
.lang button {
	background: none;
	border: 0;
	color: var(--muted);
	font: 600 11px/1 var(--font-body);
	letter-spacing: 0.1em;
	padding: 9px 11px;
	cursor: pointer;
}
.lang button[aria-pressed="true"] {
	background: var(--text);
	color: var(--bg);
}

.burger {
	display: none;
	position: relative;
	width: 32px;
	height: 32px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}
.burger span {
	position: absolute;
	left: 4px;
	right: 4px;
	height: 1.5px;
	background: var(--text);
	transition: transform 0.3s ease, top 0.3s ease;
}
.burger span:first-child { top: 12px; }
.burger span:last-child { top: 19px; }
.menu-open .burger span:first-child { top: 15px; transform: rotate(45deg); }
.menu-open .burger span:last-child { top: 15px; transform: rotate(-45deg); }

.drawer {
	position: fixed;
	inset: 0;
	z-index: 90;
	padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
	background: var(--bg);
	transform: translateY(-100%);
	visibility: hidden;
	transition: transform 0.4s ease, visibility 0.4s;
	overflow-y: auto;
}
.menu-open {
	overflow: hidden;
}
.menu-open .drawer {
	transform: none;
	visibility: visible;
}
.drawer__nav a {
	display: block;
	padding: 16px 0;
	border-bottom: 1px solid var(--line);
	font-family: var(--font-head);
	font-size: 26px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--text);
}

/* ---------- Перший екран ---------- */
.hero {
	position: relative;
	overflow: hidden;
	min-height: 100svh;
	display: flex;
	align-items: center;
	padding: calc(var(--header-h) + 40px) 0 80px;
	border-bottom: 1px solid var(--line);
	text-align: center;
}
.hero__glow {
	position: absolute;
	left: 50%;
	top: 62%;
	width: min(1000px, 140vw);
	height: 560px;
	transform: translate(-50%, -50%);
	background: radial-gradient(ellipse, rgba(200, 255, 77, 0.10), transparent 65%);
	pointer-events: none;
}
.hero__inner {
	position: relative;
	width: 100%;
}
.hero__title {
	font-size: clamp(34px, 6.2vw, 92px);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	margin: 0 0 28px;
}
.accent-dot {
	color: var(--accent);
}
.hero__lead {
	margin: 0 0 40px;
	font-size: clamp(16px, 1.4vw, 20px);
	color: var(--muted);
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

/* ---------- Секції ---------- */
.section {
	padding: clamp(80px, 11vw, 150px) 0;
}
.section--alt {
	background: var(--surface);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}
.sechead {
	margin-bottom: clamp(40px, 5vw, 64px);
}
.sechead h2 {
	font-size: clamp(30px, 4.4vw, 60px);
	font-weight: 600;
	text-transform: uppercase;
}
.sechead__note {
	max-width: 560px;
	margin: 20px 0 0;
	color: var(--muted);
}

/* ---------- Послуги ---------- */
.cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.card {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 32px 28px;
	background: var(--surface);
	border: 1px solid var(--line);
	transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover {
	border-color: var(--line-2);
	transform: translateY(-4px);
}
.card--accent {
	border-color: rgba(200, 255, 77, 0.35);
}
.card__num {
	font-family: var(--font-head);
	font-size: 13px;
	color: var(--accent);
	margin-bottom: 40px;
}
.card h3 {
	font-size: 20px;
	margin-bottom: 14px;
}
.card p {
	margin: 0 0 24px;
	color: var(--muted);
	font-size: 15px;
}
.card ul,
.price ul,
.case__features {
	list-style: none;
	margin: 0;
	padding: 0;
}
.card li,
.price li,
.case__features li {
	position: relative;
	padding-left: 22px;
	margin-bottom: 10px;
	font-size: 15px;
	color: var(--text-2);
}
.card li::before,
.price li::before,
.case__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.78em;
	width: 10px;
	height: 1px;
	background: var(--accent);
}

/* ---------- Кейс ---------- */
.case {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: clamp(32px, 5vw, 72px);
	align-items: center;
	padding: clamp(24px, 3vw, 40px);
	background: var(--surface);
	border: 1px solid var(--line);
}
.case + .case {
	margin-top: 32px;
}
.case--rev {
	grid-template-columns: 1fr 1.35fr;
}
.case--rev .case__media {
	order: 2;
}
.case__media {
	position: relative;
	padding-right: 12%;
	padding-bottom: 8%;
}
.case__desktop {
	margin: 0;
	border: 1px solid var(--line-2);
	background: #000;
	box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.case__desktop img {
	cursor: zoom-in;
}
.browser {
	display: flex;
	gap: 6px;
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	background: #151515;
}
.browser span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #333;
}
.case__phone {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 27%;
	margin: 0;
	padding: 6px;
	border-radius: 26px;
	background: #1c1c1c;
	border: 1px solid var(--line-2);
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.95);
	cursor: zoom-in;
}
.case__phone img {
	border-radius: 20px;
}
.case__type {
	margin: 0 0 12px;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
.case__title {
	font-size: clamp(40px, 5vw, 72px);
	font-weight: 600;
	letter-spacing: 0.04em;
	margin-bottom: 20px;
}
.case__text {
	margin: 0 0 28px;
	color: var(--text-2);
}
.case__features {
	margin-bottom: 28px;
}
.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 32px;
}
.tags span {
	padding: 6px 12px;
	border: 1px solid var(--line-2);
	font-size: 12px;
	color: var(--text);
}
.case__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.case-next {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	margin-top: 16px;
	padding: clamp(28px, 4vw, 48px);
	border: 1px dashed var(--line-2);
}
.case-next h3 {
	font-size: clamp(22px, 2.6vw, 32px);
	margin-bottom: 12px;
}
.case-next p:not(.kicker) {
	max-width: 620px;
	margin: 0;
	color: var(--muted);
}
.case-next .btn {
	flex: none;
}

/* ---------- Чому я ---------- */
.why {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 40px 32px;
}
.why svg {
	width: 36px;
	height: 36px;
	margin-bottom: 24px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.why h3 {
	font-size: 18px;
	margin-bottom: 12px;
}
.why p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

/* ---------- Процес ---------- */
.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: step;
}
.steps li {
	position: relative;
	padding: 36px 32px 0 0;
	border-top: 1px solid var(--line-2);
}
.steps li::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	width: 9px;
	height: 9px;
	background: var(--accent);
}
.steps span {
	display: block;
	font-family: var(--font-head);
	font-size: 13px;
	color: var(--muted);
	margin-bottom: 16px;
}
.steps h3 {
	font-size: 20px;
	margin-bottom: 12px;
}
.steps p {
	margin: 0;
	color: var(--muted);
	font-size: 15px;
}

/* ---------- Ціни ---------- */
.prices {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.price {
	position: relative;
	padding: 36px 32px;
	background: var(--bg);
	border: 1px solid var(--line);
}
.price--accent {
	border-color: var(--accent);
}
.price__badge {
	position: absolute;
	top: -12px;
	left: 32px;
	margin: 0;
	padding: 4px 10px;
	background: var(--accent);
	color: var(--bg);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.price h3 {
	font-size: 18px;
	margin-bottom: 20px;
}
.price__sum {
	margin: 0;
	font-family: var(--font-head);
	font-size: clamp(34px, 3.6vw, 48px);
	font-weight: 600;
	color: var(--text);
	line-height: 1;
}
.price__sum span {
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 400;
	color: var(--muted);
	vertical-align: middle;
}
.price__time {
	margin: 10px 0 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
}
.prices__extra {
	margin: 28px 0 0;
	color: var(--muted);
	text-align: center;
}

/* ---------- Питання ---------- */
.faq details {
	border-bottom: 1px solid var(--line);
}
.faq details:first-child {
	border-top: 1px solid var(--line);
}
.faq summary {
	position: relative;
	padding: 24px 48px 24px 0;
	list-style: none;
	cursor: pointer;
	font-size: clamp(17px, 1.6vw, 20px);
	font-weight: 500;
	color: var(--text);
}
.faq summary::-webkit-details-marker {
	display: none;
}
.faq summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 28px;
	font-weight: 300;
	color: var(--accent);
	transition: transform 0.25s ease;
}
.faq details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}
.faq details p {
	margin: 0 0 24px;
	max-width: 720px;
	color: var(--muted);
}

/* ---------- Контакти ---------- */
.contact {
	position: relative;
	overflow: hidden;
	padding: clamp(100px, 13vw, 180px) 0;
	text-align: center;
	background:
		radial-gradient(ellipse 50% 60% at 50% 100%, rgba(200, 255, 77, 0.12), transparent 70%),
		var(--bg);
	border-top: 1px solid var(--line);
}
.contact h2 {
	overflow-wrap: anywhere;
	max-width: 960px;
	margin: 0 auto 24px;
	font-size: clamp(34px, 5.6vw, 80px);
	font-weight: 600;
	text-transform: uppercase;
	line-height: 1.02;
}
.contact__lead {
	margin: 0 auto 44px;
	max-width: 520px;
	color: var(--muted);
	font-size: 18px;
}
.contact__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-bottom: 32px;
}
.contact__mail a {
	color: var(--text-2);
	text-underline-offset: 4px;
}

/* ---------- Підвал ---------- */
.footer {
	border-top: 1px solid var(--line);
}
.footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding-top: 28px;
	padding-bottom: 28px;
	font-size: 13px;
	color: var(--muted);
}

/* ---------- Скриншоти (лайтбокс) ---------- */
.lightbox {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 70px;
	background: rgba(0, 0, 0, 0.94);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s;
}
.lightbox.is-open {
	opacity: 1;
	visibility: visible;
}
.lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border: 1px solid var(--line-2);
}
.lightbox button {
	position: absolute;
	width: 52px;
	height: 52px;
	background: none;
	border: 1px solid var(--line-2);
	color: var(--text);
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}
.lightbox button:hover {
	border-color: var(--text);
}
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__caption {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	margin: 0;
	text-align: center;
	font-size: 13px;
	color: var(--muted);
}

/* ---------- Поява при прокрутці ---------- */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
	opacity: 1;
	transform: none;
}
.no-js .reveal {
	opacity: 1;
	transform: none;
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1100px) {
	.nav {
		display: none;
	}
	.burger {
		display: block;
	}
	.cards,
	.why {
		grid-template-columns: repeat(2, 1fr);
	}
	.steps {
		grid-template-columns: repeat(2, 1fr);
		gap: 48px 0;
	}
	.case,
	.case--rev {
		grid-template-columns: 1fr;
	}
	.case--rev .case__media {
		order: 0;
	}
}

@media (max-width: 767px) {
	:root {
		--header-h: 64px;
	}
	.header__cta {
		display: none;
	}
	.header__right {
		gap: 12px;
	}
	.logo {
		font-size: 18px;
	}
	.hero {
		min-height: 88svh;
		padding: calc(var(--header-h) + 24px) 0 56px;
	}
	.hero__title {
		font-size: clamp(28px, 9vw, 44px);
		margin-bottom: 20px;
	}
	.hero__actions {
		flex-direction: column;
	}
	.hero__actions .btn {
		width: 100%;
	}
	.cards,
	.why,
	.prices,
	.steps {
		grid-template-columns: 1fr;
	}
	.cards {
		gap: 12px;
	}
	.card__num {
		margin-bottom: 20px;
	}
	.steps {
		gap: 0;
	}
	.steps li {
		padding: 28px 0 32px 28px;
		border-top: 0;
		border-left: 1px solid var(--line-2);
	}
	.steps li::before {
		top: 34px;
		left: -5px;
	}
	.prices {
		gap: 24px;
	}
	.case {
		padding: 16px 16px 28px;
	}
	.case__media {
		padding-right: 18%;
	}
	.case__phone {
		width: 34%;
		border-radius: 18px;
		padding: 4px;
	}
	.case__phone img {
		border-radius: 14px;
	}
	.case__actions .btn,
	.contact__actions .btn {
		width: 100%;
	}
	.case-next {
		flex-direction: column;
		align-items: flex-start;
	}
	.case-next .btn {
		width: 100%;
	}
	.lightbox {
		padding: 64px 8px;
	}
	.lightbox__prev,
	.lightbox__next {
		top: auto;
		bottom: 12px;
		transform: none;
	}
	.lightbox__caption {
		bottom: 30px;
	}
	.footer__inner {
		flex-direction: column;
	}
}

@media (max-width: 767px) {
	.sechead h2 { font-size: clamp(26px, 8vw, 40px); }
	.contact h2 { font-size: clamp(28px, 8.6vw, 44px); }
}
