/* ==========================================================================
   NeuroConsult — редизайн главной (test.html)
   Палитра взята из видео-героя: белый, небесно-голубой, фиолетово-розовое
   свечение и тёплый акцент для кнопок.
   ========================================================================== */

:root {
	--ink: #0f1b33;
	--text: #2b3a55;
	--muted: #5b6b86;

	--blue: #2563eb;
	--blue-600: #1d4ed8;
	--blue-100: #e3edff;
	--violet: #6d5dfc;
	--coral: #ee2c55;
	--coral-600: #cc1744;

	--page: #f6f9ff;
	--band: #e9f1ff;
	--line: rgba(37, 99, 235, .12);

	--grad-brand: linear-gradient(135deg, #2563eb 0%, #6d5dfc 100%);
	--grad-cta: linear-gradient(135deg, #ee2c55 0%, #cc1744 100%);
	--grad-band: linear-gradient(180deg, rgba(233, 241, 255, 0) 0%, var(--band) 14%, var(--band) 86%, rgba(233, 241, 255, 0) 100%);

	--radius-sm: 14px;
	--radius-md: 22px;
	--radius-lg: 32px;
	--radius-xl: clamp(28px, 4vw, 56px);

	--shadow-sm: 0 2px 10px rgba(15, 27, 51, .06);
	--shadow-md: 0 14px 34px -12px rgba(30, 64, 175, .22);
	--shadow-lg: 0 34px 70px -24px rgba(30, 64, 175, .38);

	--bs-danger-rgb: 204, 23, 68;
}

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

body {
	margin: 0;
	font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 1rem;
	line-height: 1.65;
	text-align: left;
	color: var(--text);
	background-color: var(--page);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
}

::selection {
	background: rgba(37, 99, 235, .22);
}

:focus-visible {
	outline: 3px solid rgba(37, 99, 235, .55);
	outline-offset: 3px;
}

h1, h2, h3, h4, h5 {
	color: var(--ink);
	line-height: 1.2;
	letter-spacing: -.015em;
}

h1 {
	margin: 0 0 1.25rem;
	padding: 0;
	font-size: clamp(1.9rem, 3.7vw, 3.1rem);
	font-weight: 900;
	letter-spacing: -.025em;
	text-wrap: balance;
	color: var(--ink);
	background: linear-gradient(100deg, var(--ink) 25%, var(--blue) 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

h2 {
	position: relative;
	margin: 0 0 1rem;
	padding: 0;
	font-size: clamp(1.55rem, 2.6vw, 2.25rem);
	font-weight: 800;
	border: 0;
	text-wrap: balance;
}

h2::before {
	content: "";
	display: block;
	width: 56px;
	height: 6px;
	margin-bottom: 18px;
	border-radius: 99px;
	background: var(--grad-brand);
}

h2.text-center::before,
.no-border::before {
	margin-inline: auto;
}

.section-title {
	margin-top: clamp(3.5rem, 7vw, 5.5rem);
	margin-bottom: 2rem;
}

h3, h4, h5 {
	margin: 0 0 .5rem;
	padding: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

strong {
	font-weight: 700;
	color: var(--ink);
}

.section-lead {
	max-width: 64ch;
	margin: -.5rem 0 2rem;
	font-size: 1.0625rem;
	color: var(--muted);
}

/* Ссылки */

a {
	color: var(--blue);
	text-decoration: none;
	transition: color .2s ease;
}

a:hover {
	color: var(--blue-600);
}

p > a,
.feature-text a {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(37, 99, 235, .35);
	text-underline-offset: 3px;
}

p > a:hover,
.feature-text a:hover {
	text-decoration-color: currentColor;
}

/* Утилиты (используются в разметке) */

.f-bold { font-weight: 700; }
.f-black { font-weight: 900; }
.f-size-14 { font-size: 14px; }
.f-size-18 { font-size: 18px; }

.hide-mobile {
	display: block;
}

@media (max-width: 800px) {
	.hide-mobile {
		display: none;
	}
}

@media (max-width: 767.98px) {
	ul,
	ol {
		padding-left: 10px;
	}
}

/* ---------- Меню ---------- */

html {
	scroll-padding-top: 76px;
}

.site-nav {
	position: sticky;
	top: 0;
	z-index: 1030;
	padding: 0;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid var(--line);
}

.site-nav .container {
	min-height: 60px;
}

.site-nav .navbar-brand {
	margin: 0;
	padding: 0;
}

.site-nav .navbar-brand img {
	display: block;
	width: auto;
	height: 38px;
}

.site-nav .nav-link {
	padding: .5rem .9rem;
	color: var(--ink);
	font-size: .9375rem;
	font-weight: 600;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible {
	color: var(--blue);
}

.site-nav .navbar-toggler {
	padding: .35rem .6rem;
	border-color: var(--line);
	border-radius: var(--radius-sm);
}

@media (max-width: 767.98px) {
	.site-nav .navbar-collapse {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		padding: .25rem 12px 1rem;
		background: rgba(255, 255, 255, .97);
		border-bottom: 1px solid var(--line);
		box-shadow: var(--shadow-md);
	}
}

/* ---------- Вступление с видео ---------- */

.story-intro {
	position: relative;
	overflow: hidden;
	background-color: var(--page);
}

.story-intro::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 32%;
	background: linear-gradient(to bottom, rgba(246, 249, 255, 0), var(--page));
	pointer-events: none;
}

.story-intro__video {
	max-height: calc(100vh - 140px);
	min-height: 420px;
	object-fit: cover;
	object-position: 50% 22%;
	margin-bottom: -65px;
	opacity: 1;
	transition: opacity .5s ease;
}

.story-intro__message {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: var(--blue);
	font-size: clamp(20px, 4vw, 40px);
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity .5s ease;
}

.story-intro--message .story-intro__video {
	opacity: 0;
}

.story-intro--message .story-intro__message {
	opacity: 1;
}

.story-intro--restart .story-intro__message {
	opacity: 0;
}

@media (max-width: 767px) {
	.story-intro {
		aspect-ratio: 4 / 3;
	}

	.story-intro__video {
		position: absolute;
		top: 0;
		left: 0;
		min-height: 0;
		max-height: none;
		height: calc(100% + 65px) !important; /* Переопределяет Bootstrap h-auto. */
		margin-bottom: 0;
		object-fit: cover;
		object-position: center top;
	}
}

@media (prefers-reduced-motion: reduce) {
	.story-intro__video,
	.story-intro__message {
		transition: none;
	}
}

/* ---------- Карточка (заголовок поверх видео) ---------- */

.hero-card {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 1.25rem;
	margin-top: calc(-1 * clamp(12px, 2vw, 28px));
	padding: clamp(24px, 4vw, 56px);
	background: rgba(255, 255, 255, .86);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	backdrop-filter: blur(18px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, .9);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg);
}

.hero-card h1 {
	margin: 0;
}

.hero-card__lead {
	margin: 0;
	font-size: clamp(1rem, 1.5vw, 1.2rem);
	line-height: 1.7;
	color: var(--text);
}

.hero-card__lead strong {
	color: var(--blue-600);
}

.hero-card__epigraph {
	position: relative;
	margin: 0;
	padding: 28px 28px 24px 34px;
	border-radius: var(--radius-md);
	background: linear-gradient(135deg, #eef4ff 0%, #fdeff3 100%);
	font-size: .95rem;
	font-style: italic;
	line-height: 1.8;
	color: var(--text);
}

.hero-card__epigraph::before {
	content: "\201C";
	position: absolute;
	top: -2px;
	left: 14px;
	font-size: 3.5rem;
	font-style: normal;
	font-weight: 900;
	line-height: 1;
	color: rgba(37, 99, 235, .3);
}

@media (min-width: 992px) {
	.hero-card {
		grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
		column-gap: 56px;
		row-gap: 1rem;
		align-items: center;
	}

	.hero-card__epigraph {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

/* ---------- Статьи ---------- */

.start-section{
	height: calc(100vh - 40px);
	max-height:650px;
	width: calc(100% - 40px);
	margin: 20px auto;
	border-radius:30px;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	animation-duration: 0.5s;
	animation-delay: 0.5s;
	animation-name: slidein;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;	
	-khtml-opacity: 0;
	opacity: 0;
	box-shadow: var(--shadow-md);
}

#logo{
	position:absolute;
	width:162px;
	height:45px;
	top:65px;
	left:116px;
	background-image: url(../images/logo.png);
	z-index:9999;
}

@media screen and (max-width: 900px) {
	#logo{
		display:none;
	}
}

#start-section-main {
	background:
		url(../images/mesh7.png) no-repeat 120% 80%,
		url(../images/assistants.png) no-repeat 80% 100%,
		linear-gradient(to top right, #4a8ab1 0%, #4a8ab1 55%, #3f789a 100%);
}

@media (max-width: 640px) {
	#start-section-main {
		background:
			url(../images/mesh7.png) no-repeat 120% 80%,
			url(../images/assistants.png) no-repeat 50% 100%,
			linear-gradient(to top right, #4a8ab1 0%, #4a8ab1 55%, #3f789a 100%);
	}
}

#start-section-page{
	background-color: #eb617b;
	background-image: url(../images/mesh7.png), url(../images/design.png);
	background-repeat: no-repeat;
	background-position: 100% 80%, 80% 100%;
	background-size: auto, auto;
}

@media (max-width: 640px) {
	#start-section-page{
		background-color: #eb617b;
		background-image: url(../images/mesh7.png), url(../images/design.png);
		background-repeat: no-repeat;
		background-position: 100% 80%, 50% 100%;
		background-size: auto, auto;
	}
}

#start-section-page--2 {
    background-color: #2563eb;
    background-image:
        url("../images/mesh7.png"),
        url("../images/programming.png"),
        linear-gradient(145deg, #1e3a5f, #2563eb);
    background-repeat: no-repeat;
    background-position: 100% 80%, 80% 100%, center;
    background-size: auto, auto, cover;
}

@media (max-width: 640px) {
	#start-section-page--2 {
	    background-position: 100% 80%, 50% 100%, center;
	}
}

#start-section-page--3{
	background-color: #1f4db1;
	background-image: url(../images/mesh7.png), url(../images/assistants.png);
	background-repeat: no-repeat;
	background-position: 100% 80%, 80% 100%;
	background-size: auto, auto;
}

#start-section-page--4{
	background-color: #eb617b;
	background-image: url(../images/mesh7.png), url(../images/assistant_prompt.png);
	background-repeat: no-repeat;
	background-position: 135% 50%, 85% 100%;
	background-size: auto, auto;
}

#start-section-page--5{
	background-color: #1f4db1;
	background-image: url(../images/mesh7.png), url(../images/assistants03.png);
	background-repeat: no-repeat;
	background-position: 115% 80%, 80% 100%;
	background-size: auto, auto;
}

#start-section-page--7{
	background-color: #1f4db1;
	background-image: url(../images/mesh7.png), url(../images/assistants07.png);
	background-repeat: no-repeat;
	background-position: 110% 80%, 80% 100%;
	background-size: auto, auto;
}

#start-section__title{
	width:100%;
	color:#fff;
}

#start-section__title_1{
	font-size: 2.4rem;
	font-weight: 900;
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	animation-duration: 1s;
	animation-delay: 1s;
	animation-name: slidein-title-1;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;	
	-khtml-opacity: 0;
	opacity: 0;
}

@media (max-width: 640px) {
    #start-section__title_1 {
        padding: 12px 18px;
        text-align: center;
        font-size: 2.4rem;
        background: rgba(0, 0, 0, 0.35);
        backdrop-filter: blur(4px);
        border-radius: 10px;
        width:90%;
    }
}

#start-section__title_2{
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	animation-duration: 1s;
	animation-delay: 1.5s;
	animation-name: slidein-title-2;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;	
	-khtml-opacity: 0;
	opacity: 0;
	padding: 20px 0 0 0;
	font-size: 21px;
	line-height: 2;
}

@media only screen and (max-width : 640px) {
	#start-section__title_2{	
		display: none;	
	}
}

#start-section__title_3{
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	animation-duration: 1s;
	animation-delay: 2s;
	animation-name: slidein-title-2;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;	
	-khtml-opacity: 0;
	opacity: 0;
	padding: 20px 0 0 0;
	font-size: 21px;
	line-height: 2;
	font-weight: 900;
}

@media only screen and (max-width : 640px) {
	#start-section__title_3{	
		display: none;	
	}
}


@keyframes slidein {
  from {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	-khtml-opacity: 0;
	opacity: 0;
  }

  to {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	-moz-opacity: 1;
	-khtml-opacity: 1;
	opacity: 1;
  }
}

@keyframes slidein-title-1 {
  from {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	-khtml-opacity: 0;
	opacity: 0;
	margin:0 0 0 6%;
  }

  to {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	-moz-opacity: 1;
	-khtml-opacity: 1;
	opacity: 1;
	margin:0 0 0 5%;	
  }
}

@keyframes slidein-title-2 {
  from {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	-khtml-opacity: 0;
	opacity: 0;
	margin:0 0 0 6%;
  }

  to {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	-moz-opacity: 1;
	-khtml-opacity: 1;
	opacity: 1;
	margin:0 0 0 5%;
  }
}

@keyframes slidein-title-3 {
  from {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
	filter: alpha(opacity=0);
	-moz-opacity: 0;
	-khtml-opacity: 0;
	opacity: 0;
	margin:0 0 0 6%;
  }

  to {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
	filter: alpha(opacity=100);
	-moz-opacity: 1;
	-khtml-opacity: 1;
	opacity: 1;
	margin:0 0 0 5%;
  }
}

.note{
	background-color: #eaeaea;
	padding: 20px;
	margin: 20px 0 0 0;
	border-radius: 15px;
}

.hide-mobile{
	display:block;	
}

@media only screen and (max-width: 800px) {
    .hide-mobile {
        display: none;
    }
}

.show-mobile{
	display:none;	
}

/* ---------- Карточки ---------- */

.feature-card {
	position: relative;
	height: 100%;
	padding: 32px;
	border-radius: var(--radius-md);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-md);
}

.feature-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 22px;
	border-radius: 16px;
	background: var(--grad-brand);
	color: #fff;
	font-size: 1.4rem;
	box-shadow: 0 12px 22px -8px rgba(37, 99, 235, .55);
}

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

.feature-icon svg path:not(:first-child) {
	fill: currentColor;
}

.col-lg-4:nth-child(3n + 2) .feature-icon:not(.f-black) {
	background: linear-gradient(135deg, #6d5dfc 0%, #c026d3 100%);
	box-shadow: 0 12px 22px -8px rgba(124, 58, 237, .55);
}

.col-lg-4:nth-child(3n + 3) .feature-icon:not(.f-black) {
	background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
	box-shadow: 0 12px 22px -8px rgba(14, 165, 233, .55);
}

.feature-title {
	margin-bottom: .5rem;
	font-size: 1.2rem;
	font-weight: 700;
}

.feature-text {
	margin: 0;
	line-height: 1.7;
}

.feature-card hr,
.card-info hr,
.card-info--color hr {
	height: 1px;
	margin: 1rem 0 1.1rem;
	border: 0;
	opacity: 1;
	background: linear-gradient(90deg, rgba(37, 99, 235, .4), rgba(37, 99, 235, 0));
}

.feature-card .feature-text strong {
	color: var(--blue-600);
}

.feature-card .feature-text.mb-3 {
	color: var(--muted);
	font-weight: 500;
}

/* Карточки-ссылки */

.card-link {
	display: flex;
	flex-direction: column;
	color: inherit;
}

.card-link:hover {
	color: inherit;
	border-color: rgba(37, 99, 235, .35);
}

.card-link .feature-text {
	color: var(--muted);
}

.card-more {
	margin-top: auto;
	padding-top: 14px;
	font-weight: 700;
	color: var(--blue);
}

.card-link:hover .card-more {
	color: var(--blue-600);
	text-decoration: underline;
	text-underline-offset: 4px;
}

/* ---------- Баннер с акцией ---------- */

.promo-banner {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
	padding: clamp(28px, 4vw, 52px) 24px;
	border-radius: var(--radius-xl);
	background: linear-gradient(115deg, #1d4ed8 0%, #4f46e5 55%, #a21caf 120%);
	color: #fff;
	text-align: center;
	box-shadow: var(--shadow-lg);
}

.promo-banner::before,
.promo-banner::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	pointer-events: none;
}

.promo-banner::before {
	top: -200px;
	right: -120px;
	width: 440px;
	height: 440px;
	background: radial-gradient(circle, rgba(255, 255, 255, .3), transparent 65%);
}

.promo-banner::after {
	bottom: -220px;
	left: -100px;
	width: 440px;
	height: 440px;
	background: radial-gradient(circle, rgba(238, 44, 85, .5), transparent 65%);
}

.promo-banner > svg {
	box-sizing: border-box;
	width: 64px;
	height: 64px;
	padding: 14px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .18);
}

.promo-banner__title {
	margin: 0;
	font-size: clamp(1.35rem, 3.2vw, 2.1rem);
	font-weight: 700;
	line-height: 1.4;
}

.promo-banner .promo-banner__title s.text-danger {
	color: rgba(255, 255, 255, .7) !important;
}

.promo-banner__price {
	display: inline-block;
	margin-left: .25em;
	padding: .05em .55em;
	border-radius: 999px;
	background: #fff;
	color: var(--coral-600);
	font-weight: 900;
	white-space: nowrap;
}

.promo-banner__date {
	margin: 10px 0 0;
	font-size: 1rem;
	font-weight: 500;
	color: rgba(255, 255, 255, .85);
}

/* ---------- Кнопки и призыв к действию ---------- */

.btn-cta,
.btn-cta:link,
.btn-cta:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 270px;
	padding: 17px 36px;
	border: 0;
	border-radius: 999px;
	background: var(--grad-cta);
	color: #fff !important;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	cursor: pointer;
	box-shadow: 0 16px 30px -12px rgba(204, 23, 68, .7);
}

.btn-cta:hover {
	filter: brightness(1.06);
}

.btn-ai-assistant,
.btn-ai-assistant:link,
.btn-ai-assistant:visited {
	background: var(--grad-brand);
	box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .7);
}

@media (max-width: 576px) {
	.btn-cta {
		display: flex;
		width: 100%;
		max-width: 340px;
		margin: auto;
	}
}

/* Кнопки контактов */

.contact-buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	row-gap: 40px;
	max-width: 640px;
	margin: 0 auto;
}

.contact-btn,
.contact-btn:link,
.contact-btn:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 17px 24px;
	border-radius: 999px;
	background: var(--grad-brand);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	text-decoration: none;
	box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .7);
	transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.contact-btn--call,
.contact-btn--call:link,
.contact-btn--call:visited {
	background: var(--grad-cta);
	box-shadow: 0 16px 30px -12px rgba(204, 23, 68, .7);
}

.contact-btn:hover,
.contact-btn:focus-visible {
	color: #fff;
	filter: brightness(1.08);
}

.contact-btn:focus-visible {
	outline: 3px solid rgba(37, 99, 235, .35);
	outline-offset: 3px;
}

.contact-btn__icon {
	flex: 0 0 auto;
	width: 1.4em;
	height: 1.4em;
}

button.contact-btn--inline {
	display: inline-flex;
	min-width: 270px;
	border: 0;
	font-family: inherit;
	cursor: pointer;
}

@media (max-width: 576px) {
	button.contact-btn--inline {
		display: flex;
		width: 100%;
		max-width: 340px;
		margin: auto;
	}

	.contact-buttons {
		grid-template-columns: 1fr;
		gap: 12px;
		row-gap: 36px;
		max-width: 340px;
	}
}

.cta-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	text-align: center;
}

.cta-block h4 {
	margin: 0;
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 800;
}

a.menu-link,
a.menu-link:link,
a.menu-link:visited {
	color: var(--ink);
	text-decoration: none;
}

a.menu-link:hover {
	color: var(--blue);
}

.cta-block a.menu-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.cta-block a.menu-link::before {
	content: "";
	width: 1em;
	height: 1em;
	background: var(--blue);
	-webkit-mask: var(--icon-phone) center / contain no-repeat;
	mask: var(--icon-phone) center / contain no-repeat;
}

:root {
	--icon-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m19.23 15.26l-2.54-.29a1.99 1.99 0 0 0-1.64.57l-1.84 1.84a15.05 15.05 0 0 1-6.59-6.59l1.85-1.85c.43-.43.64-1.03.57-1.64l-.29-2.52a2 2 0 0 0-1.99-1.77H5.03c-1.13 0-2.07.94-2 2.07c.53 8.54 7.36 15.36 15.89 15.89c1.13.07 2.07-.87 2.07-2v-1.73c.01-1.01-.75-1.86-1.76-1.98'/%3E%3C/svg%3E");
}

/* Подсказка-стрелка */

.scroll-hint {
	margin: 2.5rem 0 .5rem;
}

.scroll-hint svg {
	box-sizing: border-box;
	width: 52px;
	height: 52px;
	padding: 12px;
	border-radius: 50%;
	background: #fff;
	color: var(--blue);
	box-shadow: var(--shadow-md);
}

.scroll-hint + div:has(> .btn-ai-assistant.d-none) {
	display: none;
}

/* ---------- Новости ---------- */

section.news-section {
	margin-top: 1.5rem;
	padding: clamp(32px, 5vw, 64px) 0 32px;
	background: var(--grad-band);
}

.news-section h2 {
	margin-top: 0;
	margin-bottom: .5rem;
}

.news-card {
	display: flex;
	flex-direction: column;
	padding: 28px;
	background: #fff;
	border-radius: var(--radius-md);
	border: 1px solid var(--line);
	box-shadow: var(--shadow-md);
}

.news-card .feature-title {
	align-self: flex-start;
	margin-bottom: 16px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--blue-100);
	color: var(--blue-600);
	font-size: .8125rem;
	font-weight: 700;
	letter-spacing: .04em;
}

.news-card .feature-text {
	font-size: .95rem;
}

.news-card > p.mt-3 {
	margin-top: auto !important;
	padding-top: 14px;
}

.news-section .news-carousel {
	max-width: 1344px;
	margin-inline: auto;
	padding-inline: 12px;
}

.news-section .news-carousel .owl-nav button.owl-prev,
.news-section .news-carousel .owl-nav button.owl-next {
	width: 52px;
	height: 52px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--blue);
	box-shadow: var(--shadow-md);
}

.news-section .news-carousel .owl-nav button.owl-prev:hover,
.news-section .news-carousel .owl-nav button.owl-next:hover {
	background: var(--grad-brand);
	color: #fff;
}

.news-section .news-carousel .owl-nav button.disabled:hover {
	background: #fff;
	color: var(--blue);
}

/* ---------- Баннеры с роботом ---------- */

.story-banner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 127px;
	align-items: start;
	gap: 64px;
	max-width: 960px;
	margin: 3.5rem auto;
}

.story-cloud {
	position: relative;
	margin-top: 12px;
	padding: 32px 40px;
	background: linear-gradient(135deg, #fff 0%, #e9f1ff 100%);
	border: 1px solid var(--line);
	border-radius: 44px;
	color: var(--ink);
	box-shadow: var(--shadow-md);
	overflow-wrap: anywhere;
}

.story-cloud::before,
.story-cloud::after {
	content: "";
	position: absolute;
	background: var(--grad-brand);
	border-radius: 50%;
	pointer-events: none;
}

.story-cloud::before {
	width: 22px;
	height: 22px;
	right: -34px;
	top: 38px;
}

.story-cloud::after {
	width: 11px;
	height: 11px;
	right: -54px;
	top: 24px;
}

.story-cloud h3 {
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	font-weight: 800;
}

.story-cloud ol {
	margin: 1rem 0 0;
	padding: 0;
	list-style: none;
	counter-reset: item;
}

.story-cloud ol li {
	position: relative;
	padding: 7px 0 7px 42px;
	counter-increment: item;
}

.story-cloud ol li::before {
	content: counter(item);
	position: absolute;
	top: 8px;
	left: 0;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--grad-brand);
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
}

.story-link,
a.story-link {
	color: var(--ink);
	font-size: clamp(1.1rem, 2vw, 1.5rem);
	line-height: 1.35;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(37, 99, 235, .45);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.story-link:hover {
	color: var(--blue-600);
	text-decoration-color: currentColor;
}

.story-thought {
	margin: 16px 0 0;
	font-size: 1rem;
	color: var(--text);
}

.story-robot {
	display: block;
	width: 127px;
	max-width: 100%;
	height: auto;
	filter: drop-shadow(0 20px 22px rgba(37, 99, 235, .28));
}

.story-banner--robot-left {
	grid-template-columns: 139px minmax(0, 1fr);
}

.story-banner--robot-left .story-robot {
	width: 139px;
}

.story-banner--robot-left .story-cloud::before {
	right: auto;
	left: -34px;
}

.story-banner--robot-left .story-cloud::after {
	right: auto;
	left: -54px;
}

@media (max-width: 575.98px) {
	.story-banner {
		grid-template-columns: minmax(0, 1fr) 76px;
		gap: 28px;
		margin: 2rem auto;
	}

	.story-cloud {
		margin-top: 0;
		padding: 22px 18px;
		border-radius: 30px;
	}

	.story-cloud::before {
		width: 12px;
		height: 12px;
		right: -16px;
		top: 24px;
	}

	.story-cloud::after {
		width: 7px;
		height: 7px;
		right: -26px;
		top: 16px;
	}

	.story-link,
	a.story-link {
		font-size: 1.05rem;
	}

	.story-thought {
		margin-top: 12px;
		font-size: .9375rem;
		line-height: 1.5;
	}

	.story-banner--robot-left {
		grid-template-columns: 83px minmax(0, 1fr);
	}

	.story-banner--robot-left .story-robot {
		width: 83px;
	}

	.story-banner--robot-left .story-cloud::before {
		left: -16px;
	}

	.story-banner--robot-left .story-cloud::after {
		left: -26px;
	}
}

/* ---------- Баннер с фото ---------- */

.section-bg,
.section-bg-2 {
	position: relative;
	margin: clamp(3.5rem, 7vw, 5.5rem) clamp(12px, 2vw, 32px) 0;
	padding: clamp(72px, 12vw, 140px) 0;
	overflow: hidden;
	border-radius: var(--radius-xl);
	background-size: cover;
	background-position: 50% 18%;
	box-shadow: var(--shadow-lg);
}

.section-bg {
	background-image: linear-gradient(100deg, rgba(15, 27, 51, .88) 0%, rgba(29, 78, 216, .55) 55%, rgba(15, 27, 51, .15) 100%), url(../images/bg001.jpg);
}

.section-bg-2 {
	background-image: linear-gradient(100deg, rgba(15, 27, 51, .88) 0%, rgba(29, 78, 216, .55) 55%, rgba(15, 27, 51, .15) 100%), url(../images/bg002.jpg);
}

.section-bg__text {
	max-width: 900px;
	margin: 0;
	padding: 0;
	color: #fff;
	font-size: clamp(1.4rem, 3.2vw, 2.5rem);
	font-weight: 800;
	line-height: 1.3;
	text-shadow: 0 2px 24px rgba(15, 27, 51, .4);
}

.section-bg__text::before {
	background: linear-gradient(90deg, #7cc4ff, #fff);
}

/* ---------- Секции ---------- */

.section-color {
	padding: clamp(56px, 8vw, 70px) 0 clamp(48px, 7vw, 70px);
	background: var(--grad-band);
}

.contacts-section {
	padding-top: clamp(32px, 5vw, 48px);
}

.contacts-section > .container > .section-title:first-child {
	margin-top: 0;
}

.section-white {
	margin: clamp(2rem, 4vw, 3rem) clamp(0px, 1.5vw, 24px) 0;
	padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
	border-radius: var(--radius-xl);
	background: #fff;
	box-shadow: var(--shadow-md);
}

.section-badge {
	display: block;
	width: clamp(120px, 14vw, 168px);
	aspect-ratio: 1;
	margin: 0 auto;
	object-fit: cover;
	border-radius: 50%;
	border: 6px solid #fff;
	box-shadow: 0 0 0 2px rgba(37, 99, 235, .25), var(--shadow-md);
}

/* ---------- Пошаговая схема ---------- */

.number,
.number--color {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin: 0 auto;
	border-radius: 50%;
	background: var(--grad-brand);
	color: #fff;
	font-size: 1.5rem;
	font-weight: 900;
	box-shadow: 0 0 0 8px rgba(37, 99, 235, .12), 0 14px 26px -8px rgba(37, 99, 235, .6);
}

.number--color {
	width: 80px;
	height: 80px;
	margin-top: 30px;
}

.v-line-number,
.v-line-number--color {
	width: 2px;
	height: 56px;
	margin: 0 auto;
	background: repeating-linear-gradient(to bottom, rgba(37, 99, 235, .55) 0 8px, transparent 8px 16px);
}

.card-info,
.card-info--color {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 3.5vw, 44px);
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}

.card-info::before,
.card-info--color::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: var(--grad-brand);
}

.card-info h3 {
	font-size: clamp(1.2rem, 2.2vw, 1.5rem);
	font-weight: 800;
}

.card-info p {
	line-height: 1.75;
}

.card-info .story-banner,
.card-info--color .story-banner {
	margin: 1.5rem auto;
}

.card-info--color .f-bold h4 {
	margin-top: .75rem;
	font-size: clamp(1.35rem, 2.6vw, 1.75rem);
	font-weight: 800;
}

.card-info--color .f-bold svg {
	box-sizing: border-box;
	width: 60px;
	height: 60px;
	padding: 15px;
	border-radius: 50%;
	background: var(--blue-100);
}

.card-info--color .f-bold svg path[fill="#000"] {
	fill: var(--blue);
}

/* ---------- Галерея ---------- */

.gallery {
	margin-top: clamp(3.5rem, 7vw, 5.5rem);
	padding: clamp(48px, 7vw, 48px) 0 clamp(24px, 4vw, 48px);
	background: var(--grad-band);
}

.gallery__image {
	display: block;
	width: 100%;
	height: auto;
	mix-blend-mode: multiply;
}

/* ---------- Партнёры ---------- */

.partners {
	padding-bottom: 1rem;
}

.partner-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 28px 20px 24px;
	border-radius: var(--radius-md);
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: var(--shadow-sm);
}

.partner-card a {
	display: block;
}

.partner-card img {
	display: block;
	width: 100%;
	max-width: 190px;
	height: auto;
	margin: -18px 0;
}

.partner-card p {
	margin: 0;
	color: var(--muted);
}

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

footer {
	position: relative;
	margin: 200px 0 0;
	padding: 100px 0;
	border-radius: var(--radius-xl) var(--radius-xl) 0 0;
	background: linear-gradient(180deg, #e9f1ff 0%, #d6e5ff 100%);
	color: var(--muted);
}

.neiro-footer {
	position: absolute;
	bottom: 0;
	left: 20px;
	display: block;
	width: 459px;
	height: auto;
}

@media (max-width: 760px) {
	.neiro-footer {
		display: none;
	}

	footer {
		margin: 50px 0 0;
		padding: 56px 0;
	}
}

/* ---------- Bootstrap-компоненты: форма и cookie ---------- */

.btn-primary {
	--bs-btn-bg: var(--blue);
	--bs-btn-border-color: var(--blue);
	--bs-btn-hover-bg: var(--blue-600);
	--bs-btn-hover-border-color: var(--blue-600);
	--bs-btn-active-bg: #1e40af;
	--bs-btn-active-border-color: #1e40af;
	--bs-btn-disabled-bg: var(--blue);
	--bs-btn-disabled-border-color: var(--blue);
	--bs-btn-focus-shadow-rgb: 37, 99, 235;
	--bs-btn-border-radius: 999px;
	--bs-btn-padding-x: 1.6rem;
	font-weight: 700;
}

.modal-content {
	border: 0;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-lg);
}

.form-control {
	border-radius: var(--radius-sm);
}

.form-check-input:checked {
	background-color: var(--blue);
	border-color: var(--blue);
}

/* --------- content-list  --------------- */

.content-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}


.content-list__item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.content-list__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.content-list__number {
    flex: 0 0 70px;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #a1a1a1; 
}

@media (max-width: 640px) {
	.content-list__number {
	    flex: 0 0 40px;
	    font-size: 2rem;
	    font-weight: 700;
	    line-height: 1;
	    color: #a1a1a1; 
	}
}

.content-list__content {
    flex: 1;
}

.content-list__content p {
    margin: 0;
    line-height: 1.75;
}

/* --------- scroll-reveal  --------------- */

.js-card-reveal .scroll-reveal-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s ease;
}

.js-card-reveal .scroll-reveal-card.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js-card-reveal .scroll-reveal-card {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

.selected-text{
	color:#fff;
	background-color: #3f3f3f;
	padding: 10px;	
	border-radius: 5px;
}
