/*
 * Лендинг «РЭМ Витол». Геометрия и цвета блоков — инлайн-стилями в партиалах, 1:1
 * с макетом Claude Design (materials/sog, README макета). Здесь — только то, что
 * инлайном не выразить: базовые правила, hover/focus, адаптив шапки, состояния
 * слайд-шоу, формы и лайтбокса. Hover-правила с !important, потому что перебивают
 * инлайн-стиль элемента.
 */

html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: #f3f1ec;
	color: #0d1823;
	font-family: 'Onest', system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
a { color: #1d5bb8; text-decoration: none; }
a:hover { color: #c46f1c; }
input, textarea, select, button { font-family: inherit; }
input[type=range] { accent-color: #e08a2e; }
::selection { background: #e08a2e; color: #0d1823; }
:focus-visible { outline: 2px solid #e08a2e; outline-offset: 2px; }

/* --- hover / focus --- */
.sog-nav a:hover { color: #fff !important; }
.sog-btn-accent:hover { background: #f09b3e !important; color: #0d1823 !important; }
.sog-btn-glass:hover { background: rgba(255,255,255,0.16) !important; color: #fff !important; }
.sog-link-light:hover { color: #f0b170 !important; }
.sog-link-doc:hover { color: #c46f1c !important; }
.sog-chip:hover { border-color: #0d1823 !important; }
.sog-btn-dark:hover { background: #0f3a6e !important; color: #fff !important; }
.sog-volume:focus-within { border-color: #0f3a6e !important; }
.sog-input:focus { border-color: #e08a2e !important; }
.sog-input.is-invalid { border-color: #e0574a !important; }

/* --- шапка: меню и телефон прячутся на узких экранах, «Запросить КП» видна всегда --- */
@media (max-width: 900px) { .sog-nav { display: none !important; } }
@media (max-width: 560px) { .sog-header-phone { display: none !important; } }

/* --- hero: слайд-шоу --- */
.sog-hero-slide { opacity: 0; transition: opacity 1.8s ease-in-out; }
.sog-hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.sog-hero-slide { transition: none; }
}

/* --- форма --- */
.sog-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sog-form select option { color: #0d1823; background: #fff; }
.sog-form button[disabled] { opacity: 0.7; cursor: progress !important; }
.sog-form-error { display: none; margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(224,87,74,0.12); border: 1px solid rgba(224,87,74,0.5); color: #ffb4ab; font-size: 14px; line-height: 1.5; }
.sog-form-error.is-shown { display: block; }
.sog-consent a { color: #c3cfdb; text-decoration: underline; text-underline-offset: 2px; }
.sog-consent a:hover { color: #f0b170; }
[hidden] { display: none !important; }

/* --- лайтбокс письма --- */
.sog-lightbox[hidden] { display: none !important; }

/* --- калькулятор: поле числа без стрелок --- */
.sog-volume input::-webkit-outer-spin-button,
.sog-volume input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sog-volume input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* --- кнопка «Наверх»: появляется после первого экрана; над cookie-баннером, пока он виден --- */
.sog-to-top {
	position: fixed; right: 20px; bottom: calc(20px + var(--sog-cookies-h, 0px)); z-index: 40;
	width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.14);
	background: rgba(13,24,35,0.92); color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 30px rgba(13,24,35,0.25);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	opacity: 0; visibility: hidden; transform: translateY(12px);
	transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background .2s ease, bottom .25s ease;
}
.sog-to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sog-to-top:hover { background: #e08a2e; color: #0d1823; border-color: #e08a2e; }
@media (max-width: 560px) { .sog-to-top { right: 16px; width: 44px; height: 44px; } }

/* --- cookie-баннер (как laifl-cookies на laiftrans, в палитре лендинга) --- */
.sog-cookies {
	position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 45; margin: 0 auto; max-width: 680px; box-sizing: border-box;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 18px;
	background: #152230; border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 16px 20px;
	box-shadow: 0 24px 60px rgba(5,9,13,0.4); color: #c3cfdb;
	animation: sog-pop .35s ease;
}
.sog-cookies p { flex: 1 1 300px; margin: 0; font-size: 14px; line-height: 1.5; }
.sog-cookies a { color: #f0b170; font-weight: 600; }
.sog-cookies a:hover { color: #fff; }
.sog-cookies button { flex: 0 0 auto; background: #e08a2e; color: #0d1823; border: none; border-radius: 10px; padding: 10px 18px; font-weight: 600; font-size: 14px; cursor: pointer; }
@media (max-width: 560px) { .sog-cookies { left: 12px; right: 12px; bottom: 12px; } }
@keyframes sog-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sog-cookies { animation: none; } .sog-to-top { transition: none; } }

/* --- 404 --- */
.sog-404 { min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 24px; max-width: 1200px; margin: 0 auto; padding: 48px 24px; box-sizing: border-box; }
