/* =======================================================
   main_content.css
   База конструктора контента + структурные модули лендинга
   Без цветов темы и декоративного оформления

   В этом файле:
   - локальный reset внутри .content
   - базовая типографика
   - секции, блоки, строки, колонки
   - кнопки, формы, карточки, списки
   - структурная геометрия landing-секторов
   - HERO-логика первого экрана
   - INSTALL-раскладка и INSTALL-медиа-блок

   В этом файле НЕТ:
   - dark/light цветов
   - декоративных фонов
   - визуального оформления карточек и медиа
   - shell-логики header/footer
======================================================= */

:root {
	--content-container: 1120px;
	--content-pad: 16px;

	--content-radius: 18px;

	--content-h1: clamp(24px, 4.6vw, 38px);
	--content-h2: clamp(22px, 4.5vw, 30px);
	--content-h3: clamp(18px, 3.8vw, 22px);
	--content-p: 16px;
}


/* =======================================================
   [01] ЛОКАЛЬНЫЙ RESET ВНУТРИ .content
======================================================= */

.content,
.content * {
	box-sizing: border-box;
}

.content img,
.content svg,
.content video {
	display: block;
	max-width: 100%;
	height: auto;
}

.content a {
	text-decoration: none;
}

.content ul,
.content ol {
	margin: 0;
	padding: 0;
}

.content button,
.content input,
.content textarea,
.content select {
	font: inherit;
}

.content iframe {
	display: block;
	max-width: 100%;
	border: 0;
}


/* =======================================================
   [02] БАЗОВАЯ ТИПОГРАФИКА
======================================================= */

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
	margin: 0 0 16px;
	line-height: 1.2;
	font-weight: 700;
}

.content h1 {
	font-size: 32px;
}

.content h2 {
	font-size: 28px;
}

.content h3 {
	font-size: 22px;
}

.content h4 {
	font-size: 20px;
}

.content h5 {
	font-size: 18px;
}

.content h6 {
	font-size: 16px;
}

.content p {
	margin: 0 0 16px;
	line-height: 1.5;
	font-size: var(--content-p);
}

.content small {
	font-size: 14px;
	line-height: 1.4;
}

.content strong {
	font-weight: 700;
}

.content em {
	font-style: italic;
}

.content p:last-child,
.content h1:last-child,
.content h2:last-child,
.content h3:last-child,
.content h4:last-child,
.content h5:last-child,
.content h6:last-child,
.content ul:last-child,
.content ol:last-child,
.content blockquote:last-child {
	margin-bottom: 0;
}


/* =======================================================
   [03] СПИСКИ
======================================================= */

.content ul,
.content ol {
	margin-bottom: 16px;
	padding-left: 20px;
}

.content li {
	margin-bottom: 8px;
}

.content li:last-child {
	margin-bottom: 0;
}


/* =======================================================
   [04] ЦИТАТЫ И РАЗДЕЛИТЕЛИ
======================================================= */

.content blockquote {
	margin: 0 0 16px;
	padding: 16px 20px;
}

.content hr {
	width: 100%;
	margin: 0;
	border: 0;
	border-top-width: 1px;
	border-top-style: solid;
}


/* =======================================================
   [05] БАЗОВЫЕ СЕКЦИИ КОНСТРУКТОРА
======================================================= */

.content > .main_section,
.content .main_section {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 32px 0;
}


/* =======================================================
   [06] БАЗОВЫЕ БЛОКИ
======================================================= */

.main_block {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.main_block + .main_block {
	margin-top: 24px;
}


/* =======================================================
   [07] СТРОКИ И КОЛОНКИ
======================================================= */

.main_row {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.main_col {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}


/* =======================================================
   [08] ГОТОВЫЕ РАЗРЫВЫ
======================================================= */

.main_gap-8  { gap: 8px; }
.main_gap-16 { gap: 16px; }
.main_gap-24 { gap: 24px; }
.main_gap-32 { gap: 32px; }
.main_gap-48 { gap: 48px; }


/* =======================================================
   [09] ТЕКСТОВЫЕ БЛОКИ
======================================================= */

.main_text {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.main_text-left   { text-align: left; }
.main_text-center { text-align: center; }
.main_text-right  { text-align: right; }


/* =======================================================
   [10] СЛУЖЕБНЫЕ ШИРИНЫ
======================================================= */

.main_width-narrow { width: 100%; max-width: 760px; }
.main_width-text   { width: 100%; max-width: 680px; }
.main_width-full   { width: 100%; max-width: 100%; }


/* =======================================================
   [11] ВЫРАВНИВАНИЕ
======================================================= */

.main_align-start  { align-items: flex-start; }
.main_align-center { align-items: center; }
.main_align-end    { align-items: flex-end; }

.main_justify-start   { justify-content: flex-start; }
.main_justify-center  { justify-content: center; }
.main_justify-end     { justify-content: flex-end; }
.main_justify-between { justify-content: space-between; }


/* =======================================================
   [12] КНОПКИ
======================================================= */

.main_buttons {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.main_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-width: 1px;
	border-style: solid;
	cursor: pointer;
	text-align: center;
}

.main_button-full   { width: 100%; }
.main_button-center { align-self: center; }


/* =======================================================
   [13] МЕДИА-БЛОКИ
======================================================= */

.main_media {
	display: flex;
	width: 100%;
	overflow: hidden;
}

.main_media img,
.main_media video,
.main_media iframe {
	width: 100%;
}

.main_media-cover img,
.main_media-cover video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.main_media-contain img,
.main_media-contain video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}


/* =======================================================
   [14] КАРТОЧКИ
======================================================= */

.main_cards {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.main_card {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 20px;
}

.main_card-title {
	margin-bottom: 12px;
}

.main_card-text {
	display: flex;
	flex-direction: column;
}


/* =======================================================
   [15] СПИСКИ ПРЕИМУЩЕСТВ / ПУНКТОВ
======================================================= */

.main_list {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.main_list-item {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.main_list-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.main_list-content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}


/* =======================================================
   [16] РАЗДЕЛИТЕЛИ И ПРОСТАВКИ
======================================================= */

.main_divider { width: 100%; height: 1px; }

.main_spacer-16 { height: 16px; }
.main_spacer-24 { height: 24px; }
.main_spacer-32 { height: 32px; }
.main_spacer-48 { height: 48px; }


/* =======================================================
   [17] ФОРМЫ
======================================================= */

.main_form {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.main_form-row {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.main_label {
	display: inline-flex;
	margin-bottom: 8px;
}

.main_input,
.main_textarea,
.main_select {
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border-width: 1px;
	border-style: solid;
}

.main_textarea {
	min-height: 120px;
	padding-top: 12px;
	padding-bottom: 12px;
	resize: vertical;
}


/* =======================================================
   [18] ГОТОВЫЕ ПРОПОРЦИИ КОЛОНОК
======================================================= */

.main_col-25,
.main_col-33,
.main_col-40,
.main_col-50,
.main_col-60,
.main_col-66,
.main_col-75 {
	width: 100%;
}


/* =======================================================
   [19] ВНЕШНИЕ ОТСТУПЫ
======================================================= */

.main_mt-0  { margin-top: 0; }
.main_mt-8  { margin-top: 8px; }
.main_mt-16 { margin-top: 16px; }
.main_mt-24 { margin-top: 24px; }
.main_mt-32 { margin-top: 32px; }
.main_mt-48 { margin-top: 48px; }

.main_mb-0  { margin-bottom: 0; }
.main_mb-8  { margin-bottom: 8px; }
.main_mb-16 { margin-bottom: 16px; }
.main_mb-24 { margin-bottom: 24px; }
.main_mb-32 { margin-bottom: 32px; }
.main_mb-48 { margin-bottom: 48px; }


/* =======================================================
   [20] ВНУТРЕННИЕ ОТСТУПЫ
======================================================= */

.main_pt-0  { padding-top: 0; }
.main_pt-8  { padding-top: 8px; }
.main_pt-16 { padding-top: 16px; }
.main_pt-24 { padding-top: 24px; }
.main_pt-32 { padding-top: 32px; }
.main_pt-48 { padding-top: 48px; }

.main_pb-0  { padding-bottom: 0; }
.main_pb-8  { padding-bottom: 8px; }
.main_pb-16 { padding-bottom: 16px; }
.main_pb-24 { padding-bottom: 24px; }
.main_pb-32 { padding-bottom: 32px; }
.main_pb-48 { padding-bottom: 48px; }


/* =======================================================
   [21] СТРУКТУРНЫЕ МОДУЛИ ПОСАДОЧНОЙ
   Здесь только геометрия и компоновка
======================================================= */

.container,
.main_container {
	width: min(var(--content-container), 100%);
	margin: 0 auto;
	padding: 0 var(--content-pad);
}

.content > section:not(.main_section) {
	padding: 18px 0;
}


/* =======================================================
   [21A] HERO

   Логика:
   - mobile:
     [ hero-title-card ]
     [ hero-media-card ]
     [ hero-text-card ]

   - desktop:
     [ hero-title-card ]   [ hero-media-card ]
     [ hero-text-card  ]   [ hero-media-card ]
======================================================= */

.hero,
.main_hero {
	padding: 22px 0 10px;
}

.hero-layout,
.main_hero-layout {
	display: grid;
	gap: 12px;
}

.hero-title-card,
.hero-text-card,
.hero-media-card,
.main_hero-title-card,
.main_hero-text-card,
.main_hero-media-card {
	border-radius: var(--content-radius);
	overflow: hidden;
}

.hero-title-card,
.hero-text-card,
.main_hero-title-card,
.main_hero-text-card {
	padding: 18px;
}

.hero-title-card,
.main_hero-title-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.hero-text-card,
.main_hero-text-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.badge,
.main_badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border-radius: 999px;
	width: fit-content;
}

.lead,
.main_lead {
	margin: 0;
	font-size: 16px;
	max-width: 68ch;
}

.quickfacts,
.main_quickfacts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 4px;
}

.fact,
.main_fact {
	padding: 10px 12px;
	border-radius: 14px;
}

.fact strong,
.main_fact strong {
	display: block;
	font-size: 14px;
}

.fact span,
.main_fact span {
	display: block;
	font-size: 12px;
}

.hero-cta,
.main_hero-cta {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.hero-search,
.main_hero-search {
	margin: 0;
}


/* =======================================================
   [21B] HERO-МЕДИА

   Пока:
   - квадратная картинка в вертикальном контейнере

   Позже:
   - сюда можно поставить видео без смены внешней структуры

   Логика:
   - изображение заполняет блок по высоте
   - лишнее по краям обрезается
======================================================= */

.hero-media,
.main_hero-media {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 420px;
	overflow: hidden;
}

.hero-media_item,
.main_hero-media_item {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.hero-media .pill,
.main_hero-media .pill,
.main_hero-media-pill {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	z-index: 2;
}

.hero-media small,
.main_hero-media small,
.main_hero-media-note {
	position: absolute;
	bottom: 12px;
	left: 12px;
	right: 12px;
	font-size: 12px;
	z-index: 2;
}


/* =======================================================
   [21C] INSTALL-РАСКЛАДКА

   Сектор Install повторяет пропорции Hero:
   - слева текстовая карточка шире
   - справа медиа-карточка уже
======================================================= */

.install-grid,
.main_install-grid {
	display: grid;
	gap: 12px;
}


/* =======================================================
   [21D] INSTALL-МЕДИА

   Правая карточка сектора Install:
   - сейчас фото
   - позже можно заменить на видео

   Логика:
   - содержимое заполняет блок по высоте
   - лишнее по краям обрезается
======================================================= */

.install-media-card,
.main_install-media-card {
	overflow: hidden;
}

.install-media,
.main_install-media {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 420px;
	overflow: hidden;
	border-radius: inherit;
}

.install-media_item,
.main_install-media_item {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

.install-media .pill,
.main_install-media .pill,
.main_install-media-pill {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	z-index: 2;
}

.install-media small,
.main_install-media small,
.main_install-media-note {
	position: absolute;
	bottom: 12px;
	left: 12px;
	right: 12px;
	font-size: 12px;
	z-index: 2;
}


/* =======================================================
   [21E] ОБЩИЕ КОНТЕНТНЫЕ ПАНЕЛИ И БЛОКИ
======================================================= */

.section-card,
.main_panel {
	border-radius: var(--content-radius);
	padding: 16px;
}

.grid,
.main_grid {
	display: grid;
	gap: 12px;
}

.cards,
.main_cards-grid {
	display: grid;
	gap: 10px;
}

.card,
.main_tile {
	padding: 14px;
	border-radius: 16px;
}

.card b,
.main_tile b {
	display: block;
	margin-bottom: 6px;
}

.list,
.main_list-plain {
	margin: 0;
	padding-left: 18px;
}

.list li,
.main_list-plain li {
	margin: 6px 0;
}

.kvs,
.main_kvs {
	display: grid;
	gap: 10px;
}

.kv,
.main_kv {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
}

.content details,
.main_faq-item {
	border-radius: 16px;
	padding: 10px 12px;
}

.content details + details,
.main_faq-item + .main_faq-item {
	margin-top: 10px;
}

.content summary,
.main_faq-title {
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	font-weight: 700;
}

.content summary::-webkit-details-marker,
.main_faq-title::-webkit-details-marker {
	display: none;
}

.content summary .chev,
.main_faq-chev {
	transition: transform .2s ease;
}

.content details[open] summary .chev,
.main_faq-item[open] .main_faq-chev {
	transform: rotate(180deg);
}

.form-actions,
.main_form-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.anchor,
.main_anchor {
	scroll-margin-top: 84px;
}


/* =======================================================
   [22] DESKTOP-УСИЛЕНИЕ
======================================================= */

@media (min-width: 860px) {
	:root {
		--content-pad: 22px;
	}

	.hero-layout,
	.main_hero-layout {
		grid-template-columns: 1.25fr .95fr;
		align-items: stretch;
	}

	.hero-title-card,
	.main_hero-title-card {
		grid-column: 1;
		grid-row: 1;
	}

	.hero-media-card,
	.main_hero-media-card {
		grid-column: 2;
		grid-row: 1 / span 2;
		min-height: 100%;
	}

	.hero-text-card,
	.main_hero-text-card {
		grid-column: 1;
		grid-row: 2;
	}

	.hero-title-card,
	.hero-text-card,
	.main_hero-title-card,
	.main_hero-text-card {
		padding: 22px;
	}

	.hero-media,
	.main_hero-media {
		min-height: 100%;
	}

	.grid.two.install-grid,
	.main_grid-2.main_install-grid {
		grid-template-columns: 1.25fr .95fr;
		align-items: stretch;
	}

	.install-media,
	.main_install-media {
		min-height: 100%;
	}

	.grid.two,
	.main_grid-2 {
		grid-template-columns: 1fr 1fr;
	}

	.cards.two,
	.main_cards-2 {
		grid-template-columns: 1fr 1fr;
	}

	.cards.three,
	.main_cards-3 {
		grid-template-columns: 1fr 1fr 1fr;
	}
}

@media (min-width: 1000px) {
	.content h1 {
		font-size: 40px;
	}

	.content h2 {
		font-size: 32px;
	}

	.content h3 {
		font-size: 24px;
	}

	.content > .main_section,
	.content .main_section {
		padding: 48px 0;
	}

	.main_row {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.main_col {
		flex: 1 1 0;
	}

	.main_buttons {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.main_col-25 { width: 25%; }
	.main_col-33 { width: 33.3333%; }
	.main_col-40 { width: 40%; }
	.main_col-50 { width: 50%; }
	.main_col-60 { width: 60%; }
	.main_col-66 { width: 66.6666%; }
	.main_col-75 { width: 75%; }
}