/* ==========================================================================
   ADDtive Child — дизайн «J3 Фінал»
   Кольори і розміри — у змінних нижче. Міняйте тут, а не по всьому файлу.
   ========================================================================== */

/* ---------- Шрифт Fixel (MacPaw, SIL OFL 1.1) ---------- */
@font-face { font-family: 'Fixel Display'; src: url('../fonts/FixelDisplay-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fixel Display'; src: url('../fonts/FixelDisplay-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fixel Text'; src: url('../fonts/FixelText-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fixel Text'; src: url('../fonts/FixelText-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fixel Text'; src: url('../fonts/FixelText-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
	--hw-violet: #6236FF;      /* кнопки, акценти */
	--hw-violet-d: #4B22D9;    /* фіолетовий текст на світлому */
	--hw-violet-l: #B39CFF;    /* фіолетовий текст на темному */
	--hw-night: #120B27;       /* темні секції, шапка, підвал */
	--hw-night-2: #1C1438;     /* плитки на темному */
	--hw-night-line: #2F2550;  /* рамки на темному */
	--hw-ink: #140E2A;         /* заголовки */
	--hw-text: #3F3A52;        /* основний текст */
	--hw-muted: #625C75;       /* другорядний текст */
	--hw-on-dark: #C5BEDA;     /* текст на темному */
	--hw-line: #E5E0F0;        /* рамки */
	--hw-lav: #F7F5FC;         /* світлий фон секцій */
	--hw-lav-2: #EFEAFF;       /* плашки */
	--hw-radius: 18px;
	--hw-wrap: 1160px;         /* ширина вмісту = контейнер GeneratePress 1240 мінус відступи шапки 2×40 */
	--hw-font: 'Fixel Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--hw-font-display: 'Fixel Display', 'Fixel Text', system-ui, sans-serif;
	--hw-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

	--ico-drone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='5' cy='5' r='2.5'/%3E%3Ccircle cx='19' cy='5' r='2.5'/%3E%3Ccircle cx='5' cy='19' r='2.5'/%3E%3Ccircle cx='19' cy='19' r='2.5'/%3E%3Cpath d='M7 7l3 3M17 7l-3 3M7 17l3-3M17 17l-3-3'/%3E%3Crect x='9.5' y='9.5' width='5' height='5' rx='1'/%3E%3C/svg%3E");
	--ico-robot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='7' width='12' height='10' rx='2'/%3E%3Cpath d='M12 3v4M9 12h.01M15 12h.01M3 11v3M21 11v3M9 20h6'/%3E%3C/svg%3E");
	--ico-shield: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 5 3.5 8 8 9 4.5-1 8-4 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
	--ico-bolt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7z'/%3E%3C/svg%3E");
	--ico-redo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3C/svg%3E");
	--ico-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
	--ico-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E");
	--ico-headset: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 14a8 8 0 0 1 16 0'/%3E%3Crect x='3' y='14' width='4' height='6' rx='1.5'/%3E%3Crect x='17' y='14' width='4' height='6' rx='1.5'/%3E%3C/svg%3E");
	--ico-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E");
	--ico-upload: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 16V4'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3Cpath d='M4 20h16'/%3E%3C/svg%3E");
}

/* ---------- База: шрифт і кольори всього сайту ---------- */
body,
button,
input,
select,
textarea {
	font-family: var(--hw-font);
}
body {
	color: var(--hw-text);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--hw-font-display);
	color: var(--hw-ink);
	letter-spacing: -0.015em;
}
a { color: var(--hw-violet-d); }
a:hover, a:focus { color: var(--hw-violet); }
:focus-visible { outline: 2px solid var(--hw-violet); outline-offset: 2px; }

/* ---------- Верхня смуга ---------- */
.hw-topbar {
	background: #0B0619;
	color: var(--hw-on-dark);
	font-size: 14px;
	border-bottom: 1px solid #241C40;
}
.hw-topbar__in {
	max-width: calc(var(--hw-wrap) + 48px);
	margin: 0 auto;
	padding: 9px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	justify-content: space-between;
}
.hw-topbar__live { display: inline-flex; align-items: center; gap: 8px; }
.hw-topbar__live::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #7CE0A3;
}
.hw-topbar a { color: var(--hw-violet-l); font-weight: 600; text-decoration: none; }
.hw-topbar a:hover { color: #fff; }

/* ---------- Шапка (темна на всьому сайті) ---------- */
body .site-header {
	background-color: var(--hw-night);
	color: #fff;
	border-bottom: 1px solid #2A2147;
}
body .site-header .main-title a,
body .site-header .main-title a:hover,
body .navigation-branding .main-title a {
	color: #fff;
}
body .site-description { display: none; }

.hw-brand a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	font-family: var(--hw-font-display);
	font-size: 22px;
	line-height: 1;
	letter-spacing: -0.01em;
}
.hw-brand__mark {
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	border-radius: 9px;
	background: var(--hw-violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18 12 4l8 14'/%3E%3Cpath d='M7.5 12h9'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.hw-brand__word { display: inline-flex; align-items: baseline; }
.hw-brand__add { font-weight: 700; color: #fff; }
.hw-brand__tive { font-weight: 600; color: var(--hw-violet-l); }

body .site-header .main-navigation,
body .site-header .main-navigation .inside-navigation,
body #mobile-header .inside-navigation {
	background-color: transparent;
}
body #mobile-header { background-color: var(--hw-night); }

body .main-navigation .main-nav ul li a,
body .main-navigation .menu-toggle,
body .main-navigation .menu-bar-items {
	color: #DCD6EA;
}
body .main-navigation .main-nav ul li a {
	font-weight: 500;
	font-size: 15px;
}
body .main-navigation .main-nav ul li:hover > a,
body .main-navigation .main-nav ul li:focus > a,
body .main-navigation .main-nav ul li.sfHover > a,
body .main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: #fff;
	background-color: transparent;
}
body .main-navigation ul ul {
	background-color: var(--hw-night-2);
	border: 1px solid var(--hw-night-line);
}
body .main-navigation .main-nav ul ul li a { color: #DCD6EA; }
body .main-navigation.toggled .main-nav > ul,
body .main-navigation.toggled .main-nav ul ul {
	background-color: var(--hw-night);
}

body .main-navigation .menu-bar-items { align-items: center; }
.hw-hphone {
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	text-decoration: none;
	white-space: nowrap;
	margin-left: 18px;
}
.hw-hphone:hover { color: var(--hw-violet-l); }
.hw-hcta,
.hw-hcta:visited {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	box-sizing: border-box;
	margin-left: 16px;
	padding: 11px 20px;
	border-radius: 10px;
	background: var(--hw-violet);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}
.hw-hcta:hover, .hw-hcta:focus { background: var(--hw-violet-d); color: #fff; }

@media (min-width: 1025px) {
	body .site-header .inside-header { flex-wrap: nowrap; }
	body .main-navigation .inside-navigation { flex-wrap: nowrap; align-items: center; }
	body .main-navigation .main-nav > ul > li > a { padding-left: 14px; padding-right: 14px; }
	body .main-navigation .main-nav ul ul { width: 240px; }
}
@media (max-width: 1279px) {
	body .hw-hphone, body .menu-bar-items .hw-hphone { display: none; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
	body .main-navigation .main-nav > ul > li > a { padding-left: 10px; padding-right: 10px; font-size: 14px; }
	.hw-hcta { margin-left: 10px; padding: 10px 16px; font-size: 14px; }
}
@media (max-width: 480px) {
	.hw-hcta { padding: 9px 14px; font-size: 14px; min-height: 40px; margin-left: 8px; }
}

/* ---------- Підвал ---------- */
body .site-footer,
body .site-info {
	background-color: var(--hw-night);
	color: var(--hw-on-dark);
}
body .site-footer .footer-widgets-container { display: none; }
.hw-footer { color: var(--hw-on-dark); font-size: 15px; line-height: 1.55; }
.hw-footer a { color: var(--hw-on-dark); text-decoration: none; transition: color 0.15s ease; }
.hw-footer a:hover { color: #fff; }

/* Смуга-заклик */
.hw-footer__cta { padding: 56px 24px 0; }
.hw-footer__cta-in {
	max-width: var(--hw-wrap);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px 32px;
	padding: 32px 36px;
	border-radius: 24px;
	background: linear-gradient(120deg, var(--hw-violet) 0%, #4B22D9 100%);
	color: #fff;
}
.hw-footer__cta-text { flex: 1 1 420px; min-width: 0; }
.hw-footer__cta-text p { margin: 0; color: rgba(255, 255, 255, 0.82); }
.hw-footer .hw-footer__cta-title { margin: 0 0 6px; font-family: var(--hw-font-display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; color: #fff; }
.hw-footer a.hw-footer__cta-btn {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
	padding: 14px 26px;
	border-radius: 12px;
	background: #fff;
	color: var(--hw-ink);
	font-weight: 600;
	font-size: 16px;
	white-space: nowrap;
}
.hw-footer a.hw-footer__cta-btn:hover { background: var(--hw-lav-2); color: var(--hw-ink); }

/* Колонки */
.hw-footer__in {
	max-width: calc(var(--hw-wrap) + 48px);
	margin: 0 auto;
	padding: 56px 24px 48px;
	display: flex;
	flex-wrap: wrap;
	gap: 40px 32px;
}
/* Колонки: опис ширший, меню ділять решту, «Контакти» — за шириною свого вмісту */
.hw-footer__about { flex: 1.4 1 280px; min-width: 0; }
.hw-footer__col { flex: 1 1 150px; min-width: 0; }
.hw-footer__col.hw-footer__col--contacts { flex: 0 1 auto; }
.hw-footer__about p { margin: 16px 0 0; max-width: 340px; }
.hw-footer a.hw-footer__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--hw-font-display); font-size: 24px; color: #fff; }
.hw-footer__brand .hw-brand__mark { width: 34px; height: 34px; }
.hw-footer .hw-footer__title { margin: 4px 0 14px; color: #fff; font-weight: 600; font-size: 15px; }
.hw-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }

/* Контакти з іконками */
.hw-fc { position: relative; padding-left: 28px; }
/* Телефон і пошта ніколи не переносяться */
.hw-fc--phone,
.hw-fc--mail { white-space: nowrap; }
.hw-fc::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 18px;
	height: 18px;
	background-color: var(--hw-violet-l);
	-webkit-mask: var(--hw-fc-icon) center / contain no-repeat;
	mask: var(--hw-fc-icon) center / contain no-repeat;
}
.hw-fc--phone { --hw-fc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.hw-fc--mail { --hw-fc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 6L2 7'/%3E%3C/svg%3E"); }
.hw-fc--pin { --hw-fc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 0 1 16 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E"); }
.hw-fc--clock { --hw-fc-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E"); }

/* Соцмережі */
.hw-socials { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 20px; }
.hw-footer a.hw-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 1px solid var(--hw-night-line);
	border-radius: 10px;
	color: var(--hw-on-dark);
}
.hw-footer a.hw-social:hover { border-color: var(--hw-violet); background: var(--hw-violet); color: #fff; }

/* Нижній рядок */
.hw-footer__bottom { border-top: 1px solid var(--hw-night-line); }
.hw-footer__bottom-in {
	max-width: calc(var(--hw-wrap) + 48px);
	margin: 0 auto;
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	font-size: 14px;
	color: #8F86AE;
}
.hw-footer__bottom-in a { color: #8F86AE; }
.hw-footer__bottom-in > :last-child:is(a) { margin-left: auto; }

@media (max-width: 781px) {
	.hw-footer__cta { padding: 40px 16px 0; }
	.hw-footer__cta-in { padding: 26px 22px; }
	.hw-footer a.hw-footer__cta-btn { width: 100%; justify-content: center; }
	.hw-footer__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 44px 20px 36px; gap: 32px 20px; }
	.hw-footer__about,
	.hw-footer__col--contacts { grid-column: 1 / -1; }
	.hw-footer__bottom-in { padding: 18px 20px; flex-direction: column; }
	.hw-footer__bottom-in > :last-child:is(a) { margin-left: 0; }
	.hw-socials { gap: 6px; }
	.hw-footer a.hw-social { width: 36px; height: 36px; }
}
@media (max-width: 340px) {
	.hw-socials { gap: 4px; }
	.hw-footer a.hw-social { width: 32px; height: 32px; }
}

/* ---------- Сторінки на всю ширину (головна і шаблон «ADDtive — повна ширина») ---------- */
body.hw-landing { background-color: #fff; }
body.hw-landing .site.grid-container,
body.hw-landing .site-content,
body.hw-landing .content-area {
	max-width: none;
	width: 100%;
}
body.hw-landing .site-content,
body.hw-landing.one-container .site-content,
body.hw-landing .inside-article,
body.hw-landing.one-container .inside-article {
	padding: 0;
}
body.hw-landing .site-main,
body.hw-landing article,
body.hw-landing .inside-article,
body.hw-landing .entry-content {
	margin: 0;
}
body.hw-landing .site-content { display: block; }
body.hw-landing .entry-header,
body.hw-landing .featured-image.page-header-image { display: none; }
/* Звичайний текст між секціями на сторінці-лендінгу — по ширині сайту */
body.hw-landing .entry-content > :not(.hw-section) {
	max-width: var(--hw-wrap);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: content-box;
}

/* ==========================================================================
   Секції (HTML у тексті сторінок)
   Селектори обгорнуті в :where(), тому будь-який ваш стиль у Simple CSS
   (навіть простий .hw-h2 { … }) перебиває стиль теми.
   ========================================================================== */

.hw-section {
	position: relative;
	padding: 96px 24px;
	color: var(--hw-text);
	font-size: 17px;
	line-height: 1.55;
}
.hw-section,
:where(.hw-section) *,
:where(.hw-section) *::before,
:where(.hw-section) *::after { box-sizing: border-box; }
:where(.hw-section).hw-lav { background: var(--hw-lav); }
:where(.hw-section).hw-white { background: #fff; }
:where(.hw-section).hw-dark {
	background-color: var(--hw-night);
	color: var(--hw-on-dark);
}
:where(.hw-section).hw-grid-bg {
	background-image: linear-gradient(rgba(179, 156, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(179, 156, 255, 0.06) 1px, transparent 1px);
	background-size: 56px 56px;
}
:where(.hw-section) .hw-wrap { max-width: var(--hw-wrap); margin: 0 auto; }
:where(.hw-section) p,
:where(.hw-section) h1,
:where(.hw-section) h2,
:where(.hw-section) h3,
:where(.hw-section) ul,
:where(.hw-section) figure { margin: 0; }
:where(.hw-section) img { display: block; max-width: 100%; height: auto; }

/* Колонки */
.hw-cols { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hw-cols.hw-cols--top { align-items: flex-start; }
.hw-col { min-width: 0; }
.hw-col--wide { flex: 56 1 480px; }
.hw-col--narrow { flex: 44 1 360px; }
.hw-col--half { flex: 1 1 440px; }

/* Типографіка секцій */
:where(.hw-section) .hw-kicker {
	font-family: var(--hw-mono);
	font-size: 13px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hw-violet-d);
}
:where(.hw-section.hw-dark) .hw-kicker { color: var(--hw-violet-l); }
:where(.hw-section) .hw-h1 {
	margin-top: 22px;
	font-family: var(--hw-font-display);
	font-weight: 700;
	font-size: clamp(40px, 6vw, 80px);
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--hw-ink);
}
:where(.hw-section) .hw-h2 {
	margin-top: 14px;
	max-width: 820px;
	font-family: var(--hw-font-display);
	font-weight: 700;
	font-size: clamp(30px, 3.6vw, 48px);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--hw-ink);
}
:where(.hw-section) .hw-h3 {
	font-family: var(--hw-font-display);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.25;
	color: var(--hw-ink);
}
:where(.hw-section.hw-dark) .hw-h1,
:where(.hw-section.hw-dark) .hw-h2,
:where(.hw-section.hw-dark) .hw-h3 { color: #fff; }
:where(.hw-section) .hw-accent { color: var(--hw-violet-l); }
:where(.hw-section) .hw-lead { margin-top: 22px; max-width: 580px; font-size: 20px; line-height: 1.5; }
:where(.hw-section) .hw-note { margin-top: 28px; max-width: 760px; font-size: 15px; color: var(--hw-muted); }
:where(.hw-section) .hw-more { margin-top: 24px; }
:where(.hw-section) .hw-more a { font-weight: 600; text-decoration: none; }

/* Кнопки */
:where(.hw-section) .hw-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
:where(.hw-section) .hw-banner .hw-btns { margin-top: 0; }
:where(.hw-section) .hw-btns br { display: none; }
:where(.hw-section) a.hw-button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 26px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-weight: 600;
	font-size: 17px;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
:where(.hw-section) a.hw-button--primary { background: var(--hw-violet); color: #fff; }
:where(.hw-section) a.hw-button--primary:hover { background: var(--hw-violet-d); color: #fff; }
:where(.hw-section) a.hw-button--upload::before {
	content: "";
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--ico-upload) center / contain no-repeat;
	mask: var(--ico-upload) center / contain no-repeat;
}
:where(.hw-section) a.hw-button--ghost { background: transparent; color: var(--hw-ink); border-color: #D3CCE3; }
:where(.hw-section.hw-dark) a.hw-button--ghost { color: #fff; border-color: #4A3F70; }
:where(.hw-section) a.hw-button--ghost:hover { border-color: var(--hw-violet-l); }
:where(.hw-section) a.hw-button--night { background: var(--hw-ink); color: #fff; }
:where(.hw-section) a.hw-button--night:hover { background: var(--hw-violet-d); color: #fff; }

/* Список з іконками */
:where(.hw-section) .hw-checks {
	list-style: none;
	margin-top: 28px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	font-size: 15px;
}
:where(.hw-section) .hw-checks.hw-checks--col { flex-direction: column; gap: 12px; font-size: 16px; }
:where(.hw-section) .hw-checks li { display: inline-flex; align-items: center; gap: 9px; margin: 0; }
:where(.hw-section) .hw-checks li::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	background: var(--hw-violet-d);
	-webkit-mask: var(--ico-check) center / contain no-repeat;
	mask: var(--ico-check) center / contain no-repeat;
}
:where(.hw-section.hw-dark) .hw-checks li::before { background: var(--hw-violet-l); }
:where(.hw-section) .hw-checks li.hw-i-lock::before { -webkit-mask-image: var(--ico-lock); mask-image: var(--ico-lock); }
:where(.hw-section) .hw-checks li.hw-i-user::before { -webkit-mask-image: var(--ico-user); mask-image: var(--ico-user); }

/* ---------- Перший екран ---------- */
:where(.hw-section).hw-hero { padding-top: 72px; padding-bottom: 64px; }
.hw-hero__img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 28px;
	border: 1px solid #33295A;
}
.hw-facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-top: 56px;
}
.hw-fact {
	padding: 22px;
	border-radius: 16px;
	background: var(--hw-night-2);
	border: 1px solid var(--hw-night-line);
}
.hw-fact.hw-fact--accent { background: var(--hw-violet); border-color: var(--hw-violet); }
:where(.hw-section) .hw-fact__num {
	font-family: var(--hw-font-display);
	font-weight: 700;
	font-size: 38px;
	line-height: 1;
	color: #fff;
}
:where(.hw-section) .hw-fact__label { margin-top: 8px; font-size: 15px; color: var(--hw-on-dark); }
:where(.hw-section) .hw-fact--accent .hw-fact__label { color: #F1ECFF; }

/* ---------- Логотипи ---------- */
:where(.hw-section).hw-logos { padding-top: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--hw-line); }
.hw-logos .hw-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
:where(.hw-section) .hw-logos__title { margin-right: 8px; font-size: 14px; font-weight: 600; color: var(--hw-muted); }
:where(.hw-section) .hw-logos .hw-wrap > p:not(.hw-logos__title) { flex: 1 1 120px; display: flex; justify-content: center; align-items: center; min-height: 48px; }
:where(.hw-section) .hw-logos img { width: auto; max-height: 40px; filter: grayscale(1); opacity: 0.75; transition: opacity 0.15s ease, filter 0.15s ease; }
:where(.hw-section) .hw-logos img:hover { filter: none; opacity: 1; }
.hw-logo-ph {
	flex: 1 1 120px;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px dashed #D3CCE3;
	border-radius: 10px;
	font-family: var(--hw-mono);
	font-size: 12px;
	color: var(--hw-muted);
}
.hw-logo { flex: 1 1 120px; display: flex; justify-content: center; align-items: center; min-height: 48px; }
:where(.hw-section) .hw-logo img { width: auto; max-height: 40px; filter: grayscale(1); opacity: 0.75; transition: opacity 0.15s ease, filter 0.15s ease; }
:where(.hw-section) .hw-logo img:hover { filter: none; opacity: 1; }

/* ---------- Сітки карток ---------- */
.hw-grid { display: grid; gap: 20px; margin-top: 48px; }
.hw-grid--4 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.hw-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.hw-grid--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 0; }
.hw-card {
	padding: 28px;
	border-radius: var(--hw-radius);
	background: var(--hw-lav);
}
:where(.hw-section.hw-lav) .hw-card { background: #fff; box-shadow: 0 1px 2px rgba(20, 14, 42, 0.06); }
:where(.hw-section) .hw-card p { margin-top: 8px; font-size: 16px; }
:where(.hw-section) .hw-card .hw-card__title { margin-top: 12px; font-weight: 600; font-size: 17px; color: var(--hw-ink); }
.hw-card[class*="hw-ico-"]::before {
	content: "";
	display: block;
	width: 32px;
	height: 32px;
	margin-bottom: 18px;
	background: var(--hw-violet-d);
	-webkit-mask: var(--ico) center / contain no-repeat;
	mask: var(--ico) center / contain no-repeat;
}
.hw-ico-drone { --ico: var(--ico-drone); }
.hw-ico-robot { --ico: var(--ico-robot); }
.hw-ico-shield { --ico: var(--ico-shield); }
.hw-ico-bolt { --ico: var(--ico-bolt); }
.hw-ico-redo { --ico: var(--ico-redo); }
.hw-ico-lock { --ico: var(--ico-lock); }
.hw-ico-user { --ico: var(--ico-user); }
.hw-ico-headset { --ico: var(--ico-headset); }

/* Картка-рядок з іконкою зліва (гарантії) */
.hw-card.hw-card--row {
	position: relative;
	padding: 24px 24px 24px 66px;
	background: #fff;
	border: 1px solid var(--hw-line);
}
.hw-card.hw-card--row[class*="hw-ico-"]::before {
	position: absolute;
	left: 24px;
	top: 24px;
	width: 26px;
	height: 26px;
	margin: 0;
}
:where(.hw-section) .hw-card--row .hw-card__title { margin-top: 0; }
:where(.hw-section) .hw-card--row p { margin-top: 4px; font-size: 15px; }

/* Великі номери (Чому ми) */
:where(.hw-section) .hw-num {
	margin-top: 0;
	font-family: var(--hw-font-display);
	font-weight: 700;
	font-size: 56px;
	line-height: 1;
	color: var(--hw-violet);
}
:where(.hw-section) .hw-card .hw-num + .hw-h3 { margin-top: 24px; font-size: 24px; }

/* ---------- Хімічна обробка ---------- */
.hw-chips {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 28px;
}
:where(.hw-section) .hw-chip {
	padding: 14px 16px;
	border: 1px solid var(--hw-line);
	border-radius: 12px;
	font-weight: 600;
	font-size: 15px;
	color: var(--hw-ink);
}
.hw-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:where(.hw-section) .hw-pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--hw-radius); }
:where(.hw-section) .hw-caption { margin-top: 10px; font-weight: 600; font-size: 15px; color: var(--hw-ink); }
:where(.hw-section) .hw-caption--accent { color: var(--hw-violet-d); }

/* ---------- Таблиця «3D-друк чи лиття» ---------- */
.hw-table {
	margin-top: 40px;
	overflow-x: auto;
	background: #fff;
	border: 1px solid var(--hw-line);
	border-radius: 20px;
}
:where(.hw-section) .hw-table table { width: 100%; min-width: 640px; margin: 0; border: 0; border-collapse: collapse; font-size: 16px; }
:where(.hw-section) .hw-table th,
:where(.hw-section) .hw-table td {
	padding: 18px 28px;
	border: 0;
	border-bottom: 1px solid #F1EEF7;
	text-align: left;
	vertical-align: top;
}
:where(.hw-section) .hw-table thead th { border-bottom: 1px solid var(--hw-line); color: var(--hw-muted); font-weight: 600; }
:where(.hw-section) .hw-table thead th:last-child { background: var(--hw-violet); color: #fff; }
:where(.hw-section) .hw-table tbody td:first-child { font-weight: 600; color: var(--hw-ink); }
:where(.hw-section) .hw-table tbody td:last-child { font-weight: 600; color: var(--hw-ink); background: #F3EFFF; }
:where(.hw-section) .hw-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Процес ---------- */
.hw-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 48px; }
.hw-step { padding: 22px; border: 1px solid var(--hw-line); border-radius: 16px; }
:where(.hw-section) .hw-step__meta { font-family: var(--hw-mono); font-size: 14px; color: var(--hw-muted); }
:where(.hw-section) .hw-step .hw-h3 { margin-top: 14px; font-size: 20px; }
:where(.hw-section) .hw-step__text { margin-top: 6px; font-size: 15px; }
.hw-step.hw-step--accent { background: var(--hw-violet); border-color: var(--hw-violet); }
:where(.hw-section) .hw-step--accent .hw-step__meta { color: #E6DEFF; }
:where(.hw-section) .hw-step--accent .hw-h3 { color: #fff; }
:where(.hw-section) .hw-step--accent .hw-step__text { color: #F1ECFF; }

/* ---------- Технології ---------- */
:where(.hw-section) .hw-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 0; list-style: none; }
:where(.hw-section) .hw-tags li {
	padding: 8px 14px;
	border: 1px solid #D3CCE3;
	border-radius: 999px;
	background: #fff;
	font-size: 14px;
	font-weight: 500;
	color: var(--hw-ink);
}
:where(.hw-section) .hw-big {
	font-family: var(--hw-font-display);
	font-weight: 700;
	font-size: 40px;
	line-height: 1.1;
	color: var(--hw-violet);
}

/* ---------- Кейси ---------- */
.hw-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.hw-cases {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 40px;
}
.hw-case {
	overflow: hidden;
	border: 1px solid var(--hw-line);
	border-radius: 20px;
	background: #fff;
}
.hw-case__img { display: block; aspect-ratio: 16 / 9; background: #ECE9F2; overflow: hidden; }
:where(.hw-section) .hw-case__img img { width: 100%; height: 100%; object-fit: cover; }
.hw-case__body { padding: 24px; }
:where(.hw-section) .hw-case__title { font-family: var(--hw-font-display); font-weight: 600; font-size: 22px; line-height: 1.25; }
:where(.hw-section) .hw-case__title a { color: var(--hw-ink); text-decoration: none; }
:where(.hw-section) .hw-case__title a:hover { color: var(--hw-violet-d); }
:where(.hw-section) .hw-case__ex { margin-top: 8px; font-size: 15px; }
:where(.hw-section) .hw-empty {
	margin-top: 40px;
	padding: 28px;
	border: 1px dashed #D3CCE3;
	border-radius: 20px;
	color: var(--hw-muted);
}

/* ---------- Форма прорахунку (Contact Form 7) ---------- */
.hw-formcard { padding: 28px; border-radius: 24px; background: #fff; color: var(--hw-ink); }
.hw-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.hw-form .hw-f { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 14px; font-weight: 600; color: var(--hw-ink); }
.hw-form .hw-f--wide { grid-column: 1 / -1; }
.hw-form .wpcf7-form-control-wrap { display: block; }
.hw-form input[type="text"],
.hw-form input[type="email"],
.hw-form input[type="tel"],
.hw-form input[type="number"],
.hw-form textarea {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #D3CCE3;
	border-radius: 10px;
	background: #fff;
	color: var(--hw-ink);
	font: 400 16px/1.4 var(--hw-font);
}
.hw-form textarea { min-height: 96px; resize: vertical; }
.hw-form input:focus,
.hw-form textarea:focus { border-color: var(--hw-violet); outline: 2px solid rgba(98, 54, 255, 0.2); outline-offset: 0; }
.hw-form input[type="file"] {
	width: 100%;
	padding: 18px;
	border: 1.5px dashed #B0A3D0;
	border-radius: 12px;
	background: var(--hw-lav);
	font: 400 14px var(--hw-font);
}
.hw-form .hw-f--check { font-weight: 400; font-size: 15px; }
.hw-form .wpcf7-list-item { margin: 0; }
.hw-form .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.hw-form input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--hw-violet); }
.hw-form input[type="submit"],
.hw-form .wpcf7-submit {
	width: 100%;
	padding: 18px;
	border: 0;
	border-radius: 12px;
	background: var(--hw-violet);
	color: #fff;
	font: 600 17px var(--hw-font);
	cursor: pointer;
}
.hw-form .wpcf7-submit:hover { background: var(--hw-violet-d); }
:where(.hw-section) .wpcf7-not-valid-tip { margin-top: 4px; font-size: 13px; font-weight: 500; color: #C2264B; }
:where(.hw-section) .wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 15px; color: var(--hw-ink); }
:where(.hw-section) .wpcf7-spinner { margin: 10px auto 0; display: block; }

/* ---------- Часті запитання ---------- */
.hw-q { padding: 22px 0; border-top: 1px solid var(--hw-line); }
.hw-q:last-child { border-bottom: 1px solid var(--hw-line); }
.hw-q summary {
	cursor: pointer;
	font-weight: 600;
	font-size: 19px;
	color: var(--hw-ink);
}
:where(.hw-section) .hw-q p { margin-top: 12px; }

/* ---------- Банер Sinterit ---------- */
:where(.hw-section).hw-sinterit { padding-top: 0; }
.hw-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 36px;
	border-radius: 24px;
	background: var(--hw-lav-2);
}
.hw-banner__text { flex: 1 1 480px; min-width: 0; }
:where(.hw-section) .hw-banner__title { font-family: var(--hw-font-display); font-weight: 700; font-size: 26px; color: var(--hw-ink); }
:where(.hw-section) .hw-banner__text p + p { margin-top: 8px; }

/* ---------- Текстова секція [addtive_text] і текст сторінки на головній ---------- */
.hw-prose { max-width: 820px; }
:where(.hw-section) .hw-prose > * + * { margin-top: 1em; }
:where(.hw-section) .hw-prose h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
:where(.hw-section) .hw-prose h3 { font-size: 22px; }
:where(.hw-section) .hw-prose ul,
:where(.hw-section) .hw-prose ol { padding-left: 1.3em; }

/* ---------- Ключові цифри кейсу [addtive_case] ---------- */
.hw-casefacts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	margin: 24px 0 32px;
}
.hw-casefact { padding: 18px; border-radius: 14px; background: var(--hw-lav); }
.hw-casefact p { margin: 0; }
.hw-casefact .hw-casefact__label { font-family: var(--hw-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hw-muted); }
.hw-casefact .hw-casefact__value { margin-top: 6px; font-family: var(--hw-font-display); font-weight: 700; font-size: 22px; color: var(--hw-ink); }

/* ---------- Записи і блог ---------- */
.single .entry-content,
.single .entry-header {
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}
.single .entry-title { font-size: clamp(32px, 4vw, 46px); line-height: 1.1; letter-spacing: -0.02em; }
.single .entry-content { font-size: 18px; line-height: 1.65; }
.single .entry-content h2 { margin-top: 1.6em; font-size: 30px; }
.single .entry-content h3 { margin-top: 1.4em; font-size: 23px; }
.single .featured-image { max-width: 1000px; margin-left: auto; margin-right: auto; }
.single .featured-image img { border-radius: 20px; }
.entry-meta { color: var(--hw-muted); font-size: 14px; }
.entry-meta a { color: var(--hw-muted); }
.cat-links a {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--hw-lav-2);
	color: var(--hw-violet-d);
	font-weight: 600;
	text-decoration: none;
}
.blog .inside-article,
.archive .inside-article {
	border: 1px solid var(--hw-line);
	border-radius: 20px;
	background: #fff;
}
.blog .post-image img,
.archive .post-image img { border-radius: 14px; }
.blog .entry-title a,
.archive .entry-title a { color: var(--hw-ink); text-decoration: none; }
.blog .entry-title a:hover,
.archive .entry-title a:hover { color: var(--hw-violet-d); }
.archive .page-header h1 { font-size: clamp(32px, 4vw, 46px); }

/* ---------- Адаптив ---------- */
@media (max-width: 781px) {
	.hw-topbar__right { display: none; }
	.hw-section { padding: 64px 20px; }
	:where(.hw-section).hw-hero { padding-top: 48px; padding-bottom: 48px; }
	.hw-cols { gap: 32px; }
	.hw-facts { margin-top: 40px; }
	:where(.hw-section) .hw-fact__num { font-size: 32px; }
	:where(.hw-section) .hw-lead { font-size: 18px; }
	.hw-chips { grid-template-columns: 1fr; }
	.hw-banner { padding: 28px 22px; }
	.hw-formcard { padding: 20px; }
	:where(.hw-section).hw-sinterit { padding-top: 0; }
	:where(.hw-section).hw-logos { padding-top: 24px; padding-bottom: 24px; }
	:where(.hw-section) a.hw-button { width: 100%; justify-content: center; }
}

/* Великі цифри в картках (перебивають загальний розмір тексту картки) */
:where(.hw-section) .hw-card .hw-num { margin-top: 0; font-size: 56px; line-height: 1; }
:where(.hw-section) .hw-card .hw-big { margin-top: 0; font-size: 40px; line-height: 1.1; }

@media (max-width: 781px) {
	.hw-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hw-fact { padding: 16px; }
	:where(.hw-section) .hw-fact__num { font-size: 26px; }
	:where(.hw-section) .hw-fact__label { font-size: 14px; }
	.hw-hero__img { aspect-ratio: 4 / 3; }
	:where(.hw-section) .hw-card .hw-num { font-size: 44px; }
}

/* ---------- 2.0: секції в тексті сторінки ---------- */
/* Відвідувачі не бачать заглушок логотипів і порожніх секцій логотипів / кейсів */
body:not(.logged-in) .hw-logo-ph { display: none; }
body:not(.logged-in) .hw-logos:not(:has(img)) { display: none; }
body:not(.logged-in) .hw-cases-section:not(:has(.hw-case)) { display: none; }
/* Залишки автоабзаців WordPress */
:where(.hw-section) p:empty,
.entry-content > p:empty { display: none; }
:where(.hw-section) .hw-media { line-height: 0; }
:where(.hw-section) .hw-wrap > br,
:where(.hw-section) .hw-cols > br,
:where(.hw-section) .hw-grid > br { display: none; }

/* ==========================================================================
   2.1: приховані секції, галереї, лайтбокс
   ========================================================================== */

/* Секція, прихована кнопкою «Сховати» в панелі «Секції сторінки» */
.hw-hidden { display: none !important; }

/* Секція «Галерея» */
:where(.hw-section) .hw-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
	margin-top: 40px;
}
:where(.hw-section) .hw-gallery br { display: none; }
.hw-gallery a,
.gallery .gallery-icon a { display: block; overflow: hidden; border-radius: 14px; background: var(--hw-lav); }
.hw-gallery img,
.gallery .gallery-icon img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.3s ease;
}
.hw-gallery a:hover img,
.gallery .gallery-icon a:hover img { transform: scale(1.04); }

/* Галерея WordPress («Додати медіа → Створити галерею») */
.gallery {
	display: grid;
	grid-template-columns: repeat(var(--hw-gal-cols, 3), minmax(0, 1fr));
	gap: 14px;
	margin: 24px 0;
}
.gallery-columns-1 { --hw-gal-cols: 1; }
.gallery-columns-2 { --hw-gal-cols: 2; }
.gallery-columns-3 { --hw-gal-cols: 3; }
.gallery-columns-4 { --hw-gal-cols: 4; }
.gallery-columns-5 { --hw-gal-cols: 5; }
.gallery-columns-6 { --hw-gal-cols: 6; }
.gallery .gallery-item { margin: 0; width: auto; max-width: none; }
.gallery .gallery-caption { margin-top: 6px; font-size: 14px; color: var(--hw-muted); }
.gallery br { display: none; }
@media (max-width: 781px) {
	.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Лайтбокс */
.hw-lb-lock, .hw-lb-lock body { overflow: hidden; }
.hw-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 56px 72px;
	background: rgba(10, 6, 24, 0.94);
}
.hw-lb.is-open { display: flex; }
.hw-lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.hw-lb__img { display: block; max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 10px; }
.hw-lb__cap { margin-top: 12px; color: #DCD6EA; font: 400 15px/1.4 var(--hw-font); text-align: center; }
.hw-lb__count { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-align: center; color: #A99FC8; font: 500 14px var(--hw-font); }
.hw-lb button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font: 400 30px/1 var(--hw-font);
	cursor: pointer;
}
.hw-lb button:hover, .hw-lb button:focus-visible { background: var(--hw-violet); }
.hw-lb button[hidden] { display: none; }
.hw-lb__close { top: 16px; right: 16px; }
.hw-lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.hw-lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
	.hw-lb { padding: 64px 12px; }
	.hw-lb__prev, .hw-lb__next { top: auto; bottom: 8px; transform: none; }
}

/* ---------- 2.1.1 ---------- */
/* Перший екран: дві кнопки вміщаються в один рядок на комп'ютері */
@media (min-width: 782px) {
	:where(.hw-section).hw-hero a.hw-button { padding: 16px 22px; font-size: 16px; }
	:where(.hw-section).hw-hero .hw-btns { gap: 10px; }
}

/* Таблиця «3D-друк чи лиття» на телефоні: назва параметра — рядком зверху,
   під нею дві колонки «Лиття» і «3D-друк». Усе видно без прокрутки вбік. */
@media (max-width: 640px) {
	:where(.hw-section) .hw-table table,
	:where(.hw-section) .hw-table thead,
	:where(.hw-section) .hw-table tbody { display: block; min-width: 0; width: 100%; font-size: 15px; line-height: 1.4; }
	:where(.hw-section) .hw-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid #F1EEF7; }
	:where(.hw-section) .hw-table tbody tr:last-child { border-bottom: 0; }
	:where(.hw-section) .hw-table th,
	:where(.hw-section) .hw-table td { display: block; padding: 10px 14px; border-bottom: 0; }
	:where(.hw-section) .hw-table thead th:first-child { display: none; }
	:where(.hw-section) .hw-table thead th { font-size: 14px; }
	:where(.hw-section) .hw-table tbody td:first-child { grid-column: 1 / -1; padding: 14px 14px 2px; font-size: 13px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--hw-muted); }
	:where(.hw-section) .hw-table tbody td:last-child { border-radius: 0; }
	.hw-table { border-radius: 16px; }
}

/* Індикатор відправлення форми — поверх кнопки, щоб не зсував вміст */
.hw-f:has(> .wpcf7-submit) { position: relative; }
.hw-f > .wpcf7-submit ~ .wpcf7-spinner { position: absolute; top: 50%; right: 14px; margin: -12px 0 0; }

/* reCAPTCHA: значок у кутку сховано, напис — під формою */
.grecaptcha-badge { visibility: hidden !important; }
.hw-recaptcha-note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--hw-muted); }
.hw-recaptcha-note a { color: inherit; text-decoration: underline; }

/* ---------- 2.2.0: внутрішні сторінки ---------- */
:where(.hw-section).hw-hero--page { padding-top: 88px; padding-bottom: 88px; }
:where(.hw-section).hw-hero--page .hw-h1 { max-width: 900px; font-size: clamp(36px, 5vw, 60px); }
:where(.hw-section).hw-hero--page .hw-lead { max-width: 760px; }
.hw-links .hw-grid { margin-top: 40px; }
:where(.hw-section) .hw-card--link { display: flex; flex-direction: column; }
:where(.hw-section) .hw-card--link .hw-h3 a { color: var(--hw-ink); text-decoration: none; }
:where(.hw-section) .hw-card--link .hw-h3 a:hover { color: var(--hw-violet-d); }
:where(.hw-section) .hw-card--link .hw-more { margin-top: auto; padding-top: 16px; }
@media (max-width: 781px) {
	:where(.hw-section).hw-hero--page { padding-top: 56px; padding-bottom: 56px; }
}

/* =====================================================================
   3.0 — універсальні класи і компоненти (щоб нові секції не вимагали правок теми)
   ===================================================================== */

/* Відступи секцій */
:where(.hw-section).hw-section--tight { padding-top: 56px; padding-bottom: 56px; }
:where(.hw-section).hw-section--flush { padding-top: 0; }
:where(.hw-section).hw-section--flush-bottom { padding-bottom: 0; }

/* Вирівнювання і ширина */
:where(.hw-section) .hw-center { text-align: center; }
:where(.hw-section) .hw-center .hw-btns,
:where(.hw-section) .hw-btns.hw-center { justify-content: center; }
:where(.hw-section) .hw-center.hw-wrap > .hw-lead,
:where(.hw-section) .hw-center > .hw-lead { margin-left: auto; margin-right: auto; }
:where(.hw-section) .hw-narrow { max-width: 760px; }
:where(.hw-section) .hw-center.hw-narrow,
:where(.hw-section) .hw-narrow.hw-center { margin-left: auto; margin-right: auto; }
:where(.hw-section) .hw-mt-0 { margin-top: 0; }

/* Дві колонки навпаки (фото ліворуч) */
.hw-cols--reverse { flex-direction: row-reverse; }

/* Фото */
:where(.hw-section) .hw-img,
:where(.hw-section) .hw-media img { display: block; width: 100%; height: auto; border-radius: var(--hw-radius); }
:where(.hw-section) .hw-media { margin: 0; }

/* Рядок цифр */
.hw-stat { padding: 4px 0 4px 20px; border-left: 3px solid var(--hw-violet); }
:where(.hw-section) .hw-stat__num { margin: 0; font-family: var(--hw-font-display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; color: var(--hw-ink); }
:where(.hw-section) .hw-stat__label { margin: 6px 0 0; font-size: 15px; color: var(--hw-muted); }
:where(.hw-section.hw-dark) .hw-stat__num { color: #fff; }
:where(.hw-section.hw-dark) .hw-stat__label { color: var(--hw-on-dark); }
.hw-stats .hw-grid { margin-top: 0; }

/* Відео і карта 16:9 */
:where(.hw-section) .hw-video,
:where(.hw-section) .hw-map { position: relative; margin: 40px 0 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--hw-radius); background: var(--hw-lav-2); line-height: 0; }
:where(.hw-section) .hw-map { margin-top: 0; aspect-ratio: 4 / 3; }
:where(.hw-section) .hw-video iframe,
:where(.hw-section) .hw-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Контакти */
:where(.hw-section) .hw-contact-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 18px; }
:where(.hw-section) .hw-contact-list a { color: var(--hw-ink); text-decoration: none; }
:where(.hw-section) .hw-contact-list a:hover { color: var(--hw-violet-d); }

/* Видимість */
.hw-hidden { display: none !important; }
@media (max-width: 781px) { .hw-hide-mobile { display: none !important; } }
@media (min-width: 782px) { .hw-hide-desktop { display: none !important; } }

/* Будь-яка форма Contact Form 7 (і без обгортки .hw-form) */
:where(.wpcf7-form) > label,
:where(.wpcf7-form) > p { display: block; margin: 0 0 16px; font-weight: 600; font-size: 14px; color: var(--hw-ink); }
:where(.wpcf7-form) .wpcf7-form-control-wrap { display: block; margin-top: 6px; }
:where(.wpcf7-form) :is(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea) {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid #D3CCE3;
	border-radius: 10px;
	background: #fff;
	color: var(--hw-ink);
	font: 400 16px/1.4 var(--hw-font);
}
:where(.wpcf7-form) :is(input, select, textarea):focus { border-color: var(--hw-violet); outline: 2px solid rgba(98, 54, 255, 0.2); outline-offset: 0; }
:where(.wpcf7-form) input[type="submit"] {
	padding: 15px 26px;
	border: 0;
	border-radius: 12px;
	background: var(--hw-violet);
	color: #fff;
	font: 600 17px/1.2 var(--hw-font);
	cursor: pointer;
}
:where(.wpcf7-form) input[type="submit"]:hover { background: var(--hw-violet-d); }

@media (max-width: 781px) {
	.hw-cols--reverse { flex-direction: column; }
	:where(.hw-section).hw-section--tight { padding-top: 40px; padding-bottom: 40px; }
}

/* Текстова секція: колонка тексту вирівняна по лівому краю сайту, як інші секції */
:where(.hw-section) .hw-wrap.hw-prose { max-width: var(--hw-wrap); }
:where(.hw-section) .hw-wrap.hw-prose > * { max-width: 820px; }
:where(.hw-section) .hw-wrap.hw-prose.hw-center > * { margin-left: auto; margin-right: auto; }
:where(.hw-section) .hw-prose img { max-width: 100%; height: auto; border-radius: 14px; }

/* Фото в секції «Текст + фото» — акуратна пропорція */
:where(.hw-section).hw-split .hw-img { aspect-ratio: 4 / 3; object-fit: cover; }

/* =====================================================================
   Звичайні сторінки, записи, архіви, пошук, 404 (шаблони GeneratePress)
   ===================================================================== */
body:not(.hw-landing) { background-color: var(--hw-lav); }
body:not(.hw-landing) .inside-article,
body:not(.hw-landing) .page-header,
body:not(.hw-landing) .widget,
body:not(.hw-landing) .comments-area,
body:not(.hw-landing) .no-results { border-radius: 20px; }
body:not(.hw-landing) .entry-content a,
.widget a { color: var(--hw-violet-d); }
body:not(.hw-landing) .entry-content a:hover,
.widget a:hover { color: var(--hw-violet); }
.entry-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--hw-violet);
	font-style: normal;
	font-size: 1.1em;
	color: var(--hw-ink);
}
.entry-content table:not(.hw-table table) {
	width: 100%;
	border: 1px solid var(--hw-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	overflow: hidden;
	font-size: 16px;
}
.entry-content table:not(.hw-table table) :is(th, td) { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--hw-line); text-align: left; }
.entry-content table:not(.hw-table table) th { background: var(--hw-lav); color: var(--hw-ink); font-weight: 600; }
.entry-content table:not(.hw-table table) tr:last-child td { border-bottom: 0; }
.entry-content .wp-caption-text,
.entry-content figcaption { margin-top: 8px; font-size: 14px; color: var(--hw-muted); }
.entry-content img { border-radius: 14px; }
.widget-title { font-size: 18px; font-weight: 600; color: var(--hw-ink); }

/* Поля і кнопки: пошук, коментарі, віджети */
.site-main :is(input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea):not(.wpcf7-form-control),
.widget :is(input[type="text"], input[type="search"]),
.search-form .search-field {
	padding: 11px 14px;
	border: 1px solid #D3CCE3;
	border-radius: 10px;
	background: #fff;
	color: var(--hw-ink);
}
.site-main :is(input, textarea):not(.wpcf7-form-control):focus,
.widget input:focus { border-color: var(--hw-violet); outline: 2px solid rgba(98, 54, 255, 0.2); outline-offset: 0; }
.comment-form input[type="submit"],
.search-form :is(.search-submit, button),
.widget :is(button, input[type="submit"]),
.wp-block-search__button,
a.read-more-button,
.read-more-container .button {
	padding: 11px 20px;
	border: 0;
	border-radius: 10px;
	background: var(--hw-violet);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.comment-form input[type="submit"]:hover,
.search-form :is(.search-submit, button):hover,
.widget :is(button, input[type="submit"]):hover,
.wp-block-search__button:hover,
a.read-more-button:hover { background: var(--hw-violet-d); color: #fff; }

/* Посторінкова навігація */
.paging-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.paging-navigation .page-numbers {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border-radius: 10px;
	background: #fff;
	color: var(--hw-ink);
	font-weight: 600;
	text-decoration: none;
}
.paging-navigation .page-numbers.current { background: var(--hw-violet); color: #fff; }
.paging-navigation a.page-numbers:hover { color: var(--hw-violet-d); }
.post-navigation a,
.comment-navigation a { color: var(--hw-violet-d); }
.widget :is(h2, h3, .widget-title) { font-size: 18px; line-height: 1.3; font-weight: 600; color: var(--hw-ink); }

/* 3.2: повідомлення «Видно лише вам» на місці спільного блоку, який не показується */
.hw-blocknote {
	max-width: var(--hw-wrap, 1160px);
	margin: 24px auto;
	padding: 16px 20px;
	border: 1px dashed #d63638;
	border-radius: 12px;
	background: #fff5f5;
	color: #8a2424;
	font-size: 15px;
	line-height: 1.5;
	box-sizing: border-box;
}
.hw-blocknote p { margin: 0; }
.hw-blocknote a { color: inherit; text-decoration: underline; }
.hw-blocknote--preview { border-color: #B39CFF; background: #faf8ff; color: #2c1a73; }
body.hw-landing .entry-content > .hw-blocknote {
	box-sizing: border-box;
	max-width: min(var(--hw-wrap, 1160px), calc(100% - 48px));
	padding: 16px 20px;
}

/* ==========================================================================
   3.3: анімації появи (класи hw-anim-…). Працюють лише коли підключено anim.js
   (клас hw-anim-on на <html>); без нього, у друці і при вимкнених анімаціях — усе видно одразу.
   Анімуються лише opacity і transform — макет не «стрибає» (CLS), перший екран не ховається (LCP).
   ========================================================================== */
html.hw-anim-on :is(.hw-anim-fade-up, .hw-anim-fade, .hw-anim-fade-left, .hw-anim-fade-right, .hw-anim-zoom):not(.is-done),
html.hw-anim-on .hw-anim-stagger:not(.is-done) > * {
	transition: opacity .65s cubic-bezier(.2, .7, .2, 1), transform .65s cubic-bezier(.2, .7, .2, 1);
}
html.hw-anim-on .hw-anim-slow:not(.is-done),
html.hw-anim-on .hw-anim-stagger.hw-anim-slow:not(.is-done) > * { transition-duration: 1s; }
html.hw-anim-on :is(.hw-anim-fade-up, .hw-anim-fade, .hw-anim-fade-left, .hw-anim-fade-right, .hw-anim-zoom):not(.is-in),
html.hw-anim-on .hw-anim-stagger:not(.is-in) > * { opacity: 0; }
html.hw-anim-on .hw-anim-fade-up:not(.is-in),
html.hw-anim-on .hw-anim-stagger:not(.is-in) > * { transform: translate3d(0, 28px, 0); }
html.hw-anim-on .hw-anim-fade-left:not(.is-in) { transform: translate3d(-32px, 0, 0); }
html.hw-anim-on .hw-anim-fade-right:not(.is-in) { transform: translate3d(32px, 0, 0); }
html.hw-anim-on .hw-anim-zoom:not(.is-in) { transform: scale(.94); }
html.hw-anim-on .hw-anim-stagger:not(.is-done) > * { transition-delay: calc(var(--hw-i, 0) * 90ms); }
html.hw-anim-on .hw-delay-1:not(.is-done) { transition-delay: .1s; }
html.hw-anim-on .hw-delay-2:not(.is-done) { transition-delay: .2s; }
html.hw-anim-on .hw-delay-3:not(.is-done) { transition-delay: .3s; }
html.hw-anim-on .hw-delay-4:not(.is-done) { transition-delay: .4s; }
html.hw-anim-on .hw-delay-5:not(.is-done) { transition-delay: .5s; }
/* Зсув збоку не повинен давати горизонтальну прокрутку (clip не ламає «липку» шапку) */
html.hw-anim-on body { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
	html.hw-anim-on [class*="hw-anim-"], html.hw-anim-on [class*="hw-anim-"] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}
@media print {
	html.hw-anim-on [class*="hw-anim-"], html.hw-anim-on [class*="hw-anim-"] > * { opacity: 1 !important; transform: none !important; }
}

/* Безпечний режим (?addtive_safe=1) — плашка вгорі сторінки */
.hw-safe-note { margin: 16px auto; width: min(var(--hw-wrap, 1160px), calc(100% - 48px)); }
