/*
 * Страница «Программа лояльности для iiko» (/iiko/).
 *
 * Готовые блоки сайта (/css/style.css): .strategies, .norobot, .main-tgbanner, .main-title,
 * .main-subtitle, .btn. Всё остальное — здесь, с префиксом lp-.
 *
 * Файл подключается через $APPLICATION->SetAdditionalCSS и выводится в <head> раньше
 * /css/style.css, поэтому каждое правило начинается с .lp — иначе стили сайта
 * с той же специфичностью перекроют эти.
 */

/* ---------- Кнопки: цвет из макета (#009be1) ---------- */
.lp .btn_blue {
	background: #009be1;
	border-color: #009be1;
	color: #fff;
}

.lp .btn_blue:hover {
	background: #0a85c2;
	border-color: #0a85c2;
}

.lp .btn_blue-o {
	border-color: #009be1;
	color: #009be1;
}

.lp .btn_blue-o:hover {
	background: #009be1;
	border-color: #009be1;
	color: #fff;
}

/* ---------- Отступы между блоками: 100px, как в макете ----------
   Белые блоки идут подряд, поэтому у каждого по 50px сверху и снизу — между ними 100px.
   Рядом с серыми блоками (первый экран, «Поддержка без роботов») — 100px со своей стороны. */
.lp .lp-section > .block {
	padding-top: 50px;
	padding-bottom: 50px;
}

.lp .lp-head + .lp-section > .block,
.lp .norobot + .lp-section > .block {
	padding-top: 100px;
}

.lp .lp-compat > .block {
	padding-bottom: 100px;
}

.lp .lp-section > .block > :last-child {
	margin-bottom: 0;
}

.lp .main-title {
	margin-bottom: 16px;
	font-weight: 400;
}

.lp .main-title strong,
.lp .main-title span {
	font-weight: 700;
}

.lp .lp-section .main-subtitle {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.lp .lp-section > .block {
		padding-top: 30px;
		padding-bottom: 30px;
	}

	.lp .lp-head + .lp-section > .block,
	.lp .norobot + .lp-section > .block {
		padding-top: 60px;
	}

	.lp .lp-compat > .block {
		padding-bottom: 60px;
	}
}

/* ---------- Первый экран ---------- */
.lp .lp-head {
	background: #f8f8f8;
	overflow: hidden;
}

.lp .lp-head .block {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	min-height: 640px;
	padding-top: 40px;
	padding-bottom: 60px;
	box-sizing: border-box;
}

.lp .lp-head__text {
	flex: 1 1 auto;
	max-width: 580px;
}

.lp .lp-head__title {
	margin: 0 0 24px;
	color: #3c3e5a;
	font-size: 60px;
	line-height: 66px;
	font-weight: 700;
}

.lp .lp-head__title span {
	color: #ef3b39;
}

.lp .lp-head__lead {
	margin: 0 0 32px;
	color: #3c3e5a;
	font-size: 18px;
	line-height: 1.35;
	opacity: .85;
}

.lp .lp-head__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.lp .lp-head__btns .btn {
	min-height: 45px;
	padding: 13px 30px 12px;
}

.lp .lp-head__img {
	display: block;
	flex-shrink: 0;
	width: 560px;
	max-width: 49%;
	height: auto;
}

@media (max-width: 900px) {
	.lp .lp-head .block {
		flex-direction: column;
		min-height: 0;
		text-align: center;
	}

	.lp .lp-head__text {
		max-width: none;
	}

	.lp .lp-head__btns {
		justify-content: center;
	}

	.lp .lp-head__img {
		width: 100%;
		max-width: 560px;
	}

	.lp .lp-head__title {
		font-size: 44px;
		line-height: 50px;
	}
}

@media (max-width: 600px) {
	.lp .lp-head .block {
		padding-top: 24px;
		padding-bottom: 40px;
	}

	.lp .lp-head__title {
		font-size: 32px;
		line-height: 38px;
	}

	.lp .lp-head__lead {
		margin-bottom: 24px;
		font-size: 16px;
	}

	.lp .lp-head__btns {
		gap: 12px;
	}

	.lp .lp-head__btns .btn {
		width: 100%;
	}
}

/* ---------- Носители: приложение, карты, мессенджеры ---------- */
.lp .lp-channels__list {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 60px 0 0;
}

/* Серая подложка только под картинками, подписи — ниже на белом */
.lp .lp-channels__list:before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 386px;
	border-radius: 50px;
	background: #f8f8f8;
}

.lp .lp-channels__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.lp .lp-channels__visual {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 386px;
	margin: 0 0 28px;
}

.lp .lp-channels__visual img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 345px;
}

.lp .lp-channels__item:nth-child(2) .lp-channels__visual img {
	max-height: 320px;
}

.lp .lp-channels__item:nth-child(3) .lp-channels__visual img {
	max-height: 370px;
	transform: translateX(9%); /* корпус телефона в картинке смещён влево на 9% её ширины */
}

.lp .lp-channels__title {
	max-width: 300px;
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 26px;
	font-weight: 700;
}

.lp .lp-channels__text {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.35;
}

@media (max-width: 900px) {
	.lp .lp-channels__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 40px;
		margin-top: 30px;
	}

	.lp .lp-channels__list:before {
		content: none;
	}

	.lp .lp-channels__visual {
		width: 100%;
		height: 340px;
		margin-bottom: 20px;
		border-radius: 32px;
		background: #f8f8f8;
	}

	.lp .lp-channels__visual img,
	.lp .lp-channels__item:nth-child(n) .lp-channels__visual img {
		max-height: 300px;
	}
}

/* ---------- Стратегии (.strategies с главной) ---------- */
.lp .lp-strategies {
	margin-top: 0;
}

.lp .lp-strategies .main-subtitle {
	margin-bottom: 40px;
}

.lp .lp-strategies .btn_blue {
	padding-left: 30px;
	padding-right: 30px;
}

/* ---------- Аналитика: видео в рамке ноутбука ---------- */
.lp .lp-laptop {
	position: relative;
	max-width: 835px;
	margin: 50px auto 0;
}

.lp .lp-laptop__frame {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
}

/* Экран в laptop.webp: чёрная область x 148–1493, y 14–905 из 1640×994. Видео кладём поверх
   рамки с отступом 16px (в пикселях картинки) от её краёв и скругляем углы */
.lp .lp-laptop__screen {
	position: absolute;
	z-index: 3;
	left: 10%;
	top: 3%;
	width: 80.1%;
	height: 86.4%;
	object-fit: cover;
	object-position: top left;
	border-radius: 1.8% / 2.8%;
	background: #fff;
}

/* ---------- Сравнение с iikoCard ---------- */
.lp .lp-compare__card {
	margin: 50px 0 0;
	padding: 24px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 4px 30px rgba(0, 0, 0, .06);
}

.lp .lp-compare__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	table-layout: fixed;
	font-size: 17px;
	line-height: 1.3;
}

.lp .lp-compare__table th,
.lp .lp-compare__table td {
	height: 46px;
	padding: 6px 24px;
	box-sizing: border-box;
	border-bottom: 1px solid #edeff1;
	text-align: center;
	vertical-align: middle;
}

.lp .lp-compare__table tbody th {
	font-weight: 400;
	text-align: left;
}

.lp .lp-compare__table thead th,
.lp .lp-compare__table thead td {
	height: 66px;
	border-bottom: 0;
	font-weight: 400;
	font-size: 18px;
}

.lp .lp-compare__logo {
	display: inline-block;
	width: 142px;
	height: auto;
	vertical-align: middle;
}

/* Колонка GetMeBack подсвечена, скруглена сверху и снизу */
.lp .lp-compare__table tr > :nth-child(2) {
	background: #f2f8ff;
}

.lp .lp-compare__table thead tr > :nth-child(2) {
	border-radius: 20px 20px 0 0;
}

.lp .lp-compare__table tbody tr:last-child > :nth-child(2) {
	border-radius: 0 0 20px 20px;
}

.lp .lp-compare__table tbody tr:last-child > * {
	border-bottom: 0;
}

.lp .lp-compare__group > * {
	background: #f8f8f8;
}

.lp .lp-compare__table .lp-compare__group > th {
	font-weight: 700;
}

.lp .lp-compare__table .lp-compare__group > :nth-child(2) {
	background: #e8f3ff;
}

.lp .lp-yes {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #009be1;
	vertical-align: middle;
}

.lp .lp-no {
	position: relative;
	display: inline-block;
	width: 18px;
	height: 18px;
	vertical-align: middle;
}

.lp .lp-no:before,
.lp .lp-no:after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 22px;
	height: 2px;
	border-radius: 1px;
	background: #d0021b;
	transform: translate(-50%, -50%) rotate(45deg);
}

.lp .lp-no:after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

/* Подсказка «?» */
/* Подсказка стоит справа от кружка и не сдвигает его — кружки в колонке остаются друг под другом */
.lp .lp-compare__table td {
	position: relative;
}

.lp .lp-hint {
	position: absolute;
	left: calc(50% + 14px);
	top: 50%;
	transform: translateY(-50%);
}

.lp .lp-hint__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
	color: #3c3e5a;
	font: 700 14px/1 Gilroy, 'Open Sans', Arial, sans-serif;
	cursor: pointer;
}

.lp .lp-hint__bubble {
	position: absolute;
	z-index: 5;
	left: 50%;
	bottom: calc(100% + 12px);
	width: 270px;
	padding: 14px 18px;
	box-sizing: border-box;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .14);
	color: #3c3e5a;
	font-size: 15px;
	line-height: 1.35;
	text-align: left;
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, 6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}

.lp .lp-hint__bubble:after {
	content: "";
	position: absolute;
	left: 50%;
	top: 100%;
	border: 7px solid transparent;
	border-top-color: #fff;
	transform: translateX(-50%);
}

.lp .lp-hint:hover .lp-hint__bubble,
.lp .lp-hint__btn:focus-visible + .lp-hint__bubble,
.lp .lp-hint.is-open .lp-hint__bubble {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

@media (max-width: 767px) {
	.lp .lp-compare__card {
		margin-top: 30px;
		margin-left: -10px;
		margin-right: -10px;
		padding: 8px;
		border-radius: 16px;
	}

	.lp .lp-compare__table {
		font-size: 13px;
	}

	.lp .lp-compare__table th,
	.lp .lp-compare__table td {
		height: 42px;
		padding: 6px 8px;
	}

	.lp .lp-compare__table tr > :first-child {
		width: 46%;
	}

	.lp .lp-compare__table thead th {
		font-size: 14px;
	}

	.lp .lp-compare__table thead th {
		padding-left: 4px;
		padding-right: 4px;
	}

	.lp .lp-compare__logo {
		width: 72px;
		max-width: 100%;
	}

	.lp .lp-compare__table thead tr > :nth-child(2) {
		border-radius: 12px 12px 0 0;
	}

	.lp .lp-compare__table tbody tr:last-child > :nth-child(2) {
		border-radius: 0 0 12px 12px;
	}

	.lp .lp-hint {
		left: calc(50% + 10px);
	}

	/* На узком экране подсказка не помещается над «?» — прижимаем её к правому краю */
	.lp .lp-hint__bubble {
		left: auto;
		right: -60px;
		width: 230px;
		font-size: 13px;
		transform: translateY(6px);
	}

	.lp .lp-hint__bubble:after {
		left: auto;
		right: 66px;
		transform: none;
	}

	.lp .lp-hint:hover .lp-hint__bubble,
	.lp .lp-hint__btn:focus-visible + .lp-hint__bubble,
	.lp .lp-hint.is-open .lp-hint__bubble {
		transform: none;
	}
}

/* ---------- Больше возможностей для интеграции с iiko ---------- */
.lp .lp-more__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 50px 0 0;
}

.lp .lp-more__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}

.lp .lp-more__card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	height: 454px;
	padding: 40px 24px 0;
	box-sizing: border-box;
	border-radius: 32px;
	overflow: hidden;
	text-align: center;
}

.lp .lp-more__card_blue {
	background-color: #f2f8ff;
}

.lp .lp-more__card_gray {
	background-color: #f8f8f8;
}

/* Белая линия на фоне карточки, из макета */
.lp .lp-more__card {
	background-image: url(img/bg-line-card.svg);
	background-repeat: no-repeat;
	background-position: center bottom;
	background-size: 100% auto;
}

.lp .lp-more__title {
	margin: 0 0 6px;
	font-size: 22px;
	line-height: 26px;
	font-weight: 700;
}

.lp .lp-more__text {
	max-width: 290px;
	margin: 0 0 24px;
	font-size: 15px;
	line-height: 1.3;
}

.lp .lp-more__phone {
	position: absolute;
	left: 50%;
	top: 140px;
	display: block;
	width: 216px;
	height: auto;
	transform: translateX(-50%);
}

/* Схема GetMeBack ↔ GuestMe ↔ iiko */
.lp .lp-scheme {
	position: relative;
	width: 300px;
	max-width: 100%;
	height: 250px;
	margin-top: auto;
	margin-bottom: 24px;
}

.lp .lp-scheme__lines {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	fill: none;
	stroke: #c5d3e2;
	stroke-width: 1.5;
	stroke-dasharray: 5 5;
}

.lp .lp-scheme__box {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 186px;
	height: 50px;
	padding: 0 24px;
	box-sizing: border-box;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 2px 12px rgba(20, 60, 120, .06);
}

.lp .lp-scheme__box img {
	display: block;
	max-width: 100%;
	max-height: 26px;
}

.lp .lp-scheme__box_guestme {
	right: 0;
	top: 0;
}

.lp .lp-scheme__box_gmb {
	left: 0;
	top: 94px;
}

.lp .lp-scheme__box_gmb img {
	max-height: 20px;
}

.lp .lp-scheme__box_iiko {
	right: 0;
	bottom: 0;
}

@media (max-width: 1000px) {
	.lp .lp-more__phone {
		position: static;
		margin-bottom: -200px;
		transform: none;
	}

	.lp .lp-more__list {
		grid-template-columns: minmax(0, 1fr);
		max-width: 420px;
		margin-left: auto;
		margin-right: auto;
		gap: 40px;
	}
}

@media (max-width: 767px) {
	.lp .lp-more__list {
		margin-top: 30px;
	}

	.lp .lp-more__item {
		gap: 20px;
	}

	.lp .lp-more__card {
		height: 420px;
		padding: 32px 16px 0;
		border-radius: 24px;
	}

	.lp .lp-scheme {
		width: 260px;
	}

	.lp .lp-scheme__box {
		width: 160px;
		padding: 0 18px;
	}
}

/* ---------- Совместимость с iiko ---------- */
.lp .lp-compat__panel {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
	margin: 50px 0;
	padding: 50px 24px 50px;
	border-radius: 40px;
	background: #f8f8f8 url(img/bg-line-panel.svg) center / cover no-repeat; /* белая линия из макета */
}

.lp .lp-compat__img {
	display: block;
	width: 700px;
	max-width: 100%;
	height: auto;
}

.lp .lp-compat__sync {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 56px;
	padding: 12px 24px;
	box-sizing: border-box;
	border-radius: 16px;
	background: #fff;
	font-size: 17px;
	line-height: 1.3;
}

.lp .lp-compat__icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	fill: none;
	stroke: #3c3e5a;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 767px) {
	.lp .lp-compat__panel {
		gap: 24px;
		margin: 30px 0;
		padding: 24px 12px;
		border-radius: 24px;
	}

	.lp .lp-compat__sync {
		align-items: flex-start;
		padding: 12px 16px;
		font-size: 14px;
		text-align: left;
	}
}

/* ---------- Клиенты: бегущая строка на всю ширину ---------- */
.lp .lp-clients > .block {
	padding-bottom: 40px;
}

.lp .lp-clients__title {
	margin: 0;
	color: #3c3e5a;
	font-size: 44px;
	line-height: 1.2;
	font-weight: 700;
	text-align: center;
}

.lp .lp-ribbon {
	overflow: hidden;
	padding: 0 0 100px;
}

.lp .lp-ribbon__track {
	display: flex;
	align-items: center;
	width: max-content;
	animation: lp-ribbon 45s linear infinite;
}

.lp .lp-ribbon:hover .lp-ribbon__track {
	animation-play-state: paused;
}

.lp .lp-ribbon__logo {
	display: block;
	flex-shrink: 0;
	width: auto;
	height: 54px;
	margin-right: 40px; /* отступ внутри элемента, а не gap: тогда половина дорожки = ровно один набор логотипов */
}

/* Без JS дубликатов нет: лента не двигается, логотипы просто стоят в ряд */
.lp .lp-ribbon:not(.is-ready) .lp-ribbon__track {
	animation: none;
}

@keyframes lp-ribbon {
	to {
		transform: translateX(-50%);
	}
}

@media (max-width: 767px) {
	.lp .lp-clients > .block {
		padding-bottom: 24px;
	}

	.lp .lp-clients__title {
		font-size: 28px;
	}

	.lp .lp-ribbon {
		padding-bottom: 60px;
	}

	.lp .lp-ribbon__logo {
		height: 40px;
		margin-right: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lp .lp-ribbon {
		overflow-x: auto;
	}

	.lp .lp-ribbon__track {
		animation: none;
	}
}

/* ---------- Финальный призыв (.main-tgbanner) ---------- */
.lp .lp-cta .block {
	padding-top: 0;
	padding-bottom: 100px;
}

.lp .lp-cta .tgbanner {
	margin: 0 !important; /* в style.css на мобильных стоит margin с !important */
}

@media (max-width: 767px) {
	.lp .lp-cta .block {
		padding-bottom: 60px;
	}
}
