/* Aesthetic Pro: стили темы. Цвета и шрифты перенесены с прежнего сайта (набор Elementor). */

:root {
	--c-ink: #141414;
	--c-text: #141414;
	--c-muted: #666666;
	--c-blue: #285497;
	--c-blue-hover: #1f4380;
	--c-navy: #083c8f;
	--c-gold: #aa8f71;
	--c-soft: #f8f8f8;
	--c-chip: #f1f2f3;
	--c-tint: #e1e6f3;
	--c-line: #d2d2d2;
	--c-line-soft: #e9eae9;
	--c-white: #ffffff;
	--c-tg: #2aabee;
	--c-tg-hover: #1d93d2;

	--f-head: Verdana, Geneva, "DejaVu Sans", sans-serif;
	--f-body: "PT Sans", "Trebuchet MS", Arial, sans-serif;

	--r-btn: 10px;
	--r-box: 15px;
	--r-chip: 20px;

	--wrap: 1320px;
	--gut: 20px;
	--sec: 88px;
	--header-h: 96px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.8; color: var(--c-text); background: var(--c-white); overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-blue-hover); }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 700; color: var(--c-ink); line-height: 1.3; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: 45px; }
h2 { font-size: 45px; }
h3 { font-size: 26px; }
h4 { font-size: 21px; }
p { margin: 0 0 1em; }
::selection { background: var(--c-blue); color: var(--c-white); }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; border-radius: 4px; }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ae-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--c-blue); color: var(--c-white); border-radius: var(--r-btn); }
.ae-skip:focus { top: 12px; color: var(--c-white); }

.ae-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.ae-section { padding-block: 64px var(--sec); }
.ae-icon { width: 1em; height: 1em; flex: none; }
.ae-flip { transform: scaleX(-1); }

/* ---------- кнопки ---------- */
.ae-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 28px; border: 1px solid var(--c-blue); border-radius: var(--r-btn);
	background: var(--c-blue); color: var(--c-white); font-family: var(--f-body); font-size: 17px; font-weight: 700; line-height: 1.2;
	text-decoration: none; transition: background-color .2s, border-color .2s, color .2s;
}
.ae-btn:hover { background: var(--c-blue-hover); border-color: var(--c-blue-hover); color: var(--c-white); }
.ae-btn .ae-icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.ae-btn:hover .ae-icon--arrow-right { transform: translateX(3px); }
.ae-btn--block { width: 100%; }
.ae-btn--ghost { background: transparent; color: var(--c-blue); }
.ae-btn--ghost:hover { background: var(--c-blue); color: var(--c-white); }
.ae-btn--tg { background: var(--c-tg); border-color: var(--c-tg); }
.ae-btn--tg:hover { background: var(--c-tg-hover); border-color: var(--c-tg-hover); }
.ae-btn--tg .ae-icon { width: 20px; height: 20px; }

/* ---------- шапка ---------- */
.ae-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; background: var(--c-white); border-bottom: 1px solid transparent; transition: border-color .2s; }
.ae-header.is-stuck { border-bottom-color: var(--c-line-soft); }
.ae-header__row { display: flex; align-items: center; gap: 32px; min-height: var(--header-h); }
.ae-logo { display: block; flex: none; }
.ae-logo img { height: 56px; width: auto; }
.ae-nav { margin-left: auto; }
.ae-nav__list { display: flex; gap: 6px 30px; list-style: none; margin: 0; padding: 0; }
.ae-nav__list a {
	position: relative; display: inline-block; padding: 6px 0; color: var(--c-ink); font-size: 16px; text-decoration: none; white-space: nowrap;
}
.ae-nav__list a::after, .ae-sn__link::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--c-gold);
	transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.ae-nav__list a:hover, .ae-sn__link:hover { color: var(--c-ink); }
.ae-nav__list a:hover::after, .ae-sn__link:hover::after, .ae-sn:focus-within .ae-sn__link::after { transform: scaleX(1); }
.ae-nav__list .current-menu-item > a, .ae-nav__list .current-page-ancestor > a, .ae-sn.is-current > .ae-sn__link { color: var(--c-gold); }
.ae-nav__list .current-menu-item > a::after, .ae-sn.is-current > .ae-sn__link::after { transform: scaleX(1); }
.ae-header__tools { display: flex; align-items: center; gap: 12px; flex: none; }

/* переключатель языков */
.ae-langs { display: flex; align-items: center; gap: 2px; padding: 4px; border: 1px solid var(--c-line-soft); border-radius: 999px; background: var(--c-white); }
.ae-langs__item { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 7px; border-radius: 999px; color: var(--c-ink); font-size: 14px; font-weight: 700; line-height: 1; text-decoration: none; transition: background-color .25s, color .25s; }
.ae-langs__item img { width: 20px; height: 20px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(20, 20, 20, .08); }
.ae-langs__item:hover { background: var(--c-chip); color: var(--c-blue); }
.ae-langs__item.is-current { background: var(--c-blue); color: var(--c-white); }
.ae-langs__name { display: none; }
.ae-langs--drawer { align-self: flex-start; }
.ae-langs--drawer .ae-langs__code { display: none; }
.ae-langs--drawer .ae-langs__name { display: inline; }
.ae-burger { display: none; width: 46px; height: 46px; border: 1px solid var(--c-line); border-radius: var(--r-btn); background: var(--c-white); color: var(--c-ink); place-items: center; padding: 0; }
.ae-burger .ae-icon { width: 20px; height: 20px; }

.ae-bar { background: var(--c-navy); color: var(--c-white); }
.ae-bar__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 50px; }
.ae-bar__tagline { margin: 0; font-family: var(--f-head); font-size: 13px; font-weight: 700; line-height: 1.4; }
.ae-bar__contacts { display: flex; align-items: center; gap: 24px; }
.ae-bar__phone, .ae-bar__tg { display: inline-flex; align-items: center; gap: 8px; color: var(--c-white); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ae-bar__phone .ae-icon { width: 24px; height: 24px; padding: 5px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%; }
.ae-bar__tg .ae-icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--c-tg); }
.ae-bar__phone + .ae-bar__phone { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .45); }
.ae-bar__phone:hover, .ae-bar__tg:hover { color: var(--c-white); text-decoration: underline; }

.ae-services-nav { position: relative; z-index: 45; border-bottom: 1px solid var(--c-line-soft); background: var(--c-white); }
.ae-services-nav__list { display: flex; gap: 4px 30px; list-style: none; margin: 0; padding: 0; scrollbar-width: none; }
.ae-services-nav__list::-webkit-scrollbar { display: none; }
.ae-sn { position: relative; display: flex; align-items: center; gap: 4px; }
.ae-sn__link { position: relative; display: inline-block; padding: 19px 0; color: var(--c-ink); font-size: 16px; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.ae-sn__link::after { bottom: 14px; }
.ae-sn__toggle { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--c-muted); transition: transform .3s var(--ease), color .2s; }
.ae-sn__toggle .ae-icon { width: 10px; height: 10px; }
.ae-sn__drop {
	position: absolute; top: 100%; left: -18px; min-width: 300px; padding: 12px; background: var(--c-white);
	border: 1px solid var(--c-line-soft); border-top-color: var(--c-gold); border-radius: 0 0 var(--r-btn) var(--r-btn);
	box-shadow: 0 22px 40px -22px rgba(8, 60, 143, .45);
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .22s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.ae-sn:hover .ae-sn__drop, .ae-sn:focus-within .ae-sn__drop, .ae-sn.is-open .ae-sn__drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ae-sn:hover .ae-sn__toggle, .ae-sn.is-open .ae-sn__toggle { transform: rotate(180deg); color: var(--c-blue); }
.ae-sn:nth-last-child(-n+2) .ae-sn__drop { left: auto; right: -18px; }
.ae-sn__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ae-sn__list--2 { grid-template-columns: repeat(2, minmax(210px, 1fr)); column-gap: 6px; }
.ae-sn__list a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--c-ink); font-size: 15px; line-height: 1.35; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.ae-sn__list a:hover { background: var(--c-soft); color: var(--c-blue); }
.ae-sn__list a[aria-current] { background: var(--c-tint); color: var(--c-blue); }
.ae-sn__all { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 12px 12px 4px; border-top: 1px solid var(--c-line-soft); color: var(--c-blue); font-size: 14px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.ae-sn__all .ae-icon { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.ae-sn__all:hover .ae-icon { transform: translateX(3px); }

/* мобильное меню */
.ae-drawer { position: fixed; inset: 0; z-index: 100; background: rgba(20, 20, 20, 0); visibility: hidden; transition: background-color .4s var(--ease), visibility 0s linear .45s; }
.ae-drawer.is-open { background: rgba(20, 20, 20, .45); visibility: visible; transition-delay: 0s; }
.ae-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); overflow-y: auto; padding: 16px 20px 32px; background: var(--c-white); display: flex; flex-direction: column; gap: 20px; transform: translateX(100%); transition: transform .45s cubic-bezier(.22, .8, .2, 1); }
.ae-drawer.is-open .ae-drawer__panel { transform: none; }
.ae-drawer__panel > * { opacity: 0; transform: translateX(16px); transition: opacity .3s, transform .4s var(--ease); }
.ae-drawer.is-open .ae-drawer__panel > * { opacity: 1; transform: none; transition-delay: .12s; }
.ae-drawer.is-open .ae-drawer__panel > :nth-child(3) { transition-delay: .18s; }
.ae-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.ae-drawer__head .ae-logo img { height: 44px; }
.ae-drawer__close { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--c-line); border-radius: var(--r-btn); background: var(--c-white); }
.ae-drawer__close .ae-icon { width: 20px; height: 20px; }
.ae-drawer__nav { list-style: none; margin: 0; padding: 0; }
.ae-drawer__nav a { display: block; padding: 11px 0; border-bottom: 1px solid var(--c-line-soft); color: var(--c-ink); font-family: var(--f-head); font-size: 18px; font-weight: 700; text-decoration: none; }
.ae-drawer__nav--sub a { font-family: var(--f-body); font-size: 17px; font-weight: 400; }
.ae-dn__row { display: flex; align-items: center; border-bottom: 1px solid var(--c-line-soft); }
.ae-dn__row a { flex: 1; border-bottom: 0; }
.ae-dn__toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: var(--c-muted); transition: transform .3s var(--ease), color .2s; }
.ae-dn__toggle .ae-icon { width: 13px; height: 13px; }
.ae-dn.is-open .ae-dn__toggle { transform: rotate(180deg); color: var(--c-blue); }
.ae-dn__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.ae-dn.is-open .ae-dn__sub { grid-template-rows: 1fr; }
.ae-dn__sub > ul { min-height: 0; overflow: hidden; list-style: none; margin: 0; padding: 0 0 0 14px; }
.ae-dn__sub a { padding: 8px 0; font-size: 16px; color: #3f4254; border-bottom: 0; }
.ae-dn__sub li:first-child a { padding-top: 10px; }
.ae-dn__sub li:last-child a { padding-bottom: 12px; }
.ae-drawer__nav .current-menu-item > a { color: var(--c-gold); }
.ae-drawer__label { margin: 18px 0 0; color: var(--c-muted); font-size: 14px; }
.ae-drawer__contacts { margin-top: auto; display: grid; gap: 6px; }
.ae-drawer__phone { color: var(--c-ink); font-family: var(--f-head); font-size: 20px; font-weight: 700; text-decoration: none; }
.ae-drawer__btns { display: grid; gap: 10px; margin-top: 12px; }

/* ---------- шапка внутренней страницы ---------- */
.ae-hero { position: relative; display: flex; align-items: flex-end; min-height: 350px; overflow: hidden; border-radius: 0 0 var(--r-box) var(--r-box); background: var(--c-ink); color: var(--c-white); isolation: isolate; }
.ae-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .62; }
.ae-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 20, 20, .05) 30%, rgba(20, 20, 20, .55)); }
.ae-hero__in { padding-block: 72px 56px; }
.ae-hero__title { margin: 0; color: var(--c-white); font-size: 45px; max-width: 980px; }
.ae-hero__lead { margin: 12px 0 0; max-width: 720px; color: rgba(255, 255, 255, .88); }
.ae-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; list-style: none; margin: 0 0 14px; padding: 0; font-size: 15px; line-height: 1.4; }
.ae-crumbs li { display: inline-flex; align-items: center; }
.ae-crumbs a { color: var(--c-white); text-decoration: none; }
.ae-crumbs a:hover { text-decoration: underline; color: var(--c-white); }
.ae-crumbs span { color: rgba(255, 255, 255, .8); }
.ae-crumbs__sep { width: 9px; height: 9px; margin-inline: 12px; opacity: .7; }

/* ---------- содержимое из редактора ---------- */
.ae-content > :first-child { margin-top: 0; }
.ae-content p, .ae-content li { font-size: 16px; }
.ae-content ul, .ae-content ol { padding-left: 1.3em; margin: 0 0 1em; }
.ae-content li + li { margin-top: .25em; }
.ae-content li::marker { color: var(--c-blue); }
.ae-content h2 { margin-top: 1.4em; }
.ae-content h3 { margin-top: 1.5em; }
.ae-content h4 { margin-top: 1.4em; }
.ae-content strong { color: var(--c-ink); }
.ae-content img { border-radius: 8px; }
.ae-content .wp-block-image { margin: 0 0 1.4em; }
.ae-content figcaption { margin-top: 8px; color: var(--c-muted); font-size: 14px; line-height: 1.5; }
.ae-content blockquote { margin: 1.5em 0; padding: 20px 24px; background: var(--c-soft); border-radius: var(--r-box); }
.ae-content blockquote p:last-child { margin: 0; }
.ae-content hr, .wp-block-separator { border: 0; border-top: 1px solid var(--c-line); margin: 40px 0; }
.ae-content--page { max-width: 1100px; }

/* таблицы: на телефоне прокрутка по горизонтали */
.wp-block-table { margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wp-block-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.wp-block-table th, .wp-block-table td { padding: 13px 16px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.wp-block-table th { background: var(--c-soft); color: var(--c-ink); font-weight: 700; }
.wp-block-table tbody tr:nth-child(even) td { background: #fcfcfc; }
.wp-block-table figcaption { caption-side: top; order: -1; margin: 0 0 10px; color: var(--c-ink); font-weight: 700; font-size: 16px; }
.wp-block-table { display: flex; flex-direction: column; }

/* таблицы, вставленные без обёртки блока */
.ae-content > table { display: block; max-width: 100%; overflow-x: auto; margin: 1.6em 0; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.ae-content > table th, .ae-content > table td { padding: 13px 16px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.ae-content > table th { background: var(--c-soft); color: var(--c-ink); }
.ae-content > table:has(th:only-child) th { font-weight: 400; }

/* галерея работ: ровная сетка с кадрированием */
.wp-block-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 1.4em; padding: 0; }
.wp-block-gallery .wp-block-image { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: var(--c-soft); }
.wp-block-gallery .wp-block-image a { display: block; height: 100%; }
.wp-block-gallery .wp-block-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .5s var(--ease); }
.wp-block-gallery .wp-block-image a:hover img { transform: scale(1.04); }
.wp-block-gallery .wp-block-image a { cursor: zoom-in; }

/* ---------- раздел-обёртка для широких блоков ---------- */
.ae-flow > .wp-block-group, .ae-flow > .ae-tiles { margin-block: 0; }

/* вступление на главной */
.ae-intro { max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding: 28px var(--gut) 26px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 32px; }
.ae-intro h1 { margin: 0; font-size: 26px; }
.ae-intro p { margin: 0; max-width: 640px; color: var(--c-muted); font-size: 16px; line-height: 1.6; }

/* плитки направлений */
.ae-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; list-style: none; margin: 0; padding: 0; }
.ae-tile { position: relative; aspect-ratio: 283 / 570; max-height: 620px; min-height: 420px; width: 100%; overflow: hidden; background: #d3d3d3; color: var(--c-white); isolation: isolate; }
.ae-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.ae-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .55)); transition: background-color .4s; }
.ae-tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 20px 22px; }
.ae-tile__title { margin: 0; padding-left: 12px; border-left: 2px solid var(--c-white); font-size: 26px; line-height: 1.3; letter-spacing: .5px; color: var(--c-white); }
.ae-tile__title a { color: inherit; text-decoration: none; }
.ae-tile__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.ae-tile__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease), opacity .3s; }
.ae-tile__list { min-height: 0; overflow: hidden; list-style: none; margin: 0; padding: 12px 0 0 14px; display: grid; align-content: start; gap: 2px; font-size: 15px; line-height: 1.45; }
.ae-tile__list li::before { content: ""; display: inline-block; width: 6px; height: 1px; margin-right: 8px; vertical-align: middle; background: currentColor; }
.ae-tile:hover .ae-tile__img, .ae-tile:focus-within .ae-tile__img { transform: scale(1.06); }
.ae-tile:hover::after, .ae-tile:focus-within::after { background-color: rgba(0, 0, 0, .28); }
.ae-tile:hover .ae-tile__more, .ae-tile:focus-within .ae-tile__more { grid-template-rows: 1fr; opacity: 1; }

/* сильные стороны */
.ae-strengths { background: var(--c-soft); }
.ae-strengths { display: grid; grid-template-columns: 260px 1fr; align-items: center; gap: 24px 40px; padding: 40px max(var(--gut), calc((100% - var(--wrap)) / 2)); }
.ae-strengths__title { margin: 0; font-size: 21px; }
.ae-strengths__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ae-strengths__list li { display: flex; align-items: center; gap: 14px; min-height: 64px; margin: 0; padding: 12px 16px; background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--r-btn); font-family: var(--f-head); font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--c-ink); }
.ae-strengths__list li::before { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-tint) no-repeat center / 16px; }
.ae-strengths__list li:nth-child(4n+1)::before { background-image: url("../icons/circle-check-blue.svg"); }
.ae-strengths__list li:nth-child(4n+2)::before { background-image: url("../icons/user-tie-blue.svg"); }
.ae-strengths__list li:nth-child(4n+3)::before { background-image: url("../icons/headset-blue.svg"); }
.ae-strengths__list li:nth-child(4n+4)::before { background-image: url("../icons/microchip-blue.svg"); }

/* шаги */
.ae-steps { max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding: var(--sec) var(--gut) 0; counter-reset: step; }
.ae-steps__title { text-align: center; font-size: 26px; margin: 0 0 56px; }
.ae-steps__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 40px; padding-bottom: 56px; border-bottom: 1px solid var(--c-line); }
.ae-steps__item { text-align: center; counter-increment: step; }
.ae-steps__item::before { content: counter(step); display: grid; place-items: center; width: 42px; height: 42px; margin: 0 auto 18px; background: #000; color: var(--c-white); font-family: var(--f-body); font-size: 24px; line-height: 1; }
.ae-steps__item h3 { margin: 0 0 10px; color: var(--c-blue); font-size: 19px; line-height: 1.2; }
.ae-steps__item p { margin: 0; color: var(--c-muted); font-size: 14px; line-height: 1.6; }

/* заявка */
.ae-cta { margin-top: var(--sec); background: var(--c-soft); padding: 88px max(var(--gut), calc((100% - 1180px) / 2)); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px 72px; align-items: start; }
.ae-cta__text { container-type: inline-size; }
/* заголовок заявки ровно в две строки: кегль от ширины колонки */
.ae-cta h2 { margin: 0 0 20px; font-size: clamp(17px, 6cqi, 40px); line-height: 1.25; text-wrap: balance; }
:lang(uz) .ae-cta h2 { font-size: clamp(16px, 5.6cqi, 38px); }
.ae-cta__text p { color: var(--c-muted); font-size: 16px; }
.ae-flow > .ae-cta:first-child, .ae-flow--home .ae-cta { margin-top: var(--sec); }

/* форма */
.ae-form { display: grid; gap: 14px; }
.ae-field { display: grid; gap: 4px; }
.ae-field label { color: var(--c-ink); font-size: 16px; line-height: 1.5; }
.ae-field__opt { color: var(--c-muted); font-size: 14px; }
.ae-field input, .ae-field textarea { width: 100%; min-height: 56px; padding: 14px 20px; border: 1px solid var(--c-line-soft); border-radius: var(--r-btn); background: var(--c-white); color: var(--c-ink); font-size: 16px; line-height: 1.5; transition: border-color .2s; }
.ae-field textarea { min-height: 80px; resize: vertical; }
.ae-field input::placeholder, .ae-field textarea::placeholder { color: #757575; }
.ae-field input:focus, .ae-field textarea:focus { outline: none; border-color: var(--c-blue); }
.ae-field.is-invalid input { border-color: #c0392b; }
.ae-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ae-form__submit { margin-top: 4px; }
.ae-form__submit[disabled] { opacity: .65; cursor: progress; }
.ae-form__status { margin: 0; min-height: 1.5em; font-size: 15px; line-height: 1.5; }
.ae-form__status.is-ok { color: #1e7a3c; }
.ae-form__status.is-err { color: #c0392b; }
.ae-form.is-done .ae-field, .ae-form.is-done .ae-form__submit { display: none; }
.ae-form.is-done .ae-form__status { padding: 18px 20px; border-radius: var(--r-btn); background: var(--c-white); border: 1px solid var(--c-line-soft); font-size: 17px; }

/* проекты на главной */
.ae-projects { max-width: calc(1180px + var(--gut) * 2); margin-inline: auto; padding: var(--sec) var(--gut) 0; }
.ae-projects > h2 { text-align: center; margin: 0 0 32px; }
.ae-projects .ae-tablist { justify-content: center; }

/* вкладки */
.ae-tablist { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.ae-tablist button { min-height: 48px; padding: 10px 30px; border: 0; border-radius: var(--r-chip); background: var(--c-chip); color: var(--c-blue); font-family: var(--f-head); font-size: 16px; font-weight: 700; line-height: 1.3; transition: background-color .2s, color .2s; }
.ae-tablist button:hover { background: var(--c-tint); }
.ae-tablist button[aria-selected="true"] { background: var(--c-blue); color: var(--c-white); }
.ae-tabs.is-ready .ae-tab__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.ae-tabs.is-ready .ae-tab[hidden] { display: none; }
.ae-tab + .ae-tab { margin-top: 32px; }
.ae-tabs.is-ready .ae-tab.is-enter, .ae-folio .ae-folio__group.is-enter { animation: ae-tab-in .45s var(--ease) both; }
@keyframes ae-tab-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ae-tab.is-enter .wp-block-image, .ae-folio__group.is-enter .wp-block-image { animation: ae-tab-in .5s var(--ease) both; }
.ae-tab.is-enter .wp-block-image:nth-child(2), .ae-folio__group.is-enter .wp-block-image:nth-child(2) { animation-delay: .04s; }
.ae-tab.is-enter .wp-block-image:nth-child(3), .ae-folio__group.is-enter .wp-block-image:nth-child(3) { animation-delay: .08s; }
.ae-tab.is-enter .wp-block-image:nth-child(n+4), .ae-folio__group.is-enter .wp-block-image:nth-child(n+4) { animation-delay: .12s; }
.ae-tablist button { position: relative; }
.ae-tabs.is-ready .ae-tab + .ae-tab { margin-top: 0; }
.ae-tab__text { margin: 0 0 12px; padding: 22px 26px; background: var(--c-soft); border-radius: var(--r-box); }
.ae-tab__text p:last-child { margin: 0; }

/* логотипы клиентов */
.ae-clients { max-width: calc(1140px + var(--gut) * 2); margin-inline: auto; padding: var(--sec) var(--gut) 0; }
.ae-clients__title { text-align: center; margin: 0 0 40px; font-size: 39px; }
.wp-block-gallery.ae-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.wp-block-gallery.ae-logos .wp-block-image { aspect-ratio: auto; background: none; border-radius: 0; overflow: visible; }
.wp-block-gallery.ae-logos .wp-block-image img { width: 100%; height: auto; object-fit: contain; }

/* страница услуги */
.ae-service { display: grid; grid-template-columns: 354px minmax(0, 1fr); gap: 40px 60px; align-items: start; }
.ae-service__main > h2:first-child { text-align: center; margin-bottom: 20px; }
.ae-service__main > h2:not(:first-child) { font-size: 30px; margin-top: 1.5em; }
.ae-service__main > .ae-sub-gallery { margin-block: 8px 12px; }
.ae-subs:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ae-service__main > h3 { text-align: center; margin-top: 36px; }
.ae-service__main > .wp-block-separator + h3, .ae-service__main > hr + h3 { text-align: left; }
.ae-aside { min-width: 0; align-self: stretch; }
.ae-aside__box { padding: 22px; background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--r-btn); }
.ae-aside__title { margin: 0 0 6px; font-family: var(--f-head); font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--c-ink); }
.ae-tree { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--c-line-soft); }
.ae-tree__item { border-bottom: 1px solid var(--c-line-soft); }
.ae-tree__row { display: flex; align-items: center; gap: 6px; }
.ae-tree__link { flex: 1; min-width: 0; padding: 9px 0; color: var(--c-ink); font-size: 15.5px; font-weight: 700; line-height: 1.35; text-decoration: none; transition: color .2s; }
.ae-tree__link:hover, .ae-tree__item.is-current > .ae-tree__row .ae-tree__link { color: var(--c-blue); }
.ae-tree__toggle { flex: none; display: grid; place-items: center; width: 30px; height: 30px; margin-right: -6px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--c-muted); transition: background-color .2s, color .2s; }
.ae-tree__toggle:hover { background: var(--c-soft); color: var(--c-blue); }
.ae-tree__toggle .ae-icon { width: 11px; height: 11px; transition: transform .35s var(--ease); }
.ae-tree__item.is-open .ae-tree__toggle { color: var(--c-blue); }
.ae-tree__item.is-open .ae-tree__toggle .ae-icon { transform: rotate(180deg); }
.ae-tree__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.ae-tree__item.is-open .ae-tree__sub { grid-template-rows: 1fr; }
.ae-tree__sub > ul { min-height: 0; overflow: hidden; list-style: none; margin: 0; padding: 0; }
.ae-tree__sub li:last-child { padding-bottom: 8px; }
.ae-tree__sub a { position: relative; display: block; padding: 5px 10px 5px 26px; border-radius: 6px; color: #3f4254; font-size: 14.5px; line-height: 1.35; text-decoration: none; transition: background-color .2s, color .2s; }
.ae-tree__sub a::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border: 1.5px solid var(--c-line); border-radius: 50%; transition: border-color .2s, background-color .2s; }
.ae-tree__sub a:hover { background: var(--c-soft); color: var(--c-blue); }
.ae-tree__sub a:hover::before { border-color: var(--c-blue); }
.ae-tree__sub a[aria-current] { background: var(--c-tint); color: var(--c-blue); font-weight: 700; }
.ae-tree__sub a[aria-current]::before { border-color: var(--c-blue); background: var(--c-blue); }
.ae-aside__phone { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; color: var(--c-ink); font-size: 16px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.ae-aside__phone .ae-icon { width: 14px; height: 14px; color: var(--c-gold); }
.ae-aside__phone:hover { color: var(--c-blue); }
.ae-aside__btns { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.ae-aside__btns .ae-btn { min-height: 46px; padding-inline: 16px; font-size: 15px; }
.ae-btn--icon, .ae-aside__btns .ae-btn--icon { width: 46px; padding: 0; }
.ae-btn--icon .ae-icon { width: 22px; height: 22px; }

/* виды работ направления: карточки */
.ae-subs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 8px 0 32px; padding: 0; }
.ae-sub { position: relative; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--c-line-soft); border-radius: var(--r-btn); background: var(--c-white); transition: border-color .25s; }
.ae-sub:hover { border-color: var(--c-blue); }
.ae-sub__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.ae-sub:hover .ae-sub__img { transform: scale(1.04); }
.ae-subs + .ae-subs--text { margin-top: -16px; }
.ae-sub--text { background: var(--c-soft); }
.ae-sub--text .ae-sub__body { padding: 20px 20px 18px; }
.ae-sub__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; position: relative; background: inherit; }
.ae-sub__title { margin: 0; font-size: 18px; line-height: 1.3; }
.ae-sub__title a { color: var(--c-ink); text-decoration: none; }
.ae-sub__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.ae-sub:hover .ae-sub__title a { color: var(--c-blue); }
.ae-sub__text { margin: 0; color: var(--c-muted); font-size: 15px; line-height: 1.55; }
.ae-sub__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; color: var(--c-blue); font-size: 15px; font-weight: 700; }
.ae-sub__more .ae-icon { width: 12px; height: 12px; transition: transform .2s var(--ease); }
.ae-sub:hover .ae-sub__more .ae-icon { transform: translateX(3px); }
.ae-subnav { display: none; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.ae-subnav a { white-space: nowrap; display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: var(--r-chip); background: var(--c-chip); color: var(--c-blue); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background-color .2s, color .2s; }
.ae-subnav a:hover { background: var(--c-tint); }
.ae-subnav a[aria-current] { background: var(--c-blue); color: var(--c-white); }

/* подробный текст услуги и вопросы */
.ae-seo { max-width: calc(1180px + var(--gut) * 2); margin-inline: auto; padding: var(--sec) var(--gut) 0; }
.ae-seo > h2:first-child { margin-top: 0; }
.ae-seo h2 { margin-top: 1.2em; }
.ae-seo h3 { margin-top: 1.6em; }
.ae-seo p, .ae-seo li { color: #4d4d4d; }
.ae-seo .ae-faq__title { margin-top: 1.6em; }
.ae-faq { display: grid; border-top: 1px solid var(--c-line); }
.wp-block-details { border-bottom: 1px solid var(--c-line); }
.wp-block-details summary { position: relative; display: block; padding: 22px 56px 22px 0; cursor: pointer; list-style: none; font-family: var(--f-head); font-size: 19px; font-weight: 700; line-height: 1.4; color: var(--c-ink); }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; border-right: 2px solid var(--c-blue); border-bottom: 2px solid var(--c-blue); transform: translateY(-70%) rotate(45deg); }
.wp-block-details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.wp-block-details summary:hover { color: var(--c-blue); }
.wp-block-details > :not(summary) { margin: 0 0 22px; max-width: 980px; }
.wp-block-details summary::after { transition: transform .3s var(--ease); }
.wp-block-details.is-animating { overflow: hidden; }
.wp-block-details[open].is-closing summary::after { transform: translateY(-70%) rotate(45deg); }
.wp-block-details[open] > :not(summary) { animation: ae-tab-in .4s var(--ease) both; }

/* портфолио */
.ae-folio.is-ready > .ae-folio__group[hidden] { display: none; }
.ae-folio__group + .ae-folio__group { margin-top: 48px; }
.ae-folio__title { margin: 0 0 18px; font-size: 26px; }
.ae-folio .ae-tablist { justify-content: center; margin-bottom: 36px; }
.wp-block-gallery.ae-folio__gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.wp-block-gallery.ae-folio__gallery .wp-block-image { aspect-ratio: 4 / 3; }
.ae-folio__more { display: flex; justify-content: center; margin-top: 24px; }

/* о компании */
.ae-about { max-width: 1100px; }
.ae-about h2 { margin-top: 0; }
.ae-flow .ae-strengths:first-child { margin-top: 0; }

/* контакты */
.ae-contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px 56px; align-items: stretch; }
.ae-contacts__info { display: grid; gap: 0; align-content: start; border-top: 1px solid var(--c-line); }
.ae-contacts__row { padding: 22px 0; border-bottom: 1px solid var(--c-line); }
.ae-contacts__label { margin: 0 0 8px; color: var(--c-muted); font-family: var(--f-body); font-size: 15px; font-weight: 400; }
.ae-contacts__phone { display: block; color: var(--c-ink); font-family: var(--f-head); font-size: 28px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.ae-contacts__phone:hover { color: var(--c-blue); }
.ae-contacts__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.ae-contacts__addr { margin: 0; color: var(--c-ink); font-size: 18px; line-height: 1.5; }
.ae-contacts__note { margin: 4px 0 0; color: var(--c-muted); font-size: 15px; }
.ae-contacts__map { min-height: 460px; border-radius: var(--r-box); overflow: hidden; background: var(--c-soft); }
.ae-contacts__map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; }
.ae-routes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ae-route { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--c-line); border-radius: var(--r-btn); background: var(--c-white); color: var(--c-ink); font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: border-color .2s; }
.ae-route img { width: 20px; height: 20px; object-fit: contain; }
.ae-route:hover { border-color: var(--c-blue); color: var(--c-blue); }

/* ---------- статьи ---------- */
.ae-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.ae-chip { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 20px; border-radius: var(--r-chip); background: var(--c-chip); color: var(--c-blue); font-size: 15px; font-weight: 700; line-height: 1.3; text-decoration: none; transition: background-color .2s, color .2s; }
.ae-chip:hover { background: var(--c-tint); color: var(--c-blue); }
.ae-chip.is-active { background: var(--c-blue); color: var(--c-white); }
.ae-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.ae-card { display: flex; flex-direction: column; }
.ae-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 8px; background: var(--c-soft); margin-bottom: 16px; }
.ae-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ae-card:hover .ae-card__img { transform: scale(1.04); }
.ae-card__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; color: var(--c-gold); font-size: 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ae-card__meta span { color: var(--c-muted); }
.ae-card__title { margin: 0 0 10px; font-size: 19px; line-height: 1.35; }
.ae-card__title a { color: var(--c-ink); text-decoration: none; }
.ae-card__title a:hover { color: var(--c-blue); }
.ae-card__text { margin: 0; color: var(--c-muted); font-size: 15px; line-height: 1.65; }
.ae-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.ae-pager .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: var(--r-btn); color: var(--c-ink); text-decoration: none; font-weight: 700; }
.ae-pager .page-numbers.current { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-white); }
.ae-pager a.page-numbers:hover { border-color: var(--c-blue); color: var(--c-blue); }
.ae-pager .ae-icon { width: 14px; height: 14px; }
.ae-empty { color: var(--c-muted); }

.ae-article { display: grid; grid-template-columns: minmax(0, 1fr) 354px; gap: 40px 60px; align-items: start; }
.ae-article__main { min-width: 0; }
.ae-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 20px; color: var(--c-muted); font-size: 15px; }
.ae-article__meta .ae-icon { width: 14px; height: 14px; color: var(--c-blue); margin-right: -8px; }
.ae-article__meta a { color: var(--c-blue); text-decoration: none; }
.ae-article__cover { margin: 0 0 32px; }
.ae-article__cover img { width: 100%; border-radius: var(--r-box); }
.ae-content--article { max-width: 820px; }
.ae-content--article h2 { font-size: 30px; }
.ae-content--article h3 { font-size: 22px; }
.ae-aside__box--sticky { position: sticky; top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px) + 16px); max-height: calc(100vh - var(--header-h) - var(--wp-admin--admin-bar--height, 0px) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--c-line) transparent; }
.ae-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ae-recent__item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: start; }
.ae-recent__img img { width: 76px; height: 60px; object-fit: cover; border-radius: 6px; }
.ae-recent__title { display: block; color: var(--c-ink); font-size: 15px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.ae-recent__title:hover { color: var(--c-blue); }
.ae-recent time { color: var(--c-gold); font-size: 13px; }
.ae-aside__cta { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--c-line-soft); }
.ae-aside__cta p { color: var(--c-muted); font-size: 15px; line-height: 1.6; }
.ae-related { padding-top: 0; }
.ae-related__title { font-size: 26px; margin-bottom: 28px; }

/* 404 */
.ae-404 { text-align: center; padding-block: 96px; }
.ae-404__code { margin: 0; font-family: var(--f-head); font-size: 170px; font-weight: 900; line-height: 1.1; color: var(--c-ink); }
.ae-404__title { font-size: 45px; margin-bottom: 12px; }
.ae-404__text { color: var(--c-muted); }
.ae-404__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.ae-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; list-style: none; margin: 40px 0 0; padding: 0; }

/* ---------- подвал ---------- */
.ae-footer { margin-top: var(--sec); background: var(--c-soft); border-top: 1px solid var(--c-line); }
.ae-main:has(> .ae-flow:last-child > .ae-cta:last-child) + .ae-footer,
.ae-main:has(.ae-flow:last-child > .wp-block-group.ae-cta:last-child) + .ae-footer { margin-top: 0; }
.ae-footer__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding: 48px 0 40px; border-bottom: 1px solid var(--c-line); }
.ae-footer__pitch { margin: 0; max-width: 640px; font-family: var(--f-head); font-size: 21px; font-weight: 700; line-height: 1.45; color: var(--c-ink); }
.ae-footer__cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.ae-footer__contact { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px 48px; padding: 40px 0; border-bottom: 1px solid var(--c-line); }
.ae-footer__cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--c-line); border-left: 1px solid var(--c-line); align-self: start; }
.ae-footer__cell { padding: 22px 24px; border-right: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); background: var(--c-white); }
.ae-footer__cell--wide { grid-column: 1 / -1; }
.ae-footer__label { margin: 0 0 6px; color: var(--c-muted); font-size: 14px; line-height: 1.4; }
.ae-footer__label--gap { margin-top: 14px; }
.ae-footer__phone { display: block; color: var(--c-ink); font-family: var(--f-head); font-size: 22px; font-weight: 700; line-height: 1.45; text-decoration: none; white-space: nowrap; }
.ae-footer__phone:hover, .ae-footer__mail:hover { color: var(--c-blue); }
.ae-footer__mail { color: var(--c-ink); font-size: 17px; font-weight: 700; text-decoration: none; word-break: break-word; }
.ae-footer__addr { margin: 0; color: var(--c-ink); font-size: 17px; line-height: 1.5; }
.ae-footer__note { margin: 2px 0 0; color: var(--c-muted); font-size: 15px; }
.ae-footer__map { position: relative; min-height: 320px; border-radius: var(--r-box); overflow: hidden; background: var(--c-tint); }
.ae-footer__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ae-footer__main { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px 64px; padding: 44px 0 56px; }
.ae-footer__about .ae-logo img { height: 52px; }
.ae-footer__about p { margin: 18px 0 0; color: var(--c-muted); font-size: 15px; line-height: 1.65; }
.ae-footer__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; }
.ae-footer__head { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--c-line); font-family: var(--f-head); font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--c-blue); }
.ae-footer__head a { color: inherit; text-decoration: none; }
.ae-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ae-footer__nav li a { color: var(--c-ink); font-size: 15px; line-height: 1.5; text-decoration: none; }
.ae-footer__nav li a:hover { color: var(--c-blue); text-decoration: underline; }
.ae-footer__bar { background: var(--c-blue); color: rgba(255, 255, 255, .86); }
.ae-footer__bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 18px; }
.ae-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; line-height: 1.5; }
.ae-footer__legal p { margin: 0; }
.ae-footer__legal a { color: var(--c-white); font-weight: 700; text-decoration: underline; }
.ae-footer__legal a:hover { color: var(--c-white); text-decoration: none; }
.ae-footer__up { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--r-btn); color: var(--c-white); font-size: 15px; font-weight: 700; text-decoration: none; }
.ae-footer__up .ae-icon { width: 13px; height: 13px; }
.ae-footer__up:hover { background: var(--c-white); color: var(--c-blue); }

/* плавающие кнопки */
.ae-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: grid; gap: 12px; justify-items: center; transition: transform .3s var(--ease); }
.ae-float__tg, .ae-float__up { display: grid; place-items: center; border-radius: 50%; border: 0; }
.ae-float__tg { width: 60px; height: 60px; background: var(--c-tg); color: var(--c-white); box-shadow: 0 10px 24px -10px rgba(42, 171, 238, .9); transition: background-color .2s; }
.ae-float__tg:hover { background: var(--c-tg-hover); color: var(--c-white); }
.ae-float__tg .ae-icon { width: 30px; height: 30px; margin-left: -3px; }
.ae-float__up { position: relative; width: 50px; height: 50px; background: var(--c-white); color: var(--c-blue); box-shadow: 0 10px 22px -12px rgba(8, 60, 143, .55); opacity: 0; visibility: hidden; transform: translateY(10px) scale(.9); transition: opacity .3s, transform .35s var(--ease), visibility 0s linear .35s; }
.ae-float__up.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ae-float__up .ae-icon { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.ae-float__up:hover .ae-icon { transform: translateY(-2px); }
.ae-float__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.ae-float__ring circle { fill: none; stroke-width: 3; }
.ae-float__track { stroke: var(--c-tint); }
.ae-float__bar { stroke: var(--c-blue); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--ae-p, 0) * 100); transition: stroke-dashoffset .12s linear; }

/* окно заявки */
.ae-modal { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 40px; border: 0; border-radius: var(--r-box); background: var(--c-white); color: var(--c-text); }
.ae-modal::backdrop { background: rgba(20, 20, 20, .55); }
.ae-modal[open] { animation: ae-pop .25s var(--ease); }
@keyframes ae-pop { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.ae-modal__close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--c-soft); color: var(--c-ink); }
.ae-modal__close .ae-icon { width: 18px; height: 18px; }
.ae-modal__title { text-wrap: balance; margin: 0 40px 8px 0; font-family: var(--f-head); font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--c-ink); }
.ae-modal__text { color: var(--c-muted); margin-bottom: 20px; }

/* просмотр фото */
.ae-lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; background: rgba(10, 10, 10, .92); }
.ae-lb[hidden] { display: none; }
.ae-lb__img { grid-column: 2; justify-self: center; max-width: 100%; max-height: 88vh; width: auto; object-fit: contain; border-radius: 6px; }
.ae-lb button { width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: var(--c-white); justify-self: center; }
.ae-lb button:hover { background: rgba(255, 255, 255, .25); }
.ae-lb button .ae-icon { width: 18px; height: 18px; }
.ae-lb__close { position: absolute; top: 16px; right: 16px; }
.ae-lb__count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(255, 255, 255, .75); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- адаптив ---------- */
@media (max-width: 1280px) {
	.ae-nav__list { gap: 6px 22px; }
	.ae-header__row { gap: 24px; }
	.ae-tile__title { font-size: 22px; }
	.ae-strengths { grid-template-columns: 1fr; }
	.ae-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
	:root { --sec: 72px; }
	h1, h2 { font-size: 36px; }
	h3 { font-size: 22px; }
	.ae-hero__title { font-size: 36px; }
	.ae-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ae-tile { aspect-ratio: 3 / 4; min-height: 0; }
	.ae-strengths__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ae-steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ae-cta { grid-template-columns: 1fr; gap: 28px; }
	.ae-service, .ae-article { grid-template-columns: minmax(0, 1fr); }
	.ae-aside__box--sticky { position: static; max-height: none; overflow: visible; }
	.ae-service .ae-aside { order: 2; }
	.ae-subnav { display: flex; }
	.ae-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ae-subs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ae-contacts { grid-template-columns: 1fr; }
	.ae-footer__contact { grid-template-columns: 1fr; }
	.ae-footer__main { grid-template-columns: 1fr; }
	.ae-footer__bar-row { align-items: flex-start; }
	.wp-block-gallery.ae-folio__gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wp-block-gallery.ae-logos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1024px), (hover: none) {
	.ae-sn__toggle, .ae-sn__drop { display: none; }
	.ae-sn__link { padding-block: 14px; }
	.ae-sn__link::after { bottom: 9px; }
}

@media (max-width: 1024px) {
	:root { --header-h: 76px; }
	.ae-nav { display: none; }
	.ae-header__tools { margin-left: auto; }
	.ae-burger { display: grid; }
	.ae-logo img { height: 46px; }
}

@media (max-width: 900px) {
	.ae-bar__tagline { display: none; }
	.ae-bar__row { justify-content: center; }
	.ae-bar__contacts { gap: 16px; }
	.ae-bar__phone + .ae-bar__phone { padding-left: 16px; }
	.ae-services-nav__list { gap: 4px 24px; overflow-x: auto; }
	.ae-intro { padding-block: 20px; }
}

@media (max-width: 640px) {
	:root { --gut: 16px; --sec: 56px; --header-h: 68px; }
	body { font-size: 15px; }
	h1, h2 { font-size: 28px; }
	h3 { font-size: 21px; }
	h4 { font-size: 19px; }
	.ae-section { padding-block: 40px var(--sec); }
	.ae-logo img { height: 40px; }
	.ae-header__row { gap: 12px; }
	.ae-langs--header .ae-langs__code { display: none; }
	.ae-langs--header .ae-langs__item { padding: 0 7px; height: 32px; }
	.ae-burger { width: 42px; height: 42px; }
	.ae-bar__tg span, .ae-bar__phone .ae-icon { display: none; }
	.ae-bar__phone, .ae-bar__tg { font-size: 14px; }
	.ae-bar__contacts { gap: 12px; }
	.ae-bar__phone + .ae-bar__phone { padding-left: 12px; }
	.ae-hero { min-height: 240px; }
	.ae-hero__in { padding-block: 48px 32px; }
	.ae-hero__title { font-size: 28px; }
	.ae-crumbs ol { font-size: 14px; }
	.ae-intro h1 { font-size: 21px; }
	.ae-intro p { font-size: 15px; }
	.ae-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
	.ae-tile { aspect-ratio: 3 / 4; }
	.ae-tile:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
	.ae-tile__body { padding: 0 12px 14px; }
	.ae-tile__title { font-size: 17px; padding-left: 9px; letter-spacing: 0; }
	.ae-tile__more { display: none; }
	.ae-strengths { padding-block: 32px; gap: 16px; }
	.ae-strengths__list { grid-template-columns: 1fr; gap: 8px; }
	.ae-steps__title { font-size: 21px; margin-bottom: 32px; }
	.ae-steps__list { grid-template-columns: 1fr; gap: 28px; padding-bottom: 40px; }
	.ae-steps__item { display: grid; grid-template-columns: 42px 1fr; gap: 4px 16px; text-align: left; }
	.ae-steps__item::before { grid-row: span 2; margin: 0; }
	.ae-steps__item h3 { font-size: 18px; margin: 0; align-self: center; }
	.ae-cta { padding-block: 48px; }
	.ae-projects > h2, .ae-clients__title { font-size: 28px; margin-bottom: 24px; }
	.ae-tablist { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
	.ae-tablist::-webkit-scrollbar { display: none; }
	.ae-projects .ae-tablist, .ae-folio .ae-tablist { justify-content: flex-start; }
	.ae-tablist button { flex: none; min-height: 44px; padding: 8px 20px; font-size: 15px; }
	.ae-tab__text { padding: 18px; }
	.wp-block-gallery, .wp-block-gallery.ae-folio__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
	.wp-block-gallery.ae-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.ae-service__main > h2:first-child, .ae-service__main > h3 { text-align: left; }
	.ae-service__main > h2:not(:first-child) { font-size: 23px; }
	.ae-aside__box { padding: 20px; }
	.ae-aside__title { font-size: 21px; }
	.wp-block-details summary { font-size: 17px; padding-block: 18px; }
	.ae-cards { grid-template-columns: 1fr; gap: 32px; }
	.ae-subs, .ae-subs:has(> li:nth-child(4):last-child) { grid-template-columns: 1fr; }
	.ae-subnav { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
	.ae-subnav a { flex: none; }
	.ae-404__code { font-size: 100px; }
	.ae-404__title { font-size: 28px; }
	.ae-contacts__phone { font-size: 24px; }
	.ae-footer__cta { padding-top: 36px; }
	.ae-footer__pitch { font-size: 18px; }
	.ae-footer__cta-btns, .ae-footer__cta-btns .ae-btn { width: 100%; }
	.ae-footer__cells { grid-template-columns: 1fr; }
	.ae-footer__phone { font-size: 20px; }
	.ae-footer__map { min-height: 240px; }
	.ae-footer__nav { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
	.ae-footer__nav li a { font-size: 14px; }
	.ae-float { right: 16px; bottom: 16px; }
	.ae-float__tg { width: 54px; height: 54px; }
	.ae-modal { padding: 28px 20px; }
	.ae-modal__title { font-size: 21px; }
	.ae-lb { grid-template-columns: 1fr; }
	.ae-lb__img { grid-column: 1; max-height: 80vh; }
	.ae-lb__prev, .ae-lb__next { position: absolute; bottom: 48px; }
	.ae-lb__prev { left: calc(50% - 64px); }
	.ae-lb__next { right: calc(50% - 64px); }
}

@media (hover: none) {
	.ae-tile::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .6)); }
}

/* строка услуг на телефоне прокручивается: край затухает, чтобы было видно продолжение */
@media (max-width: 640px) {
	.ae-services-nav__list { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 40px; }
}
@media (max-width: 640px) {
	.ae-contacts__map, .ae-contacts__map iframe { min-height: 320px; }
}

/* статьи: длинные заголовки (особенно в переводе) укладываем в две-три строки */
.single-post .ae-hero__title { max-width: 1160px; font-size: clamp(22px, 2.5vw, 36px); line-height: 1.25; }
@media (max-width: 640px) {
	.single-post .ae-hero__title { font-size: 19px; }
}
