/* ==========================================================================
   Intelaria Blank — основні стилі
   ========================================================================== */

:root {
	--ia-navy: #0B2A6F;
	--ia-blue: #00378A;
	--ia-sky: #009DDF;
	--ia-indigo: #4D5EA5;
	--ia-orange: #F28C28;
	--ia-orange-d: #E06F0B;
	--ia-ink: #1E2A44;
	--ia-muted: #5B6782;
	--ia-line: #E3E9F3;
	--ia-mist: #F3F7FD;
	--ia-peach: #FFF4EA;
	--ia-r: 24px;
	--ia-r-sm: 14px;
	--ia-shadow: 0 10px 30px rgba(11, 42, 111, .08);
	--ia-shadow-lg: 0 18px 50px rgba(11, 42, 111, .14);
	--ia-wide: 1200px;
	--ia-content: 780px;
	--ia-gutter: clamp(16px, 4vw, 32px);
	--ia-header-h: 72px;
	--ia-ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--ia-header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, iframe { max-width: 100%; height: auto; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; transition: color .2s; }
strong, b { font-weight: 600; }
sup { font-size: .65em; line-height: 0; }
:focus-visible { outline: 3px solid var(--ia-sky); outline-offset: 2px; border-radius: 4px; }

.ia-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: #fff; padding: 10px 16px; border-radius: 8px; }
.ia-skip:focus { left: 8px; }

.ia-wrap { width: 100%; max-width: calc(var(--ia-wide) + 2 * var(--ia-gutter)); margin-inline: auto; padding-inline: var(--ia-gutter); }
.ia-wrap--narrow { max-width: calc(var(--ia-content) + 2 * var(--ia-gutter)); }

/* ---------- Смуга бренду ---------- */
.ia-brandbar { background: #fff; border-bottom: 1px solid var(--ia-line); font-size: 13px; }
.ia-brandbar .ia-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.ia-brandbar__logo { display: inline-flex; }
.ia-brandbar__logo img { display: block; height: 22px; width: auto; }

/* ---------- Перемикач мов ---------- */
.ia-lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--ia-mist); border: 1px solid var(--ia-line); }
.ia-lang__item { display: inline-block; min-width: 38px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--ia-blue); text-decoration: none; letter-spacing: .04em; }
.ia-lang__item:hover { color: var(--ia-orange-d); }
.ia-lang__item.is-active { background: var(--ia-blue); color: #fff; }
.ia-lang--footer { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); margin-top: 8px; }
.ia-lang--footer .ia-lang__item { color: #fff; }
.ia-lang--footer .ia-lang__item.is-active { background: #fff; color: var(--ia-navy); }
.ia-lang--menu { display: none; }

/* ---------- Шапка ---------- */
.ia-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); transition: box-shadow .3s; }
.admin-bar .ia-header { top: 32px; }
.ia-header.is-scrolled { box-shadow: 0 6px 24px rgba(11,42,111,.08); }
.ia-header__in { display: flex; align-items: center; gap: 24px; min-height: var(--ia-header-h); }
.ia-logo { flex: none; display: inline-flex; }
.ia-logo img { display: block; height: 36px; width: auto; }
.ia-nav { flex: 1; }
.ia-nav__list { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; }
.ia-nav__list a { display: block; position: relative; padding: 10px 12px; font-size: 15px; font-weight: 500; color: var(--ia-navy); text-decoration: none; border-radius: 10px; white-space: nowrap; }
.ia-nav__list a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--ia-orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ia-ease); }
.ia-nav__list a:hover::after,
.ia-nav__list .menu-item-type-post_type.current-menu-item > a::after { transform: scaleX(1); }
.ia-nav__mobile-extra { display: none; }
.ia-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.ia-header__buy { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; background: var(--ia-orange); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; box-shadow: 0 6px 18px rgba(242,140,40,.35); transition: background .2s, transform .2s; }
.ia-header__buy:hover { background: var(--ia-orange-d); color: #fff; transform: translateY(-1px); }
.ia-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ia-mist); cursor: pointer; padding: 12px 11px; }
.ia-burger span { display: block; height: 2px; background: var(--ia-navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.ia-burger span + span { margin-top: 5px; }
.ia-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ia-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ia-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
	.ia-nav__list a { padding: 10px 8px; font-size: 14px; }
	.ia-nav__list a::after { left: 8px; right: 8px; }
}
@media (max-width: 1023px) {
	:root { --ia-header-h: 64px; }
	.ia-burger { display: block; }
	.ia-nav { position: fixed; inset: calc(var(--ia-header-h) + var(--ia-top, 0px)) 0 0 0; background: #fff; padding: 20px var(--ia-gutter) 32px; overflow-y: auto; opacity: 0; transform: translateY(-10px); visibility: hidden; pointer-events: none; transition: opacity .3s var(--ia-ease), transform .3s var(--ia-ease), visibility .3s; }
	.ia-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
	.ia-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.ia-nav__list a { font-size: 19px; padding: 16px 4px; border-bottom: 1px solid var(--ia-line); border-radius: 0; }
	.ia-nav__list a::after { display: none; }
	.ia-nav__mobile-extra { display: block; margin-top: 24px; }
	.ia-lang--menu { display: inline-flex; }
	.ia-lang--top { display: none; }
	.ia-header__buy { padding: 9px 14px; font-size: 13px; }
	body.ia-menu-open { overflow: hidden; }
}
@media (max-width: 600px) {
	.ia-logo img { height: 30px; }
	.ia-header__buy { display: none; }
	.admin-bar .ia-header { top: 0; }
}

/* ==========================================================================
   Вміст сторінок (блоки)
   ========================================================================== */

.ia-main { display: block; }
.ia-content > * { margin-block: 0; }
.ia-content > :where(:not(.alignfull):not(.alignwide)) { max-width: var(--ia-content); margin-inline: auto; padding-inline: var(--ia-gutter); box-sizing: content-box; }
.ia-content > .alignwide { max-width: var(--ia-wide); margin-inline: auto; padding-inline: var(--ia-gutter); box-sizing: content-box; }
.ia-content > .alignfull { width: 100%; max-width: none; }
.ia-content > * + *:not(.alignfull), .ia-content > .wp-block-image + *, .ia-content > * + .wp-block-image { margin-top: 1.25rem; }
.ia-content > .alignfull + .alignfull { margin-top: 0; }
.ia-content > :last-child:not(.alignfull) { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.ia-content > :first-child:not(.alignfull) { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* Вкладені constrained-контейнери: відступи всередині повноширинних секцій */
.wp-block-group.alignfull { padding-inline: var(--ia-gutter); }
.wp-block-group.alignfull > .alignwide { max-width: var(--ia-wide); }

h1, h2, h3, h4, h5, h6 { text-wrap: balance; margin-block: 0; }
.ia-content h2 { margin-top: 2.2rem; }
.ia-content h3 { margin-top: 1.8rem; }
.ia-content :where(h2, h3, h4) + * { margin-top: .8rem; }
.wp-block-group > h2:first-child, .wp-block-column > h2:first-child, .wp-block-group > h3:first-child, .wp-block-column > h3:first-child { margin-top: 0; }
p { margin-block: 0; }
.has-text-align-center { text-align: center; }
.wp-block-heading.has-text-align-center, p.has-text-align-center { margin-inline: auto; }

/* Списки */
.ia-content ul:not([class*="is-style-"]):not(.wp-block-social-links):not(.ia-nav__list) { padding-left: 1.3em; }
.ia-content > ul.wp-block-list:not([class*="is-style-"]), .ia-content > ol.wp-block-list { padding-left: calc(var(--ia-gutter) + 1.3em) !important; }
.ia-content ul:not([class*="is-style-"]) > li::marker { color: var(--ia-orange); }
.ia-content li + li { margin-top: .35em; }
.wp-block-list.is-style-ia-check { list-style: none; padding-left: 0; }
.wp-block-list.is-style-ia-check > li { position: relative; padding-left: 34px; }
.wp-block-list.is-style-ia-check > li::before { content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--ia-sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.wp-block-list.is-style-ia-pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.wp-block-list.is-style-ia-pills > li { margin: 0; }
.wp-block-list.is-style-ia-pills a,
.wp-block-list.is-style-ia-pills > li:not(:has(a)) { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: #fff; border: 1px solid var(--ia-line); box-shadow: var(--ia-shadow); color: var(--ia-blue); font-weight: 600; font-size: 1.05rem; text-decoration: none; text-transform: lowercase; transition: transform .25s var(--ia-ease), box-shadow .25s, color .2s, border-color .2s; }
.wp-block-list.is-style-ia-pills a::first-letter { text-transform: uppercase; }
.wp-block-list.is-style-ia-pills a::after { content: "→"; color: var(--ia-orange); transition: transform .25s var(--ia-ease); }
.wp-block-list.is-style-ia-pills a:hover { transform: translateY(-3px); box-shadow: var(--ia-shadow-lg); border-color: var(--ia-sky); }
.wp-block-list.is-style-ia-pills a:hover::after { transform: translateX(4px); }

/* Кнопки */
.wp-block-buttons { gap: 12px; }
.wp-block-button__link { transition: background-color .2s, color .2s, transform .2s var(--ia-ease), box-shadow .2s; box-shadow: 0 8px 22px rgba(242,140,40,.3); text-transform: uppercase; }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242,140,40,.38); }
.wp-block-button.is-style-ia-outline .wp-block-button__link { background: transparent; color: var(--ia-blue); box-shadow: inset 0 0 0 2px var(--ia-blue); }
.wp-block-button.is-style-ia-outline .wp-block-button__link:hover { background: var(--ia-blue); color: #fff; }
.wp-block-button.is-style-ia-light .wp-block-button__link { background: #fff; color: var(--ia-navy); box-shadow: 0 8px 22px rgba(0,0,0,.15); }
.wp-block-button.is-style-ia-light .wp-block-button__link:hover { background: var(--ia-peach); }
.ia-btn { display: inline-block; padding: .9em 1.8em; border-radius: 999px; background: var(--ia-orange); color: #fff; font-weight: 600; text-decoration: none; }
.ia-btn:hover { background: var(--ia-orange-d); color: #fff; }

/* Картинки */
.wp-block-image { margin-block: 0; }
.wp-block-image img { display: block; }
.wp-block-image.is-style-ia-round img { border-radius: var(--ia-r); }
.wp-block-image.is-style-ia-shadow img { border-radius: var(--ia-r); box-shadow: var(--ia-shadow-lg); }
.wp-block-image.is-style-ia-float img { animation: ia-float 6s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(11,42,111,.18)); }
.ia-content > .wp-block-image:not(.alignfull):not(.alignwide) img { border-radius: var(--ia-r); }
.wp-block-image figcaption { color: var(--ia-muted); font-size: .875rem; text-align: center; }

/* Заголовки-стилі */
.is-style-ia-eyebrow, p.is-style-ia-badge { display: inline-block; font-size: .8125rem !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ia-sky); }
p.is-style-ia-badge { padding: 6px 14px; border-radius: 999px; background: rgba(0,157,223,.1); }
p.is-style-ia-badge.has-text-align-center { display: table; margin-inline: auto !important; }
.has-text-align-center.is-style-ia-eyebrow { display: block; }
.is-style-ia-display { font-size: clamp(1.75rem, 3.2vw, 2.75rem) !important; font-weight: 700; line-height: 1.15; color: var(--ia-navy); letter-spacing: -.01em; }
p.is-style-ia-lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ia-muted); }

/* Колонки */
.wp-block-columns { gap: clamp(20px, 3vw, 40px); margin-bottom: 0; }
.wp-block-columns.is-style-ia-cards > .wp-block-column { background: #fff; border: 1px solid var(--ia-line); border-radius: var(--ia-r); padding: clamp(20px, 2.5vw, 32px); box-shadow: var(--ia-shadow); transition: transform .3s var(--ia-ease), box-shadow .3s; }
.wp-block-columns.is-style-ia-cards > .wp-block-column:hover { transform: translateY(-4px); box-shadow: var(--ia-shadow-lg); }

/* Групи-стилі */
.wp-block-group.is-style-ia-card { background: #fff; border: 1px solid var(--ia-line); border-radius: var(--ia-r); padding: clamp(20px, 3vw, 36px); box-shadow: var(--ia-shadow); }
.wp-block-group.is-style-ia-section { background: var(--ia-mist); padding-block: clamp(3rem, 7vw, 5.5rem); }
.wp-block-group.is-style-ia-dark { background: linear-gradient(135deg, #0B2A6F 0%, #00378A 55%, #4D5EA5 100%); color: #fff; padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; overflow: hidden; }
.wp-block-group.is-style-ia-dark :where(h1, h2, h3, h4, h5, h6) { color: #fff; }
.wp-block-group.is-style-ia-dark a:not(.wp-block-button__link) { color: #9FDDF8; }
.wp-block-group.is-style-ia-dark::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(0,157,223,.45), transparent 65%); pointer-events: none; }
.wp-block-group.is-style-ia-dark > * { position: relative; }
.wp-block-group.is-style-ia-note { background: var(--ia-mist); border-radius: var(--ia-r-sm); padding: 20px 24px; font-size: .8125rem; line-height: 1.6; color: var(--ia-muted); }
.wp-block-group.is-style-ia-note p + p { margin-top: .5em; }

/* Відступи секцій без стилю */
.ia-pad { padding-block: clamp(3rem, 7vw, 5.5rem); }

/* Акордеон (details) */
.wp-block-details { border: 1px solid var(--ia-line); border-radius: 16px; background: #fff; padding: 0; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.wp-block-details + .wp-block-details { margin-top: 12px; }
.wp-block-details[open] { box-shadow: var(--ia-shadow); border-color: #cfe3f6; }
.wp-block-details > summary { list-style: none; cursor: pointer; position: relative; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 1.0625rem; color: var(--ia-navy); }
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--ia-mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300378A' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ia-ease), background-color .3s; }
.wp-block-details[open] > summary::after { transform: rotate(45deg); background-color: var(--ia-peach); }
.wp-block-details > :not(summary) { margin: 0; padding: 0 22px; }
.wp-block-details > :not(summary):last-child { padding-bottom: 20px; }
.wp-block-details ul { margin: 0; }

/* Таблиці */
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--ia-line); border-radius: var(--ia-r-sm); overflow: hidden; background: #fff; }
.wp-block-table :where(td, th) { border: 0; border-bottom: 1px solid var(--ia-line); padding: 12px 16px; text-align: left; }
.wp-block-table tr:last-child td { border-bottom: 0; }
.wp-block-table thead :where(td, th) { background: var(--ia-blue); color: #fff; font-weight: 600; border-bottom: 0; }
.wp-block-table tbody tr:nth-child(even) td { background: var(--ia-mist); }
.wp-block-table td:last-child { white-space: nowrap; }

/* Вбудоване відео */
.wp-block-embed { margin-block: 0; }
.wp-block-embed__wrapper { border-radius: var(--ia-r); overflow: hidden; box-shadow: var(--ia-shadow-lg); background: #000; }
.ia-yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ia-r); overflow: hidden; box-shadow: var(--ia-shadow-lg); background: #0B2A6F center/cover no-repeat; cursor: pointer; }
.ia-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ia-yt__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border: 0; border-radius: 50%; background: rgba(242,140,40,.95); box-shadow: 0 10px 30px rgba(0,0,0,.3); cursor: pointer; transition: transform .25s var(--ia-ease); }
.ia-yt__play::before { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.ia-yt:hover .ia-yt__play { transform: scale(1.08); }

/* Записи (Query Loop) */
.wp-block-post-template { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(16px, 2.5vw, 28px); }
.wp-block-post-template.is-layout-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)) !important; }
.wp-block-post-template > li { margin: 0 !important; display: flex; }
.ia-post-card { display: flex; flex-direction: column; width: 100%; background: #fff; border: 1px solid var(--ia-line); border-radius: var(--ia-r); overflow: hidden; box-shadow: var(--ia-shadow); transition: transform .3s var(--ia-ease), box-shadow .3s; padding: 0 !important; gap: 0 !important; }
.ia-post-card:hover { transform: translateY(-4px); box-shadow: var(--ia-shadow-lg); }
.ia-post-card .wp-block-post-featured-image { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.ia-post-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ia-ease); }
.ia-post-card:hover .wp-block-post-featured-image img { transform: scale(1.04); }
.ia-post-card > :not(.wp-block-post-featured-image) { padding-inline: 22px; }
.ia-post-card .wp-block-post-date { margin-top: 18px; font-size: .8125rem; color: var(--ia-muted); }
.ia-post-card .wp-block-post-title { margin: 6px 0 0; font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
.ia-post-card .wp-block-post-title a { color: var(--ia-navy); text-decoration: none; }
.ia-post-card .wp-block-post-title a:hover { color: var(--ia-orange-d); }
.ia-post-card .wp-block-read-more { margin-top: auto; padding-top: 14px; padding-bottom: 22px; font-weight: 600; font-size: .9375rem; color: var(--ia-orange-d); text-decoration: none; }
.ia-post-card .wp-block-read-more:hover { color: var(--ia-blue); }
.wp-block-query-pagination { margin-top: 32px; justify-content: center; gap: 8px; }

/* Картки записів з PHP */
.ia-posts { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ia-card-post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ia-line); border-radius: var(--ia-r); overflow: hidden; box-shadow: var(--ia-shadow); }
.ia-card-post__img img { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.ia-card-post__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ia-card-post__date { font-size: .8125rem; color: var(--ia-muted); }
.ia-card-post__title { margin: 0; font-size: 1.125rem; }
.ia-card-post__title a { color: var(--ia-navy); text-decoration: none; }
.ia-card-post__more { margin-top: auto; font-weight: 600; color: var(--ia-orange-d); text-decoration: none; }
.ia-section-pad { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

/* ==========================================================================
   Секції Intelaria (класи груп — ставляться паттернами)
   ========================================================================== */

/* Hero */
.ia-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #F3F7FD 0%, #E6F1FC 55%, #FFF4EA 100%); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 6rem); }
.ia-hero::before, .ia-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.ia-hero::before { width: 560px; height: 560px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(0,157,223,.18), transparent 70%); }
.ia-hero::after { width: 420px; height: 420px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(242,140,40,.16), transparent 70%); }
.ia-hero > * { position: relative; z-index: 1; }
.ia-hero .wp-block-columns { align-items: center !important; }
.ia-hero__title { font-size: clamp(1.625rem, 3vw, 2.5rem) !important; font-weight: 700; line-height: 1.15; color: var(--ia-navy); letter-spacing: -.015em; }
.ia-hero__title strong, .ia-hero__title b { color: var(--ia-blue); }
.ia-hero__tag { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; color: var(--ia-orange-d); }
.ia-hero__visual { position: relative; }
.ia-hero__visual .wp-block-image img { margin-inline: auto; }

/* Чипи-переваги */
.ia-chips { display: flex !important; flex-wrap: wrap; gap: 10px !important; }
.ia-chips > .wp-block-group { display: flex !important; align-items: center; gap: 10px !important; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--ia-line); box-shadow: 0 6px 18px rgba(11,42,111,.06); margin: 0 !important; transition: transform .25s var(--ia-ease), box-shadow .25s; }
.ia-chips > .wp-block-group:hover { transform: translateY(-2px); box-shadow: var(--ia-shadow); }
.ia-chips .wp-block-image { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ia-mist); display: grid; place-items: center; }
.ia-chips .wp-block-image img { width: 26px !important; height: 26px !important; object-fit: contain; }
.ia-chips p { font-weight: 600; color: var(--ia-blue); font-size: .9375rem; margin: 0; }

/* Голова-ілюстрація у hero */
.ia-hero__head { max-width: 340px; margin-top: 8px !important; }
@media (max-width: 781px) { .ia-hero__head { display: none; } }

/* Таблетка з підписами */
.ia-pill { position: relative; max-width: 460px; margin-inline: auto; aspect-ratio: 1; display: grid !important; place-items: center; }
.ia-pill::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #fff 0%, #EAF4FD 55%, rgba(234,244,253,0) 72%); }
.ia-pill::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(0,157,223,.25); animation: ia-spin 60s linear infinite; }
.ia-pill > .wp-block-image { position: relative; z-index: 2; width: 72%; margin: 0 !important; }
.ia-pill > .wp-block-image img { width: 100%; animation: ia-float 6s ease-in-out infinite; filter: drop-shadow(0 25px 30px rgba(11,42,111,.18)); }
.ia-pill > p { position: absolute; z-index: 3; margin: 0 !important; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #fff; box-shadow: 0 10px 24px rgba(11,42,111,.2); animation: ia-bob 4s ease-in-out infinite; }
.ia-pill > p:nth-of-type(1) { left: 2%; top: 22%; background: linear-gradient(135deg, #F28C28, #FFB25A); }
.ia-pill > p:nth-of-type(2) { right: 4%; top: 12%; background: linear-gradient(135deg, #009DDF, #4FC4F2); animation-delay: -.8s; }
.ia-pill > p:nth-of-type(3) { right: 0; bottom: 26%; background: linear-gradient(135deg, #4D5EA5, #7C8BD0); animation-delay: -1.6s; }
.ia-pill > p:nth-of-type(4) { left: 8%; bottom: 10%; background: linear-gradient(135deg, #00378A, #2F68C4); animation-delay: -2.4s; }
.ia-pill > p:nth-of-type(5) { left: 44%; bottom: -2%; background: linear-gradient(135deg, #E06F0B, #F28C28); animation-delay: -3.2s; }
.ia-pill > p:nth-of-type(n+6) { display: none; }

/* Пазл */
.ia-puzzle { position: relative; max-width: 440px; margin-inline: auto; aspect-ratio: 1; display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 !important; padding: 13%; }
.ia-puzzle::before { content: ""; position: absolute; inset: 0; background: url("../img/arrows-around.svg") center/contain no-repeat; opacity: .7; animation: ia-spin 40s linear infinite; }
.ia-puzzle::after { content: ""; position: absolute; inset: 11%; border-radius: 50%; background: radial-gradient(circle, #fff 30%, #EAF4FD 70%); z-index: 0; }
.ia-puzzle > .wp-block-group { position: relative; z-index: 1; margin: 0 !important; display: grid !important; place-items: center; }
.ia-puzzle > .wp-block-group > .wp-block-image { margin: 0 !important; width: 100%; }
.ia-puzzle > .wp-block-group > .wp-block-image img { width: 100%; height: auto; transition: transform .4s var(--ia-ease); }
.ia-puzzle > .wp-block-group:hover > .wp-block-image img { transform: scale(1.06); }
.ia-puzzle > .wp-block-group > p { position: absolute; inset: 0; display: grid; place-items: center; margin: 0 !important; font-weight: 700; font-size: clamp(14px, 2vw, 18px); color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.25); }

/* Крок «як працює» */
.ia-steps { display: grid !important; gap: 18px !important; }
.ia-step { display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(14px, 2.5vw, 28px) !important; background: #fff; border: 1px solid var(--ia-line); border-radius: var(--ia-r); padding: clamp(16px, 2.5vw, 24px); box-shadow: var(--ia-shadow); }
.ia-step > * { margin: 0 !important; }
.ia-step__icon { width: 64px; height: 64px; border-radius: 18px; background: var(--ia-mist); display: grid !important; place-items: center; }
.ia-step__icon img { width: 40px !important; height: 40px !important; object-fit: contain; }
.ia-step > p { font-size: 1.0625rem; font-weight: 500; color: var(--ia-navy); }
.ia-step__pics { display: flex !important; align-items: center; gap: 10px !important; }
.ia-step__pics .wp-block-image { margin: 0 !important; }
.ia-step__pics .wp-block-image img { width: 130px; height: 88px; object-fit: cover; border-radius: 14px; }
.ia-step__pics::before { content: none; }
.ia-step__pics > .wp-block-image + .wp-block-image { position: relative; }
.ia-step__pics > .wp-block-image + .wp-block-image::before { content: "→"; position: absolute; left: -10px; top: 50%; transform: translate(-50%, -50%); color: var(--ia-orange); font-weight: 700; font-size: 18px; }
@media (max-width: 760px) {
	.ia-step { grid-template-columns: auto 1fr; }
	.ia-step__pics { grid-column: 1 / -1; justify-content: center; }
	.ia-step__pics .wp-block-image img { width: min(42vw, 160px); height: auto; aspect-ratio: 3/2; }
}

/* Групи кроків (заголовок групи) */
.ia-group-title { margin-top: clamp(2.5rem, 5vw, 3.5rem) !important; }

/* Джерела */
.ia-sources .wp-block-column { text-align: center; }
.ia-sources .wp-block-image { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 14px !important; border-radius: 50%; background: var(--ia-mist); }
.ia-sources .wp-block-image img { width: 60px !important; height: 60px !important; object-fit: contain; }
.ia-sources h3, .ia-sources .ia-sources__name { font-size: 1rem !important; font-weight: 600; color: var(--ia-blue); letter-spacing: .02em; }
.ia-sources .wp-block-list { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px !important; }
.ia-sources .wp-block-list li { margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--ia-peach); color: var(--ia-orange-d); font-weight: 600; font-size: .8125rem; letter-spacing: .04em; }

/* CTA «Як приймати» */
.ia-cta .wp-block-columns { align-items: center !important; }
.ia-dose { display: flex !important; align-items: center; gap: 18px !important; margin-top: 18px !important; }
.ia-dose .wp-block-image { flex: none; width: 72px; height: 72px; border-radius: 20px; background: #fff; display: grid; place-items: center; }
.ia-dose .wp-block-image img { width: 44px !important; height: 44px !important; }
.ia-dose p:first-of-type { font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 700; line-height: 1.2; }
.ia-dose p + p { margin-top: 4px !important; opacity: .85; }
.ia-cta .wp-block-buttons { margin-top: 26px !important; }

/* Перелік користі */
.ia-benefits { text-align: center; }

/* Банер сторінки */
.ia-page-hero { background: linear-gradient(135deg, #F3F7FD 0%, #E6F1FC 60%, #FFF4EA 100%); padding-block: clamp(2.25rem, 5vw, 4rem); position: relative; overflow: hidden; }
.ia-page-hero::after { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(0,157,223,.16), transparent 70%); pointer-events: none; }
.ia-page-hero h1 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); max-width: 900px; }
.ia-page-hero.has-text-align-center h1, .ia-page-hero .has-text-align-center { margin-inline: auto; }

/* Офіси */
.ia-offices { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px !important; }
.ia-offices > .wp-block-group { margin: 0 !important; height: 100%; }
.ia-offices strong { display: block; font-size: 1.125rem; color: var(--ia-navy); margin-bottom: 6px; }

/* Стаття */
.ia-article__head { background: linear-gradient(135deg, #F3F7FD 0%, #FFF4EA 100%); padding-block: 22px 18px; }
.ia-article__meta { color: var(--ia-muted); font-size: .875rem; margin-top: 6px; }
.ia-article__body > h1:first-child, .ia-article__body > .wp-block-heading:first-child { margin-top: clamp(1.75rem, 4vw, 2.75rem); font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
.ia-article__cover { max-width: var(--ia-content); margin: 1.75rem auto 0 !important; }
.ia-article__cover img { width: 100%; height: auto; border-radius: var(--ia-r); box-shadow: var(--ia-shadow-lg); }
.ia-article__body { font-size: 1.0625rem; }
.ia-article__body h2 { font-size: clamp(1.4rem, 2.4vw, 1.875rem); }
.ia-article__body h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
.ia-article__body > .wp-block-image img { box-shadow: var(--ia-shadow); }

.ia-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; font-size: .8125rem; color: var(--ia-muted); }
.ia-crumbs li + li::before { content: "/"; margin-right: 6px; color: #b7c1d6; }
.ia-crumbs a { color: var(--ia-blue); text-decoration: none; }

/* 404 */
.ia-404 { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.ia-404__code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; line-height: 1; background: linear-gradient(135deg, #00378A, #009DDF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ia-404 h1 { margin: 10px 0 12px; }
.ia-404 p + p { margin-top: 24px; }

/* ==========================================================================
   Футер
   ========================================================================== */

.ia-footer { background: #0A2259; color: #C9D3E8; font-size: .9375rem; }
.ia-footer a { color: #fff; text-decoration: none; }
.ia-footer a:hover { color: #FFB25A; }
.ia-footer__warn { background: var(--ia-peach); color: var(--ia-navy); text-align: center; font-weight: 700; font-size: clamp(.875rem, 1.6vw, 1.0625rem); letter-spacing: .06em; padding-block: 18px; }
.ia-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-block: 48px 36px; }
.ia-footer__brand { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.ia-footer__brand img { display: block; }
.ia-footer__company { color: #fff; font-weight: 600; }
.ia-footer__col p + p { margin-top: 6px; }
.ia-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: .8125rem; color: #8F9DBE; }
@media (max-width: 760px) {
	.ia-footer__grid { grid-template-columns: 1fr; gap: 24px; padding-block: 36px 28px; }
}

/* ==========================================================================
   Анімації
   ========================================================================== */

@keyframes ia-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ia-bob { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.04); } }
@keyframes ia-spin { to { transform: rotate(360deg); } }

.ia-js .ia-reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ia-ease), transform .8s var(--ia-ease); transition-delay: var(--ia-delay, 0s); }
.ia-js .ia-reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.ia-js .ia-reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Адаптив вмісту
   ========================================================================== */

@media (max-width: 781px) {
	.ia-hero .wp-block-columns { gap: 28px; }
	.ia-hero__title { text-align: center; }
	.ia-hero .wp-block-buttons { justify-content: center; }
	.ia-hero__tag { text-align: center; }
	.ia-chips { justify-content: center; }
	.wp-block-buttons > .wp-block-button { flex: 1 1 auto; }
	.wp-block-buttons > .wp-block-button .wp-block-button__link { width: 100%; }
	.ia-pill > p { width: 52px; height: 52px; font-size: 13px; }
}

/* Редактор: показувати приховані анімацією елементи */
.editor-styles-wrapper .ia-reveal { opacity: 1 !important; transform: none !important; }
.editor-styles-wrapper .ia-nav { position: static; }

/* Відступи між блоками всередині колонок і груп */
.wp-block-column > * + *,
.wp-block-group.is-layout-constrained > * + *,
.wp-block-group.is-layout-flow > * + * { margin-top: 1.25rem; }
.wp-block-column > .wp-block-image.is-style-ia-float { margin-top: 1.75rem; }
.ia-chips > * + *, .ia-step > * + *, .ia-step__pics > * + *, .ia-dose > * + *, .ia-puzzle > * + *, .ia-pill > * + * { margin-top: 0 !important; }
@media (max-width: 600px) {
	.ia-puzzle > .wp-block-group > p { font-size: 13px; }
}

/* Текстові сторінки */
.ia-prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.875rem); margin-top: 2.25rem; }
.ia-prose h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
.ia-prose > h2:first-child, .ia-prose > h3:first-child { margin-top: 0; }
.ia-offices strong + br { display: none; }
.ia-offices p + p { margin-top: .75rem; }
.ia-offices a[href^="mailto"] { word-break: break-all; }
