/*
Theme Name: oxaio
Description: Business-card theme for oxaio.net — Visual Solutions Studio.
Version: 1.1.0
Requires PHP: 7.4
Text Domain: oxaio
*/

:root {
	--ink: #000;
	--muted: #8a8a8a;
	--line: #cfcfcf;
	--blue: #3d6af2;
	--bg: #efefef;
	--radius: 28px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: var(--ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul { margin: 0; }

.wrap {
	width: 100%;
	max-width: 1480px;
	margin: 0 auto;
	padding: 0 40px;
}

h2 {
	font-size: clamp(32px, 3.2vw, 46px);
	font-weight: 400;
	letter-spacing: -0.01em;
	margin-bottom: 20px;
}

/* Header */
.site-header {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 2;
	padding: 22px 0;
}
.site-header__in { display: flex; align-items: center; gap: 32px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; text-decoration: none; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a, .langs a { font-size: 14px; text-decoration: none; color: var(--muted); transition: color .15s; }
.nav a:hover, .langs a:hover, .langs a[aria-current] { color: var(--ink); }
.langs { display: flex; gap: 10px; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 36px;
	border: 0;
	border-radius: 10px;
	background: var(--blue);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, transform .15s;
}
.btn:hover { background: #2f58d6; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn--sm { padding: 13px 18px; font-size: 14px; font-weight: 700; }
.btn .arrow { width: 14px; height: 14px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Hero */
.hero {
	padding: 140px 0 110px;
	text-align: center;
	background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
}
.pill {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 999px;
	background: #fff;
	font-size: 16px;
	font-weight: 500;
}
.hero h1 {
	margin-top: 74px;
	font-size: clamp(34px, 3.4vw, 48px);
	font-weight: 400;
	letter-spacing: -0.01em;
	line-height: 1.15;
}
.hero__sub {
	max-width: 350px;
	margin: 14px auto 72px;
	color: var(--muted);
	line-height: 1.35;
}

/* About */
.about { padding: 0 0 80px; }
.about p {
	max-width: 1180px;
	margin-left: 90px;
	font-size: clamp(18px, 1.5vw, 22px);
	line-height: 1.32;
	color: var(--muted);
}

/* Projects */
.projects { padding: 40px 0 70px; }
.projects__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px 20px;
}
.project { display: block; text-decoration: none; }
.project__img {
	display: block;
	aspect-ratio: 3 / 2;
	border-radius: 20px;
	overflow: hidden;
	background: var(--bg);
}
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project:hover .project__img img { transform: scale(1.04); }
.project__cap {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
	font-size: 15px;
}
.project__cap .arrow { flex: none; width: 20px; height: 20px; transition: transform .2s; }
.project:hover .project__cap .arrow { transform: translate(2px, -2px); }

/* Formats */
.formats { padding: 40px 0 90px; }
.plans {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	align-items: stretch;
}
.plan {
	display: flex;
	flex-direction: column;
	padding: 38px 18px 18px;
	border: 2px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
}
.plan--business {
	margin: -8px 0;
	padding: 46px 20px 26px;
	border: 8px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(200deg, #62d6ff 0%, #8b8cff 32%, #c58aa9 66%, #ff7a2f 100%) border-box;
}
.plan__tag {
	align-self: flex-start;
	padding: 9px 26px;
	border-radius: 10px;
	font-size: 13px;
	background: #5ef2c8;
}
.plan--business .plan__tag { background: #ff8a00; color: #fff; padding-inline: 22px; }
.plan--individual .plan__tag { background: #9747ff; color: #fff; padding-inline: 22px; }
.plan h3 {
	margin-top: 20px;
	font-size: clamp(34px, 3.2vw, 46px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.04;
}
.plan__desc, .plan__approach {
	max-width: 360px;
	color: var(--muted);
	font-size: 14.5px;
	line-height: 1.25;
}
.plan__desc { margin-top: 38px; min-height: 3.75em; }
.plan ul {
	margin: 38px 0 0;
	padding-left: 20px;
	font-size: 15px;
	line-height: 1.2;
}
.plan li { max-width: 400px; margin-bottom: 15px; padding-left: 4px; }
.plan__approach { margin-top: 20px; }
.plan__price {
	margin-top: auto;
	padding-top: 40px;
	text-align: right;
	font-size: clamp(32px, 2.8vw, 40px);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1;
}
.plan__price small { font-size: 20px; font-weight: 400; letter-spacing: 0; }
.plan__foot {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-top: 18px;
}
.plan__days { display: inline-flex; align-items: center; gap: 10px; }
.plan__days span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 10px;
	background: #000;
	color: #fff;
	font-size: 13px;
}
.plan__days span::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
}

/* Contact */
.contact { padding: 90px 0 110px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact__lead { max-width: 360px; color: var(--muted); font-size: 18px; }
.form {
	display: grid;
	gap: 16px;
	padding: 28px;
	border-radius: var(--radius);
	background: #fff;
}
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input[type="text"], .form select, .form textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1.5px solid var(--line);
	border-radius: 10px;
	background: #fff;
	color: var(--ink);
	font: inherit;
	font-size: 16px;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--blue); }
.form .form__check { display: flex; align-items: flex-start; gap: 10px; }
.form__check input { margin-top: 2px; accent-color: var(--blue); }
.form .btn { justify-self: start; }
.form__hp { position: absolute !important; left: -9999px; }
.form__status { min-height: 1.4em; font-size: 14px; }
.form__status.is-ok { color: #12805c; }
.form__status.is-fail { color: #c62828; }

/* Footer */
.site-footer { padding: 26px 0; background: var(--bg); font-size: 13px; color: var(--muted); }
.site-footer__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Inner pages */
.page { padding: 130px 0 90px; background: linear-gradient(180deg, var(--bg) 0, #fff 320px); }
.page h1 { font-size: clamp(34px, 3.4vw, 48px); font-weight: 400; margin-bottom: 28px; }
.page__img { margin-bottom: 28px; border-radius: 20px; overflow: hidden; }
.page__content { max-width: 820px; font-size: 18px; }
.page__content > * + * { margin-top: 1em; }

/* Project case */
.case { padding: 84px 0 90px; background: linear-gradient(180deg, var(--bg) 0, #fff 420px); }
.case .wrap { display: grid; gap: 20px; }
.case figure { margin: 0; }
.case__hero {
	position: relative;
	min-height: 440px;
	border-radius: 24px;
	overflow: hidden;
	background: #1c1c1c;
	color: #fff;
}
.case__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case__hero::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55)); }
.case__hero-in { position: absolute; inset: auto 20px 18px; z-index: 1; }
.case__hero h1 { font-size: clamp(26px, 2.4vw, 32px); font-weight: 400; letter-spacing: -0.01em; }
.case__tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; padding: 0; list-style: none; }
.case__tags li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 9px 26px 9px 16px;
	border-radius: 10px;
	font-size: 13px;
	color: #fff;
}
.case__tags li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.case__tags li.is-light { color: #0b57f5; }

.case__card { padding: 20px; border: 1px solid #dfdfee; border-radius: 20px; background: #fff; }
.case h2 { margin: 0; font-size: clamp(24px, 2.1vw, 30px); font-weight: 400; }
.case__title { padding: 26px 18px; }
.case__lead { max-width: 800px; margin-top: 18px; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.2; color: var(--muted); }
.case__muted { color: var(--muted); font-size: 15px; line-height: 1.3; }

.case__solution { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 20px; }
.case h2.case__big { font-size: clamp(34px, 3.2vw, 46px); margin-bottom: 30px; }
.case__steps { display: grid; gap: 42px; margin: 0; padding: 0; list-style: none; }
.case__steps h3 { margin: 16px 0 12px; font-size: clamp(24px, 2.1vw, 30px); font-weight: 400; }
.case__steps p { max-width: 620px; }
.case__num {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--ink);
	border-radius: 50%;
	font-size: 22px;
}

.case__block { display: grid; gap: 18px; margin-top: 16px; }
.case__grid { display: grid; gap: 18px 10px; }
.case__grid:empty { display: none; }
.case__grid figure { border-radius: 20px; overflow: hidden; background: var(--bg); }
.case__grid img { width: 100%; height: 100%; object-fit: cover; }
.case__grid--two { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.case__grid--three { grid-template-columns: repeat(3, 1fr); }
.case__grid--two figure, .case__grid--three figure { aspect-ratio: 1 / 1; }
.case__grid--full img { height: auto; }
/* Mosaic repeats every five images: square + wide, then square + square + wide. */
.case__grid--mosaic { grid-template-columns: repeat(4, 1fr); }
.case__grid--mosaic figure { aspect-ratio: 1 / 1; }
.case__grid--mosaic figure:nth-child(5n+2) { grid-column: span 3; aspect-ratio: auto; }
.case__grid--mosaic figure:nth-child(5n+5) { grid-column: span 2; aspect-ratio: auto; }
.case__grid--mosaic figure:nth-child(5n+2) img,
.case__grid--mosaic figure:nth-child(5n+5) img { position: absolute; inset: 0; }
.case__grid--mosaic figure { position: relative; }

.case__colors { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.case__colors li {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	width: 272px;
	height: 170px;
	padding: 14px 16px;
	border-radius: 20px;
	color: #fff;
}
.case__colors li.is-light { color: var(--ink); border: 1px solid #dfdfee; }
.case__colors strong { font-size: 24px; font-weight: 400; }
.case__colors span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 116px;
	padding: 4px 10px 4px 5px;
	border-radius: 6px;
	background: #ededf7;
	color: var(--ink);
	font-size: 13px;
}
.case__colors i { width: 22px; height: 22px; border-radius: 50%; }

.case__fonts { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 0; padding: 0; list-style: none; }
.case__fonts li { display: flex; align-items: center; gap: 16px; }
.case__aa {
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .1);
	font-size: 38px;
}
.case__fonts strong { display: block; font-size: 36px; line-height: 1.1; }
.case__fonts small { font-size: 11px; color: var(--muted); }
.case__caption { max-width: 600px; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.05; }

.case__foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 40px; }
.case__back { text-decoration: none; color: var(--muted); }
.case__back:hover { color: var(--ink); }

@media (max-width: 1100px) {
	.case__solution { grid-template-columns: 1fr; }
	.projects__grid { grid-template-columns: repeat(2, 1fr); }
	.plans { grid-template-columns: 1fr; gap: 20px; }
	.plan--business { margin: 0; }
	.plan__desc { min-height: 0; }
	.about p { margin-left: 0; }
	.contact__in { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 640px) {
	.wrap { padding: 0 16px; }
	.nav { display: none; }
	.langs { margin-left: auto; }
	.hero { padding: 110px 0 70px; }
	.hero h1 { margin-top: 44px; }
	.hero__sub { margin-bottom: 44px; }
	.about { padding-bottom: 50px; }
	.projects__grid { grid-template-columns: 1fr; }
	.form { padding: 20px; }
	.plan__foot { flex-wrap: wrap; gap: 14px; }
	.case__hero { min-height: 320px; }
	.case__grid--two, .case__grid--three { grid-template-columns: 1fr; gap: 14px; }
	.case__grid--mosaic { grid-template-columns: repeat(2, 1fr); }
	.case__grid--mosaic figure:nth-child(5n+2),
	.case__grid--mosaic figure:nth-child(5n+5) { grid-column: span 2; aspect-ratio: 2 / 1; }
	.case__colors li { width: calc(50% - 5px); height: 140px; }
	.case__fonts strong { font-size: 26px; }
	.case__foot { flex-direction: column-reverse; align-items: flex-start; }
}

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