/* /yndx/ + /ignatauto/ landing */

.header-logos-ignatauto {
	display: flex;
	align-items: center;
}

.header-logos-ignatauto__partner {
	display: block;
	height: 44px;
	width: auto;
	max-width: 160px;
	object-fit: contain;
}

.header-logos-ignatauto__divider {
	margin: 0 24px;
	width: 1px;
	height: 44px;
	background: #BAC7CF;
	border-radius: 2px;
	flex-shrink: 0;
}

.header-logos-ignatauto.header-logos-ignatauto--mobile .header-logos-ignatauto__partner {
	height: 26px;
	max-width: 105px;
}

.header-logos-ignatauto.header-logos-ignatauto--mobile .header-logos-ignatauto__divider {
	margin: 0 10px;
	height: 18px;
}

.header-logos-ignatauto.header-logos-ignatauto--mobile {
	flex: 1 1 auto;
	min-width: 0;
}

.header-logos-ignatauto.header-logos-ignatauto--mobile .mobile-header__logo img {
	display: block;
	height: 36px;
	width: auto;
	object-fit: contain;
}

.mobile-header:has(.header-logos-ignatauto--mobile) {
	flex-wrap: nowrap !important;
	align-items: center;
}

.mobile-header:has(.header-logos-ignatauto--mobile) .header-item-city-wrapper {
	flex: 0 0 auto;
	margin-left: 8px;
}

.mobile-header:has(.header-logos-ignatauto--mobile) .mobile-header__city {
	white-space: nowrap;
}

.yndx-hero {
	--yndx-font: "Montserrat", var(--font-main), sans-serif;
	padding: 0;
	margin: 0;
	background: #F3F3F3;
	overflow-x: hidden;
	overflow-y: visible;
}

/* Шахматка: hero серый → калькулятор белый → about серый */
.yndx-hero + #calculator {
	margin: 0;
	background: #fff;
}

.yndx-hero__card {
	position: relative;
	width: 100%;
	max-width: 1160px;
	min-height: 570px;
	margin: 0 auto;
	padding-top: 40px;
	padding-bottom: 0;
	overflow: visible;
	box-sizing: border-box;
	background: transparent;
}

.yndx-hero__grid {
	position: relative;
	z-index: 1;
	display: block;
	min-height: 530px;
	padding-bottom: 0;
}

.yndx-hero__content {
	position: relative;
	z-index: 2;
	max-width: 700px;
	padding: 0 0 40px;
}

.yndx-hero__title {
	margin: 0;
	font-family: var(--yndx-font);
	font-weight: 600;
	font-size: 60px;
	line-height: 130%;
	color: #000;
	letter-spacing: -0.01em;
}

.yndx-hero__title-text {
	display: inline;
	max-width: none;
	white-space: normal;
}

.yndx-hero__title-city {
	display: inline;
}

.yndx-hero__benefits {
	margin: 20px 0 30px;
	padding: 0;
	max-width: 520px;
	font-family: var(--yndx-font);
	font-weight: 400;
	font-size: 20px;
	line-height: 32px;
	color: #686868;
	list-style: none;
}

.yndx-hero__actions {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px 16px;
}

.yndx-hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	box-sizing: border-box;
	width: 262px;
	min-width: 262px;
	height: 50px;
	min-height: 50px;
	margin: 0;
	padding: 0 20px;
	border: none;
	border-radius: 10px;
	background: #E32429;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	font-family: var(--yndx-font);
	font-weight: 500;
	font-size: 15px;
	line-height: 120%;
	letter-spacing: 0.02em;
	box-shadow: none;
	transform: none;
	transition: color 0.4s, background 0.4s, border 0.4s;
	cursor: pointer;
}

.yndx-hero__cta:hover,
.yndx-hero__cta:focus {
	background: #F2262B;
	color: #fff;
	box-shadow: none;
	transform: none;
	text-decoration: none;
}

.yndx-hero__cta:active {
	background: #E32429;
	box-shadow: none;
	transform: none;
}

.yndx-hero__managers {
	display: flex;
	align-items: center;
	gap: 10px;
}

.yndx-hero__managers-avatars {
	display: flex;
	align-items: center;
}

.yndx-hero__face {
	position: relative;
	display: block;
	flex-shrink: 0;
	margin-right: -20px;
	border-radius: 50%;
}

.yndx-hero__face:last-child {
	margin-right: 0;
}

.yndx-hero__face img {
	display: block;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	background: #f3f4f6;
}

/* Зелёный индикатор «онлайн» — как на референсе */
.yndx-hero__face--online::before {
	content: "";
	position: absolute;
	right: 0;
	bottom: 5px;
	z-index: 1;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid #F3F3F3;
	background-color: #4A9E71;
}

.yndx-hero__managers-text {
	max-width: 100px;
	font-family: var(--yndx-font);
	font-size: 14px;
	line-height: 1.3;
	color: #686868;
}

/* Как на ulan-ude.avtokred.com/yndx/: абсолютное фото справа, не сжимает текст */
.yndx-hero__media {
	z-index: 0;
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-220px);
	margin: 0;
	padding: 0;
	line-height: 0;
	pointer-events: none;
}

.yndx-hero__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 1194px;
	max-height: 570px;
	object-fit: contain;
}

.yndx-hero__badge {
	position: absolute;
	left: 545px;
	bottom: 45px;
	z-index: 3;
	pointer-events: auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 200px;
	padding: 14px 18px;
	background: #fff;
	border-radius: 16px;
	box-shadow: -4px 4px 20px #F0F2F3;
}

.yndx-hero__badge strong {
	font-family: var(--yndx-font);
	font-size: 16px;
	line-height: 1.3;
	font-weight: 600;
	color: #000;
}

.yndx-hero__badge span {
	font-family: var(--yndx-font);
	font-size: 13px;
	line-height: 1.3;
	color: #686868;
}

.yndx-calculator {
	padding: 0;
	margin: 0 0 80px;
	background: #fff;
}

.yndx-calc-card {
	background: #fff;
	border: 1px solid #E5E9EC;
	border-radius: 28px;
	overflow: hidden;
}

.yndx-calc-layout {
	display: grid;
	grid-template-columns: 1fr minmax(220px, 25%);
	grid-template-areas:
		"main partners"
		"form form";
	min-width: 0;
}

.yndx-calc-layout > * {
	min-width: 0;
	max-width: 100%;
}

.yndx-calc-main {
	grid-area: main;
	display: flex;
	flex-direction: column;
}

.yndx-calc-partners {
	grid-area: partners;
}

.yndx-calc-form {
	display: contents;
}

.yndx-calc-form__inner {
	grid-area: form;
	border-top: 1px solid #E5E9EC;
	padding: 24px 40px 28px;
	min-width: 0;
}

.yndx-calc-main .calc-card {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	flex: 1 1 auto;
}

.yndx-calc-main .cc-summary {
	margin: 0;
	border-radius: 0;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 40px;
}

.yndx-calc-main .cc-summary-info {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 12px;
}

.yndx-calc-main .cc-summary-text {
	margin: 0;
}

.yndx-calc-partners {
	display: flex;
	flex-direction: column;
	border-left: 1px solid #E5E9EC;
	padding: 45px 20px 0 !important;
	background: #fff;
	min-height: 100%;
	overflow: hidden;
}

.yndx-calculator [data-cc-root] .calc-card {
	margin-right: 0;
    padding: 40px 40px 0 40px;
}

.yndx-calculator [data-cc-root] .cc-summary {
	margin-left: 0;
	margin-right: 0;
}

.yndx-calc-partners__title {
	margin: 0 0 16px;
	font-family: var(--font-main);
	font-weight: 600;
	font-size: 18px;
	line-height: 130%;
	color: var(--color-text-black, #1a1a1a);
	text-align: center;
	flex: 0 0 auto;
}

.yndx-calculator .calculator-logos {
	flex: 0 0 auto;
	height: 580px !important;
	max-height: 580px !important;
	min-height: 0;
	max-width: 100%;
	overflow: hidden;
}

.yndx-calc-form__inner {
	margin: 0;
}

.yndx-calc-form__form {
	margin: 0;
}

.yndx-calc-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr minmax(220px, 280px);
	gap: 16px;
	align-items: start;
}

.yndx-calc-form__field {
	padding: 0 !important;
	margin: 0;
}

.yndx-calc-form__row .fast-request-modal__field + .fast-request-modal__field {
	margin-top: 0;
}

.yndx-calc-form__field .fast-request-modal__label {
	left: 18px;
}

.yndx-calc-form__field.fast-request-modal__field--filled .fast-request-modal__label,
.yndx-calc-form__field:focus-within .fast-request-modal__label {
	left: 18px;
}

.yndx-calc-form__actions {
	display: flex;
	align-items: stretch;
	align-self: start;
}

.yndx-calc-form__submit {
	width: 100% !important;
	min-height: 50px;
	height: 50px;
	border-radius: 10px;
	background: #E32429;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	transition: color 0.4s, background 0.4s, border 0.4s;
}

.yndx-calc-form__submit:not(:disabled):hover,
.yndx-calc-form__submit:not(:disabled):focus {
	background: #F2262B;
	outline: none;
	transform: none;
	box-shadow: none;
}

.yndx-calc-form .fast-request-modal__input:hover,
.yndx-calc-form .fast-request-modal__input:focus {
	border-color: #E32429;
	box-shadow: 0 0 0 1px rgba(227, 36, 41, 0.2);
}

.yndx-calc-form.calc-fast-request .fast-request-modal__field,
.yndx-calc-form.calc-fast-request .fast-request-modal__agreements,
.yndx-calc-form.calc-fast-request .fast-request-modal__actions {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.yndx-calc-form .form-oferta.yndx-calc-form__oferta,
.yndx-calc-form__oferta.form-oferta {
	display: block;
	margin: 24px 30px 0;
	padding: 0 !important;
	text-align: left;
	max-width: none;
}

section.yndx-about.stats {
	padding: 20px 0 80px;
	margin: 0;
	background: #F3F3F3;
}

section.yndx-about.stats .container {
	max-width: 1160px;
}

@media (max-width: 1200px) {
	.yndx-hero__media {
		transform: translateX(-200px);
	}

	.yndx-hero__image {
		width: auto;
		height: auto;
		max-width: 914px;
		max-height: 540px;
	}

	.yndx-hero__badge {
		left: 400px;
		bottom: 30px;
	}

	.yndx-hero__title {
		font-size: 48px;
	}
}

@media (max-width: 992px) {
	.yndx-hero {
		margin-bottom: 0;
		overflow: visible;
	}

	.yndx-hero__card {
		min-height: 0;
		padding-top: 24px;
		padding-bottom: 24px;
		overflow: visible;
		background: none !important;
		background-image: none !important;
	}

	.yndx-hero__grid {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.yndx-hero__content {
		max-width: 100%;
		padding-bottom: 16px;
		order: 1;
	}

	.yndx-hero__title {
		font-size: 35px;
	}

	.yndx-hero__benefits {
		font-size: 18px;
		line-height: 28px;
		margin: 16px 0 24px;
	}

	.yndx-hero__actions {
		flex-wrap: wrap;
	}

	.yndx-hero__face img {
		width: 52px;
		height: 52px;
	}

	/* Картинка строго под кнопкой и аватарами */
	.yndx-hero__media {
		position: relative !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		top: auto !important;
		transform: none !important;
		inset: auto !important;
		order: 2;
		width: 100%;
		margin-top: 24px;
		margin-bottom: 20px;
		display: flex;
		justify-content: center;
		align-items: flex-end;
		pointer-events: auto;
		line-height: 0;
		overflow: visible;
	}

	.yndx-hero__image {
		display: block !important;
		width: auto !important;
		max-width: 100% !important;
		height: auto !important;
		max-height: 420px;
		object-fit: contain;
		object-position: center bottom;
	}

	.yndx-hero__badge {
		left: 50%;
		right: auto;
		transform: translateX(-50%);
		bottom: -20px;
		min-width: 170px;
		border-bottom-left-radius: 16px;
		border-bottom-right-radius: 16px;
	}

	.yndx-calculator {
		margin-bottom: 60px;
		overflow-x: hidden;
	}

	.yndx-calculator .container {
		max-width: 100%;
		overflow-x: hidden;
	}

	.yndx-calc-card {
		max-width: 100%;
		overflow: hidden;
	}

	.yndx-calc-layout {
		grid-template-columns: 1fr;
		grid-template-areas:
			"main"
			"form";
	}

	.yndx-calc-form {
		display: flex;
		flex-direction: column;
		grid-area: form;
		border-top: none;
		margin-top: 0 !important;
		min-width: 0;
		overflow: hidden;
	}

	.yndx-calc-form__inner {
		padding: 20px 20px 0;
		border-top: none;
	}

	.yndx-calc-main .cc-summary {
		padding: 16px 20px 0;
		flex-direction: column;
		align-items: flex-start;
	}

	.yndx-calc-partners {
		border-left: 0;
		border-top: none;
		padding: 8px 20px 20px !important;
		flex: 0 0 auto;
		height: auto;
		min-height: 0;
	}

	.yndx-calculator .calculator-logos {
		position: relative;
		height: 70px !important;
		max-height: 70px !important;
		flex: 0 0 70px;
         width: 100%;
	}

	.yndx-calculator .calculator-logos .swiper-wrapper {
		position: absolute;
		top: 0;
		left: 0;
		height: 70px;
	}

	.yndx-calc-form .form-oferta.yndx-calc-form__oferta,
	.yndx-calc-form__oferta.form-oferta {
		margin: 16px 0 0;
	}

	.yndx-calc-form .fast-request-modal__agreements-title {
		margin-left: 0;
        padding-bottom: 15px;
	}

	.yndx-calc-partners__title {
		display: none;
	}

	.yndx-calculator [data-cc-root] .calc-card {
		padding: 24px 20px;
	}

	.yndx-calculator [data-cc-root] .cc-summary {
		margin: 0;
		border-radius: 0;
	}

	[data-cc-root] h4 {
		padding-bottom: 0;
	}

	.yndx-calc-form__row {
		grid-template-columns: 1fr;
	}

	section.yndx-about.stats {
		padding-bottom: 60px;
	}

	body {
		padding-bottom: 0;
	}

	.footer {
		margin-bottom: 0;
	}
}

@media (max-width: 576px) {
	.yndx-hero__title {
		font-size: 30px;
	}

	.yndx-hero__title br {
		display: none;
	}

	.yndx-hero__title-text {
		max-width: none;
	}

	.yndx-hero__title-text br {
		display: none;
	}

	.yndx-hero__benefits {
		font-size: 16px;
		line-height: 26px;
	}

	.yndx-hero__actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.yndx-hero__cta {
		width: 100%;
		min-width: 0;
		max-width: 100%;
	}

	.yndx-hero__face {
		margin-right: -14px;
	}

	.yndx-hero__face img {
		width: 48px;
		height: 48px;
	}

	.yndx-hero__managers-text {
		max-width: none;
	}

	.yndx-hero__badge {
		left: 50%;
		transform: translateX(-50%);
		bottom: -45px;
	}
}
