/**
 * Страница «Предложить плагин» (/offer-a-plugin/, классы .sg*).
 * Минималистичный дизайн-код SoundRoom: только чёрный #15171C, синий #4C9BFF, серые и белый.
 * Без градиентов и декоративных элементов. Unbounded капсом в заголовках, Inter в тексте.
 * Шкала отступов: 8 / 12 / 16 / 24 / 32 / 48 / 96 (мобильные секции — 64).
 */
body.sr-sg-page { background: #fff !important; }
.sg { --sg-line: #E6E8EC; --sg-soft: #F7F8FA; --sg-muted: #6B7280; --sg-field: #858C99; --sg-err: #DC2626; --sg-ease: cubic-bezier(.22, 1, .36, 1); padding: 20px 0 96px; color: var(--c-text); overflow-x: clip; }
.sg p, .sg h1, .sg h2, .sg h3 { margin: 0; }
.sg ul, .sg ol { margin: 0; padding: 0; list-style: none; }
.sg li { margin: 0; }
.sg li::before { content: none !important; }
.sg [hidden] { display: none !important; }

/* --- Кнопка --- */
.sg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border: 0; border-radius: 14px; background: var(--c-accent); color: #fff !important; font-size: 16px; font-weight: 600; text-decoration: none !important; cursor: pointer; transition: background-color .2s ease; }
.sg-btn:hover { background: var(--c-primary-dark); }
.sg-btn svg { flex: 0 0 auto; transition: transform .3s var(--sg-ease); }
.sg-btn:hover svg { transform: translateX(3px); }
.sg-btn:focus-visible { outline: 2px solid var(--c-text); outline-offset: 2px; }
.sg-btn[disabled] { opacity: .7; cursor: progress; }
.sg-btn--wide { width: 100%; }

.sg-h2 { margin-bottom: 32px !important; font-family: var(--font-heading); font-weight: 800; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -0.035em; text-transform: uppercase; color: var(--c-text); }
.sg-sec { margin-top: 96px; }

/* --- Первый экран --- */
.sg__crumbs { margin-bottom: 32px; }
.sg-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 64px; align-items: start; }
.sg-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; min-width: 0; }
.sg-hero__title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(34px, 4.6vw, 60px); line-height: .98; letter-spacing: -0.04em; text-transform: uppercase; color: var(--c-text); }
.sg-hero__title span { display: block; color: var(--c-accent); }
.sg-hero__lead { max-width: 480px; font-size: 18px; line-height: 1.55; color: var(--sg-muted); }
.sg .sg-points { display: grid; gap: 12px; width: 100%; max-width: 480px; padding-top: 24px; border-top: 1px solid var(--sg-line); }
.sg-points li { display: flex; align-items: center; gap: 12px; font-size: 16px; line-height: 1.4; color: var(--c-text); }
.sg-points__ic { flex: 0 0 auto; color: var(--c-accent); }

/* --- Форма --- */
.sg-stage { min-width: 0; }
.sg-card { border: 1px solid var(--sg-line); border-radius: 24px; background: #fff; scroll-margin-top: 100px; }
.sg-form, .sg-done { padding: 32px; }
.sg-form { display: flex; flex-direction: column; gap: 20px; }
.sg-card__title { font-family: var(--font-heading); font-weight: 800; font-size: 22px; line-height: 1.15; letter-spacing: -0.03em; text-transform: uppercase; }
.sg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sg-field { display: flex; flex-direction: column; gap: 8px; }
.sg-field__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14.5px; font-weight: 600; color: var(--c-text); }
.sg-field__opt { font-size: 13px; font-weight: 500; color: var(--sg-muted); }
.sg-field__box { position: relative; }
.sg-field__icon { position: absolute; left: 16px; top: 50%; display: flex; color: var(--sg-muted); transform: translateY(-50%); pointer-events: none; transition: color .2s ease; }
.sg-field__input { width: 100%; height: 56px; padding: 0 18px 0 48px; border: 1px solid var(--sg-field); border-radius: 14px; background: #fff; font-size: 16px; color: var(--c-text); transition: border-color .2s ease; }
.sg-field__input::placeholder { color: #9AA1AC; }
.sg-field__input:hover { border-color: var(--c-text); }
.sg-field__input:focus { outline: none; border-color: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-accent); }
.sg-field__box:focus-within .sg-field__icon { color: var(--c-accent); }
.sg-field.is-invalid .sg-field__input { border-color: var(--sg-err); box-shadow: inset 0 0 0 1px var(--sg-err); }
.sg-field.is-invalid .sg-field__icon { color: var(--sg-err); }
.sg-field__error, .sg-form__error { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.4; color: var(--sg-err); }
.sg-field__error svg, .sg-form__error svg { flex: 0 0 auto; margin-top: 1px; }
.sg-form .sg-btn { margin-top: 4px; }
.sg-form__note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: -8px !important; font-size: 13.5px; color: var(--sg-muted); }

/* --- Подсказка «Похожее в каталоге» --- */
.sg-found { margin-top: 4px; border: 1px solid var(--sg-line); border-radius: 14px; overflow: hidden; }
.sg-found__title { margin: 0 !important; padding: 10px 14px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sg-muted); background: var(--sg-soft); }
.sg-found__list { display: grid; }
.sg-found__list li + li { border-top: 1px solid var(--sg-line); }
.sg-found__item { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; color: var(--c-text) !important; text-decoration: none !important; transition: background-color .2s ease; }
.sg-found__item:hover { background: var(--sg-soft); }
.sg-found__img { flex: 0 0 auto; width: 44px; height: 33px; border-radius: 8px; background: var(--sg-line); object-fit: cover; }
.sg-found__name { flex: 1 1 auto; min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-found__price { flex: 0 0 auto; font-size: 14.5px; font-weight: 700; color: var(--c-text); }

/* --- Успех --- */
.sg-done { display: flex; flex-direction: column; align-items: flex-start; }
.sg-done__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 16px; background: var(--c-accent); color: #fff; }
.sg-done .sg-card__title { margin-bottom: 8px !important; }
.sg-done__text { margin-bottom: 24px !important; font-size: 16px; line-height: 1.55; color: var(--sg-muted); }
.sg-done__product { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--sg-line); border-radius: 14px; color: var(--sg-muted) !important; font-size: 14px; text-decoration: none !important; transition: border-color .2s ease; }
.sg-done__product strong { font-size: 16px; color: var(--c-text); }
.sg-done__product:hover { border-color: var(--c-accent); }
.sg-done__product:hover strong { color: var(--c-accent); }

/* --- Шаги (как были) --- */
.sg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sg-steps li { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 26px; border: 1px solid var(--sg-line); border-radius: 24px; background: #fff; transition: border-color .25s ease, transform .5s var(--sg-ease), box-shadow .5s var(--sg-ease); }
.sg-steps li:hover { border-color: #CBD2DB; transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgba(15, 23, 42, .4); }
.sg-steps__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 14px; border-radius: 18px; background: var(--c-accent); color: #fff; box-shadow: 0 12px 26px -12px rgba(26, 95, 204, .7); }
.sg-steps__n { position: absolute; right: 26px; top: 26px; font-family: var(--font-heading); font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: #C3C8D0; }
.sg-steps h3 { font-family: var(--font-heading); font-size: 20px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; text-transform: uppercase; }
.sg-steps p { font-size: 15px; line-height: 1.55; color: var(--sg-muted); }

/* --- Вопросы --- */
.sg-faq { display: grid; gap: 12px; max-width: 880px; }
.sg-faq__item { border: 1px solid var(--sg-line); border-radius: 18px; background: #fff; transition: border-color .2s ease; }
.sg-faq__item:hover { border-color: #CBD2DB; }
.sg-faq__item[open] { border-color: #C9CED6; }
.sg-faq__item summary { position: relative; padding: 20px 60px 20px 24px; font-size: 16.5px; font-weight: 600; line-height: 1.4; cursor: pointer; list-style: none; }
.sg-faq__item summary::-webkit-details-marker { display: none; }
.sg-faq__plus { position: absolute; right: 24px; top: 50%; width: 14px; height: 14px; margin-top: -7px; transition: transform .25s ease; }
.sg-faq__plus::before, .sg-faq__plus::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--c-text); }
.sg-faq__plus::after { transform: rotate(90deg); }
.sg-faq__item[open] .sg-faq__plus { transform: rotate(45deg); }
.sg-faq__item p { padding: 0 24px 24px; font-size: 15.5px; line-height: 1.65; color: #4B5563; }

/* --- Лента товаров --- */
.sg-shelf__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.sg-shelf__head .sg-h2 { max-width: 640px; margin-bottom: 0 !important; }
.sg-shelf__all { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; color: var(--c-accent) !important; font-size: 16px; font-weight: 600; text-decoration: none !important; }
.sg-shelf__all svg { transition: transform .3s var(--sg-ease); }
.sg-shelf__all:hover svg { transform: translateX(3px); }

.sg-marquee { position: relative; overflow: hidden; margin: -8px 0; padding: 8px 0; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.sg-marquee__track { display: flex; width: max-content; animation: sg-marquee 60s linear infinite; }
.sg-marquee:hover .sg-marquee__track, .sg-marquee:focus-within .sg-marquee__track { animation-play-state: paused; }
@keyframes sg-marquee { to { transform: translateX(-50%); } }
.sg-marquee__list { display: flex; gap: 16px; padding-right: 16px; }
.sg-prod { display: flex; flex-direction: column; width: 260px; padding: 10px 10px 16px; border: 1px solid var(--sg-line); border-radius: 22px; background: #fff; color: var(--c-text) !important; text-decoration: none !important; transition: border-color .25s ease, transform .5s var(--sg-ease), box-shadow .5s var(--sg-ease); }
.sg-prod:hover { border-color: #CBD2DB; transform: translateY(-4px); box-shadow: 0 24px 44px -30px rgba(15, 23, 42, .45); }
.sg-prod__img { display: block; aspect-ratio: 4 / 3; margin-bottom: 14px; border-radius: 14px; background: var(--sg-soft); overflow: hidden; }
.sg-prod__img img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.sg-prod__name { display: -webkit-box; min-height: 2.6em; padding: 0 6px; font-size: 15px; font-weight: 600; line-height: 1.3; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sg-prod__price { margin-top: 8px; padding: 0 6px; font-family: var(--font-heading); font-size: 17px; font-weight: 800; letter-spacing: -0.03em; color: var(--c-text); }
.sg-shelf__btn { display: none; }

@media (max-width: 1100px) {
	.sg-hero { gap: 48px; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); }
}
@media (max-width: 900px) {
	.sg { padding-bottom: 64px; }
	.sg__crumbs { margin-bottom: 20px; }
	.sg-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.sg-hero__text { gap: 16px; }
	.sg-hero__title { font-size: 32px; }
	.sg-hero__lead { font-size: 16px; }
	.sg-points { display: none; }
	.sg-card { border-radius: 20px; }
	.sg-form, .sg-done { padding: 20px; }
	.sg-form { gap: 18px; }
	.sg-card__title { font-size: 19px; }
	.sg-form .sg-card__title { display: none; }
	.sg-sec { margin-top: 64px; }
	.sg-h2 { margin-bottom: 24px !important; }
	.sg-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.sg-steps li { padding: 22px; }
	.sg-steps__icon { width: 56px; height: 56px; margin-bottom: 6px; }
	.sg-faq__item summary { font-size: 15.5px; padding: 18px 52px 18px 18px; }
	.sg-faq__plus { right: 18px; }
	.sg-faq__item p { padding: 0 18px 18px; font-size: 15px; }
	.sg-shelf__all { display: none; }
	.sg-marquee__track { animation-duration: 45s; }
	.sg-marquee__list { gap: 12px; padding-right: 12px; }
	.sg-prod { width: 200px; border-radius: 18px; }
	.sg-prod__name { font-size: 14px; }
	.sg-prod__price { font-size: 16px; }
	.sg-shelf__head { margin-bottom: 24px; }
	.sg-shelf__btn { display: flex; width: 100%; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.sg-btn, .sg-btn svg, .sg-steps li, .sg-found__item, .sg-prod { transition: none; }
	.sg-marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; }
	.sg-marquee__track { animation: none; padding: 0 16px; }
	.sg-marquee__list[aria-hidden="true"] { display: none; }
}
