/* mihailmitov.com — "Search Result" design system.
 * One bold idea: the hero is a search result for Mihail, ranked first, with
 * real sitelinks. Everything else stays quiet: white and mist sections, ink
 * text, signal blue used as a fill or on ink (it is only 3.5:1 on white).
 * Headings: Bricolage Grotesque (self-hosted, 41 KB, OFL). Body: system UI. */

@font-face {
  font-family: "Bricolage";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --signal: #0F91CF;      /* brand blue: fills, rules, text on ink */
  --signal-deep: #0A6E9E; /* links and small text on white (5.6:1) */
  --sky: #7CCDF4;         /* text accents on ink (10:1) */
  --ink: #0B1D33;         /* text, dark sections */
  --ink-2: #13294A;
  --slate: #475569;       /* secondary text on white (7.6:1) */
  --mist: #EEF6FB;        /* section tint */
  --line: #D5E3EE;
  --field: #8A9DB0;       /* input borders (3.0:1 non-text) */
  --green: #1A7F45;       /* check marks, "ranked" chip (5.3:1) */
  --white: #fff;
  --max: 1180px;
  --r-lg: 22px;
  --r: 12px;
  --r-sm: 8px;
  --head: "Bricolage", ui-sans-serif, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(11, 29, 51, .06), 0 12px 32px -12px rgba(11, 29, 51, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--signal-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 750; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); letter-spacing: -.022em; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--white); padding: 10px 14px; border-radius: var(--r-sm); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 650 1rem/1 var(--body); padding: 15px 22px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn--signal { background: var(--signal); color: var(--ink); }
.btn--signal:hover { background: #3AAAE0; color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.06); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 10px 16px; font-size: .94rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand__mark { width: 40px; height: 40px; border-radius: 11px; background: var(--ink); display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 26px; height: 26px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font: 750 1.18rem/1.1 var(--head); letter-spacing: -.02em; }
.brand__role { font-size: .78rem; color: var(--slate); }
.nav { display: flex; align-items: center; }
.nav__links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav__links > li { position: relative; }
.nav__links > li > a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 560; font-size: .97rem; border-radius: var(--r-sm); }
.nav__links > li > a:hover, .nav__links > li > a[aria-current="page"] { background: var(--mist); }
.nav__has-children > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.mega { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 22px; display: none; width: min(860px, 92vw); }
.mega--sm { width: 380px; }
.nav__has-children:hover > .mega, .nav__has-children:focus-within > .mega, .nav__has-children.is-open > .mega { display: grid; }
.mega { grid-template-columns: repeat(3, 1fr); gap: 8px 22px; }
.mega--sm { grid-template-columns: 1fr; }
.mega__group h3 { font: 600 .82rem/1.2 var(--body); color: var(--slate); margin: 4px 0 8px; letter-spacing: 0; }
.mega a { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; line-height: 1.3; }
.mega a small { display: block; font-weight: 400; color: var(--slate); font-size: .84rem; margin-top: 2px; }
.mega a:hover { background: var(--mist); }
.mega__all { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.mega__all a { display: inline-block; color: var(--signal-deep); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone { font-weight: 650; color: var(--ink); text-decoration: none; font-size: .97rem; white-space: nowrap; }
.header-phone:hover { color: var(--signal-deep); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-sm); width: 46px; height: 46px; cursor: pointer; color: var(--ink); }
.nav__toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 2px; }
.nav__mobile-cta { display: none; }

/* ---------- Hero (home): the search result ---------- */
.hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 85% -10%, rgba(15,145,207,.35), transparent 60%),
  radial-gradient(600px 400px at -10% 110%, rgba(15,145,207,.18), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 76px 0 84px; }
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero__lead { font-size: 1.2rem; color: #C9D8E6; max-width: 34em; margin-bottom: 1.6em; }
.hero__note { margin-top: 22px; color: #A9BED2; font-size: .95rem; }
.hero__note a { color: var(--sky); }

.serp { background: var(--white); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); overflow: hidden; }
.serp__bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.serp__query { flex: 1; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: .97rem; color: var(--ink); background: #FAFCFE; }
.serp__query svg { width: 18px; height: 18px; color: var(--slate); flex: none; }
.serp__caret { display: inline-block; width: 2px; height: 1.1em; background: var(--signal); margin-left: 1px; vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.serp__body { padding: 20px 22px 22px; }
.serp__meta { font-size: .83rem; color: var(--slate); margin-bottom: 14px; }
.serp__site { display: flex; align-items: center; gap: 11px; margin-bottom: 6px; }
.serp__fav { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; overflow: hidden; }
.serp__fav svg { width: 19px; height: 19px; }
.serp__fav img { width: 100%; height: 100%; object-fit: cover; }
.serp__url { font-size: .88rem; line-height: 1.3; }
.serp__url b { display: block; font-weight: 600; color: var(--ink); }
.serp__url span { color: var(--slate); }
.serp__title { font: 600 1.42rem/1.25 var(--body); margin: 6px 0 6px; letter-spacing: -.01em; }
.serp__title a { color: #1A4FB4; text-decoration: none; }
.serp__title a:hover { text-decoration: underline; }
.serp__desc { color: #3C4A5C; font-size: .97rem; margin: 0 0 14px; }
.serp__facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.serp__facts li { font-size: .85rem; background: var(--mist); border-radius: 999px; padding: 5px 11px; }
.serp__facts b { font-weight: 700; }
.serp__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; border-top: 1px solid var(--line); }
.serp__links a { display: block; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.serp__links a b { display: block; color: #1A4FB4; font-weight: 600; font-size: 1rem; }
.serp__links a span { display: block; color: var(--slate); font-size: .85rem; line-height: 1.35; }
.serp__links a:hover b { text-decoration: underline; }
.serp__rank { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700; color: var(--green); background: #E7F5EC; border-radius: 999px; padding: 4px 10px; margin-left: auto; white-space: nowrap; }

/* ---------- Inner-page hero ---------- */
.phero { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.phero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 420px at 95% -20%, rgba(15,145,207,.32), transparent 62%); pointer-events: none; }
.phero .wrap { position: relative; }
.phero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 56px 0 64px; }
.phero__grid--solo { grid-template-columns: 1fr; max-width: 820px; }
.phero h1 { color: var(--white); font-size: clamp(2.05rem, 3.9vw, 3.2rem); }
.phero__lead { color: #C9D8E6; font-size: 1.15rem; max-width: 36em; margin-bottom: 1.5em; }
.phero__img { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: 0 30px 70px -30px rgba(0,0,0,.65); }
.phero__img img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: .88rem; color: #A9BED2; margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .55; }
.crumbs a { color: var(--sky); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--white); }
.kicker { display: inline-block; font-size: .92rem; font-weight: 600; color: var(--sky); margin-bottom: 12px; }
.kicker--dark { color: var(--signal-deep); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h2, .section--ink h3 { color: var(--white); }
.section--tight { padding: 64px 0; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head p { color: var(--slate); font-size: 1.1rem; }
.section--ink .section__head p { color: #C9D8E6; }
.section__head--split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section__head--split > div { max-width: 640px; }
.lead { font-size: 1.15rem; }
.muted { color: var(--slate); }

.split { display: grid; grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: start; }
.split--even { grid-template-columns: 1fr 1fr; align-items: center; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul li, .prose ol li { margin-bottom: .45em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0 1.6em; font-size: .97rem; }
.prose th, .prose td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--mist); font-weight: 650; }
.prose .table-wrap { overflow-x: auto; }
.note { background: var(--mist); border-left: 4px solid var(--signal); border-radius: 0 var(--r) var(--r) 0; padding: 16px 20px; margin: 1.4em 0; }
.note p:last-child { margin: 0; }

/* At a glance */
.glance { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: sticky; top: 100px; }
.glance h2 { font-size: 1.2rem; margin-bottom: 14px; }
.glance dl { margin: 0 0 20px; }
.glance dt { font-size: .84rem; color: var(--slate); }
.glance dd { margin: 0 0 12px; font-weight: 650; }
.glance .btn { width: 100%; }
.glance__phone { display: block; text-align: center; margin-top: 12px; font-weight: 600; }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 21px; height: 21px; border-radius: 50%; background: #E7F5EC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%231A7F45' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.checks--one { grid-template-columns: 1fr; }

/* Feature list: included items. Not cards: a ruled two-column list. */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.feature { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--signal-deep); display: grid; place-items: center; }
.section--mist .feature__icon { background: var(--white); }
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: .3em; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--slate); }

/* Steps: real sequences only */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps--6 { grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--signal); color: var(--sky); font: 700 1.05rem/38px var(--head); text-align: center; }
.steps li::after { content: ""; position: absolute; top: 21px; left: 54px; right: -8px; height: 2px; background: linear-gradient(90deg, rgba(15,145,207,.6), rgba(15,145,207,0)); }
.steps li:last-child::after { display: none; }
.steps--6 li:nth-child(3n)::after { display: none; }
.steps h3 { font-size: 1.15rem; margin-bottom: .35em; }
.steps p { color: #C9D8E6; margin: 0; font-size: .98rem; }
.section:not(.section--ink) .steps li::before { color: var(--signal-deep); }
.section:not(.section--ink) .steps p { color: var(--slate); }

/* Services directory (home + hub) */
.svc-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.svc-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 26px 18px; }
.svc-group__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.svc-group h3 { font-size: 1.35rem; margin: 0; }
.svc-group__tag { font-size: .86rem; color: var(--slate); }
.svc-group > p { color: var(--slate); font-size: .97rem; }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc-list a { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.svc-list a:hover b { color: var(--signal-deep); text-decoration: underline; }
.svc-list .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--mist); color: var(--signal-deep); display: grid; place-items: center; }
.svc-list .ico svg { width: 20px; height: 20px; }
.svc-list b { display: block; font-weight: 650; line-height: 1.3; }
.svc-list span { display: block; color: var(--slate); font-size: .9rem; line-height: 1.4; margin-top: 2px; }

/* Browser-frame portfolio tiles */
.sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.site-tile { display: block; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, transform .15s; }
.site-tile:hover { border-color: var(--signal); transform: translateY(-2px); color: var(--ink); }
.site-tile__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #F4F8FB; border-bottom: 1px solid var(--line); }
.site-tile__bar i { width: 9px; height: 9px; border-radius: 50%; background: #CBD8E3; flex: none; }
.site-tile__url { margin-left: 8px; flex: 1; font-size: .8rem; color: var(--slate); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-tile__body { padding: 20px 18px 18px; min-height: 128px; display: flex; flex-direction: column; }
.site-tile__mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 750 1.05rem/1 var(--head); color: var(--white); margin-bottom: 12px; }
.site-tile b { font: 650 1.08rem/1.25 var(--head); }
.site-tile__type { color: var(--slate); font-size: .9rem; margin-top: 2px; }
.sites--compact { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sites--compact .site-tile__body { min-height: 0; padding: 14px; }
.sites--compact .site-tile__mono { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters a { text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .93rem; background: var(--white); }
.filters a:hover { border-color: var(--signal); }
.ind-block { margin-bottom: 56px; scroll-margin-top: 100px; }
.ind-block h2 { font-size: 1.6rem; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ind-block h2 small { font: 500 .95rem var(--body); color: var(--slate); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.quote { margin: 0; background: var(--white); border-radius: var(--r-lg); padding: 30px; border: 1px solid var(--line); }
.quote--big { background: var(--ink); color: var(--white); border: 0; padding: 40px; }
.quote--big blockquote { font: 500 1.32rem/1.5 var(--head); letter-spacing: -.01em; }
.quote blockquote { margin: 0 0 18px; }
.quote blockquote p { margin: 0; }
.quote figcaption b { display: block; font-weight: 700; }
.quote figcaption span { color: var(--slate); font-size: .9rem; }
.quote--big figcaption span { color: var(--sky); }
.quote__mark { display: block; width: 36px; height: 36px; color: var(--signal); margin-bottom: 14px; }
.quote__mark svg { width: 100%; height: 100%; }
.quotes__col { display: grid; gap: 20px; }
.quotes__col .quote blockquote { font-size: .98rem; }

/* Industries tiles */
.inds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ind { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3; color: var(--white); text-decoration: none; background: var(--ink); }
.ind img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ind:hover img { transform: scale(1.04); }
.ind__text { position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px; background: linear-gradient(transparent, rgba(11,29,51,.92) 55%); }
.ind__text b { display: block; font: 700 1.25rem/1.2 var(--head); }
.ind__text span { font-size: .9rem; color: #D4E3F0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--signal), rgba(15,145,207,.15)); }
.timeline li { position: relative; padding: 0 0 26px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 3px solid var(--signal); }
.timeline time { font: 700 1rem var(--head); color: var(--signal-deep); }
.section--ink .timeline time { color: var(--sky); }
.timeline h3 { margin: 2px 0 4px; font-size: 1.15rem; }
.timeline p { margin: 0; color: var(--slate); }
.section--ink .timeline p { color: #C9D8E6; }
.section--ink .timeline li::before { background: var(--ink); }
.timeline--row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.timeline--row::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--signal), rgba(15,145,207,.2)); }
.timeline--row li { padding: 36px 0 0; }
.timeline--row li::before { top: 0; }

/* Stats sentence + score rings */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: 26px 24px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts b { display: block; font: 750 2.2rem/1 var(--head); letter-spacing: -.03em; margin-bottom: 6px; }
.facts span { color: var(--slate); }
.rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ring { text-align: center; }
.ring svg { width: 92px; height: 92px; display: block; margin: 0 auto 10px; }
.ring b { display: block; font-weight: 650; }
.ring span { color: var(--slate); font-size: .88rem; }
.section--ink .ring span { color: #C9D8E6; }

/* Publications */
.pubs { list-style: none; margin: 0; padding: 0; }
.pub { display: grid; grid-template-columns: 130px 1fr auto; gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--line); }
.pub:last-child { border-bottom: 1px solid var(--line); }
.pub time { color: var(--slate); font-size: .93rem; }
.pub h3 { font-size: 1.15rem; margin: 0 0 4px; }
.pub h3 a { color: var(--ink); text-decoration: none; }
.pub h3 a:hover { color: var(--signal-deep); text-decoration: underline; }
.pub p { margin: 0; color: var(--slate); font-size: .96rem; }
.pub__cat { font-size: .85rem; color: var(--signal-deep); background: var(--mist); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font: 650 1.12rem/1.35 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--signal-deep); border-bottom: 2px solid var(--signal-deep); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div { padding: 0 0 20px; color: #2B3A4D; max-width: 70ch; }
.faq details > div p:last-child { margin: 0; }

/* Related links */
.links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.links a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--white); }
.links a:hover { border-color: var(--signal); }
.links b { display: block; font-weight: 650; }
.links span { display: block; color: var(--slate); font-size: .9rem; margin-top: 3px; }

/* Author box */
.author { display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: center; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); }
.author__img { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--ink); display: grid; place-items: center; }
.author__img img { width: 100%; height: 100%; object-fit: cover; }
.author__img svg { width: 50px; height: 50px; }
.author h2 { font-size: 1.15rem; margin: 0 0 4px; }
.author p { margin: 0; color: var(--slate); font-size: .96rem; }

/* CTA panel */
.cta { background: var(--signal); border-radius: var(--r-lg); padding: 52px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; color: var(--ink); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255,255,255,.14); pointer-events: none; }
.cta h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: .3em; }
.cta p { margin: 0; font-size: 1.1rem; max-width: 34em; }
.cta .btns { justify-content: flex-end; position: relative; z-index: 1; }
.cta .btn--line { border-color: var(--ink); }

/* Media */
.media { border-radius: var(--r-lg); overflow: hidden; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 16 / 7; }
.media--tall { aspect-ratio: 4 / 5; }
.caption { font-size: .85rem; color: var(--slate); margin-top: 8px; }

/* Cards (used sparingly: challenges, guides) */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h3 { font-size: 1.12rem; margin-bottom: .35em; }
.card p { margin: 0; color: var(--slate); }

/* Resources */
.res-group { margin-bottom: 44px; }
.res-group h2 { font-size: 1.45rem; }
.res { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 36px; }
.res li { padding: 14px 0; border-top: 1px solid var(--line); }
.res a { font-weight: 650; }
.res span { display: block; color: var(--slate); font-size: .94rem; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.55rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .96rem; }
.field label .req { color: #B42318; }
.field label .opt { color: var(--slate); font-weight: 400; font-size: .88rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1.5px solid var(--field); border-radius: var(--r-sm); padding: 12px 14px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(15,145,207,.35); border-color: var(--signal-deep); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formerror { display: none; background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; border-radius: var(--r-sm); padding: 12px 14px; margin-bottom: 16px; }
.formerror.show { display: block; }
.form-note { font-size: .88rem; color: var(--slate); margin: 12px 0 0; }
.form-card .btn { width: 100%; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--signal-deep); display: grid; place-items: center; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list small { display: block; color: var(--slate); }
.contact-list a, .contact-list b { font-weight: 650; font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--ink); color: #C9D8E6; padding: 72px 0 28px; margin-top: 0; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { color: var(--white); font: 650 1rem var(--body); margin-bottom: 14px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #C9D8E6; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .brand { color: var(--white); margin-bottom: 16px; }
.site-footer .brand__mark { background: var(--signal); }
.site-footer .brand__role { color: #A9BED2; }
.footer-phone { display: inline-block; font: 700 1.3rem var(--head); color: var(--white) !important; margin: 6px 0 14px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; }
.social a:hover { border-color: var(--white); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color: #A9BED2; }

/* Sticky mobile action bar */
.mobile-bar { display: none; }

/* 404 */
.notfound { text-align: center; padding: 120px 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .nav { order: 3; }
  .nav__toggle { display: block; }
  .header-phone { display: none; }
  .nav__links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 18px; max-height: calc(100vh - 74px); overflow-y: auto; box-shadow: var(--shadow); }
  .nav__links.is-open { display: flex; }
  .nav__links > li > a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mega, .mega--sm { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 4px 0 10px 12px; grid-template-columns: 1fr; display: none; }
  .nav__has-children:hover > .mega, .nav__has-children:focus-within > .mega { display: none; }
  .nav__has-children.is-open > .mega { display: grid; }
  .nav__mobile-cta { display: block; padding-top: 14px; }
  .nav__mobile-cta .btn { width: 100%; }
  .hero__grid, .phero__grid, .split, .split--even, .quotes { grid-template-columns: 1fr; }
  .hero__grid { padding: 52px 0 60px; gap: 40px; }
  .glance { position: static; }
  .svc-groups { grid-template-columns: 1fr; }
  .sites { grid-template-columns: repeat(2, 1fr); }
  .sites--compact { grid-template-columns: repeat(2, 1fr); }
  .inds { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .steps li::after { display: none; }
  .timeline--row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 40px 32px; }
  .cta .btns { justify-content: flex-start; }
  .links { grid-template-columns: repeat(2, 1fr); }
  .rings { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .header-cta .btn { display: none; }
  .brand__role { display: none; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .checks, .features, .cards, .res, .form-row, .links { grid-template-columns: 1fr; }
  .sites, .inds, .steps, .steps--6, .timeline--row { grid-template-columns: 1fr; }
  .sites--compact { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .serp__links { grid-template-columns: 1fr; }
  .serp__body { padding: 18px; }
  .serp__rank { display: none; }
  .pub { grid-template-columns: 1fr; gap: 6px; }
  .pub__cat { justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .quote--big { padding: 28px; }
  .quote--big blockquote { font-size: 1.12rem; }
  .author { grid-template-columns: 64px 1fr; padding: 20px; gap: 16px; }
  .author__img { width: 64px; height: 64px; }
  .btns .btn { flex: 1 1 auto; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); }
  .mobile-bar .btn { padding: 13px 10px; }
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .site-footer, .mobile-bar, .cta { display: none; }
}
.serp__query > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.split--top { align-items: start; }
.phero__img--portrait { aspect-ratio: 1 / 1; max-width: 400px; justify-self: end; width: 100%; }
.phero__img--portrait img { object-position: center 25%; }
@media (max-width: 1099px) { .phero__img--portrait { justify-self: start; max-width: 320px; } }
