/* Current Figma state boards 576:6960 / 577:7125; action press and persistent selection stay distinct. */

/* Residence links retain their native image frames and header-navigation feedback. */
.nh-home-property-image-link {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	overflow: hidden;
	border-radius: inherit;
}

.nh-home-property-image-link img {
	transition: transform var(--nh-motion-image) var(--nh-motion-ease);
}

.nh-home-property-image-link:focus-visible {
	outline-offset: -6px;
}

.nh-home-property-image-link:focus-visible::after {
	position: absolute;
	z-index: 1;
	inset: 3px;
	border: 3px solid var(--nh-teal);
	border-radius: 4px;
	box-shadow: 0 0 0 2px #fff;
	pointer-events: none;
	content: '';
}

.nh-home-property-title-link {
	color: inherit;
	text-decoration: none;
	transition: opacity var(--nh-motion-state) var(--nh-motion-ease);
}

.nh-home-property-title-link:hover {
	opacity: .6;
}

.nh-home-property-title-link:active {
	opacity: 1;
	transition-duration: var(--nh-motion-press);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.nh-home-property-image-link:hover img {
		transform: scale(1.1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nh-home-property-image-link img,
	.nh-home-property-title-link {
		transition: none;
	}
}

.nh-button:is(:hover, :active):where(:not(:disabled)) .nh-button-arrow {
	background-image: url('ui-states/arrow-cost-hover.svg');
}

.nh-button-outline:active:where(:not(:disabled)) {
	background: var(--nh-mint-pressed);
	color: #fff;
}

.nh-home-vk {
	text-decoration: none;
}

.nh-home-vk:hover::after {
	background-image: url('ui-states/arrow-vk-hover.svg');
}

.nh-home-vk:active:where(:not(:disabled)) {
	background: #2787f5;
}

.nh-home-vk:active:where(:not(:disabled))::after {
	background-image: url('ui-states/arrow-vk-white.svg');
}

.nh-home-vk:active:where(:not(:disabled)) img {
	content: url('ui-states/vk-wordmark-white.svg');
}

.nh-review-provider-button:is(:hover, :active):where(:not(:disabled)) {
	border-color: #000;
	background: #000;
	cursor: pointer;
}

.nh-review-provider-button:active:where(:not(:disabled)) {
	background: #363636;
}

.nh-review-provider-button:where(:not(:disabled)):where([data-provider='2gis']):is(:hover, :active) :where(.nh-review-provider-logo:first-child) img {
	content: url('ui-states/2gis-icon-white.svg');
}

.nh-review-provider-button:where(:not(:disabled)):where([data-provider='2gis']):is(:hover, :active) :where(.nh-review-provider-logo:last-child) img {
	content: url('ui-states/2gis-wordmark-white.svg');
}

.nh-review-provider-button:where(:not(:disabled))[data-provider='yandex']:is(:hover, :active) img {
	content: url('ui-states/yandex-white.svg');
}

:is(.nh-header, .nh-vacancy-socials) .nh-social-link[data-network='vk']:hover {
	background: #2787f5;
}

:is(.nh-header, .nh-vacancy-socials) .nh-social-link[data-network='vk']:active {
	background: #227be1;
}

:is(.nh-header, .nh-vacancy-socials, .nh-floating-controls) .nh-social-link[data-network='max']:hover {
	background: linear-gradient(#55abdd, #6939b1);
}

:is(.nh-header, .nh-vacancy-socials, .nh-floating-controls) .nh-social-link[data-network='max']:active {
	background: linear-gradient(#489dce, #5e2fa4);
}

:is(.nh-header, .nh-vacancy-socials) .nh-social-link[data-network='rutube']:hover {
	background: #000;
}

:is(.nh-header, .nh-vacancy-socials) .nh-social-link[data-network='rutube']:active {
	background: #363636;
}

:is(.nh-header, .nh-vacancy-socials) .nh-social-link[data-network='vk']:is(:hover, :active) img {
	content: url('ui-states/header-vk-white.svg');
}

:is(.nh-header, .nh-vacancy-socials, .nh-floating-controls) .nh-social-link[data-network='max']:is(:hover, :active) img {
	content: url('ui-states/header-max-white.svg');
}

:is(.nh-header, .nh-vacancy-socials) .nh-social-link[data-network='rutube']:is(:hover, :active) img {
	content: url('ui-states/header-rutube-white.svg');
}

.nh-footer .nh-social-link:hover {
	background: var(--nh-mint);
}

.nh-footer .nh-social-link:active {
	background: var(--nh-mint-pressed);
}

.nh-footer .nh-social-link[data-network='vk']:is(:hover, :active) img {
	content: url('ui-states/footer-vk-white.svg');
}

.nh-footer .nh-social-link[data-network='max']:is(:hover, :active) img {
	content: url('ui-states/footer-max-white.svg');
}

.nh-footer .nh-social-link[data-network='rutube']:is(:hover, :active) img {
	content: url('ui-states/footer-rutube-white.svg');
}

.nh-navigation > a:hover,
.nh-navigation > details > summary:hover,
.nh-footer :is(a, button):hover:not(.nh-social-link) {
	opacity: .6;
}

.nh-navigation > a:active,
.nh-navigation > details > summary:active,
.nh-footer :is(a, button):active:not(.nh-social-link) {
	opacity: 1;
}

.nh-dropdown > :is(a, button):hover {
	opacity: .6;
}

.nh-gallery-tabs button:hover:where(:not(:disabled)) {
	opacity: 1;
}

:is(.nh-gallery-select, [data-nh-property-select]):is(:hover, :focus):where(:not(:disabled)) {
	border-color: var(--nh-mint);
	background-color: var(--nh-mint);
	color: #fff;
}

:is(.nh-gallery-select, [data-nh-property-select]) option {
	background: #fff;
	color: var(--nh-teal);
}

.nh-property-media:has(> .nh-gallery-select:is(:hover, :focus))::after {
	background-image: url('ui-states/selector-open.svg');
	transform: rotate(-90deg);
}

.nh-property-gallery .nh-gallery:has(> .nh-gallery-select:is(:hover, :focus))::before {
	background-image: url('ui-states/selector-open.svg');
	transform: rotate(-90deg);
}

.nh-home-prompt .nh-button:hover:where(:not(:disabled)),
.nh-property-included-cta .nh-button:hover:where(:not(:disabled)) {
	background: #fff;
	color: var(--nh-mint);
}

.nh-home-prompt .nh-button:active:where(:not(:disabled)),
.nh-property-included-cta .nh-button:active:where(:not(:disabled)) {
	background: #fff;
	color: var(--nh-deep);
}

.nh-home-prompt .nh-button:hover:where(:not(:disabled)) .nh-button-arrow,
.nh-property-included-cta .nh-button:hover:where(:not(:disabled)) .nh-button-arrow {
	background-image: url('ui-states/arrow-white-hover.svg');
}

.nh-home-prompt .nh-button:active:where(:not(:disabled)) .nh-button-arrow,
.nh-property-included-cta .nh-button:active:where(:not(:disabled)) .nh-button-arrow {
	background-image: url('ui-states/arrow-white-pressed.svg');
}

.nh-home-admission-cta .nh-button:hover:where(:not(:disabled)),
.nh-company-admission-cta .nh-button:hover:where(:not(:disabled)) {
	background: #fff;
	color: var(--nh-teal);
}

.nh-home-admission-cta .nh-button:active:where(:not(:disabled)),
.nh-company-admission-cta .nh-button:active:where(:not(:disabled)) {
	background: #fff;
	color: var(--nh-deep);
}

.nh-home-admission-cta .nh-button:hover:where(:not(:disabled)) .nh-button-arrow,
.nh-company-admission-cta .nh-button:hover:where(:not(:disabled)) .nh-button-arrow {
	background-image: url('ui-states/arrow-list-hover.svg');
}

.nh-home-admission-cta .nh-button:active:where(:not(:disabled)) .nh-button-arrow,
.nh-company-admission-cta .nh-button:active:where(:not(:disabled)) .nh-button-arrow {
	background-image: url('ui-states/arrow-list-pressed.svg');
}

.nh-home-property-link a:hover::after,
.nh-page-news .wp-block-post-excerpt__more-link:is(:hover, :focus-visible)::after {
	background-image: url('ui-states/arrow-detail-hover.svg');
}

.nh-home-property-link a:active,
.nh-page-news .wp-block-post-excerpt__more-link:active {
	color: var(--nh-mint-pressed);
}

.nh-home-property-link a:active::after,
.nh-page-news .wp-block-post-excerpt__more-link:active::after {
	background-image: url('ui-states/arrow-detail-pressed.svg');
}

.nh-section-services .nh-button:hover:where(:not(:disabled)) {
	color: var(--nh-mint);
}

.nh-section-services .nh-button:hover:where(:not(:disabled)) .nh-button-arrow {
	background-image: url('ui-states/arrow-detail-hover.svg');
}

.nh-section-services .nh-button:active:where(:not(:disabled)) {
	color: var(--nh-mint-pressed);
}

.nh-section-services .nh-button:active:where(:not(:disabled)) .nh-button-arrow {
	background-image: url('ui-states/arrow-detail-pressed.svg');
}

@media (width >= 701px) {
	.nh-dropdown {
		padding: 24px;
		border: 1px solid rgb(255 255 255 / 10%);
		border-radius: 16px;
		background: rgb(51 57 43 / 30%);
		backdrop-filter: blur(40px);
	}

	.nh-dropdown > * {
		margin-bottom: 16px;
		color: #fff;
		opacity: .6;
	}

	.nh-dropdown > :last-child {
		margin-bottom: 0;
	}

	.nh-dropdown > :is(a, button):is(:hover, :active, :focus-visible, [aria-current]) {
		opacity: 1;
	}

}

@media (prefers-reduced-motion: reduce) {
	.nh-navigation :is(a, button, summary) {
		transition: none;
	}
}

/* Contact slots keep their own idle colors and share visible actionable states. */
:is(.nh-vacancy-intro, .nh-partner-mail-copy) a:is([href^="tel:"], [href^="mailto:"]):hover {
	color: var(--nh-teal);
}

.nh-contact-card a:is([href^="tel:"], [href^="mailto:"]):hover {
	color: var(--nh-mint);
}

:is(.nh-vacancy-intro, .nh-partner-mail-copy, .nh-contact-card) a:is([href^="tel:"], [href^="mailto:"]):active {
	color: var(--nh-mint-pressed);
}
