:root {
	--bg: #0f1114;
	/* близко к fragment.com */
	--card: #15181d;
	--muted: #8a95a7;
	--text: #e7edf7;
	--line: #1f242c;
	--brand: #5aa6ff;
	--brand-2: #8b5cff;
	--ok: #1dd1a1;
	--danger: #ff6b6b;
}

* { box-sizing: border-box }
html, body { height: 100% }

body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background: radial-gradient(1000px 600px at 80% -20%, rgba(90, 166, 255, .15), transparent 60%),
		radial-gradient(800px 500px at -10% 10%, rgba(139, 92, 255, .12), transparent 60%),
		var(--bg);
	background-repeat: no-repeat;
	background-size: cover;
	background-attachment: fixed;
	color: var(--text);
}

a { color: var(--brand); text-decoration: none }
.oferta { margin-top:8px; font-size: 13px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 24px }

/* Header */
.header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
}

.input.with-avatar {
  position: relative;
  display: flex;
  align-items: center;
}

.modal-alert__avatar {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}


.modal-alert__avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.modal-alert__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  transition: color 0.2s;
}
.modal-alert__close:hover {
  color: #fff;
}


#login {
  flex: 1;
  padding-right: 40px; /* место под аватар справа */
}

#login-avatar {
  position: absolute;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: none; /* скрыт по умолчанию */
  pointer-events: none; /* чтобы не мешал клику по input */
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}

.small-digits{font-size:.7em;vertical-align:top;opacity:.85}

.header .logo {
  justify-self: start;
  width: max-content;   /* или fit-content */
  display: inline-flex; /* чтобы не тянуться */
  align-items: center;
  gap: 10px;
}

.header a.btn {
	padding: 10px 10px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(90, 166, 255, .15), rgba(139, 92, 255, .15));
	border: 1px solid var(--line)
}


.modal-alert__actions--payment {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.payment-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.85;
  text-align: center;
}

.payment-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.payment-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.payment-btn:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 10px 24px rgba(0, 200, 255, .25);
}

.payment-icon {
  width: 24px;
  height: 24px;
}

.modal-alert__btn--sbp {
  background: linear-gradient(135deg, #00ffbf 0%, #00c8ff 60%, #0088ff 100%);
  color: #0b1f16;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 200, 255, .25);
  border: 1px solid rgba(0, 255, 200, .2);
  transition: all 0.2s ease;
}

.modal-alert__btn--sbp:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 200, 255, .35);
}

.modal-alert__btn--card {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(90, 166, 255, .25);
  border: 1px solid rgba(90, 166, 255, .2);
  transition: all 0.2s ease;
}

.modal-alert__btn--card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(90, 166, 255, .35);
}


.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.burger:hover { box-shadow: 0 6px 18px rgba(90,166,255,.15); border-color: rgba(90,166,255,.25); }
.burger:active { transform: translateY(1px); }
.burger span {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 24px; }

/* morph to X */
.burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* dropdown nav */
.header nav {
  display: flex;
  gap: 10px;
}

.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px }
.logo-badge { width: 32px; height: 32px; border-radius: 10px; background: url('/img/logo.png') center/cover no-repeat; }

/* Hero / Card */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; margin-top: 18px }
@media (max-width:960px) { .hero { grid-template-columns: 1fr; } }
.card {
	background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
	border: 1px solid var(--line); border-radius: 16px; padding: 22px
}
.title { font-size: 32px; font-weight: 700; line-height: 1.15; margin: 0 0 10px }
.subtitle { color: var(--muted); margin: 0 0 16px }

/* Form */
.form { display: grid; gap: 25px }
.field { display: flex; flex-direction: column; gap: 8px }
.label { font-size: 14px; color: var(--muted) }
.input {
	display: flex; align-items: center; gap: 10px;
	background: var(--card); border: 1px solid var(--line);
	border-radius: 12px; padding: 12px 14px
}
.input input {
	flex: 1; background: transparent; border: 0; outline: 0;
	color: var(--text); font-size: 16px
}
.input textarea {
	width: 100%;
	min-height: 120px;
	padding: 10px 12px;
	border: 1px solid rgba(255,255,255,.15);
	border-radius: 8px;
	background: rgba(255,255,255,.03);
	color: inherit;
	font: inherit;
	resize: vertical;
	transition: border-color .2s ease, background .2s ease;
}
.input textarea:focus {
	border-color: #ffa500;
	outline: none;
	background: rgba(255,255,255,.05);
}
.hint { font-size: 12px; color: var(--muted) }
.row { display: flex; gap: 12px }
.row>* { flex: 1 }
.total {
	display: flex; align-items: center; justify-content: space-between;
	background: var(--card); border: 1px dashed #243041;
	border-radius: 12px; padding: 14px 16px
}
.total .price { font-weight: 700; font-size: 20px }
.rate { font-size: 12px; color: var(--muted) }
.btn-primary {
	cursor: pointer; border: 0; padding: 14px 18px; font-weight: 700;
	border-radius: 12px;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	color: #fff; box-shadow: 0 10px 30px rgba(90, 166, 255, .35);
	transition: transform .08s ease
}
.btn-primary:active { transform: translateY(1px) }
.note { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted) }
.badge {
	font-size: 12px; padding: 6px 10px; border-radius: 999px;
	background: rgba(29, 209, 161, .12); color: var(--ok);
	border: 1px solid rgba(29, 209, 161, .25)
}
.aside { display: flex; flex-direction: column; gap: 12px }
.aside .mini { font-size: 13px; color: var(--muted) }
.mini-pay {font-size: 13px; color: var(--muted); text-align: center;}
.stat {
	display: flex; gap: 10px; align-items: center;
	background: var(--card); border: 1px solid var(--line);
	border-radius: 12px; padding: 14px
}
.dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: linear-gradient(135deg, var(--brand), var(--brand-2));
	box-shadow: 0 0 0 6px rgba(90, 166, 255, .08)
}

/* Benefits */
.section { margin-top: 18px }
.section .br { margin-bottom: 100px; }
.section h2 { margin: 0 0 14px; font-size: 24px }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
@media (max-width:960px) { .grid { grid-template-columns: 1fr } }
.benefit {
	background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0));
	border: 1px solid var(--line); border-radius: 14px; padding: 16px
}
.benefit h3 { margin: 0 0 8px; font-size: 16px }
.benefit p { margin: 0; color: var(--muted); font-size: 14px }

/* FAQ */
.faq { margin-top: 10px }
details {
	background: var(--card); border: 1px solid var(--line);
	border-radius: 12px; padding: 14px 16px
}
details+details { margin-top: 10px }
summary { cursor: pointer; font-weight: 600 }
details p { color: var(--muted) }

/* Footer */
.footer {
	margin: 36px 0 8px; border-top: 1px solid var(--line);
	padding-top: 18px; color: var(--muted); font-size: 13px;
	display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-links a { color: var(--brand); text-decoration: none; }
.footer-links a:hover { text-decoration: underline }

/* Modal */
.modal { display: none; position: fixed; z-index: 1000; inset: 0; overflow: auto;
	background: rgba(0,0,0,.6); padding: 10px; }
.input.is-loading { border-color: var(--line)!important; }
.input.is-valid   { border-color: var(--ok)!important; }
.input.is-error   { border-color: var(--danger)!important; }
.modal-content {
	background: var(--card); color: var(--text);
	margin: 10vh auto; padding: 20px; border-radius: 12px;
	border: 1px solid var(--line); max-width: 400px;
}
.modal-close { float: right; font-size: 24px; cursor: pointer }

/* Dark Neon Alert */
.modal-alert {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 2000;
	background: radial-gradient(1200px 600px at 50% -20%, rgba(0, 255, 170, .08), transparent 60%),
		radial-gradient(900px 500px at 110% 120%, rgba(0, 180, 255, .06), transparent 55%),
		rgba(0, 0, 0, .55);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(3px);
	animation: ma_fade .25s ease-out;
}

.modal-alert__content {
	position: relative;
	margin: 10vh auto;
	width: min(92vw, 520px);
	border-radius: 16px;
	padding: 22px 20px 18px;
	background: linear-gradient(180deg, rgb(0 0 0 / 3%), rgba(255, 255, 255, .02)) padding-box, linear-gradient(135deg, rgb(0 0 0 / 55%), rgba(0, 128, 255, .55)) border-box;
	border: 1px solid transparent;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgb(235 235 235 / 12%) inset, 0 0 24px rgba(0, 200, 255, .10);
	color: #e8f6ff;
	text-align: left;
}

.modal-alert__head {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 10px;
}

.modal-alert__icon {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	flex: 0 0 44px;
	display: grid;
	place-items: center;
	font-size: 22px;
	color: #0b1f16;
	background: radial-gradient(circle at 30% 20%, #00ffbf 0%, #00c8ff 60%, #0088ff 100%);
	box-shadow: 0 10px 28px rgba(0, 200, 255, .25), 0 0 0 1px rgba(0, 255, 200, .35) inset;
}

.modal-alert__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .2px;
	color: #eafffb;
}

.modal-alert__meta {
	margin: 2px 0 0;
	font-size: 13px;
	color: #9adbe6;
}

.modal-alert__body {
	margin-top: 12px;
	padding: 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .03);
	border: 1px solid rgba(255, 255, 255, .06);
}

.modal-alert__row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 6px;
	font-size: 14px;
	color: #d8f7ff;
}

.modal-alert__row+.modal-alert__row {
	border-top: 1px dashed rgba(255, 255, 255, .08);
}

.modal-alert__label {
	opacity: .75;
}

.modal-alert__value {
	font-weight: 600;
}

.modal-alert__actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-alert__btn {
	padding: 10px 14px;
	border-radius: 12px;
	border: 1px solid transparent;
	background: linear-gradient(135deg, #00ffbf 0%, #00c8ff 60%, #0088ff 100%);
	color: #051417;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(0, 200, 255, .22);
	transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.modal-alert__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(0, 200, 255, .28);
}

.modal-alert__btn--ghost {
	background: rgba(255, 255, 255, .04);
	color: #bfeaff;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, .08);
	box-shadow: none;
}

.modal-alert__btn--ghost:hover {
	background: rgba(0, 200, 255, .10);
	color: #eaffff;
	border-color: rgba(0, 200, 255, .25);
}

@keyframes ma_fade {
	from {
		opacity: 0
	}

	to {
		opacity: 1
	}
}

/* Login status */
#loginStatus { font-size: 0.85em; margin-top: 4px; color: var(--text-muted); }
#loginStatus.ok { color: var(--ok); }
#loginStatus.error { color: var(--danger); }

/* Reviews */
.reviews-summary { padding:20px; }
.reviews-summary__head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.reviews-summary__stats { display:grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap:12px; margin:12px 0 4px; }
.reviews-summary__badge { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:14px 12px; border:1px solid rgba(255,255,255,.08); border-radius:14px; background:rgba(255,255,255,.02); }
.reviews-summary__avg { font-size:28px; font-weight:700; line-height:1; }
.reviews-summary__label { opacity:.7; font-size:12px; margin-top:6px; text-transform:lowercase; letter-spacing:.2px; }
.reviews-summary__note { margin-top:10px; }

.reviews-empty { display:flex; align-items:center; gap:16px; padding:20px; }
.reviews-empty__icon { width:44px; height:44px; display:grid; place-items:center; border-radius:12px; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.02); font-size:22px; }
.reviews-empty__title { margin:0 0 6px; }

.reviews-list { display:grid; gap:16px; margin-top:16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.review { border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.02); border-radius:16px; padding:16px; display:flex; flex-direction:column; gap:12px; contain: layout paint; }
.review__head { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; }
.review__avatar { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; font-weight:700; font-size:16px; background:linear-gradient(135deg, rgba(0,132,255,.25), rgba(155,0,255,.25)); border:1px solid rgba(255,255,255,.1); }
.review__meta { display:flex; flex-direction:column; line-height:1.2; }
.review__login { font-weight:600; }
.review__date { font-size:12px; opacity:.65; margin-top:4px; }
.review__rating .stars { letter-spacing:1px; font-size:16px; color:#ffa500; }
.review__text { line-height:1.55; opacity:.95; position:relative; padding-left:8px; }
.review__text::before { content:"“"; position:absolute; left:-2px; top:-6px; opacity:.35; font-size:24px; line-height:1; }

.load-more-wrap { display:flex; justify-content:center; min-height:56px; margin:20px 0 32px; }
#loadMoreBtn {
	display:inline-flex; align-items:center; justify-content:center; gap:8px;
	padding:12px 22px; border-radius:10px; font-size:15px; font-weight:500;
	cursor:pointer; border:1px solid rgba(255,255,255,.12);
	background:rgba(255,255,255,.03); color:inherit;
	transition:background .2s ease, border-color .2s ease, transform .08s ease;
}
#loadMoreBtn:hover { background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.2); transform:translateY(-1px); }
#loadMoreBtn:active { transform:translateY(0); }
#loadMoreBtn[disabled] { opacity:.5; cursor:default; transform:none; }
.load-more__spinner { width:16px; height:16px; border-radius:50%; border:2px solid rgba(255,255,255,.35); border-top-color:#ffa500; animation:spin .8s linear infinite; display:none; }
#loadMoreBtn.loading .load-more__spinner { display:inline-block; }
@keyframes spin { to { transform:rotate(360deg); } }

/* Rating stars */
.rating-stars {
	display: inline-flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 8px;
	font-size: 28px;
	line-height: 1;
	user-select: none;
}
.rating-stars input[type="radio"] { display: none; }
.rating-stars label {
	cursor: pointer;
	color: #bbb;
	padding: 6px;
	border-radius: 8px;
	-webkit-tap-highlight-color: transparent;
	transition: transform .12s ease, color .12s ease;
}
.rating-stars input[type="radio"]:checked ~ label { color: #ffa500; }
@media (hover:hover) {
	.rating-stars label:hover,
	.rating-stars label:hover ~ label {
		color: #ffa500;
		transform: translateY(-1px);
	}
}
.rating-stars input[type="radio"]:focus-visible + label {
	outline: 2px solid #ffa500;
	outline-offset: 2px;
}

/* Review form actions */
.review-actions {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-top: 20px;
}
.btn-cancel {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid rgba(255, 0, 0, 0.25);
	background: rgba(255, 0, 0, 0.05);
	color: #e66;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-cancel:hover {
	background: rgba(255, 0, 0, 0.1);
	border-color: rgba(255, 0, 0, 0.35);
	color: #ff5c5c;
}
.btn-cancel:active {
	background: rgba(255, 0, 0, 0.15);
	border-color: rgba(255, 0, 0, 0.4);
}

/* Media */
@media (max-width:480px) {
	.total { flex-direction: column; align-items: flex-start; gap: 6px; }
	.rate { font-size: 12px; line-height: 1.3; }
	.badge { font-size: 11px; padding: 4px 8px; margin-top: 10px; }
	#loadMoreBtn { width:100%; font-size:16px; padding:14px; }
	.rating-stars { font-size: 34px; gap: 6px; }
	.rating-stars label { padding: 10px 8px; }
}
@media (min-width:1200px) {
	.reviews-list { gap:18px; }
	.review { padding:18px; }
}

@media (max-width: 470px) {
  .header { position: relative; grid-template-columns: 1fr auto; }
  .header nav {
    display: none;
    position: absolute;
    top: 56px;
    right: 0;
    width: min(86vw, 280px);
    padding: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06) inset;
    backdrop-filter: blur(6px);
    transform: translateY(-6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 1100;
    flex-direction: column;
    gap: 8px;
  }
  .header nav.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .header a.btn {
    width: 100%;
    justify-content: center;
    padding: 12px 12px;
  }
  .burger { display: flex; z-index: 1200; }
}

/* dark backdrop */
.nav-backdrop {
  display: none;
}
@media (max-width: 470px) {
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
    z-index: 1000;
    opacity: 0;
    transition: opacity .2s ease;
  }
  .nav-backdrop.show { display: block; opacity: 1; }
}