/*
Theme Name: YS Agency
Theme URI: https://ysmarketingagency.com/
Author: YS Marketing Agency
Author URI: https://ysmarketingagency.com/
Description: Premium digital agency & software company theme for YS Marketing Agency. Animated hero, automatic mega menu, services, software catalogue, case studies, industries, blog, FAQ and lead form. Works with the "YS Agency Core" plugin.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ys-agency
Tags: business, portfolio, blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens ---------- */
:root {
	--brand: #1466ff;
	--accent: #00a8ff;
	--ink: #0a1630;
	--text: #2a3450;
	--muted: #5d6782;
	--line: #e5e9f2;
	--soft: #f5f7fc;
	--white: #fff;
	--radius: 18px;
	--radius-sm: 12px;
	--shadow: 0 1px 2px rgba(10,22,48,.04), 0 8px 24px rgba(10,22,48,.06);
	--shadow-lg: 0 20px 60px rgba(10,22,48,.14);
	--grad: linear-gradient(120deg, var(--brand), var(--accent));
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--ease: cubic-bezier(.2,.7,.2,1);
	--container: 1220px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 16.5px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.ys-skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.ys-skip:focus { left: 8px; color: #fff; }
.ys-container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ys-icon { flex-shrink: 0; }

/* ---------- Type helpers ---------- */
.ys-h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.ys-h2 { font-size: clamp(1.75rem, 3.3vw, 2.7rem); }
.ys-h3 { font-size: 1.45rem; }
.ys-lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; }
.ys-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.ys-eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.ys-eyebrow--light { color: #9cc4ff; }
.ys-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); }
.ys-link .ys-icon { transition: transform .25s var(--ease); }
.ys-link:hover .ys-icon { transform: translateX(4px); }
.ys-note { text-align: center; margin-top: 32px; color: var(--muted); }

/* ---------- Buttons ---------- */
.ys-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; background: var(--grad); background-size: 160% 100%; color: #fff; font-weight: 700; font-size: .97rem; border: 0; line-height: 1.2; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 35%, transparent); transition: transform .25s var(--ease), box-shadow .25s, background-position .4s; }
.ys-btn:hover { color: #fff; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 30px color-mix(in srgb, var(--brand) 40%, transparent); }
.ys-btn--sm { padding: 10px 18px; font-size: .9rem; }
.ys-btn--lg { padding: 16px 30px; font-size: 1.02rem; }
.ys-btn--block { width: 100%; margin-top: 10px; }
.ys-btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.ys-btn--ghost:hover { color: var(--brand); border-color: var(--brand); box-shadow: none; }

/* ---------- Top bar & header ---------- */
.ys-topbar { background: var(--ink); color: #c9d4ea; font-size: .82rem; }
.ys-topbar__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.ys-topbar__links { display: flex; gap: 22px; }
.ys-topbar a { color: #e7eeff; display: inline-flex; align-items: center; gap: 6px; }
.ys-topbar a:hover { color: #fff; }

.ys-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.ys-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(10,22,48,.06); }
.admin-bar .ys-header { top: 32px; }
.ys-header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.ys-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.ys-logo:hover { color: var(--ink); }
.ys-logo__mark { width: 52px; height: auto; }
.ys-logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.ys-logo__text strong { font-size: 1.08rem; font-weight: 800; letter-spacing: -.01em; }
.ys-logo__text small { font-size: .66rem; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.custom-logo { max-height: 56px; width: auto; }

.ys-nav { margin-left: auto; }
.ys-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.ys-nav__item { position: static; }
.ys-nav__item.has-drop { position: relative; }
.ys-nav__link, .ys-nav__list--wp > li > a { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border: 0; background: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 10px; transition: background .2s, color .2s; }
.ys-nav__link:hover, .ys-nav__item.is-open > .ys-nav__link { background: var(--soft); color: var(--brand); }
.ys-nav__link .ys-icon { transition: transform .25s; }
.ys-nav__item.is-open > .ys-nav__link .ys-icon { transform: rotate(180deg); }
.ys-nav__mobile-cta { display: none; }

.ys-mega, .ys-drop { position: absolute; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 50; }
.ys-mega { left: 24px; right: 24px; top: calc(100% - 6px); max-width: calc(var(--container) - 48px); margin: 0 auto; display: grid; grid-template-columns: 1fr 280px; overflow: hidden; }
.ys-mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 20px; }
.ys-mega__item { display: flex; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink); transition: background .2s; }
.ys-mega__item:hover { background: var(--soft); color: var(--ink); }
.ys-mega__item strong { display: block; font-size: .95rem; }
.ys-mega__item small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.ys-mega__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, #fff); }
.ys-mega__item:hover .ys-mega__icon { background: var(--grad); color: #fff; }
.ys-mega__side { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 8%, #fff), #fff); padding: 26px; border-left: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ys-mega__side p { color: var(--muted); font-size: .92rem; margin: 0 0 6px; }
.ys-drop { top: calc(100% + 4px); left: 0; min-width: 250px; padding: 8px; display: flex; flex-direction: column; }
.ys-drop a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .93rem; }
.ys-drop a .ys-icon { color: var(--brand); }
.ys-drop a:hover { background: var(--soft); }
.ys-drop__all { color: var(--brand) !important; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px !important; margin-top: 4px; }
.ys-nav__item.is-open > .ys-mega, .ys-nav__item.is-open > .ys-drop { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) and (min-width: 1081px) {
	.ys-nav__item:hover > .ys-mega, .ys-nav__item:hover > .ys-drop { opacity: 1; visibility: visible; transform: none; }
	.ys-nav__item:hover > .ys-nav__link { background: var(--soft); color: var(--brand); }
}
/* WordPress-built menus */
.ys-nav__list--wp li { position: relative; }
.ys-nav__list--wp .sub-menu { position: absolute; top: 100%; left: 0; min-width: 230px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .2s; }
.ys-nav__list--wp li:hover > .sub-menu, .ys-nav__list--wp li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.ys-nav__list--wp .sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; font-size: .93rem; }
.ys-nav__list--wp .sub-menu a:hover { background: var(--soft); }

.ys-header__actions { display: flex; align-items: center; gap: 10px; }
.ys-burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); place-items: center; }
.ys-burger__close { display: none; }
.ys-burger[aria-expanded="true"] .ys-burger__open { display: none; }
.ys-burger[aria-expanded="true"] .ys-burger__close { display: block; }

/* ---------- Animated gradient blobs ---------- */
.ys-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ys-blobs span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: ys-float 18s ease-in-out infinite alternate; }
.ys-blobs span:nth-child(1) { width: 520px; height: 520px; background: color-mix(in srgb, var(--brand) 45%, #fff); top: -160px; right: -80px; }
.ys-blobs span:nth-child(2) { width: 420px; height: 420px; background: color-mix(in srgb, var(--accent) 45%, #fff); bottom: -180px; left: 25%; animation-duration: 22s; }
.ys-blobs span:nth-child(3) { width: 360px; height: 360px; background: #e9d8ff; top: 20%; left: -140px; animation-duration: 26s; }
@keyframes ys-float { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.08); } 100% { transform: translate(-30px,25px) scale(.95); } }

/* ---------- Hero ---------- */
.ys-hero { position: relative; padding: 46px 0 70px; overflow: hidden; background: linear-gradient(180deg, #fafbff, #fff); }
.ys-hero .ys-container { position: relative; z-index: 1; }
.ys-hero__top { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 30px; }
.ys-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); box-shadow: var(--shadow); }
.ys-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ys-pulse 2s infinite; }
@keyframes ys-pulse { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.ys-hero__tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 16px; backdrop-filter: blur(8px); }
.ys-hero__tab { position: relative; overflow: hidden; border: 0; background: none; padding: 10px 16px; border-radius: 11px; font-weight: 700; font-size: .9rem; color: var(--muted); transition: color .25s, background .25s; }
.ys-hero__tab:hover { color: var(--ink); }
.ys-hero__tab.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.ys-hero__bar { position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; opacity: 0; }
.ys-hero__tab.is-active .ys-hero__bar { opacity: 1; }
.ys-hero__bar::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.ys-hero__tab.is-active .ys-hero__bar::after { animation: ys-progress var(--hero-time, 6.5s) linear forwards; }
.ys-hero.is-paused .ys-hero__bar::after { animation-play-state: paused; }
@keyframes ys-progress { to { transform: scaleX(1); } }

.ys-hero__stage { display: grid; }
.ys-slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.ys-slide.is-active { opacity: 1; visibility: visible; }
.ys-slide .ys-slide__copy > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ys-slide.is-active .ys-slide__copy > * { opacity: 1; transform: none; }
.ys-slide.is-active .ys-slide__copy > *:nth-child(2) { transition-delay: .08s; }
.ys-slide.is-active .ys-slide__copy > *:nth-child(3) { transition-delay: .16s; }
.ys-slide.is-active .ys-slide__copy > *:nth-child(4) { transition-delay: .24s; }
.ys-hero__title { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; color: var(--ink); margin: 0 0 20px; }
.ys-hero__text { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin-bottom: 30px; }
.ys-hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-bottom: 30px; }
.ys-hero__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ys-hero__badges li { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.ys-hero__badges .ys-icon { color: var(--brand); }

/* Hero visuals */
.ys-slide__visual { position: relative; min-height: 400px; display: grid; place-items: center; }
.ys-slide__visual > * { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.ys-slide:not(.is-active) .ys-slide__visual > * { opacity: 0; transform: translateY(24px) scale(.97); }
.ys-slide.is-active .ys-float { transition-delay: .35s; }
.ys-mock { width: 100%; max-width: 480px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 18px; position: relative; }
.ys-mock__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; }
.ys-mock__bar span { width: 10px; height: 10px; border-radius: 50%; background: #e5e9f2; }
.ys-mock__bar span:first-child { background: #ff6b6b; } .ys-mock__bar span:nth-child(2) { background: #ffc145; } .ys-mock__bar span:nth-child(3) { background: #3ddc84; }
.ys-mock__bar em { margin-left: 10px; font-style: normal; font-size: .74rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.ys-mock__kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; }
.ys-mock__kpis div { background: var(--soft); border-radius: 14px; padding: 12px; }
.ys-mock__kpis small { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.ys-mock__kpis b { display: block; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.ys-mock__kpis i { font-style: normal; font-size: .7rem; font-weight: 700; color: #16a34a; }
.ys-mock__chart { display: flex; align-items: flex-end; gap: 8px; height: 140px; padding: 0 4px; border-bottom: 1px dashed var(--line); }
.ys-mock__chart span { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: var(--grad); transform-origin: bottom; }
.ys-slide.is-active .ys-mock__chart span { animation: ys-grow .9s var(--ease) both; }
.ys-mock__chart span:nth-child(2n) { opacity: .75; }
.ys-mock__chart span:nth-child(1){animation-delay:.05s}.ys-mock__chart span:nth-child(2){animation-delay:.1s}.ys-mock__chart span:nth-child(3){animation-delay:.15s}.ys-mock__chart span:nth-child(4){animation-delay:.2s}.ys-mock__chart span:nth-child(5){animation-delay:.25s}.ys-mock__chart span:nth-child(6){animation-delay:.3s}.ys-mock__chart span:nth-child(7){animation-delay:.35s}.ys-mock__chart span:nth-child(8){animation-delay:.4s}.ys-mock__chart span:nth-child(9){animation-delay:.45s}.ys-mock__chart span:nth-child(10){animation-delay:.5s}
@keyframes ys-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ys-mock__split { display: flex; height: 10px; border-radius: 6px; overflow: hidden; margin-top: 16px; font-size: 0; }
.ys-mock__split .g { width: 54%; background: var(--brand); } .ys-mock__split .m { width: 46%; background: var(--accent); }
.ys-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: .84rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow-lg); animation: ys-bob 4s ease-in-out infinite; }
.ys-float .ys-icon { color: var(--brand); }
.ys-float--a { left: -10px; bottom: 34px; } .ys-float--b { right: -6px; top: 30px; }
@keyframes ys-bob { 50% { transform: translateY(-8px); } }

.ys-mock__search { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 16px; margin-bottom: 16px; color: var(--muted); font-weight: 600; font-size: .92rem; }
.ys-serp { position: relative; padding: 12px 14px; border-radius: 14px; margin-bottom: 8px; background: var(--soft); }
.ys-serp small { display: block; font-size: .72rem; color: #188038; }
.ys-serp b { display: block; color: #1a0dab; font-size: .98rem; min-height: 1.2em; }
.ys-serp:not(.is-you) b, .ys-serp:not(.is-you) span { background: #e3e8f2; border-radius: 6px; color: transparent; margin-top: 6px; }
.ys-serp:not(.is-you) span { display: block; width: 60%; height: .8em; }
.ys-serp span { font-size: .78rem; color: #b7791f; }
.ys-serp.is-you { background: #fff; border: 2px solid var(--brand); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 18%, transparent); }
.ys-serp em { position: absolute; right: 12px; top: 12px; font-style: normal; font-weight: 800; color: #fff; background: var(--grad); border-radius: 8px; padding: 2px 8px; font-size: .8rem; }
.ys-mock__rank { margin-top: 12px; color: var(--brand); }
.ys-mock__rank span { font-size: .72rem; color: var(--muted); font-weight: 600; }
.ys-mock__rank svg { width: 100%; height: 60px; }
.ys-slide.is-active .ys-mock__rank path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: ys-draw 1.4s .3s var(--ease) forwards; }
@keyframes ys-draw { to { stroke-dashoffset: 0; } }

.ys-site__hero { position: relative; height: 150px; border-radius: 14px; background: linear-gradient(135deg, var(--ink), color-mix(in srgb, var(--brand) 70%, var(--ink))); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.ys-site__hero i { display: block; height: 14px; width: 70%; border-radius: 6px; background: rgba(255,255,255,.85); }
.ys-site__hero i.s { width: 45%; background: rgba(255,255,255,.4); height: 10px; }
.ys-site__hero b { margin-top: auto; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .78rem; }
.ys-site__cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
.ys-site__cards span { height: 80px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.ys-site__score { position: absolute; right: -18px; bottom: -18px; width: 110px; height: 110px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; text-align: center; border: 6px solid #22c55e; }
.ys-site__score b { font-size: 1.8rem; color: #16a34a; line-height: 1; display: block; }
.ys-site__score small { font-size: .58rem; color: var(--muted); font-weight: 700; display: block; max-width: 70px; line-height: 1.2; }

.ys-pos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.ys-pos__grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.ys-pos__grid span { border-radius: 12px; padding: 18px 10px; text-align: center; font-weight: 700; font-size: .82rem; color: var(--ink); background: var(--soft); border: 1px solid var(--line); }
.ys-pos__grid span:nth-child(1) { background: color-mix(in srgb, var(--brand) 12%, #fff); border-color: color-mix(in srgb, var(--brand) 30%, #fff); }
.ys-pos__bill { background: var(--ink); color: #dbe4f5; border-radius: 14px; padding: 14px; font-size: .8rem; display: flex; flex-direction: column; }
.ys-pos__bill p { display: flex; justify-content: space-between; margin: 0 0 8px; }
.ys-pos__bill p.t { border-top: 1px dashed rgba(255,255,255,.25); padding-top: 10px; margin-top: auto; color: #fff; font-size: .95rem; }
.ys-pos__bill i { font-style: normal; text-align: center; background: var(--grad); color: #fff; border-radius: 10px; padding: 9px; font-weight: 800; margin-top: 6px; }

.ys-mock--phone { max-width: 290px; border-radius: 38px; padding: 16px; border: 8px solid var(--ink); }
.ys-phone__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .82rem; color: var(--ink); }
.ys-phone__top span { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); }
.ys-phone__post i { display: block; height: 170px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), var(--brand) 55%, #7c3aed); }
.ys-phone__post p { margin: 10px 0; }
.ys-phone__post p span { display: block; height: 9px; border-radius: 5px; background: var(--line); margin-bottom: 6px; }
.ys-phone__post p span.s { width: 60%; }
.ys-phone__stats { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 700; color: var(--ink); }
.ys-phone__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-top: 12px; }
.ys-phone__grid i { aspect-ratio: 1; border-radius: 6px; background: var(--soft); }
.ys-phone__grid i:nth-child(odd) { background: color-mix(in srgb, var(--brand) 18%, #fff); }

/* ---------- Trust marquee ---------- */
.ys-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.ys-trust__in { display: flex; align-items: center; gap: 30px; min-height: 84px; }
.ys-trust__label { flex-shrink: 0; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); max-width: 140px; line-height: 1.4; }
.ys-marquee { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ys-marquee__track { display: flex; gap: 56px; width: max-content; animation: ys-marquee 30s linear infinite; }
.ys-marquee:hover .ys-marquee__track { animation-play-state: paused; }
.ys-marquee__item { font-size: 1.15rem; font-weight: 800; color: #9aa4bc; white-space: nowrap; letter-spacing: -.01em; }
@keyframes ys-marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.ys-section { padding: 96px 0; position: relative; }
.ys-section--tight { padding: 64px 0; }
.ys-section--soft { background: var(--soft); }
.ys-section--dark { background: var(--ink); color: #c5d0e6; }
.ys-section--dark .ys-h2, .ys-section--dark h3 { color: #fff; }
.ys-section--dark .ys-eyebrow { color: #8fbaff; }
.ys-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 46px; }
.ys-head__main { max-width: 720px; }
.ys-head .ys-lead { margin-bottom: 0; }
.ys-head .ys-h2 { margin-bottom: 14px; }
.ys-head > .ys-link { flex-shrink: 0; margin-bottom: 6px; }

.ys-grid { display: grid; gap: 22px; }
.ys-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ys-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ys-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.ys-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden; }
.ys-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
a.ys-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
a.ys-card:hover::after { transform: scaleX(1); }
.ys-card__num { position: absolute; top: 22px; right: 24px; font-size: .8rem; font-weight: 800; color: #c3cad9; letter-spacing: .05em; }
.ys-card__icon { width: 54px; height: 54px; border-radius: 15px; display: inline-grid; place-items: center; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, #fff); margin-bottom: 20px; transition: background .35s, color .35s, transform .35s var(--ease); flex-shrink: 0; }
a.ys-card:hover .ys-card__icon { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.ys-card__title { font-size: 1.2rem; margin-bottom: 8px; }
.ys-card__text { color: var(--muted); font-size: .96rem; margin-bottom: 18px; }
.ys-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--brand); }
.ys-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.ys-card--soft .ys-card__icon { width: 48px; height: 48px; }
.ys-card__badges { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.ys-card__badges span { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--soft); border-radius: 6px; padding: 4px 8px; }
.ys-chip { display: inline-block; font-size: .74rem; font-weight: 700; color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, #fff); border-radius: 999px; padding: 5px 11px; }
.ys-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.ys-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -14px 0 30px; }
.ys-filters button { border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: .88rem; padding: 9px 16px; border-radius: 999px; transition: .2s; }
.ys-filters button:hover { border-color: var(--brand); color: var(--brand); }
.ys-filters button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
[data-filter-items] > .is-hidden { display: none; }

/* Case studies */
.ys-case { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--text); transition: transform .35s var(--ease), box-shadow .35s; }
.ys-case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--text); }
.ys-case__visual { position: relative; aspect-ratio: 16/10; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 80% 10%, hsl(calc(var(--hue) - 15) 100% 60% / .9), transparent 55%), linear-gradient(135deg, hsl(var(--hue) 90% 48%), #0a1630); }
.ys-case__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ys-case:hover .ys-case__visual img { transform: scale(1.05); }
.ys-case__initial { font-size: 5rem; font-weight: 800; color: rgba(255,255,255,.9); transition: transform .6s var(--ease); }
.ys-case:hover .ys-case__initial { transform: scale(1.12) rotate(-4deg); }
.ys-case__n { position: absolute; top: 14px; left: 16px; font-size: .78rem; font-weight: 800; color: #fff; background: rgba(0,0,0,.22); padding: 3px 9px; border-radius: 6px; }
.ys-case__body { padding: 22px 24px 26px; }
.ys-case__meta { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.ys-case__title { font-size: 1.2rem; margin: 6px 0; }
.ys-case__services { font-size: .92rem; color: var(--muted); }

/* Industries */
.ys-ind { display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #fff; transition: .3s var(--ease); }
.ys-ind:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.25); color: #fff; transform: translateY(-4px); }
.ys-ind strong { display: block; font-size: 1.05rem; }
.ys-ind small { display: block; color: #9aa8c4; font-size: .87rem; line-height: 1.4; }
.ys-ind__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; }
.ys-ind__arrow { margin-left: auto; opacity: .4; transition: .3s; }
.ys-ind:hover .ys-ind__arrow { opacity: 1; transform: translateX(4px); }
.ys-ind--light { background: #fff; border-color: var(--line); color: var(--ink); }
.ys-ind--light:hover { background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); border-color: transparent; }
.ys-ind--light small { color: var(--muted); }

/* About band & stats */
.ys-about-band { background: linear-gradient(180deg, #fff, var(--soft)); }
.ys-about-band__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.ys-checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.ys-checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.ys-checks .ys-icon { color: #fff; background: var(--grad); border-radius: 50%; padding: 3px; margin-top: 2px; }
.ys-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ys-stats--row { grid-template-columns: repeat(4, 1fr); }
.ys-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.ys-stat b, .ys-stat > span { font-size: clamp(2.4rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ys-stat small { display: block; margin-top: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; }

/* Process */
.ys-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.ys-step { position: relative; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; transition: .35s var(--ease); }
.ys-step:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.ys-step__n { position: absolute; top: 20px; right: 24px; font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; color: #eef1f8; line-height: 1; }
.ys-step__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--ink); color: #fff; margin-bottom: 18px; }
.ys-step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.ys-step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* FAQ */
.ys-faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.ys-faq { display: grid; gap: 12px; }
.ys-faq__item { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .3s; }
.ys-faq__item[open] { box-shadow: var(--shadow); }
.ys-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.ys-faq__item summary::-webkit-details-marker { display: none; }
.ys-faq__item summary span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); flex-shrink: 0; transition: transform .3s, background .3s, color .3s; }
.ys-faq__item[open] summary span { transform: rotate(45deg); background: var(--grad); color: #fff; }
.ys-faq__item p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* Blog cards */
.ys-post { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .35s var(--ease); }
.ys-post:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.ys-post__img { display: block; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, #fff), color-mix(in srgb, var(--accent) 18%, #fff)); }
.ys-post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ys-post:hover .ys-post__img img { transform: scale(1.05); }
.ys-post__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); }
.ys-post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.ys-post__body time { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.ys-post__body h3 { font-size: 1.15rem; margin: 8px 0; }
.ys-post__body h3 a { color: var(--ink); }
.ys-post__body h3 a:hover { color: var(--brand); }
.ys-post__body p { color: var(--muted); font-size: .95rem; }
.ys-post__body .ys-link { margin-top: auto; }

/* CTA */
.ys-cta { position: relative; padding: 100px 0; background: radial-gradient(1000px 500px at 85% 0%, color-mix(in srgb, var(--brand) 55%, transparent), transparent 60%), radial-gradient(700px 400px at 0% 100%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), var(--ink); color: #c9d4ea; overflow: hidden; }
.ys-cta__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.ys-cta .ys-h2 { color: #fff; }
.ys-cta__list { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 10px; }
.ys-cta__list li { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 600; }
.ys-cta__list .ys-icon { color: #6fe3ff; }
.ys-cta__direct { display: flex; flex-wrap: wrap; gap: 12px; }
.ys-cta__direct a { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.ys-cta__direct a:hover { background: rgba(255,255,255,.16); color: #fff; }
.ys-cta__form { background: #fff; border-radius: 24px; padding: 32px; box-shadow: 0 30px 80px rgba(0,0,0,.35); color: var(--text); }

/* Forms */
.ys-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ys-form__full { grid-column: 1 / -1; }
.ys-form label { display: block; font-size: .84rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ys-form input, .ys-form select, .ys-form textarea, .ys-search input, .comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; font: inherit; font-size: .97rem; color: var(--ink); background: var(--soft); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, background .2s, box-shadow .2s; }
.ys-form input:focus, .ys-form select:focus, .ys-form textarea:focus, .ys-search input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.ys-form textarea { min-height: 120px; resize: vertical; }
.ys-form .ys-btn { width: 100%; padding: 15px; }
.ys-form__hp { position: absolute !important; left: -9999px !important; }
.ys-form__privacy { font-size: .8rem; color: var(--muted); margin: 0; }
.ys-alert { grid-column: 1 / -1; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: .95rem; }
.ys-alert--ok { background: #e8faf0; color: #146c3a; border: 1px solid #b6ebcd; }
.ys-alert--err { background: #fff0f0; color: #a02020; border: 1px solid #f5c2c2; }
.ys-form-fallback { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ys-search { display: flex; gap: 8px; max-width: 460px; }
.ys-search button { border: 0; border-radius: 12px; background: var(--grad); color: #fff; width: 50px; display: grid; place-items: center; flex-shrink: 0; }

/* ---------- Inner pages ---------- */
.ys-pagehero { position: relative; overflow: hidden; padding: 56px 0 64px; background: linear-gradient(180deg, #f8faff, #fff); border-bottom: 1px solid var(--line); }
.ys-pagehero .ys-container { position: relative; z-index: 1; }
.ys-pagehero .ys-blobs span { opacity: .35; }
.ys-pagehero .ys-h1 { max-width: 880px; margin-bottom: 14px; }
.ys-crumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.ys-crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #c3cad9; }
.ys-crumbs a { color: var(--muted); }
.ys-crumbs a:hover { color: var(--brand); }

.ys-detail { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.ys-detail__img { margin: 0 0 30px; border-radius: var(--radius); overflow: hidden; }
.ys-detail__side { position: sticky; top: 100px; }
.admin-bar .ys-detail__side { top: 132px; }
.ys-sidecard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.ys-sidecard h3 { font-size: 1.25rem; }
.ys-sidecard p { color: var(--muted); font-size: .95rem; }
.ys-sidecard hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.ys-facts { margin: 0 0 14px; display: grid; gap: 12px; }
.ys-facts dt { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ys-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.ys-features { margin-top: 40px; }
.ys-features__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ys-feature { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--soft); font-weight: 600; color: var(--ink); font-size: .96rem; }
.ys-feature .ys-icon { color: var(--brand); margin-top: 2px; }

.ys-prose { font-size: 1.05rem; color: var(--text); }
.ys-prose--page, .ys-prose--center { max-width: 820px; }
.ys-prose--center { margin: 0 auto; }
.ys-prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.ys-prose h3 { font-size: 1.3rem; margin-top: 1.4em; }
.ys-prose > *:first-child { margin-top: 0; }
.ys-prose ul, .ys-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.ys-prose li { margin-bottom: .4em; }
.ys-prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--brand); background: var(--soft); border-radius: 0 12px 12px 0; font-size: 1.1rem; color: var(--ink); }
.ys-prose img { border-radius: 14px; }
.ys-prose a { text-decoration: underline; text-underline-offset: 3px; }
.ys-prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; }
.ys-prose th, .ys-prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.ys-prose .wp-block-button__link { background: var(--grad); border-radius: 999px; text-decoration: none; font-weight: 700; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 8px; }

.ys-about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.ys-about__logo { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }

.ys-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: start; }
.ys-contact__info { display: grid; gap: 14px; }
.ys-contact__item { display: flex; gap: 16px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.ys-contact__item .ys-card__icon { margin: 0; width: 48px; height: 48px; }
.ys-contact__item small { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ys-contact__item a, .ys-contact__item strong { font-weight: 700; color: var(--ink); word-break: break-word; }
.ys-contact__form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-lg); }

.ys-blog { display: grid; grid-template-columns: 1fr; gap: 50px; }
.ys-blog:has(.ys-blog__side) { grid-template-columns: 1fr 300px; }
.ys-widget { margin-bottom: 30px; }
.ys-widget__title { font-size: 1.05rem; }
.ys-pagination { margin-top: 40px; }
.ys-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.ys-pagination .page-numbers { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.ys-pagination .page-numbers.current, .ys-pagination .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.ys-share { display: flex; align-items: center; gap: 10px; margin: 36px 0; padding-top: 24px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); }
.ys-share a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); color: var(--ink); }
.ys-share a:hover { background: var(--grad); color: #fff; }
.ys-postnav { display: flex; justify-content: space-between; gap: 20px; font-weight: 700; margin-bottom: 40px; }
.ys-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; background: var(--soft); font-size: .85rem; text-decoration: none; }
.ys-comments { margin-top: 40px; }
.ys-comments__list { padding-left: 0; list-style: none; }
.ys-comments__list .comment-body { padding: 18px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.comment-form .submit { background: var(--grad); color: #fff; border: 0; border-radius: 999px; padding: 12px 24px; font-weight: 700; }
.ys-404 { text-align: center; padding: 120px 0; }
.ys-404 .ys-lead, .ys-404 .ys-search { margin-left: auto; margin-right: auto; }
.ys-404 .ys-search { margin-bottom: 26px; }

/* ---------- Footer ---------- */
.ys-footer { background: #070f22; color: #9aa7c2; padding: 80px 0 0; font-size: .95rem; }
.ys-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.ys-footer .ys-logo { color: #fff; margin-bottom: 18px; }
.ys-footer .ys-logo__mark { background: #fff; border-radius: 12px; padding: 5px; width: 58px; }
.ys-footer .ys-logo__text small { color: #8b97b3; }
.ys-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.ys-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ys-footer a { color: #c4cee3; }
.ys-footer a:hover { color: #fff; }
.ys-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.ys-footer__contact .ys-icon { color: var(--accent); margin-top: 3px; }
.ys-social { display: flex; gap: 8px; margin-top: 18px; }
.ys-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #fff; transition: .25s; }
.ys-social a:hover { background: var(--grad); color: #fff; transform: translateY(-3px); }
.ys-contact__info .ys-social a { background: var(--soft); color: var(--ink); }
.ys-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }

/* Floating buttons */
.ys-wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(37,211,102,.45); transition: transform .3s var(--ease); }
.ys-wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ys-ring 2.4s infinite; }
.ys-wa-float:hover { color: #fff; transform: scale(1.08); }
@keyframes ys-ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.ys-totop { position: fixed; right: 30px; bottom: 96px; z-index: 89; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.ys-totop .ys-icon { transform: rotate(-90deg); }
.ys-totop.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.ys-mega__grid { grid-template-columns: repeat(2, 1fr); }
	.ys-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
	.ys-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
	.ys-burger { display: grid; }
	.ys-header__cta { display: none; }
	.ys-header__actions { margin-left: auto; }
	.ys-nav { position: fixed; inset: 0 0 0 auto; top: var(--hdr, 76px); height: calc(100dvh - var(--hdr, 76px)); width: min(420px, 100%); background: #fff; border-left: 1px solid var(--line); padding: 16px 18px 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; z-index: 99; box-shadow: var(--shadow-lg); }
	.ys-nav.is-open { transform: none; visibility: visible; }
	.ys-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.ys-nav__item, .ys-nav__item.has-drop { position: relative; border-bottom: 1px solid var(--line); }
	.ys-nav__link, .ys-nav__list--wp > li > a { width: 100%; justify-content: space-between; padding: 16px 6px; font-size: 1.05rem; border-radius: 0; }
	.ys-nav__link:hover { background: none; }
	.ys-mega, .ys-drop, .ys-nav__list--wp .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; max-width: none; margin: 0 0 12px; background: var(--soft); border-radius: 14px; }
	.ys-nav__item.is-open > .ys-mega { display: block; }
	.ys-nav__item.is-open > .ys-drop, .ys-nav__list--wp li.is-open > .sub-menu { display: flex; flex-direction: column; }
	.ys-mega__grid { grid-template-columns: 1fr; padding: 8px; }
	.ys-mega__side { display: none; }
	.ys-mega__item small { display: none; }
	.ys-nav__mobile-cta { display: grid; gap: 10px; margin-top: 22px; }
	body.ys-nav-open { overflow: hidden; }
	body.ys-nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(10,22,48,.35); z-index: 98; }
	.ys-slide { grid-template-columns: 1fr; gap: 40px; }
	.ys-slide__visual { min-height: 340px; }
	.ys-about-band__in, .ys-faq-wrap, .ys-cta__in, .ys-detail, .ys-about, .ys-contact { grid-template-columns: 1fr; gap: 40px; }
	.ys-detail__side { position: static; }
	.ys-grid--3, .ys-steps { grid-template-columns: repeat(2, 1fr); }
	.ys-footer__grid { grid-template-columns: 1fr 1fr; }
	.ys-stats--row { grid-template-columns: repeat(2, 1fr); }
	.ys-blog:has(.ys-blog__side) { grid-template-columns: 1fr; }
}
@media (max-width: 782px) { .admin-bar .ys-header { top: 46px; } }
@media (max-width: 680px) {
	body { font-size: 16px; }
	.ys-container { padding: 0 18px; }
	.ys-topbar__tag { display: none; }
	.ys-topbar__in { justify-content: center; }
	.ys-topbar__links { gap: 14px; font-size: .76rem; }
	.ys-topbar__links a:last-child { display: none; }
	.ys-header__in { min-height: 66px; }
	.ys-logo__mark { width: 42px; }
	.ys-logo__text strong { font-size: .98rem; }
	.ys-section { padding: 68px 0; }
	.ys-section--tight { padding: 46px 0; }
	.ys-head { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
	.ys-hero { padding: 28px 0 50px; }
	.ys-hero__tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
	.ys-hero__tabs::-webkit-scrollbar { display: none; }
	.ys-hero__tab { flex-shrink: 0; white-space: nowrap; padding: 9px 13px; font-size: .84rem; }
	.ys-hero__text { font-size: 1.02rem; }
	.ys-slide__visual { min-height: 300px; }
	.ys-float { display: none; }
	.ys-site__score { right: 6px; bottom: -14px; width: 88px; height: 88px; }
	.ys-grid--2, .ys-grid--3, .ys-grid--4, .ys-steps, .ys-features__grid, .ys-form { grid-template-columns: 1fr; }
	.ys-stats, .ys-stats--row { grid-template-columns: 1fr 1fr; gap: 12px; }
	.ys-stat { padding: 22px 18px; }
	.ys-trust__in { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 18px; }
	.ys-trust__label { max-width: none; }
	.ys-marquee { width: 100%; }
	.ys-cta { padding: 70px 0; }
	.ys-cta__form, .ys-contact__form { padding: 22px; }
	.ys-footer__grid { grid-template-columns: 1fr; gap: 30px; }
	.ys-pagehero { padding: 36px 0 44px; }
	.ys-wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
	.ys-totop { right: 22px; bottom: 82px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
	.ys-marquee__track { animation: none; }
}
@media print {
	.ys-topbar, .ys-header, .ys-wa-float, .ys-totop, .ys-cta, .ys-footer { display: none; }
}
