/* Лендинг «Бездротовий гребінець-випрямляч».
   Палітра взята з самого товару: чорний корпус, фіолетова хромована вставка, тепле рожево-бежеве тло з фото.
   Форма «мушлі» (великі заокруглення) повторює корпус гребінця. */

:root {
	--ink: #1b1022;
	--violet: #8b2bb0;
	--violet-dark: #6a1b8a;
	--tint: #f4e9f8;
	--blush: #fbf5f1;
	--outer: #e7dce8;
	--line: #e6d9e6;
	--muted: #655a6d;
	--sale: #e5335e;
	--radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--outer);
	font: 400 16px/1.55 'Onest', Arial, sans-serif;
	color: var(--ink);
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2 { font-family: 'Unbounded', 'Onest', sans-serif; font-weight: 600; text-wrap: balance; }
b, strong { font-weight: 700; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.page {
	position: relative;
	max-width: 480px;
	margin: 0 auto;
	background: var(--blush);
	overflow: hidden;
}

.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* кнопка */
.btn {
	display: block;
	width: 100%;
	padding: 21px 24px;
	border: 0;
	border-radius: 999px;
	background: var(--violet);
	box-shadow: 0 12px 26px -10px rgba(139, 43, 176, .7);
	font: 600 18px/1.2 'Onest', Arial, sans-serif;
	color: #fff;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background .15s, transform .15s;
}
.btn:hover { background: var(--violet-dark); }
.btn:active { transform: translateY(1px); }

/* перший екран */
.hero { padding: 26px 20px 28px; }
.hero h1 { font-size: 27px; line-height: 1.18; letter-spacing: -.01em; }
.hero__lead { margin: 14px 0 20px; font-size: 16px; color: var(--muted); }
.hero__photo { border-radius: 34px; overflow: hidden; aspect-ratio: 1; background: var(--tint); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ціна: темна «пігулка» заходить на фото */
.deal {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: -38px 12px 0;
	padding: 16px 22px;
	border-radius: 26px;
	background: var(--ink);
	color: #fff;
	box-shadow: 0 14px 30px -14px rgba(27, 16, 34, .8);
}
.deal__old { font-size: 15px; line-height: 20px; color: rgba(255, 255, 255, .62); }
.deal__new { font-family: 'Unbounded', sans-serif; font-weight: 600; font-size: 34px; line-height: 40px; white-space: nowrap; }
.deal__cut {
	padding: 8px 14px;
	border-radius: 999px;
	background: var(--sale);
	font-weight: 700;
	font-size: 18px;
	line-height: 1;
}

.points { margin: 22px 0 24px; display: grid; gap: 10px; }
.points li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.points .ico { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--violet); stroke: #fff; stroke-width: 2.6; }

/* секції */
.sec { padding: 46px 20px 0; }
.sec h2 { margin-bottom: 14px; font-size: 21px; line-height: 1.25; }
.sec__text { margin-bottom: 20px; color: var(--muted); }
.stack { display: grid; gap: 12px; margin: 22px 0; }
.stack img { width: 100%; border-radius: var(--radius); background: var(--tint); }
.sec > .btn { margin-top: 26px; }

/* рядки «іконка + текст» (переваги, доставка) */
.rows li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; padding-top: 6px; }
.rows__ico {
	flex: none;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--tint);
	color: var(--violet);
}
.rows h3 { margin-bottom: 3px; font-size: 17px; line-height: 1.3; font-weight: 700; }
.rows p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* характеристики */
.specs__photo { width: 100%; margin-bottom: 14px; border-radius: var(--radius); background: var(--tint); }
.specs > div { display: grid; grid-template-columns: 42% 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.specs > div:first-child { border-top: 0; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 600; }

/* відгуки */
.reviews li { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.reviews li:first-child { border-top: 0; padding-top: 4px; }
.reviews__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.reviews__ava {
	flex: none;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--ink);
	font: 600 19px/1 'Unbounded', sans-serif;
	color: #fff;
}
.reviews__who { flex: 1; min-width: 0; line-height: 1.3; }
.reviews__who b { display: block; }
.reviews__who span { font-size: 13px; color: var(--muted); }
.stars { display: flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: #d8cbdb; }
.stars svg.on { fill: var(--violet); }
.reviews p { font-size: 15px; }

/* кроки (послідовність, тому нумерація доречна) */
.steps { counter-reset: step; }
.steps li { position: relative; padding: 0 0 22px 58px; counter-increment: step; }
.steps li:last-child { padding-bottom: 0; }
.steps li:before {
	content: counter(step);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--violet);
	font: 600 16px/1 'Unbounded', sans-serif;
	color: #fff;
}
.steps li:after { /* лінія між кроками */
	content: '';
	position: absolute;
	left: 19px;
	top: 46px;
	bottom: 6px;
	width: 2px;
	background: var(--line);
}
.steps li:last-child:after { display: none; }
.steps h3 { margin-top: 2px; font-size: 17px; line-height: 1.3; font-weight: 700; }
.steps p { color: var(--muted); font-size: 15px; }

/* форма */
.order {
	margin-top: 46px;
	padding: 36px 20px 40px;
	border-radius: 40px 40px 0 0;
	background: var(--tint);
}
.order h2 { margin-bottom: 18px; font-size: 22px; line-height: 1.2; }
.order__item {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
	padding: 10px 16px 10px 10px;
	border-radius: 22px;
	background: #fff;
}
.order__item img { flex: none; width: 68px; height: 68px; border-radius: 16px; object-fit: cover; }
.order__item b { display: block; font-size: 14px; line-height: 1.35; }
.order__item span { font-size: 15px; color: var(--muted); }
.order__item strong { margin-left: 4px; font-size: 18px; color: var(--ink); }

.field { display: block; margin-bottom: 16px; }
.field span { display: block; margin: 0 0 6px 6px; font-size: 14px; font-weight: 600; }
.field input {
	display: block;
	width: 100%;
	height: 62px;
	padding: 0 22px;
	border: 2px solid transparent;
	border-radius: 20px;
	background: #fff;
	font: 400 17px/1 'Onest', Arial, sans-serif;
	color: var(--ink);
	-webkit-appearance: none;
	appearance: none;
}
.field input::placeholder { color: #8d8294; opacity: 1; }
.field input:focus { outline: 0; border-color: var(--violet); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.order .btn { margin-top: 24px; }
.order__note { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--muted); text-align: center; }

/* футер */
.footer { padding: 24px 20px 96px; background: var(--ink); font-size: 14px; text-align: center; }
.footer a { color: rgba(255, 255, 255, .75); }

/* липка кнопка */
.sticky-cta {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 50;
	max-width: 480px;
	margin: 0 auto;
	padding: 24px 16px calc(12px + env(safe-area-inset-bottom));
	background: linear-gradient(to top, var(--blush) 55%, rgba(251, 245, 241, 0));
	transform: translateY(110%);
	transition: transform .25s ease-out;
	pointer-events: none;
}
.sticky-cta.is-visible { transform: none; pointer-events: auto; }
.sticky-cta .btn { padding: 18px 24px; }

/* сповіщення про покупки */
.notification {
	position: fixed;
	left: 50%;
	bottom: 96px;
	z-index: 60;
	width: max-content;
	max-width: calc(100% - 32px);
	padding: 11px 18px;
	border-radius: 16px;
	background: var(--ink);
	font-size: 14px;
	line-height: 20px;
	color: #fff;
	transform: translateX(-50%);
	animation: note-in .3s ease-out;
}
@keyframes note-in { from { opacity: 0; transform: translate(-50%, 12px); } }

@media (min-width: 520px) {
	body { padding: 0; }
}
@media (max-width: 360px) {
	.hero h1 { font-size: 23px; }
	.deal__new { font-size: 29px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.sticky-cta, .btn { transition: none; }
	.notification { animation: none; }
}
