/* === INSTAL PARTNER — доповнення до custom.css === */
/* header: телефон, соцмережі, кнопка "Консультація інженера", модалка */

:root {
	--ip-blue: #1F3161;
	--ip-blue-dark: #142F77;
	--ip-blue-soft: #EEF1F7;
}

/* ---------- HEADER EXTRA ---------- */

.header-extra {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--ip-blue);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	transition: 0.25s;
}

.header-phone:hover {
	color: var(--ip-blue-dark);
}

.header-socials {
	display: flex;
	align-items: center;
	gap: 6px;
}

.soc-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background-color: var(--ip-blue-soft);
	color: var(--ip-blue);
	text-decoration: none;
	transition: 0.25s;
}

.soc-link svg {
	width: 17px;
	height: 17px;
	display: block;
}

.soc-link:hover {
	background-color: var(--ip-blue-dark);
	color: #fff;
}

.consult-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	padding: 0 16px;
	border: 1px solid var(--ip-blue-dark);
	border-radius: 5px;
	background-color: var(--ip-blue-dark);
	color: #fff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	transition: 0.25s;
}

.consult-btn svg {
	flex: 0 0 auto;
}

.consult-btn:hover,
.consult-btn:focus-visible {
	background-color: #fff;
	color: var(--ip-blue-dark);
	box-shadow: 0 4px 12px rgba(20, 47, 119, 0.22);
}

.consult-btn:active {
	transform: translateY(1px);
}

.main-nav .nav-montazh {
	white-space: nowrap;
}

/* лого не має стискатись через нові елементи праворуч */
.main-header .main-logo {
	flex: 0 0 auto;
}

/* вузький desktop — ховаємо соцмережі в шапці (вони лишаються у футері) */
@media (min-width: 1200px) and (max-width: 1599px) {
	.header-extra {
		gap: 8px;
	}

	.header-socials {
		display: none;
	}

	.header-phone {
		font-size: 15px;
	}

	.consult-btn {
		height: 38px;
		padding: 0 12px;
		font-size: 13px;
	}
}

/* ---------- HEADER: планшет/мобільний ---------- */

/* логотип: на десктопі повний, на мобільному — лише іконка */
.main-logo .logo-icon {
	display: none;
}

@media (max-width: 1199px) {
	.header-extra {
		gap: 8px;
		margin-left: auto;
		margin-right: 10px;
	}

	.consult-btn span,
	.header-socials {
		display: none;
	}

	/* телефон — видимий текстом, без окремої кнопки */
	.header-phone {
		gap: 5px;
		font-size: 16px;
		font-weight: 700;
		white-space: nowrap;
	}

	.header-phone svg {
		width: 15px;
		height: 15px;
		flex: 0 0 auto;
	}

	/* єдина виділена кнопка — консультація інженера */
	.consult-btn {
		width: 40px;
		height: 40px;
		padding: 0;
		border-radius: 50%;
	}

	.consult-btn svg {
		width: 18px;
		height: 18px;
	}

	.main-nav .nav-montazh {
		display: block;
	}
}

@media (max-width: 767px) {
	.main-header .main-logo {
		width: auto;
		flex: 0 0 auto;
	}

	.main-logo .logo-full {
		display: none;
	}

	.main-logo .logo-icon {
		display: block;
		width: 42px;
		height: 42px;
	}

	/* розкладка мобільної шапки: значок ліворуч — телефон по центру — бургер праворуч */
	.main-header .main-logo {
		order: 1;
	}

	.main-header .header-extra {
		order: 2;
		margin: 0 auto;
		gap: 0;
	}

	.main-header .nav-toggle {
		order: 3;
		margin: 0;
	}

	.main-header .slide-nav {
		order: 4;
	}

	/* у шапці лишається тільки номер, кнопка консультації доступна в меню */
	.header-extra .consult-btn {
		display: none;
	}

	.header-phone {
		font-size: 17px;
	}

	.header-phone svg {
		width: 16px;
		height: 16px;
	}
}

@media (max-width: 359px) {
	.header-phone {
		font-size: 15px;
	}
}

/* ---------- КАТАЛОГ ТОВАРІВ: без синьої кнопки ---------- */

/* на десктопі каталог відкривається зі смуги категорій під шапкою */
@media (min-width: 1200px) {
	.slide-nav .btn-primary.catalog-toggle {
		display: none !important;
	}
}

/* у мобільному меню — звичайний пункт списку, а не кнопка */
@media (max-width: 1199px) {
	.slide-nav .btn-primary.catalog-toggle {
		width: auto;
		height: auto;
		padding: 0;
		margin: 0 0 15px;
		border: 0;
		border-radius: 0;
		background: transparent !important;
		color: #111 !important;
		font-size: 18px;
		font-weight: 400;
		line-height: 1.4;
		text-align: left;
		box-shadow: none;
		display: block;
		justify-content: flex-start;
	}
}

/* ---------- МОБІЛЬНЕ МЕНЮ (off-canvas) ---------- */

.mobile-nav {
	display: none;
}

@media (max-width: 1199px) {
	/* однаковий ритм пунктів у всьому меню */
	.slide-nav .main-nav {
		margin-top: 0;
	}

	.slide-nav .main-nav a,
	.slide-nav .btn-primary.catalog-toggle,
	.mobile-nav > a {
		margin-bottom: 18px;
		font-size: 18px;
		line-height: 1.3;
	}

	.slide-nav {
		padding-bottom: 40px;
	}

	.mobile-nav {
		display: block;
		margin-top: 0;
		padding-top: 18px;
		border-top: 1px solid #E3E6EE;
	}

	.mobile-nav > a {
		display: block;
		margin-bottom: 15px;
		color: #111;
		font-size: 18px;
		text-decoration: none;
	}

	.mobile-nav .mobile-consult {
		width: 100%;
		height: 46px;
		margin: 20px 0 18px;
		padding: 0 16px;
		border-radius: 5px;
		font-size: 15px;
	}

	.mobile-nav .mobile-consult span {
		display: inline;
	}

	.mobile-nav .mobile-phone {
		display: block;
		margin-bottom: 14px;
		color: var(--ip-blue);
		font-size: 20px;
		font-weight: 700;
		text-decoration: none;
	}

	.mobile-socials {
		display: flex;
		align-items: center;
		gap: 10px;
		padding-bottom: 90px;
	}

	.mobile-socials .soc-link {
		width: 38px;
		height: 38px;
	}
}

/* ---------- FOOTER ---------- */

.footer-phones {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.footer-phones a {
	font-weight: 600;
	text-decoration: none;
}

.footer-socials {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 16px;
}

.footer-socials .soc-link {
	width: 36px;
	height: 36px;
	background-color: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.footer-socials .soc-link:hover {
	background-color: #fff;
	color: var(--ip-blue-dark);
}

.main-footer .footer-content ul li a {
	text-decoration: none;
}

/* ---------- МОДАЛКА "Консультація інженера" ---------- */

.consult-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.consult-modal.is-open {
	display: flex;
}

.consult-modal__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(17, 22, 40, 0.55);
	animation: consultFade 0.2s ease;
}

.consult-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background-color: #fff;
	border-radius: 6px;
	padding: 32px 28px 28px;
	box-shadow: 0 20px 60px rgba(17, 22, 40, 0.28);
	animation: consultUp 0.25s ease;
}

@keyframes consultFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes consultUp {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

.consult-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #6B7280;
	cursor: pointer;
	transition: 0.25s;
}

.consult-modal__close:hover {
	background-color: var(--ip-blue-soft);
	color: var(--ip-blue-dark);
}

.consult-modal__title {
	font-size: 22px;
	font-weight: 700;
	color: var(--ip-blue);
	margin-bottom: 8px;
}

.consult-modal__text {
	font-size: 14px;
	color: #5A6379;
	margin-bottom: 20px;
}

.consult-form__row {
	display: block;
	margin-bottom: 14px;
}

.consult-form__row > span {
	display: block;
	font-size: 13px;
	color: #5A6379;
	margin-bottom: 5px;
}

.consult-form__row input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #CFD3DC;
	border-radius: 5px;
	font-family: inherit;
	font-size: 15px;
	color: #111;
	background-color: #fff;
	transition: 0.2s;
}

.consult-form__row input:focus {
	outline: none;
	border-color: var(--ip-blue-dark);
	box-shadow: 0 0 0 3px rgba(20, 47, 119, 0.12);
}

.consult-form__row.has-error input {
	border-color: #D94141;
}

.consult-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}

.consult-form__submit {
	width: 100%;
	height: 46px;
	margin-top: 6px;
	border: 0;
	border-radius: 5px;
	background-color: var(--ip-blue-dark);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: 0.25s;
}

.consult-form__submit:hover:not(:disabled) {
	background-color: var(--ip-blue);
	box-shadow: 0 6px 16px rgba(20, 47, 119, 0.25);
}

.consult-form__submit:disabled {
	opacity: 0.6;
	cursor: default;
}

.consult-form__msg {
	min-height: 20px;
	margin-top: 10px;
	font-size: 14px;
	text-align: center;
}

.consult-form__msg.is-error { color: #D94141; }
.consult-form__msg.is-ok { color: #1E9E63; }

@media (max-width: 575px) {
	.consult-modal__dialog {
		padding: 28px 18px 22px;
	}

	.consult-modal__title {
		font-size: 19px;
	}
}

/* ================= Банер головної (верстка за макетом Figma 52-2) ================= */
@font-face {
	font-family: 'e-Ukraine';
	src: url('../fonts/e-Ukraine-Light.woff') format('woff');
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'e-Ukraine';
	src: url('../fonts/e-Ukraine-Regular.woff') format('woff');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'e-Ukraine';
	src: url('../fonts/e-Ukraine-Bold.woff') format('woff');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.slider-holder .index-slider .slick-list,
.slider-holder .index-slider .slick-track,
.slider-holder .index-slider .slick-slide,
.slider-holder .index-slider .item {
	height: auto;
}

.slider-holder .index-slider .item {
	padding: 0;
}

/* контейнер слайда в темі абсолютний — повертаємо у звичайний потік */
.slider-holder .index-slider .item .container {
	position: relative;
	left: auto;
	right: auto;
	top: auto;
	bottom: auto;
	display: block;
	padding: 0 15px;
	color: inherit;
}

/* старий формат — банер однією картинкою */
.slider-holder .index-slider .item picture,
.slider-holder .index-slider .item .banner-link {
	display: block;
	width: 100%;
}

.slider-holder .index-slider .item img {
	position: relative;
	width: 100%;
	height: auto;
	max-height: none;
	display: block;
	border-radius: 0;
}

/* ---- верстаний банер. Базово — мобільний макет 1080x860 ---- */
.banner {
	container-type: inline-size;
	--u: calc(100cqw / 1080);       /* 1 піксель макета 1080 = стільки на екрані */
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1080 / 860;
	overflow: hidden;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	background-image: var(--bg-mob, var(--bg));
	font-family: 'e-Ukraine', 'Roboto', Arial, sans-serif;
}

.banner__title {
	position: absolute;
	left: 10.162%;
	top: 7.209%;
	width: 80%;
	white-space: nowrap;
	margin: 0;
	font-weight: 300;
	font-size: calc(var(--u) * 52.5);
	line-height: 1.224;
	color: #2e2e2e;
}

.banner__title b,
.banner__title strong {
	display: block;
	font-weight: 700;
	font-size: calc(var(--u) * 66);
	line-height: 1.224;
	color: #023298;
}

.banner__feats {
	position: absolute;
	left: 10.162%;
	top: 35.581%;
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	grid-auto-flow: row;
	row-gap: calc(var(--u) * 22.01);
}

.banner__feats li {
	display: flex;
	align-items: center;
	gap: calc(var(--u) * 25.03);
}

.banner__feats span {
	font-weight: 400;
	font-size: calc(var(--u) * 26.114);
	line-height: 1;
	color: #434343;
	white-space: nowrap;
}

.banner__ico {
	flex: 0 0 auto;
	width: calc(var(--u) * 55.49);
	height: calc(var(--u) * 55.49);
	background-repeat: no-repeat;
	background-position: center;
}

.banner__ico--select { background-image: url('../img/ico/ico-select.svg'); background-size: 100% 100%; }
.banner__ico--truck  { background-image: url('../img/ico/ico-truck.svg');  background-size: 87.5% 66.67%; background-position: 33.4% 50%; }
.banner__ico--tools  { background-image: url('../img/ico/ico-tools.svg');  background-size: 83.34% 83.34%; }
.banner__ico--shield { background-image: url('../img/ico/ico-shield.svg'); background-size: 75% 91.69%; }

.banner__btn {
	position: absolute;
	left: 10.162%;
	top: 80.581%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: calc(var(--u) * 30.628) calc(var(--u) * 45.942);
	background-color: #023298;
	border-radius: calc(var(--u) * 10.209);
	font-weight: 400;
	font-size: calc(var(--u) * 22.971);
	letter-spacing: calc(var(--u) * 0.9188);
	line-height: calc(var(--u) * 28);
	color: #fff;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s;
}

.banner__btn:hover,
.banner__btn:focus {
	background-color: #01235f;
	color: #fff;
	text-decoration: none;
}

/* ---- десктопний макет 1440x630 ---- */
@media (min-width: 768px) {
	.banner {
		--u: calc(100cqw / 1440);   /* 1 піксель макета 1440 */
		aspect-ratio: 1440 / 630;
		background-image: var(--bg);
	}

	.banner__title {
		left: 7.622%;
		top: 9.841%;
		width: 60%;
	}

	.banner__feats {
		left: 7.622%;
		top: 43.968%;
		grid-auto-flow: column;
		grid-template-rows: repeat(2, auto);
		grid-template-columns: calc(var(--u) * 249.25) auto;
		row-gap: calc(var(--u) * 20.229);
		column-gap: 0;
	}

	.banner__feats li { gap: calc(var(--u) * 23); }
	.banner__feats span { font-size: calc(var(--u) * 24); }

	.banner__ico {
		width: calc(var(--u) * 51);
		height: calc(var(--u) * 51);
	}

	.banner__btn {
		left: 7.622%;
		top: 74.444%;
	}
}

/* запасний варіант для браузерів без container queries:
   ширина банера = внутрішня ширина .container на кожному брейкпоінті */
@supports not (container-type: inline-size) {
	.banner { --u: calc(100vw / 1080); }

	@media (min-width: 768px)  { .banner { --u: calc(690px / 1440); } }
	@media (min-width: 992px)  { .banner { --u: calc(930px / 1440); } }
	@media (min-width: 1200px) { .banner { --u: calc(1140px / 1440); } }
	@media (min-width: 1536px) { .banner { --u: calc(1290px / 1440); } }
	@media (min-width: 1700px) { .banner { --u: calc(1470px / 1440); } }
}

/* на мобільному банер на всю ширину, без відступів */
@media (max-width: 767px) {
	.slider-holder,
	.slider-holder .index-slider,
	.slider-holder .index-slider .item {
		padding-left: 0;
		padding-right: 0;
	}

	.slider-holder .index-slider .item .container {
		max-width: none;
		width: 100%;
		padding: 0;
	}
}

/* один слайд — крапки не потрібні */
.slider-holder .slick-dots:has(li:only-child) { display: none !important; }
.slider-holder .slick-dots.is-single { display: none !important; }

/* ===== Кошик: додано товар (2026-08-12) ===== */

/* картка товару — іконка кошика з галочкою, коли товар уже в кошику.
   Іконка лишається тією ж і на тому ж місці (без стрибка) — міняється лише
   колір кнопки та зʼявляється бейдж-галочка. */
.product-item .btn-primary.cart-add {
  position: relative;
}

.product-item .btn-primary.cart-add.inCart {
  background-color: #142F77;
  border-color: #142F77;
}

.product-item .btn-primary.cart-add.inCart:hover {
  background-color: #0E205A;
  border-color: #0E205A;
}

.product-item .btn-primary.cart-add.inCart img {
  filter: brightness(0) invert(1);
}

.product-item .btn-primary.cart-add.inCart:after {
  content: '';
  position: absolute;
  top: 7px;
  left: calc(50% + 2px);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.6 6.2L4.8 8.4L9.4 3.4' fill='none' stroke='%23142F77' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
}

/* плашка "Товар додано до кошика" */
.cart-toast {
  position: fixed;
  left: 15px;
  right: 15px;
  bottom: 80px;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  max-width: 640px;
  margin: 0 auto;
  padding: 14px 20px;
  border-radius: 6px;
  background-color: #E0EDFF;
  box-shadow: 0 4px 20px rgba(20, 47, 119, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.cart-toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-toast__text {
  font-size: 15px;
  color: #111;
}

.cart-toast__link {
  flex-shrink: 0;
  font-size: 15px;
  color: #142F77;
  text-decoration: none;
}

.cart-toast__link:hover {
  text-decoration: underline;
  color: #142F77;
}

@media (min-width: 1200px) {
  .cart-toast {
    bottom: 30px;
  }
}

/* сторінка кошика — менший відступ перед блоком "Вас можуть зацікавити" */
.cart-page > .container > .default-space {
  padding-bottom: 20px;
}

.cart-page .slider-section.default-space {
  padding-top: 20px;
}

.cart-page .slider-section.default-space {
  margin-top: 0;
}
