/* Публичный генератор лендингов.
   Токены и базовая типографика — из main.css, здесь только своё. */

.gen-wrap { padding-top: 48px; padding-bottom: 80px; }

/* ─── Шапка раздела ─── */
.gen-hero { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.gen-hero h1 { font-family: 'Syne', system-ui, sans-serif; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 0 0 16px; }
.gen-hero p  { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0; }

.gen-lang-notice {
	display: inline-block; margin-top: 20px; padding: 7px 14px;
	border: 1px solid var(--border); border-radius: 999px;
	background: var(--surface); color: var(--muted); font-size: 13px;
}

/* ─── Форма ─── */
.gen-form { max-width: 780px; margin: 0 auto; }

.gen-step {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: 14px; padding: 24px; margin-bottom: 18px;
}
.gen-step h2 {
	display: flex; align-items: center; gap: 12px;
	font-size: 18px; margin: 0 0 4px; font-weight: 600;
}
.gen-step h2 span {
	flex: none; width: 26px; height: 26px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--accent-glow); color: var(--accent2);
	font-size: 13px; font-weight: 700;
}
.gen-step__sub { color: var(--muted); font-size: 14px; margin: 0 0 18px; padding-left: 38px; }

.gen-form textarea {
	width: 100%; padding: 14px 16px; border-radius: 10px;
	background: var(--bg); border: 1px solid var(--border); color: var(--text);
	font-family: inherit; font-size: 15px; line-height: 1.6; resize: vertical;
}
.gen-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.gen-form textarea::placeholder { color: var(--muted); opacity: .55; }

.gen-hint { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 10px 0 0; }

/* ─── Шаблоны ─── */
.gen-tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }

.gen-tpl {
	position: relative; display: block; cursor: pointer;
	padding: 14px 14px 34px; border-radius: 11px;
	background: var(--bg); border: 1px solid var(--border);
	transition: border-color .15s, background .15s;
}
.gen-tpl:hover { border-color: rgba(96,165,250,.35); }
.gen-tpl.is-on { border-color: var(--accent); background: rgba(59,130,246,.08); }
.gen-tpl input { position: absolute; opacity: 0; pointer-events: none; }
.gen-tpl__name { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.gen-tpl__desc { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.gen-tpl__link {
	position: absolute; left: 14px; bottom: 11px;
	font-size: 12px; color: var(--muted); text-decoration: none;
}
.gen-tpl__link:hover { color: var(--accent2); }

/* ─── Палитры ─── */
.gen-pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

.gen-pal {
	display: flex; align-items: center; gap: 11px; cursor: pointer;
	padding: 11px 13px; border-radius: 10px;
	background: var(--bg); border: 1px solid var(--border);
	transition: border-color .15s, background .15s;
}
.gen-pal:hover  { border-color: rgba(96,165,250,.35); }
.gen-pal.is-on  { border-color: var(--accent); background: rgba(59,130,246,.08); }
.gen-pal input  { position: absolute; opacity: 0; pointer-events: none; }
.gen-pal__swatch { flex: none; display: flex; border-radius: 5px; overflow: hidden; border: 1px solid var(--border); }
.gen-pal__swatch i { display: block; width: 13px; height: 24px; }
.gen-pal__label { font-size: 13.5px; line-height: 1.35; }

/* Honeypot: убран из потока, из обхода клавиатурой и со скринридера */
.gen-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ─── Кнопки и отправка ─── */
.gen-btn {
	display: inline-block; padding: 13px 26px; border: 1px solid transparent;
	border-radius: 10px; background: var(--accent-strong); color: #fff;
	font: inherit; font-weight: 600; font-size: 15px;
	cursor: pointer; text-decoration: none; transition: background .15s, opacity .15s;
}
.gen-btn:hover     { background: var(--accent); }
.gen-btn:disabled  { opacity: .55; cursor: default; }
.gen-btn--ghost    { background: transparent; border-color: var(--border); color: var(--text); }
.gen-btn--ghost:hover { background: var(--surface); border-color: rgba(96,165,250,.35); }

.gen-submit-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.gen-left { color: var(--muted); font-size: 13.5px; }
.gen-left strong { color: var(--text); }

.gen-error {
	margin: 18px 0 0; padding: 12px 15px; border-radius: 10px;
	background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3);
	color: #fca5a5; font-size: 14px; line-height: 1.5;
}

.gen-limit {
	max-width: 560px; margin: 0 auto; text-align: center;
	background: var(--surface); border: 1px solid var(--border);
	border-radius: 14px; padding: 34px 28px;
}
.gen-limit h2 { font-size: 21px; margin: 0 0 10px; }
.gen-limit p  { color: var(--muted); line-height: 1.6; margin: 0 0 22px; }

.gen-catalog-link { text-align: center; margin-top: 40px; font-size: 14px; }
.gen-catalog-link a { color: var(--muted); text-decoration: none; }
.gen-catalog-link a:hover { color: var(--accent2); }

/* ─── Прогресс ─── */
.gen-wait { max-width: 560px; margin: 60px auto; text-align: center; }
.gen-wait h1 { font-family: 'Syne', system-ui, sans-serif; font-size: 28px; margin: 26px 0 12px; }
.gen-wait p  { color: var(--muted); line-height: 1.6; margin: 0 0 8px; }

.gen-wait__step {
	display: inline-block; margin-top: 18px !important; padding: 10px 18px;
	border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
	color: var(--text) !important; font-size: 14px;
}

.gen-spinner {
	width: 42px; height: 42px; margin: 0 auto; border-radius: 50%;
	border: 3px solid var(--border); border-top-color: var(--accent);
	animation: gen-spin .9s linear infinite;
}
@keyframes gen-spin { to { transform: rotate(360deg); } }

/* Тем, кто просил систему не анимировать, крутилку не показываем —
   вместо вращения остаётся статичное кольцо */
@media (prefers-reduced-motion: reduce) {
	.gen-spinner { animation: none; border-top-color: var(--border); }
}

/* ─── Результат ─── */
.gen-done { max-width: 620px; margin: 40px auto 0; text-align: center; }
.gen-done h1 { font-family: 'Syne', system-ui, sans-serif; font-size: 30px; margin: 20px 0 10px; }
.gen-done > p { color: var(--muted); line-height: 1.6; margin: 0 0 6px; }
.gen-done__name { color: var(--text) !important; font-size: 18px; font-weight: 600; margin-bottom: 12px !important; }

.gen-done__badge {
	width: 56px; height: 56px; margin: 0 auto; border-radius: 50%;
	display: grid; place-items: center; font-size: 27px; font-weight: 700;
	background: rgba(52,211,153,.12); color: var(--green);
	border: 1px solid rgba(52,211,153,.3);
}
.gen-done__badge--fail { background: rgba(239,68,68,.1); color: #fca5a5; border-color: rgba(239,68,68,.3); }

.gen-done__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 14px; }

.gen-inside {
	text-align: left; margin: 34px 0 0; padding: 22px 24px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
}
.gen-inside h3 { font-size: 15px; margin: 0 0 12px; }
.gen-inside ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.75; }

.gen-photos-note {
	margin: 18px 0 0; padding: 14px 16px; border-radius: 10px;
	background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.22);
	color: var(--muted); font-size: 13px; line-height: 1.6; text-align: left;
}

.gen-again { margin-top: 26px; font-size: 14px; }
.gen-again a { color: var(--muted); text-decoration: none; }
.gen-again a:hover { color: var(--accent2); }

/* ─── CTA ─── */
.gen-cta {
	max-width: 780px; margin: 64px auto 0; padding: 34px 30px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
}
.gen-cta h2 { font-family: 'Syne', system-ui, sans-serif; font-size: 24px; margin: 0 0 10px; text-align: center; }
.gen-cta__sub { color: var(--muted); line-height: 1.6; margin: 0 0 26px; text-align: center; }

.gen-cta__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.gen-cta__item { padding: 16px 18px; border-radius: 11px; background: var(--bg); border: 1px solid var(--border); }
.gen-cta__item h3 { font-size: 15px; margin: 0 0 6px; }
.gen-cta__item p  { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }

.gen-cta__actions  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 18px; }
.gen-cta__contacts { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 13.5px; }
.gen-cta__contacts a { color: var(--muted); text-decoration: none; }
.gen-cta__contacts a:hover { color: var(--accent2); }

@media (max-width: 600px) {
	.gen-wrap  { padding-top: 32px; }
	.gen-step  { padding: 20px 17px; }
	.gen-step__sub { padding-left: 0; }
	.gen-cta   { padding: 26px 20px; }
	.gen-submit-row .gen-btn { width: 100%; }
}
