/*
 * Редизайн v2 (radix-n.ru). Подключается только при Radix_Design::isV2().
 * Источник: Figma RADIX_FIN (Copy) — экраны shop_1440 / Shop_768 / Shop_320.
 *   Шапка  — «had» 203:1,  меню — «Меню» 203:18, подвал — «подвал» 203:28.
 * Всё ограничено классами .v2-*, старые стили main.css не трогаем.
 */

:root {
	--v2-blue-900: #2a4480;   /* край градиента шапки, текст в поиске */
	--v2-blue-600: #2d62b7;   /* середина градиента */
	--v2-blue-400: #2f80ed;   /* центр градиента */
	--v2-footer: #014781;     /* фон подвала */
	--v2-gold: #b0a32c;       /* пункт «Акции» */
	--v2-white: #ffffff;
	--v2-radius: 5px;
	--v2-font: "Roboto", Arial, "Helvetica Neue", sans-serif;
}

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

.v2-header {
	font-family: var(--v2-font);
	color: var(--v2-white);
	background-color: var(--v2-blue-900);
	/* Figma: radialGradient с центром в середине, радиусы = половина ширины и высоты */
	background-image: radial-gradient(50% 50% at 50% 50%, var(--v2-blue-400) 0%, var(--v2-blue-600) 50%, var(--v2-blue-900) 100%);
	content-visibility: visible;
	padding: 43px 0 51px;
}

.v2-header p,
.v2-header ul {
	margin: 0;
}

.v2-header a {
	color: var(--v2-white);
	text-decoration: none;
}

.v2-header__top {
	display: flex;
	align-items: flex-start;
}

.v2-burger {
	display: none;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
}

.v2-logo {
	flex: 0 0 auto;
	line-height: 0;
}

.v2-logo img {
	display: block;
	width: 149px;
	height: 106px;
}

.v2-tagline {
	flex: 0 0 190px;
	margin: 53px 0 0 27px !important;
	font-size: 14px;
	line-height: 16px;
}

.v2-search {
	position: relative;
	flex: 0 1 408px;
	min-width: 200px;
	height: 41px;
	margin: 53px auto 0;
}

.v2-search__input {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0 44px 0 15px;
	border: 1px solid var(--v2-white);
	border-radius: var(--v2-radius);
	background: var(--v2-white);
	color: var(--v2-blue-900);
	font: 14px/16px var(--v2-font);
	-webkit-appearance: none;
	appearance: none;
}

.v2-search__input::placeholder {
	color: var(--v2-blue-900);
	opacity: 1;
}

.v2-search__input:focus {
	outline: 2px solid var(--v2-blue-400);
	outline-offset: 1px;
}

.v2-search__button {
	position: absolute;
	top: 50%;
	right: 19px;
	width: 32px;
	height: 32px;
	margin: -16px -8px 0 0;
	padding: 8px;
	border: 0;
	background: none;
	cursor: pointer;
	line-height: 0;
}

.v2-search__button img {
	width: 16px;
	height: 16px;
}

.v2-cart {
	position: relative;
	flex: 0 0 auto;
	margin: 65px 0 0 20px;
	line-height: 0;
}

.v2-cart img {
	width: 28px;
	height: 26px;
}

/* Не из макета: счётчик появляется только при непустой корзине */
.v2-cart__count {
	position: absolute;
	top: -8px;
	right: -10px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--v2-gold);
	color: var(--v2-white);
	font: 700 11px/18px var(--v2-font);
	text-align: center;
}

.v2-phone {
	flex: 0 0 auto;
	margin: 64px 0 0 13px;
	font-size: 24px;
	font-weight: 700;
	line-height: 28px;
	white-space: nowrap;
}

/* Меню */

.v2-nav {
	margin-top: 35px;
}

.v2-nav__list {
	display: flex;
	justify-content: space-between;
	margin: 0 -13px !important;
	padding: 0;
	list-style: none;
}

.v2-nav__link {
	display: block;
	padding: 13px 12px;
	border: 1px solid transparent;
	border-radius: var(--v2-radius);
	font-size: 18px;
	line-height: 22px;
	white-space: nowrap;
	transition: border-color .15s;
}

.v2-nav__link:hover,
.v2-nav__link:focus {
	border-color: rgba(255, 255, 255, .5);
	color: var(--v2-white);
	text-decoration: none;
}

.v2-nav__item.is-active > .v2-nav__link {
	border-color: var(--v2-white);
}

/* «Акции» (раздел /sale/) — золотой и жирный. Класс строится из пути раздела (structure.path). */
.v2-nav__item--sale > .v2-nav__link {
	color: var(--v2-gold);
	font-weight: 700;
}

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

.v2-footer {
	height: auto;
	padding: 26px 0 17px;
	background: var(--v2-footer);
	color: var(--v2-white);
	font: 14px/16px var(--v2-font);
}

.v2-footer p,
.v2-footer address {
	margin: 0;
	font-style: normal;
}

.v2-footer p + p {
	margin-top: 5px;
}

.v2-footer a,
.v2-footer a:hover,
.v2-footer a:focus {
	color: var(--v2-white);
	text-decoration: none;
}

.v2-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	max-width: 1022px;
	margin: 0 auto;
}

.v2-footer__copyright {
	width: 197px;
}

.v2-footer__contact {
	display: flex;
	align-items: flex-start;
}

.v2-footer__icon {
	flex: 0 0 auto;
	width: 30px;
	height: 30px;
	margin: 2px 13px 0 0;
}

.v2-footer__contact:nth-child(2) .v2-footer__icon {
	margin-right: 33px;
}

.v2-footer__contact:nth-child(2) > div {
	width: 180px;
}

.v2-footer__contact address {
	width: 245px;
}

/* ---------- ≥1200: точные отступы из shop_1440 / Main_1440 ---------- */

@media (min-width: 1200px) {
	.v2-search {
		margin-left: 71px;
	}

	.v2-footer__inner {
		justify-content: flex-start;
	}

	.v2-footer__contact:nth-child(2) {
		margin-left: 169px;
	}

	.v2-footer__contact:nth-child(3) {
		margin-left: auto;
	}
}

/* ---------- 992–1199: макета нет, ужимаем десктоп ---------- */

@media (max-width: 1199px) {
	.v2-tagline {
		flex-basis: 160px;
		margin-left: 20px !important;
	}

	.v2-phone {
		font-size: 20px;
	}

	.v2-nav__link {
		padding: 11px 9px;
		font-size: 16px;
	}

	.v2-nav__list {
		margin: 0 -10px !important;
	}
}

/* ---------- 768–991: Shop_768 ---------- */

@media (max-width: 991px) {
	.v2-header {
		padding: 23px 0 29px;
	}

	.v2-logo img {
		width: 79px;
		height: 56px;
	}

	.v2-tagline {
		flex-basis: 140px;
		margin: 28px 0 0 25px !important;
		font-size: 10px;
		line-height: 12px;
	}

	/* В макете поле 22px и шрифт 9px; поднято до 26/11px ради читаемости */
	.v2-search {
		flex-basis: 217px;
		min-width: 160px;
		height: 26px;
		margin-top: 26px;
	}

	.v2-search__input {
		padding: 0 28px 0 8px;
		font-size: 11px;
	}

	.v2-search__button {
		right: 12px;
	}

	.v2-search__button img {
		width: 9px;
		height: 9px;
	}

	.v2-cart {
		margin-top: 29px;
		margin-left: 16px;
	}

	.v2-cart img {
		width: 22px;
		height: 20px;
	}

	.v2-phone {
		margin: 31px 0 0 17px;
		font-size: 13px;
		line-height: 15px;
	}

	.v2-nav {
		margin-top: 20px;
	}

	.v2-nav__list {
		margin: 0 -9px !important;
	}

	.v2-nav__link {
		padding: 8px 8px;
		font-size: 12px;
		line-height: 14px;
	}

	.v2-footer {
		padding: 13px 0 9px;
		font-size: 10px;
		line-height: 12px;
	}

	.v2-footer__inner {
		max-width: 640px;
	}

	.v2-footer__copyright {
		width: 144px;
	}

	.v2-footer__icon,
	.v2-footer__contact:nth-child(2) .v2-footer__icon {
		width: 22px;
		height: 22px;
		margin: 1px 11px 0 0;
	}

	.v2-footer__contact:nth-child(2) > div {
		width: 132px;
	}

	.v2-footer__contact address {
		width: 180px;
	}
}

/* Меню на ≥768 всегда раскрыто, даже если на телефоне его свернули */
@media (min-width: 768px) {
	.v2-nav.collapse {
		display: block !important;
		height: auto !important;
	}
}

/* ---------- до 767: Shop_320 ---------- */

@media (max-width: 767px) {
	.v2-header {
		padding: 8px 0 31px;
	}

	.v2-header__top {
		position: relative;
		flex-wrap: wrap;
		justify-content: center;
	}

	.v2-burger {
		display: block;
		position: absolute;
		top: 0;
		left: 22px;
	}

	.v2-logo img {
		width: 63px;
		height: 45px;
	}

	.v2-tagline {
		flex: 0 0 100%;
		margin: 7px 0 0 !important;
		padding: 0 calc((100% - 175px) / 2); /* в макете блок 167px по центру */
		font-size: 10px;
		line-height: 11px;
		text-align: center;
	}

	.v2-tagline,
	.v2-phone,
	.v2-search {
		order: 2;
	}

	.v2-phone {
		flex: 0 0 100%;
		order: 3;
		margin: 13px 0 0;
		font-size: 18px;
		line-height: 21px;
		text-align: center;
	}

	.v2-search {
		flex: 0 0 100%;
		order: 4;
		height: 38px;
		margin: 15px 0 0;
	}

	.v2-search__input {
		padding: 0 44px 0 13px;
		font-size: 14px;
	}

	.v2-search__button {
		right: 18px;
	}

	.v2-search__button img {
		width: 16px;
		height: 16px;
	}

	.v2-cart {
		position: absolute;
		top: 6px;
		right: 0;
		margin: 0;
	}

	.v2-cart img {
		width: 26px;
		height: 24px;
	}

	/* Раскрытого меню в макете нет: простой вертикальный список под шапкой */
	.v2-nav {
		margin-top: 15px;
	}

	.v2-nav__list {
		display: block;
		margin: 0 !important;
	}

	.v2-nav__link {
		padding: 10px 0;
		border: 0;
		border-top: 1px solid rgba(255, 255, 255, .2);
		border-radius: 0;
		font-size: 16px;
		line-height: 20px;
	}

	.v2-nav__item.is-active > .v2-nav__link {
		font-weight: 700;
	}

	.v2-footer {
		padding: 27px 0 18px;
		font-size: 14px;
		line-height: 16px;
	}

	.v2-footer__inner {
		flex-direction: column;
		align-items: stretch;
	}

	.v2-footer__copyright {
		order: 3;
		width: 197px;
		margin: 59px auto 0;
		text-align: center;
	}

	.v2-footer__contact + .v2-footer__contact {
		margin-top: 41px;
		margin-left: -3px;
	}

	.v2-footer__icon,
	.v2-footer__contact:nth-child(2) .v2-footer__icon {
		width: 30px;
		height: 30px;
		margin: 2px 20px 0 0;
	}

	.v2-footer__contact + .v2-footer__contact .v2-footer__icon {
		margin-right: 23px;
	}

	.v2-footer__contact:nth-child(2) > div {
		width: auto;
	}

	.v2-footer__contact address {
		width: auto;
		max-width: 245px;
	}
}

/* =====================================================================
 * Главная v2 (Figma: Main_1440 1:2 / Main_768 6:53 / Main_320 3:0)
 * ===================================================================== */

/* ---------- Общие кнопки ---------- */

.v2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid currentColor;
	border-radius: var(--v2-radius);
	font: 700 18px/21px var(--v2-font);
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color .15s, color .15s;
}

.v2-btn:hover,
.v2-btn:focus {
	text-decoration: none;
}

.v2-btn--light {
	color: var(--v2-white);
}

.v2-btn--light:hover,
.v2-btn--light:focus {
	background: var(--v2-white);
	color: var(--v2-blue-900);
}

.v2-btn--outline {
	color: var(--v2-blue-900);
}

.v2-btn--outline:hover,
.v2-btn--outline:focus {
	background: var(--v2-blue-900);
	color: var(--v2-white);
}

/* ---------- Шапка со слайдером ---------- */

.v2-header--hero {
	padding-bottom: 56px;
}

.v2-slider {
	position: relative;
	margin-top: 51px;
}

.v2-slider__track {
	display: grid;
}

.v2-slide {
	grid-area: 1 / 1;
	display: flex;
	align-items: flex-start;
	min-height: 369px;
	opacity: 0;
	visibility: hidden;
	transition: opacity .5s, visibility .5s;
}

.v2-slide.is-active {
	opacity: 1;
	visibility: visible;
}

.v2-slide__media {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 564px;
	height: 369px;
	padding: 0 24px;
	/* Figma «Ellipse» 1:26: радиальное свечение #2F80ED → прозрачный */
	background: radial-gradient(50% 50% at 50% 50%, rgba(47, 128, 237, 1) 0%, rgba(47, 128, 237, 0) 100%);
}

.v2-slide__image {
	display: block;
	max-width: 452px;
	max-height: 300px;
	width: auto;
	height: auto;
	object-fit: contain;
	box-shadow: 0 4px 4px var(--v2-blue-900);
}

.v2-slide__body {
	flex: 0 0 458px;
	margin: 48px 0 0 auto;
	color: var(--v2-white);
}

.v2-slide--text .v2-slide__body {
	flex-basis: 760px;
	margin: 48px auto 0;
	text-align: center;
}

.v2-slide__title {
	font: 700 36px/42px var(--v2-font);
}

.v2-slide__text {
	max-width: 393px;
	margin-top: 10px;
	font: 14px/16px var(--v2-font);
}

.v2-slide--text .v2-slide__text {
	max-width: none;
}

.v2-slide__more {
	width: 285px;
	height: 58px;
	margin-top: 14px;
}

.v2-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 15px;
	display: flex;
	justify-content: center;
	gap: 11px;
}

.v2-slider__dot {
	width: 11px;
	height: 10px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c4c4c4;
	cursor: pointer;
}

.v2-slider__dot.is-active {
	background: var(--v2-white);
}

/* ---------- Тело главной ---------- */

.v2-home {
	background: var(--v2-white); /* в макете фон страницы белый (в main.css — серый) */
	font-family: var(--v2-font);
	color: #000;
}

.v2-intro {
	max-width: 1266px;
	width: auto;
	padding-top: 92px;
	text-align: center;
}

.v2-intro__title {
	margin: 0;
	color: var(--v2-blue-900);
	font: 700 24px/28px var(--v2-font);
	text-transform: uppercase;
}

.v2-intro__text {
	margin: 24px 0 0;
	font: 14px/1.7 var(--v2-font);
}

.v2-tiles {
	padding-top: 57px;
}

.v2-tiles__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.v2-tile__link {
	display: block;
	color: var(--v2-blue-900);
	text-align: center;
	text-decoration: none;
}

.v2-tile__link:hover,
.v2-tile__link:focus {
	color: var(--v2-blue-600);
	text-decoration: none;
}

.v2-tile__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 14%;
	background: var(--v2-white);
}

.v2-tile__media img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	transition: transform .2s;
}

.v2-tile__link:hover .v2-tile__media img {
	transform: scale(1.04);
}

.v2-tile__name {
	display: block;
	margin-top: 20px;
	font: 700 18px/21px var(--v2-font);
	text-transform: uppercase;
}

.v2-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 50px;
	padding: 92px 15px 57px;
}

.v2-cta .v2-btn {
	width: 556px;
	max-width: 100%;
	height: 65px;
}

.v2-about {
	padding: 53px 0 73px;
	background: #f8f7f7;
}

.v2-about__title {
	margin: 0 0 16px;
	color: var(--v2-blue-900);
	font: 700 18px/29px var(--v2-font);
	text-transform: uppercase;
}

.v2-about__text {
	font: 14px/16px var(--v2-font);
}

.v2-about__text p {
	margin: 0 0 16px;
}

.v2-about__text > :last-child {
	margin-bottom: 0;
}

.v2-about__toggle {
	display: none;
}

.v2-features {
	padding: 94px 15px;
}

.v2-features__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.v2-feature img {
	display: block;
	width: 106px;
	height: 75px;
	margin: 0 auto;
	object-fit: contain;
}

.v2-feature p {
	max-width: 252px;
	margin: 33px auto 0;
	font: 14px/16px var(--v2-font);
}

.v2-map #office_map {
	min-height: 401px;
}

/* ---------- 992–1199 ---------- */

@media (max-width: 1199px) {
	.v2-slide__media {
		flex-basis: 470px;
	}

	.v2-slide__body {
		flex-basis: 420px;
	}

	.v2-slide__image {
		max-width: 400px;
	}
}

/* ---------- 768–991: Main_768 ---------- */

@media (max-width: 991px) {
	.v2-header--hero {
		padding-bottom: 25px;
	}

	.v2-slider {
		margin-top: 25px;
	}

	.v2-slide {
		min-height: 201px;
	}

	.v2-slide__media {
		flex-basis: 288px;
		height: 196px;
		padding: 0 4px;
	}

	.v2-slide__image {
		max-width: 231px;
		max-height: 150px;
		box-shadow: 0 2px 2px var(--v2-blue-900);
	}

	.v2-slide__body,
	.v2-slide--text .v2-slide__body {
		flex-basis: 300px;
		margin-top: 25px;
	}

	.v2-slide--text .v2-slide__body {
		flex-basis: 520px;
	}

	.v2-slide__title {
		font-size: 18px;
		line-height: 22px;
	}

	.v2-slide__text {
		max-width: 234px;
		margin-top: 6px;
		font-size: 11px;
		line-height: 13px;
	}

	.v2-slide__more {
		width: 146px;
		height: 31px;
		margin-top: 7px;
		font-size: 12px;
		line-height: 14px;
	}

	.v2-slider__dots {
		bottom: 0;
		gap: 7px;
	}

	.v2-slider__dot {
		width: 7px;
		height: 7px;
	}

	.v2-intro {
		padding-top: 49px;
	}

	.v2-intro__title {
		font-size: 18px;
		line-height: 21px;
	}

	.v2-intro__text {
		margin-top: 25px;
		font-size: 11px;
		line-height: 1.6;
	}

	.v2-tiles {
		padding-top: 24px;
	}

	.v2-tiles__list {
		gap: 11px;
	}

	.v2-tile__name {
		margin-top: 12px;
		font-size: 12px;
		line-height: 14px;
	}

	.v2-cta {
		gap: 23px;
		padding: 64px 15px 37px;
	}

	.v2-cta .v2-btn {
		width: 331px;
		height: 38px;
		font-size: 14px;
		line-height: 16px;
	}

	.v2-about {
		padding: 12px 0 36px;
	}

	.v2-about__title {
		margin-bottom: 9px;
		font-size: 12px;
		line-height: 15px;
	}

	.v2-about__text {
		font-size: 11px;
		line-height: 13px;
	}

	.v2-about__text p {
		margin-bottom: 12px;
	}

	.v2-features {
		padding: 25px 15px;
	}

	.v2-features__list {
		gap: 12px;
	}

	.v2-feature img {
		width: 65px;
		height: 46px;
	}

	.v2-feature p {
		margin-top: 20px;
		font-size: 11px;
		line-height: 13px;
	}

	.v2-map #office_map {
		min-height: 213px;
	}
}

/* ---------- до 767: Main_320 ---------- */

@media (max-width: 767px) {
	.v2-header--hero {
		padding-bottom: 16px;
	}

	.v2-slider {
		margin-top: 24px;
	}

	.v2-slide {
		flex-direction: column;
		align-items: center;
		min-height: 214px;
		text-align: center;
	}

	/* Порядок как в макете: заголовок → картинка → текст → кнопка */
	.v2-slide__body,
	.v2-slide--text .v2-slide__body {
		display: contents;
	}

	.v2-slide__title {
		order: 1;
		max-width: 218px;
		font-size: 18px;
		line-height: 22px;
	}

	.v2-slide__media {
		order: 2;
		flex: 0 0 auto;
		width: 158px;
		height: 103px;
		margin-top: -14px;
		padding: 0;
	}

	.v2-slide__image {
		max-width: 127px;
		max-height: 80px;
	}

	.v2-slide__text,
	.v2-slide--text .v2-slide__text {
		order: 3;
		max-width: 290px;
		margin-top: 0;
		font-size: 11px;
		line-height: 13px;
	}

	.v2-slide__more {
		order: 4;
		width: 190px;
		height: 38px;
		margin: 12px 0 20px;
		font-size: 14px;
		line-height: 16px;
	}

	.v2-slider__dots {
		bottom: 0;
		gap: 5px;
	}

	.v2-slider__dot {
		width: 6px;
		height: 6px;
	}

	.v2-intro {
		padding-top: 24px;
	}

	.v2-intro__title {
		max-width: 220px;
		margin: 0 auto;
		line-height: 21px;
	}

	.v2-intro__text {
		margin-top: 17px;
		font-size: 11px;
		line-height: 1.5;
	}

	.v2-tiles {
		padding-top: 17px;
	}

	.v2-tiles__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px 10px;
	}

	.v2-cta {
		gap: 24px;
		padding: 40px 15px 46px;
	}

	.v2-cta .v2-btn {
		width: 290px;
		font-size: 12px;
		line-height: 14px;
	}

	.v2-about {
		padding: 33px 0 30px;
	}

	.v2-about__title {
		margin-bottom: 16px;
		font-size: 18px;
		line-height: 29px;
	}

	/* Свёрнутый текст «О нас» с кнопкой «раскрыть текст» */
	.v2-about__text {
		position: relative;
		max-height: 114px;
		overflow: hidden;
	}

	.v2-about__text::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		height: 30px;
		background: linear-gradient(rgba(248, 247, 247, 0), #f8f7f7);
	}

	.v2-about__text.is-open {
		max-height: none;
	}

	.v2-about__text.is-open::after {
		display: none;
	}

	.v2-about__toggle {
		display: flex;
		align-items: center;
		gap: 3px;
		margin: 4px 0 0 auto;
		padding: 4px 0;
		border: 0;
		background: none;
		color: #000;
		font: italic 10px/12px var(--v2-font);
		cursor: pointer;
	}

	.v2-about__toggle[aria-expanded="true"] img {
		transform: rotate(180deg);
	}

	.v2-features {
		padding: 35px 15px 48px;
	}

	.v2-features__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 41px 10px;
	}

	.v2-feature img {
		width: 60px;
		height: 43px;
	}

	.v2-feature p {
		margin-top: 19px;
	}

	.v2-map #office_map {
		min-height: 401px;
	}
}
