/*
Лендинг «Ресурсный календарь для Битрикс24»
Дизайн-система: тёплый экспертный SaaS (Кухня маркетолога)
Единственный подключаемый CSS-файл страницы.
*/

@import url('https://fonts.googleapis.com/css2?family=Golos+Display:wght@500;700;800&family=Onest:wght@400;500;600&display=swap');

:root {
	/* Цвета */
	--cream: #FAF5EE;
	--cream-deep: #F3EADD;
	--white: #FFFFFF;
	--chocolate: #2E1E12;
	--cocoa: #6B584A;
	--cyan: #2FC6F6;
	--cyan-deep: #0FA8DC;
	--orange: #FF9E2C;
	--sand: #E8DCCB;
	--leaf: #5BBF6A;
	--choco-dark: #3B2A1C;
	--cream-on-dark: #FAF5EE;
	--cocoa-on-dark: #C9B7A3;
	--sand-on-dark: #5A4633;

	/* Типографика */
	--font-display: 'Golos Display', 'Manrope', sans-serif;
	--font-body: 'Onest', 'Golos Text', sans-serif;

	/* Радиусы */
	--r-card: 16px;
	--r-btn: 12px;

	/* Тени */
	--shadow-card: 0 1px 2px rgba(46, 30, 18, .06), 0 8px 24px rgba(46, 30, 18, .07);
	--shadow-pop: 0 2px 4px rgba(46, 30, 18, .08), 0 16px 40px rgba(46, 30, 18, .12);
}

/* ---------- База ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--chocolate);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.demo-modal-open,
body.nav-open {
	overflow: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--cyan-deep);
	text-decoration: none;
	transition: color 160ms ease;
}

a:hover {
	color: var(--cyan-deep);
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--chocolate);
	margin: 0 0 16px;
}

h1 {
	font-size: 64px;
	line-height: 1.05;
	font-weight: 800;
	letter-spacing: -0.02em;
}

h2 {
	font-size: 44px;
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.015em;
}

h3 {
	font-size: 22px;
	line-height: 1.25;
	font-weight: 700;
}

p {
	margin: 0 0 16px;
	color: var(--cocoa);
}

.lead {
	font-size: 19px;
	line-height: 1.55;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
}

.section {
	padding: 96px 0;
}

.section--deep {
	background: var(--cream-deep);
}

section[id] {
	scroll-margin-top: 80px;
}

/* Маркерное подчёркивание — единственное допустимое место с linear-gradient */
.marker {
	background: linear-gradient(transparent 60%, rgba(47, 198, 246, .45) 60%);
}

.marker--dark {
	background: linear-gradient(transparent 60%, rgba(47, 198, 246, .35) 60%);
}

/* ---------- Кнопки ---------- */

.btn {
	display: inline-block;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	letter-spacing: 0.01em;
	padding: 16px 28px;
	border-radius: var(--r-btn);
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.btn-primary {
	background: var(--cyan);
	color: var(--chocolate);
}

.btn-primary:hover {
	background: var(--cyan-deep);
	color: var(--white);
	transform: translateY(-1px);
}

.btn-secondary {
	background: transparent;
	border-color: var(--chocolate);
	color: var(--chocolate);
}

.btn-secondary:hover {
	background: var(--chocolate);
	color: var(--cream);
}

.btn-secondary--light {
	border-color: var(--cream-on-dark);
	color: var(--cream-on-dark);
}

.btn-secondary--light:hover {
	background: var(--cream-on-dark);
	color: var(--chocolate);
}

.btn-small {
	padding: 10px 20px;
	font-size: 15px;
}

/* ---------- Шапка ---------- */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	transition: background-color 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	background: rgba(250, 245, 238, .9);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom-color: var(--sand);
}

.site-header .container {
	display: flex;
	align-items: center;
	gap: 32px;
	height: 72px;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-right: auto;
}

.logo:hover {
	color: var(--chocolate);
}

.logo-mark {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--cyan);
	color: var(--chocolate);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 15px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.logo-text {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 18px;
	color: var(--chocolate);
	white-space: nowrap;
}

.site-header:not(.is-scrolled):not(.is-open) .logo-text {
	color: var(--cream-on-dark);
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 24px;
}

.main-nav a.nav-link {
	font-size: 15px;
	font-weight: 500;
	color: var(--chocolate);
}

.main-nav a.nav-link:hover {
	color: var(--cyan-deep);
}

.site-header:not(.is-scrolled):not(.is-open) .main-nav a.nav-link {
	color: var(--cream-on-dark);
}

.site-header:not(.is-scrolled):not(.is-open) .main-nav a.nav-link:hover {
	color: var(--cyan);
}

.nav-burger {
	display: none;
	width: 44px;
	height: 44px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 8px;
	color: var(--chocolate);
}

.site-header:not(.is-scrolled):not(.is-open) .nav-burger {
	color: var(--cream-on-dark);
}

.nav-burger svg {
	display: block;
	width: 28px;
	height: 28px;
}

.nav-burger .icon-close {
	display: none;
}

.site-header.is-open .nav-burger .icon-menu {
	display: none;
}

.site-header.is-open .nav-burger .icon-close {
	display: block;
}

/* ---------- Hero ---------- */

.hero {
	background: var(--choco-dark);
	padding: 168px 0 96px;
}

.hero-grid {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: 48px;
	align-items: center;
}

.hero-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--cocoa-on-dark);
	margin: 0 0 24px;
}

.hero-eyebrow .dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cyan);
	flex: none;
}

.hero h1 {
	color: var(--cream-on-dark);
}

.hero .lead {
	color: var(--cocoa-on-dark);
	max-width: 480px;
	margin-bottom: 32px;
}

.hero-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* Плоская «оконная» карточка со скриншотом */
.window-card {
	background: var(--white);
	border-radius: 20px;
	box-shadow: var(--shadow-pop);
	overflow: hidden;
}

.window-card-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--cream-deep);
	padding: 12px 16px;
}

.window-card-bar .dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #D8CDBB;
}

.window-card img {
	width: 100%;
}

/* ---------- Заголовки секций ---------- */

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px 32px;
	margin-bottom: 48px;
}

.section-head h2 {
	margin-bottom: 0;
}

.section-head .lead {
	margin: 8px 0 0;
}

.section-no {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cyan-deep);
	white-space: nowrap;
}

/* ---------- Возможности ---------- */

.features-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.feature-card {
	background: var(--white);
	border: 1px solid var(--sand);
	border-radius: var(--r-card);
	box-shadow: var(--shadow-card);
	padding: 28px;
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-pop);
	border-color: var(--cyan);
}

.feature-card .icon {
	color: var(--cyan-deep);
	margin-bottom: 16px;
}

.feature-card .icon svg {
	width: 28px;
	height: 28px;
	display: block;
}

.feature-card h3 {
	margin-bottom: 8px;
}

.feature-card p {
	font-size: 15px;
	margin-bottom: 0;
}

/* ---------- Сплит-блоки ---------- */

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.split-text h2 {
	margin-bottom: 16px;
}

.split-text p {
	margin-bottom: 24px;
}

/* ---------- Как начать (шаги) ---------- */

.steps {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	position: relative;
	margin-bottom: 56px;
}

.steps::before {
	content: '';
	position: absolute;
	top: 20px;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--sand);
}

.step {
	position: relative;
	padding-top: 8px;
}

.step::before {
	content: '';
	position: absolute;
	top: 13px;
	left: 0;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--cyan);
}

.step-no {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 32px;
	line-height: 1;
	color: var(--cyan-deep);
	margin: 24px 0 12px;
}

.step h3 {
	font-size: 20px;
	margin-bottom: 8px;
}

.step p {
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 0;
}

.steps-cta {
	text-align: center;
}

/* ---------- Скриншоты ---------- */

.screenshots-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.screenshot-card {
	border: 1px solid var(--sand);
	border-radius: var(--r-card);
	box-shadow: var(--shadow-card);
	overflow: hidden;
	background: var(--white);
}

.screenshot-card img {
	width: 100%;
}

/* ---------- FAQ ---------- */

.faq-layout {
	display: grid;
	grid-template-columns: 1fr 1.6fr;
	gap: 48px;
	align-items: start;
}

.faq-side {
	position: sticky;
	top: 104px;
}

.faq-side .section-no {
	display: block;
	margin-bottom: 12px;
}

.faq-side p {
	font-size: 15px;
}

.faq-list {
	border-top: 1px solid var(--sand);
}

.faq-item {
	border-bottom: 1px solid var(--sand);
}

.faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 22px 0;
	border: none;
	background: transparent;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 18px;
	line-height: 1.35;
	color: var(--chocolate);
}

.faq-q .icon {
	flex: none;
	color: var(--cyan-deep);
	display: inline-flex;
}

.faq-q .icon svg {
	width: 22px;
	height: 22px;
	display: block;
}

.faq-q .icon-minus {
	display: none;
}

.faq-item.open .faq-q .icon-plus {
	display: none;
}

.faq-item.open .faq-q .icon-minus {
	display: inline-flex;
}

.faq-a {
	overflow: hidden;
	max-height: 0;
	transition: max-height 250ms ease;
}

.faq-a-inner {
	padding: 0 0 24px;
	max-width: 640px;
}

.faq-a-inner p {
	margin-bottom: 0;
}

/* ---------- Тарифы ---------- */

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin-bottom: 32px;
}

.pricing-card {
	background: var(--white);
	border: 1px solid var(--sand);
	border-radius: var(--r-card);
	box-shadow: var(--shadow-card);
	padding: 32px 28px;
	position: relative;
	display: flex;
	flex-direction: column;
}

.pricing-card--accent {
	border: 2px solid var(--cyan);
	box-shadow: var(--shadow-pop);
}

.pricing-card__badge {
	position: absolute;
	top: -14px;
	right: 24px;
	background: var(--orange);
	color: var(--chocolate);
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 14px;
	border-radius: 999px;
	padding: 6px 14px;
}

.pricing-card h3 {
	margin-bottom: 8px;
}

.pricing-card__price {
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 40px;
	line-height: 1.1;
	color: var(--chocolate);
	margin-bottom: 4px;
}

.pricing-card__sub {
	font-size: 14px;
	font-weight: 500;
	color: var(--cocoa);
	margin-bottom: 24px;
}

.pricing-card .btn {
	margin-top: auto;
	text-align: center;
}

.pricing-note {
	text-align: center;
	font-size: 15px;
	margin-bottom: 0;
}

/* ---------- Маркетплейс ---------- */

.marketplace {
	text-align: center;
}

.marketplace .lead {
	max-width: 640px;
	margin: 0 auto 32px;
}

/* ---------- Финальный CTA (контакты) ---------- */

.cta-final {
	background: var(--choco-dark);
	position: relative;
	overflow: hidden;
}

.cta-final::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 96px;
	height: 96px;
	border-top: 2px solid var(--cyan);
	border-right: 2px solid var(--cyan);
}

.cta-final h2 {
	color: var(--cream-on-dark);
}

.cta-final .lead {
	color: var(--cocoa-on-dark);
	max-width: 560px;
	margin-bottom: 32px;
}

.cta-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* ---------- Подвал ---------- */

.site-footer {
	background: var(--cream);
	border-top: 1px solid var(--sand);
	padding: 56px 0 32px;
	font-size: 14px;
	color: var(--cocoa);
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 48px;
	margin-bottom: 40px;
}

.footer-col p {
	font-size: 14px;
	margin: 16px 0 8px;
}

.footer-col a {
	color: var(--cocoa);
	font-weight: 500;
}

.footer-col a:hover {
	color: var(--cyan-deep);
}

.footer-col h4 {
	font-family: var(--font-body);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cyan-deep);
	margin: 0 0 16px;
}

.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.footer-bottom {
	border-top: 1px solid var(--sand);
	padding-top: 24px;
	font-weight: 500;
}

/* ---------- Демо-модалка ---------- */

.demo-modal {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: none;
}

.demo-modal.open {
	display: block;
}

.demo-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(46, 30, 18, .5);
}

.demo-modal-dialog {
	position: relative;
	background: var(--white);
	border-radius: 20px;
	box-shadow: var(--shadow-pop);
	max-width: 720px;
	max-height: calc(100vh - 64px);
	margin: 32px auto;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.demo-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 32px 16px;
}

.demo-modal-header h3 {
	margin: 0;
	font-size: 24px;
}

.demo-modal-close {
	flex: none;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 12px;
	background: var(--cream-deep);
	color: var(--chocolate);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 160ms ease;
}

.demo-modal-close:hover {
	background: var(--sand);
}

.demo-modal-tabs {
	display: flex;
	gap: 8px;
	padding: 0 32px;
	border-bottom: 1px solid var(--sand);
}

.demo-tab {
	border: none;
	background: transparent;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 15px;
	color: var(--cocoa);
	padding: 12px 16px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 160ms ease;
}

.demo-tab:hover {
	color: var(--chocolate);
}

.demo-tab.active {
	color: var(--chocolate);
	border-bottom-color: var(--cyan);
	background: rgba(47, 198, 246, .14);
	border-radius: 8px 8px 0 0;
}

.demo-modal-body {
	padding: 24px 32px;
	overflow-y: auto;
}

.demo-pane {
	display: none;
}

.demo-pane.active {
	display: block;
}

.demo-pane h4 {
	font-family: var(--font-display);
	font-size: 17px;
	font-weight: 700;
	margin: 20px 0 8px;
}

.demo-pane h4:first-child {
	margin-top: 0;
}

.demo-pane p,
.demo-pane li {
	font-size: 15px;
	color: var(--cocoa);
}

.demo-pane ul {
	margin: 0 0 16px;
	padding-left: 20px;
}

.demo-pane li {
	margin-bottom: 6px;
}

.demo-pane code {
	background: var(--cream-deep);
	border-radius: 6px;
	padding: 2px 6px;
	font-size: 13px;
	color: var(--chocolate);
}

.demo-pane .demo-note {
	font-size: 14px;
	font-weight: 500;
	background: var(--cream);
	border: 1px solid var(--sand);
	border-radius: 12px;
	padding: 12px 16px;
}

.demo-modal-footer {
	padding: 16px 32px 24px;
	border-top: 1px solid var(--sand);
}

/* ---------- Scroll reveal ---------- */

[data-reveal] {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 400ms ease-out, transform 400ms ease-out;
}

[data-reveal].is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	[data-reveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.faq-a {
		transition: none;
	}
	.btn, .feature-card {
		transition: none;
	}
}

/* ---------- Адаптив ---------- */

@media (max-width: 1280px) {
	h1 {
		font-size: 54px;
	}
}

@media (max-width: 1024px) {
	.hero-grid {
		grid-template-columns: 1fr;
	}

	.hero .window-card {
		max-width: 560px;
	}

	h1 {
		font-size: 44px;
	}

	h2 {
		font-size: 36px;
	}

	.main-nav a.nav-link {
		display: none;
	}

	.main-nav .btn {
		display: none;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 56px 0;
	}

	.hero {
		padding: 120px 0 56px;
	}

	h1 {
		font-size: 38px;
	}

	h2 {
		font-size: 30px;
	}

	.nav-burger {
		display: block;
	}

	.site-header.is-open .main-nav {
		position: fixed;
		inset: 72px 0 0 0;
		background: var(--cream);
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 32px 24px;
	}

	.site-header.is-open .main-nav a.nav-link {
		display: block;
		font-size: 22px;
		font-weight: 600;
		padding: 10px 0;
		color: var(--chocolate);
	}

	.site-header.is-open .main-nav .btn {
		display: inline-block;
		margin-top: 16px;
	}

	.features-grid,
	.screenshots-grid,
	.pricing-grid {
		grid-template-columns: 1fr;
	}

	.split {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.split--reverse .split-text {
		order: -1;
	}

	.steps {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.steps::before {
		top: 0;
		bottom: 0;
		left: 4px;
		right: auto;
		width: 1px;
		height: auto;
	}

	.step {
		padding: 0 0 32px 32px;
	}

	.step::before {
		top: 12px;
		left: 0;
	}

	.step-no {
		margin-top: 0;
	}

	.faq-layout {
		grid-template-columns: 1fr;
	}

	.faq-side {
		position: static;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.demo-modal-dialog {
		margin: 16px;
		max-height: calc(100vh - 32px);
	}

	.demo-modal-header,
	.demo-modal-body,
	.demo-modal-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.demo-modal-tabs {
		padding: 0 12px;
		overflow-x: auto;
	}

	.demo-tab {
		white-space: nowrap;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 20px;
	}

	.hero-cta .btn,
	.cta-buttons .btn {
		width: 100%;
		text-align: center;
	}

	.pricing-card__price {
		font-size: 34px;
	}
}
