/* AdsStream: дизайн Kinetic Performance (тёмная тема). Цвета и шрифт берутся из theme.json, здесь то, чего не задать блоками. */
:root {
	--base: var(--wp--preset--color--base, #0b1120);
	--raised: var(--wp--preset--color--raised, #0f172a);
	--card: var(--wp--preset--color--card, #1e293b);
	--royal: var(--wp--preset--color--royal, #2563eb);
	--royal-deep: var(--wp--preset--color--royal-deep, #1d4ed8);
	--cyan: var(--wp--preset--color--cyan, #06d9fa);
	--text: var(--wp--preset--color--text, #f8fafc);
	--text-2: var(--wp--preset--color--text-2, #94a3b8);
	--muted: var(--wp--preset--color--muted, #8796ae);
	--glass: rgba(15, 23, 42, .75);
	--line: rgba(255, 255, 255, .08);
	--r: 16px;
	--wrap: 1200px;
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; background: var(--base); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wp-block-heading, .wp-block-post-title { margin-block: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; box-sizing: border-box; }
.wrap-404 { padding-block: var(--wp--preset--spacing--90) var(--wp--preset--spacing--100); }
.wrap-archive { padding-block: var(--wp--preset--spacing--80) var(--wp--preset--spacing--85); }
.wrap-single { padding-block: var(--wp--preset--spacing--70) var(--wp--preset--spacing--85); }
.grad { color: var(--cyan); }
p, li { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

/* ---------- шапка ---------- */
html { scroll-padding-top: 88px; } /* якоря (#kontakty) не прячем под липкой шапкой */
/* sticky вешаем на обёртку template-part: внутри неё (высота = шапка) липнуть нечему */
.wp-block-template-part:has(> .site-top) { position: sticky; top: 0; z-index: 50; }
.site-top { background: rgba(11, 17, 32, .97); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.admin-bar .wp-block-template-part:has(> .site-top) { top: 32px; }
.site-top a { text-decoration: none; }
.site-top__inner { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 21px; letter-spacing: .01em; line-height: 1; }
.logo img { width: 40px; height: 40px; display: block; }
.logo b { color: var(--cyan); font-weight: 800; }
.site-nav { margin-left: auto; }
.site-nav .wp-block-navigation__container { gap: 6px; flex-wrap: nowrap; }
.site-nav .wp-block-navigation-item__content { color: #cbd5e1; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.site-nav .wp-block-navigation-item__content:hover { color: #fff; background: rgba(255, 255, 255, .05); text-decoration: none; }
.site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container { background-color: var(--raised) !important; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 8px; min-width: 330px; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .6), 0 0 1px 1px rgba(6, 182, 212, .2); }
.site-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 10px 12px; }
.site-nav .wp-block-navigation__submenu-icon { color: #cbd5e1; }
.site-nav .wp-block-navigation__responsive-container-open, .site-nav .wp-block-navigation__responsive-container-close { color: #fff; padding: 10px; box-sizing: content-box; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; }
.site-nav .is-menu-open .wp-block-navigation-item__content { font-size: 22px; font-weight: 700; color: #fff; }
.lang-switch { list-style: none; margin: 0; padding: 0; }
.lang-switch li { list-style: none; margin: 0; }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; box-sizing: border-box; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; padding: 0 12px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.lang-switch a:hover { color: #fff; border-color: var(--cyan); text-decoration: none; }
.top-phone { font-weight: 600; font-size: 14px; color: #cbd5e1; white-space: nowrap; margin: 0; }
.top-phone a { color: inherit; }
.top-cta { margin: 0; }
.top-cta .wp-block-button__link, .site-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content { white-space: nowrap; }

/* ---------- кнопки ---------- */
.wp-block-buttons { gap: 12px; }
.wp-block-button[class*="btn-"] .wp-block-button__link { font: inherit; font-weight: 700; font-size: 15px; border-radius: 10px; padding: 13px 22px; border: 1px solid transparent; text-decoration: none; transition: box-shadow .2s, background .2s, transform .2s; }
.wp-block-button.btn-p .wp-block-button__link { background: var(--royal); color: #fff; }
.wp-block-button.btn-p .wp-block-button__link:hover { background: var(--royal-deep); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); transform: translateY(-1px); }
.wp-block-button.btn-s .wp-block-button__link { background: var(--raised); border-color: rgba(6, 182, 212, .7); color: #00f2fe; }
.wp-block-button.btn-s .wp-block-button__link:hover { background: rgba(6, 182, 212, .15); box-shadow: 0 0 24px rgba(6, 182, 212, .25); }
.wp-block-button.btn-sm .wp-block-button__link { padding: 9px 16px; font-size: 14px; }

/* ---------- первый экран ---------- */
.hero { position: relative; overflow: hidden; padding-block: 88px 64px; background: var(--base); }
.hero .flow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .5; }
.hero .flow g { animation: drift 70s linear infinite alternate; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-160px); } }
.hero > .wrap { position: relative; z-index: 2; }
.chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 6px 14px; border-radius: 999px; background: rgba(6, 182, 212, .12); border: 1px solid rgba(6, 182, 212, .3); color: var(--cyan); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(6, 217, 250, .6); animation: pulse 2s infinite; }
.chip a { color: inherit; text-decoration: none; }
.chip a:hover { text-decoration: underline; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(6, 217, 250, 0); } 100% { box-shadow: 0 0 0 0 rgba(6, 217, 250, 0); } }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 16ch; text-wrap: balance; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-2); max-width: 46ch; margin-block: 24px 32px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.fact { padding: 20px; margin: 0; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); }
.fact p { margin: 0; }
.fact .v { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.fact .l { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.fact a { color: inherit; }

/* ---------- секции ---------- */
.entry > section { padding-block: 88px; }
.kicker { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
h2.sec { font-size: clamp(1.8rem, 3.4vw, 2.75rem); max-width: 22ch; text-wrap: balance; }
.sec-lead { color: var(--text-2); font-size: 18px; max-width: 58ch; margin-block: 16px 0; }
.sec-head { margin-bottom: 48px; }
.alt { background: var(--raised); border-block: 1px solid var(--line); }

/* карточки услуг */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-card { position: relative; display: flex; flex-direction: column; padding: 28px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); transition: transform .25s, border-color .25s, box-shadow .25s; }
.svc-card > * { margin: 0; }
.svc-card:hover, .svc-card:focus-within { transform: translateY(-3px); border-color: rgba(6, 182, 212, .4); box-shadow: 0 12px 32px -4px rgba(2, 132, 199, .22); }
.ico { position: absolute; top: 29px; left: 28px; width: 26px; height: 26px; color: var(--cyan); }
.ico svg { display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-card h3 { font-size: 21px; margin-bottom: 14px; padding-left: 40px; }
.svc-card h3 a { color: var(--text); text-decoration: none; }
.svc-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.svc-card .sum { color: var(--text-2); font-size: 15px; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.5px; color: #cbd5e1; margin: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; background: var(--cyan); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.svc-card .more { margin-top: auto !important; padding-top: 22px; font-weight: 700; font-size: 14px; color: var(--cyan); }

/* этапы */
.steps { display: grid; gap: 14px; max-width: 880px; counter-reset: s; }
.step { counter-increment: s; position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 0 22px; padding: 24px 26px; margin: 0; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); }
.step::before { content: counter(s, decimal-leading-zero); grid-row: 1 / span 2; font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--cyan); line-height: 1.1; }
.step > * { margin: 0; grid-column: 2; }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { color: var(--text-2); font-size: 15.5px; }

/* отзывы */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { display: flex; flex-direction: column; margin: 0; padding: 28px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); }
.quote > * { margin: 0; }
.quote::before { content: "\201C"; font-size: 54px; line-height: .7; font-weight: 800; color: var(--cyan); margin-bottom: 12px; }
.quote p { font-size: 16px; color: #e2e8f0; line-height: 1.6; }
.quote cite { display: block; margin-top: auto; padding-top: 20px; font-style: normal; font-weight: 700; font-size: 14.5px; }
.quote cite span { display: block; font-weight: 500; color: var(--text-2); }
.wp-block-quote:not(.quote) { border: 0; padding: 0; }

/* заявка / контакты */
.cta-panel { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 24px; border: 1px solid rgba(6, 182, 212, .25); background: var(--raised); }
.cta-panel > * { margin: 0; }
.cta-panel h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); max-width: 16ch; }
.cta-panel .cta-text { color: var(--text-2); margin-top: 14px !important; max-width: 44ch; }
.contacts { padding: 28px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); }
.contacts p { margin: 0 0 8px; }
.contacts .big-link { font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.contacts .big-link a { color: var(--text); text-decoration: none; }
.contacts .big-link a:hover { color: var(--cyan); }
.contacts .small { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.contacts .wp-block-buttons { margin-top: 16px; }
.cta-panel .wp-block-buttons { margin-top: 28px; }

/* ---------- внутренние страницы ---------- */
.page-hero { padding-block: 40px 56px; background: var(--base); border-bottom: 1px solid var(--line); }
.crumbs { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--cyan); }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 20ch; text-wrap: balance; }
.page-hero .lead { color: var(--text-2); font-size: 19px; max-width: 54ch; margin-block: 20px 28px; }
.entry > section.body { padding-block: 64px 24px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.prose { max-width: 62ch; }
.prose > * { margin-block: 0 16px; }
.prose p, .prose li { color: #cbd5e1; font-size: 16.5px; line-height: 1.7; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-block: 44px 14px; max-width: 30ch; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-block: 28px 8px; max-width: 40ch; }
.prose ul { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-left: 26px; margin: 0; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.prose.about > p:first-child { font-size: 20px; color: var(--text); }
/* цены: панель с крупными суммами */
.prose .price { margin-block: 32px; padding: 28px; border-color: rgba(6, 182, 212, .3); }
.prose .price > :first-child { margin-top: 0; font-size: 22px; }
.price ul li { font-size: 21px; font-weight: 700; color: var(--text); line-height: 1.35; }
.price ul li::before { top: .55em; }
.price > p { margin-bottom: 0; }
.price > ul { margin-bottom: 20px; }
/* вопросы и ответы: сворачиваемые */
.faq-list { display: grid; gap: 10px; margin-bottom: 16px; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--glass); }
.faq summary { position: relative; cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 700; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 500; color: var(--cyan); }
.faq[open] summary::after { content: "\2212"; }
.faq p { margin: 0; padding: 0 18px 18px; }
.aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.aside > * { margin: 0; }
.panel { padding: 24px; margin: 0; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); }
.panel h2, .panel h3 { font-size: 17px; margin-bottom: 14px; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.bars li { margin: 0; font-size: 14px; color: #cbd5e1; }
.bars li span { display: flex; justify-content: space-between; margin-bottom: 6px; }
.bars li i { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bars li i::after { content: ""; display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--royal); }
.entry > section.tail { padding-block: 40px 88px; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.about-grid .panel h3 { font-size: 19px; margin-bottom: 10px; }
.about-grid .panel p { margin: 0; color: #cbd5e1; font-size: 15.5px; }

/* ---------- подвал ---------- */
footer.site-bottom { background: var(--raised); border-top: 1px solid var(--line); padding-block: 56px 28px; color: var(--text-2); font-size: 14.5px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-grid > * { margin: 0; }
.foot-grid p { margin: 0 0 8px; }
.foot-grid h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid li { margin: 0; }
.foot-grid a { color: var(--text-2); text-decoration: none; }
.foot-grid a:hover { color: var(--cyan); }
.foot-grid .logo { margin-bottom: 14px; }
.foot-grid a.logo { color: var(--text); }
.foot-grid a.gp-badge { color: inherit; }
.foot-col a.gp-badge { display: block; width: 112px; margin-top: 26px; } /* колонки подвала — это виджеты, отступов группы-обёртки нет */
.foot-grid .logo + p { max-width: 32ch; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.foot-bottom p { margin: 0; }
.foot-bottom a { color: var(--text-2); }

/* ---------- клиенты, контакты ---------- */
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.logos li { margin: 0; display: grid; place-items: center; height: 92px; padding: 18px; background: #f8fafc; border-radius: 14px; }
.logos li a { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 10px; transition: transform .2s; }
.logos li:hover a, .logos li a:focus-visible { transform: scale(1.06); }
.logos img { display: block; max-width: 100%; height: 44px; width: auto; object-fit: contain; }
.band { max-width: 760px; }
.band > * { margin: 0; }
.band .sec { margin-bottom: 18px; }
.band-text { color: var(--text-2); font-size: 17px; margin-bottom: 12px !important; }
.band .wp-block-buttons { margin-top: 24px; }
.band-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--glass); }
.band-line > p { margin: 0; font-size: 18px; font-weight: 600; }
.wp-block-buttons.after { margin-top: 32px; }
.gp-badge { display: inline-block; margin-top: 18px; border-radius: 10px; line-height: 0; }
.gp-badge img { width: 112px; height: auto; display: block; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.form-panel, .info { padding: 32px; }
.info > * { margin: 0; }
.info h2 { font-size: 22px; line-height: 1.25; }
.info .sub { color: var(--text-2); margin: 8px 0 22px; }
.info-row { padding: 14px 0; border-top: 1px solid var(--line); }
.info-row p { margin: 0; }
.info-row .lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-row .val { font-size: 17px; font-weight: 600; color: var(--text); }
.info-row .val a { color: var(--text); }
.info-row .val a:hover { color: var(--cyan); }
.lead-form { display: grid; gap: 18px; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .f { display: grid; gap: 7px; }
.lead-form label { font-size: 14px; font-weight: 600; color: #cbd5e1; }
.lead-form label span { color: var(--cyan); }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form input[type="email"], .lead-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: var(--text); background: var(--base); border: 1px solid #334155; border-radius: 8px; padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.lead-form textarea { resize: vertical; min-height: 120px; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--muted); }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(6, 182, 212, .2); }
.lead-form .btn-submit { justify-self: start; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; color: #fff; border: 1px solid transparent; border-radius: 10px; padding: 14px 28px; background: var(--royal); transition: background .2s, box-shadow .2s, transform .2s; }
.lead-form .btn-submit:hover { box-shadow: 0 4px 20px rgba(37, 99, 235, .45), inset 0 1px 0 rgba(255, 255, 255, .2); transform: translateY(-1px); }
.lead-form .btn-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.lead-form p { margin: 0; }
/* согласие стоит над кнопкой, сообщения о результате под ней (порядок только в CSS, разметка прежняя) */
.lead-form .form-note { order: 8; font-size: 14px; color: var(--text-2); }
.lead-form .btn-submit { order: 9; }
.lead-form .form-msg { order: 10; }
.lead-form .form-flash { order: 11; }
.lead-form .f-err { font-size: 13.5px; font-weight: 600; color: #fca5a5; }
.lead-form [aria-invalid="true"] { border-color: #f87171; }
.form-msg, .form-flash { padding: 14px 16px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.form-msg[hidden] { display: none; }
.form-msg.ok, .form-flash.ok { background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .4); color: #6ee7b7; }
.form-msg.err, .form-flash.err { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #fca5a5; }
/* ответ без JavaScript: после возврата на страницу показывается блок по якорю #sent или #err */
.form-flash { display: none; }
.form-flash:target { display: block; }
.map-wrap { margin-top: 24px; }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--raised); }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: invert(92%) hue-rotate(180deg) saturate(.85) brightness(.95) contrast(.9); }

/* ---------- узкие экраны ---------- */
@media (max-width: 1080px) {
	.top-phone { display: none; }
	.svc-grid, .quotes { grid-template-columns: repeat(2, 1fr); }
	.facts { grid-template-columns: repeat(2, 1fr); }
	.layout { grid-template-columns: 1fr; gap: 32px; }
	.aside { display: contents; }
	.aside > .panel:first-child { order: -1; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) { .logos { grid-template-columns: repeat(4, 1fr); } .contact-grid { grid-template-columns: 1fr; } }
/* ширина шапки: пункты меню + телефон + CTA не помещаются в узком окне, поэтому убираем по очереди */
@media (max-width: 1280px) { .top-phone { display: none; } }
@media (max-width: 1060px) { .wp-block-buttons.top-cta { display: none; } .site-top__inner { gap: 16px; } }
@media (min-width: 600px) and (max-width: 820px) {
	.site-top__inner { gap: 12px; }
	.site-nav .wp-block-navigation__container { gap: 0; }
	.site-nav .wp-block-navigation-item__content { font-size: 14px; padding: 8px 7px; }
}
@media (min-width: 600px) and (max-width: 700px) { .logo span { display: none; } }
@media (max-width: 782px) { .admin-bar .wp-block-template-part:has(> .site-top) { top: 46px; } }
@media (max-width: 720px) { .logos { grid-template-columns: repeat(2, 1fr); } .form-panel, .info { padding: 22px; } .map iframe { height: 320px; } }
@media (max-width: 720px) {
	.wp-block-buttons.top-cta { display: none; }
	.svc-grid, .quotes, .about-grid { grid-template-columns: 1fr; }
	.hero { padding-block: 56px 40px; }
	.entry > section { padding-block: 60px; }
	.cta-panel { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
	.step { grid-template-columns: 48px 1fr; padding: 20px; }
	.foot-grid { grid-template-columns: 1fr; gap: 28px; }
	.facts { margin-top: 44px; }
	.hero h1 { hyphens: auto; }
}
/* ---------- кнопка «наверх» ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; color: var(--text); background: rgba(15, 23, 42, .96); border: 1px solid rgba(255, 255, 255, .16); border-radius: 50%; cursor: pointer; box-shadow: 0 6px 24px rgba(0, 0, 0, .35); transition: transform .2s, border-color .2s, color .2s; }
.to-top[hidden], .has-modal-open .to-top { display: none; }
.to-top:hover { transform: translateY(-3px); border-color: var(--cyan); color: var(--cyan); }
@media (max-width: 720px) { .to-top { right: 14px; bottom: 14px; width: 44px; height: 44px; } }
/* touch: ссылки подвала не меньше 44px по высоте */
@media (pointer: coarse), (max-width: 720px) {
	.foot-grid ul { gap: 0; }
	.foot-grid li a, .foot-grid p a:not(.logo):not(.gp-badge), .foot-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.to-top { transition: none; }
	.hero .flow g, .chip::before { animation: none; }
	html { scroll-behavior: auto; }
	.svc-card, .wp-block-button .wp-block-button__link { transition: none; }
}
