/* =========================================================
   FranKonsalt — redesign 2026
   Mobile-first. Brand: red #DA424E / blue #0657BE kept,
   typography refreshed (Manrope + Inter).
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --red: #DA424E;          /* brand accent (large text, decor) */
  --red-deep: #CD3440;     /* buttons, bands: 5:1 with white */
  --red-700: #B02A35;
  --red-50: #FBEDEE;

  --blue: #0657BE;         /* brand blue (nav) 6.7:1 with white */
  --blue-700: #0A4699;
  --blue-900: #0B2A5B;
  --blue-50: #EAF1FC;

  --ink: #1B1D22;
  --ink-2: #3F434D;
  --mute: #5F6672;
  --line: #E4E7EC;
  --surface: #F5F6F8;
  --surface-2: #EEF0F3;
  --white: #FFFFFF;

  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --r-lg: 16px;
  --r: 12px;
  --r-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-md: 0 8px 20px -6px rgba(16, 24, 40, .14), 0 2px 6px -2px rgba(16, 24, 40, .06);

  --container: 1120px;
  --gutter: 16px;
  --sticky-offset: 56px;   /* height of sticky header (mobile) */

  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 200ms;
}
@media (min-width: 640px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --sticky-offset: 58px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--sticky-offset) + 8px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(64px + env(safe-area-inset-bottom)); /* room for mobile action bar */
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 8px; }
.icon { width: 1.25em; height: 1.25em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.brand { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur), border-color var(--dur), transform var(--dur), box-shadow var(--dur);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red-deep); color: #fff; box-shadow: 0 6px 14px -6px rgba(205, 52, 64, .6); }
.btn--primary:hover { background: var(--red-700); }
.btn--outline { border-color: var(--red); color: var(--red-700); background: #fff; }
.btn--outline:hover { background: var(--red-50); }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.topbar { display: none; }
.header-main { display: flex; align-items: center; gap: 4px; height: 56px; }
.logo { display: block; flex: none; }
.logo img { width: 136px; height: auto; }
.header-main__spacer { flex: 1; }
.header-contacts, .header-cta { display: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; color: var(--ink); transition: background var(--dur); }
.icon-btn:hover { background: var(--surface); }
.icon-btn .icon { width: 22px; height: 22px; }
.phone-btn { color: var(--red-700); }

/* Services nav — mobile: horizontal chip strip */
.services-nav { background: #fff; border-bottom: 1px solid var(--line); }
.services-nav__list { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 8px var(--gutter); margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.services-nav__list::-webkit-scrollbar { display: none; }
.services-nav__item { flex: none; position: relative; scroll-snap-align: start; display: flex; }
.services-nav__link {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--blue-50); color: var(--blue-900); font-weight: 600; font-size: 13.5px; white-space: nowrap; text-decoration: none;
  transition: background var(--dur), color var(--dur);
}
.services-nav__link .icon { width: 18px; height: 18px; color: var(--blue); }
.services-nav__link .icon--chev { width: 16px; height: 16px; margin-left: -2px; }
.services-nav__link:hover, .services-nav__link:focus-visible { background: var(--blue); color: #fff; text-decoration: none; }
.services-nav__link:hover .icon, .services-nav__link:focus-visible .icon { color: #fff; }
.sub-toggle { display: none; }
.sub { display: none; }

/* ---------- Drawer (mobile menu) ---------- */
.drawer { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: flex-end; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(11, 42, 91, .45); backdrop-filter: blur(2px); }
.drawer__panel {
  position: relative; width: min(88vw, 380px); height: 100%; background: #fff; overflow-y: auto;
  display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0, 0, 0, .2);
  animation: slideIn .28s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.drawer__head img { width: 130px; }
.drawer__section { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); font-weight: 600; margin-bottom: 4px; }
.drawer__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer__contacts a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: 12px; color: var(--mute); text-decoration: none; }
.drawer__contacts a .icon { width: 18px; height: 18px; color: var(--red); margin-bottom: 4px; }
.drawer__contacts b { color: var(--ink); font-size: 13px; font-weight: 600; }
.drawer__list a, .drawer__list summary { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 8px 4px; color: var(--ink); font-weight: 500; font-size: 15px; border-radius: 8px; cursor: pointer; list-style: none; }
.drawer__list summary::-webkit-details-marker { display: none; }
.drawer__list a:hover, .drawer__list summary:hover { background: var(--surface); text-decoration: none; }
.drawer__list .icon { width: 20px; height: 20px; color: var(--blue); }
.drawer__list .icon--chev { margin-left: auto; color: var(--mute); transition: transform var(--dur); }
.drawer__acc[open] > summary .icon--chev { transform: rotate(180deg); }
.drawer__acc ul { padding: 2px 0 8px 30px; }
.drawer__acc ul a { min-height: 40px; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.drawer__list--plain a { min-height: 42px; }
.drawer__cta { padding: 16px; margin-top: auto; }
body.is-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: 20px 0 22px; background: linear-gradient(180deg, #fff 0%, var(--surface) 100%); }
.hero__grid { display: grid; gap: 16px; }
.eyebrow { font-size: 13px; color: var(--mute); line-height: 1.45; }
.hero h1 { font-size: clamp(26px, 7.2vw, 34px); font-weight: 800; margin: 8px 0 14px; line-height: 1.1; letter-spacing: -.02em; }
.hero h1 span { color: var(--red); }
.hero__actions { display: grid; grid-template-columns: 1.55fr 1fr; gap: 8px; }
.hero__actions .btn { font-size: 14px; padding-inline: 10px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.principles li { display: flex; flex-direction: column; gap: 4px; font-size: 12px; line-height: 1.35; color: var(--ink-2); padding-left: 10px; border-left: 2px solid var(--red); }
.principles b { font-family: var(--font-head); font-size: 20px; color: var(--red); line-height: 1; font-weight: 800; }

/* Slider */
.slider { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-md); aspect-ratio: 2 / 1; }
.slider__track { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.slide.is-active { opacity: 1; z-index: 1; pointer-events: auto; }
.slide picture, .slide img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.slide figcaption { position: absolute; inset: auto 0 0 0; padding: 40px 16px 26px; background: linear-gradient(0deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .9) 55%, rgba(255, 255, 255, 0) 100%); }
.slide figcaption a { display: block; color: var(--ink-2); font-size: 12.5px; line-height: 1.35; text-decoration: none; }
.slide figcaption a:hover strong { color: var(--red); }
.slide figcaption strong { display: block; font-family: var(--font-head); font-size: 16px; color: var(--ink); margin-bottom: 2px; transition: color var(--dur); }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; gap: 2px; z-index: 2; }
.slider__dots button { width: 24px; height: 22px; display: grid; place-items: center; }
.slider__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: rgba(27, 29, 34, .25); transition: width var(--dur), background var(--dur); }
.slider__dots button[aria-current="true"]::before { background: var(--red); width: 20px; }

/* ---------- Offer (red band) ---------- */
.offer { background: var(--red-deep); color: #fff; padding: 26px 0 24px; position: relative; overflow: hidden; }
.offer::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.offer h2 { font-size: clamp(20px, 5vw, 28px); font-weight: 700; margin-bottom: 14px; position: relative; }
.offer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.offer__card {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 12px; border-radius: var(--r);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .28); color: #fff; text-decoration: none;
  transition: background var(--dur), transform var(--dur), border-color var(--dur);
}
.offer__card:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); text-decoration: none; transform: translateY(-2px); }
.offer__card .icon { width: 26px; height: 26px; margin-bottom: 4px; }
.offer__card h3 { font-size: 15px; line-height: 1.2; font-weight: 700; }
.offer__card p { font-size: 12.5px; line-height: 1.4; opacity: .92; }

/* ---------- Stats ---------- */
.stats { padding: 24px 0 6px; }
.stats h2 { font-size: 22px; margin-bottom: 12px; }
.stats__row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--gutter) 16px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.stats__row::-webkit-scrollbar { display: none; }
.stat { flex: 0 0 150px; scroll-snap-align: start; padding: 14px 14px 12px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.stat__more { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--red); font-weight: 600; }
.stat__num { font-family: var(--font-head); font-size: 32px; font-weight: 800; line-height: 1.05; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 12.5px; line-height: 1.35; color: var(--mute); }

/* ---------- Clients ---------- */
.clients { padding: 14px 0 24px; }
.clients__grid { display: grid; gap: 12px; align-items: center; }
.clients h2 { font-size: 24px; line-height: 1.15; }
.clients h2 .small { display: block; font-weight: 500; font-size: 16px; color: var(--ink-2); margin-top: 4px; }

/* Marquee (mobile) — becomes static grid on desktop where noted */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.logo-list { display: flex; gap: 12px; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .logo-list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.logo-tile { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #fff; flex: none; }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Reviews ---------- */
.reviews { background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue) 65%, #2E7BE0 100%); color: #fff; padding: 26px 0 22px; position: relative; overflow: hidden; }
.reviews::after { content: ""; position: absolute; width: 520px; height: 520px; left: -220px; bottom: -380px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); pointer-events: none; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; position: relative; }
.reviews h2 { font-size: clamp(20px, 5vw, 28px); max-width: 720px; }
.scroller-nav { display: none; gap: 8px; }
.scroller-nav button { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); transition: background var(--dur); }
.scroller-nav button:hover { background: rgba(255, 255, 255, .28); }
.scroller-nav .icon { width: 20px; height: 20px; }
.reviews__track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 12px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; -webkit-overflow-scrolling: touch; position: relative; scroll-behavior: smooth; }
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track li { flex: 0 0 150px; scroll-snap-align: start; }
.review { display: block; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); transition: transform var(--dur); }
.review:hover { transform: translateY(-3px); }
.review img { width: 100%; aspect-ratio: 218 / 308; object-fit: cover; }

/* ---------- Partners ---------- */
.partners { padding: 18px 0; border-bottom: 1px solid var(--line); }
.partners__row { display: grid; gap: 10px; align-items: center; }
.partners h2 { font-size: 14px; font-weight: 600; color: var(--mute); white-space: nowrap; letter-spacing: .01em; }
.partners .logo-tile { width: 64px; height: 64px; filter: grayscale(1); opacity: .8; transition: filter var(--dur), opacity var(--dur); }
.partners .logo-tile:hover { filter: none; opacity: 1; }

/* ---------- Feed: news / articles / events ---------- */
.feed { padding: 26px 0 8px; }
.tabs { display: flex; background: var(--surface); border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 14px; }
.tabs button { flex: 1; min-height: 40px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background var(--dur), color var(--dur), box-shadow var(--dur); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.feed__grid { display: grid; gap: 16px; }
.feed__col { display: none; }
.feed__col.is-active { display: block; }
.feed__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.feed__head h2 { font-size: 20px; }
.feed__head a { font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.news-list li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: baseline; }
.news-list time { font-size: 12.5px; color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.news-list a { color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.35; }
.news-list a:hover { color: var(--blue); }
.art-list li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.art-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; margin-top: 8px; }
.art-list a { color: var(--ink); font-weight: 500; font-size: 15px; line-height: 1.35; }
.art-list a:hover { color: var(--blue); }
.event { border-radius: var(--r-lg); background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%); color: #fff; padding: 18px; box-shadow: 0 12px 24px -12px rgba(205, 52, 64, .6); }
.event time { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; background: rgba(255, 255, 255, .16); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.event time .icon { width: 14px; height: 14px; }
.event h3 { font-size: 20px; margin-bottom: 6px; }
.event p { font-size: 13.5px; opacity: .92; margin-bottom: 12px; line-height: 1.45; }
.event a { color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.event a .icon { width: 16px; height: 16px; transition: transform var(--dur); }
.event a:hover .icon { transform: translateX(3px); }

/* ---------- Videos ---------- */
.videos { padding: 10px 0 26px; }
.videos h2 { font-size: 22px; margin-bottom: 12px; }
.videos__row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--gutter) 10px; margin-inline: calc(-1 * var(--gutter)); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.videos__row::-webkit-scrollbar { display: none; }
.video-card { flex: 0 0 min(84vw, 420px); scroll-snap-align: start; }
.video-card h3 { font-size: 15px; margin-bottom: 8px; line-height: 1.3; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; display: block; width: 100%; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .4s var(--ease); }
.yt:hover img { transform: scale(1.03); }
.yt__play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt__play span { width: 62px; height: 44px; border-radius: 12px; background: var(--red-deep); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); transition: transform var(--dur); }
.yt__play .icon { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 2px; }
.yt:hover .yt__play span { transform: scale(1.06); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card p { font-size: 13.5px; color: var(--mute); margin-top: 8px; line-height: 1.4; }

/* ---------- Article (SEO text) ---------- */
.article { background: var(--surface); padding: 26px 0 30px; }
.prose { background: #fff; border-radius: var(--r-lg); padding: 20px 16px 22px; box-shadow: var(--shadow-sm); }
.prose h2 { font-size: clamp(20px, 5vw, 26px); margin: 0 0 12px; }
.prose h3 { font-size: 17px; margin: 16px 0 8px; }
.prose p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 10px; }
.prose p:last-child { margin-bottom: 0; }
.prose__more { display: block; }
.more-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--blue); font-weight: 600; font-size: 14px; }
.more-btn .icon { transition: transform var(--dur); }
.more-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
/* Banner: on phones the photo is a faded backdrop, text takes the full width;
   from 640px the photo sits to the right of the text */
.banner { position: relative; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); display: block; margin-bottom: 14px; min-height: 96px; }
.banner picture { position: absolute; inset: 0; display: block; }
.banner img { width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: .6; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .95) 42%, rgba(255, 255, 255, .5) 100%); }
.banner__text { position: relative; z-index: 1; padding: 14px 16px; max-width: 80%; font-family: var(--font-head); font-size: 14px; line-height: 1.3; color: var(--ink-2); font-weight: 500; }
.banner__text strong { display: block; color: var(--red); font-size: 18px; line-height: 1.15; font-weight: 800; margin-bottom: 3px; }
@media (min-width: 640px) {
  .banner { display: grid; grid-template-columns: 1fr auto; align-items: stretch; }
  .banner::after { display: none; }
  .banner picture { position: static; height: 100%; }
  .banner img { width: auto; height: 100%; max-height: 100px; opacity: 1; }
  .banner--sm img { max-height: 92px; }
  .banner__text { max-width: none; font-size: 16px; line-height: 1.2; align-self: center; }
  .banner__text strong { font-size: 20px; }
}
.split { display: grid; gap: 16px; margin-top: 16px; }
.checklist h3 { margin-top: 0; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.check-grid li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); padding: 5px 0; }
.check-grid .icon { width: 18px; height: 18px; color: var(--red); margin-top: 1px; stroke-width: 2.2; }
.check-grid--wide { grid-template-columns: 1fr; }
.checklist__note { margin-top: 10px; font-weight: 500; color: var(--ink) !important; }

.form-card { border: 2px solid var(--red); border-radius: var(--r-lg); padding: 18px 16px; background: #fff; }
.form-card h3 { margin-top: 0; font-size: 18px; margin-bottom: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field label span { color: var(--red); margin-left: 2px; }
.field input { height: 46px; border: 1px solid #CFD4DC; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); transition: border-color var(--dur), box-shadow var(--dur); width: 100%; }
.field input::placeholder { color: #9AA1AC; }
.field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(6, 87, 190, .15); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field__error { font-size: 12.5px; color: var(--red-700); display: none; }
.field.has-error .field__error { display: block; }
.consent { font-size: 12px !important; color: var(--mute) !important; line-height: 1.4 !important; margin: 10px 0 0 !important; }
.form-msg { font-size: 14px !important; margin: 8px 0 0 !important; min-height: 1.2em; }
.form-msg.is-ok { color: #15803D !important; }
.form-msg.is-err { color: var(--red-700) !important; }
.divider { height: 2px; background: var(--red); border: 0; margin: 24px 0 20px; opacity: .9; }

.fold { border: 1px solid var(--line); border-radius: var(--r); padding: 0 14px; background: #fff; }
.fold summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; cursor: pointer; }
.fold summary::-webkit-details-marker { display: none; }
.fold__title { font-size: 17px !important; margin: 0 !important; }
.fold summary .icon { transition: transform var(--dur); color: var(--mute); }
.fold[open] summary .icon { transform: rotate(180deg); }
.fold__body { padding-bottom: 14px; }
.fold__body h3 { margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 24px 0 18px; font-size: 14px; }
.footer__top { display: grid; gap: 18px; }
.footer__brand img { width: 170px; }
.footer__brand .phone { font-family: var(--font-head); font-size: 24px; font-weight: 800; color: var(--ink); display: block; margin: 10px 0 2px; letter-spacing: -.01em; }
.footer__brand .phone b { color: var(--red); }
.footer__brand p { color: var(--mute); font-size: 13.5px; }
.search { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.search input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(6, 87, 190, .15); }
.search button { width: 48px; display: grid; place-items: center; color: var(--blue); }
.search button .icon { width: 20px; height: 20px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); transition: background var(--dur), color var(--dur); }
.socials a:hover { background: var(--blue); color: #fff; }
.socials .icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; margin: 20px auto 0; padding-top: 16px; border-top: 1px solid var(--line); }
.footer__links a { color: var(--ink-2); font-size: 13.5px; padding: 7px 0; display: block; }
.footer__links a:hover { color: var(--blue); }
.footer__bottom { color: var(--mute); font-size: 12.5px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Mobile action bar ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}
.mobile-cta .btn { min-height: 46px; font-size: 14px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 12px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11, 42, 91, .55); backdrop-filter: blur(3px); }
.modal__panel { position: relative; width: min(100%, 760px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; background: #fff; border-radius: var(--r-lg); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); display: grid; animation: pop .25s var(--ease); }
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0; } }
.modal__aside { background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%); color: #fff; padding: 20px 20px 18px; }
.modal__aside h2 { font-size: 22px; padding-right: 40px; }
.modal__aside p { opacity: .92; margin-top: 4px; font-size: 14px; }
.modal__points { display: none; margin-top: 18px; }
.modal__points li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.35; padding: 6px 0; opacity: .95; }
.modal__points .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.modal__form { padding: 18px 20px 20px; }
.modal__close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .18); z-index: 1; transition: background var(--dur); }
.modal__close:hover { background: rgba(0, 0, 0, .3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--mute); line-height: 1.4; margin: 6px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--red-deep); flex: none; }
.modal__success { grid-column: 1 / -1; padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.modal__success .icon { width: 56px; height: 56px; color: #fff; background: #16A34A; border-radius: 50%; padding: 14px; stroke-width: 2.6; margin-bottom: 8px; }
.modal__success h3 { font-size: 24px; }
.modal__success p { color: var(--mute); margin-bottom: 12px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(8, 12, 20, .92); }
.lightbox__img { position: relative; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); max-width: min(92vw, 720px); width: auto; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox__close, .lightbox__nav { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12); border-radius: 50%; z-index: 1; transition: background var(--dur); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .28); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 8px; }
.lightbox__next { right: 8px; }
.lightbox__counter { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: 13px; }

/* ---------- Reveal on scroll (subtle) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   ≥ 640px (large phones landscape / small tablets)
   ========================================================= */
@media (min-width: 640px) {
  .offer__grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .offer__card { padding: 18px 16px; }
  .offer__card h3 { font-size: 16px; }
  .offer__card p { font-size: 13.5px; }
  .check-grid--wide { grid-template-columns: 1fr 1fr; }
  .modal__panel { grid-template-columns: 1fr 1.35fr; }
  .modal__aside { padding: 28px 24px; }
  .modal__aside h2 { padding-right: 0; }
  .modal__points { display: block; }
  .modal__form { padding: 26px 24px; }
  .modal__close { color: var(--ink); background: var(--surface); }
  .modal__close:hover { background: var(--surface-2); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .socials { grid-column: 1 / -1; }
}

/* =========================================================
   ≥ 820px (tablet)
   ========================================================= */
@media (min-width: 820px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 28px; }
  .hero { padding: 28px 0 30px; }
  .hero__actions { display: flex; gap: 12px; }
  .hero__actions .btn { font-size: 15px; padding-inline: 18px; }
  .stats__row { display: grid; grid-template-columns: repeat(5, 1fr); overflow: visible; padding: 0; margin: 0; gap: 12px; }
  .stat { padding: 16px; }
  .clients__grid { grid-template-columns: auto 1fr; gap: 28px; }
  .split { grid-template-columns: 1.15fr 1fr; gap: 28px; }
  .split--cards { grid-template-columns: 1fr 1fr; }
  .reviews__track li { flex-basis: 180px; }
  .videos__row { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; padding: 0; margin: 0; gap: 24px; }
  .video-card { flex: none; }
  .prose { padding: 28px 28px 30px; }
  .banner__text { font-size: 20px; padding: 18px 24px; }
  .banner__text strong { font-size: 26px; }
  .banner img { max-height: 129px; }
  .banner--sm img { max-height: 110px; }
}

/* =========================================================
   ≥ 1024px (desktop)
   ========================================================= */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .mobile-cta { display: none; }

  /* Header: static; the blue services bar sticks */
  .site-header { position: static; border-bottom: 0; }
  .topbar { display: block; background: var(--surface); font-size: 13.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
  .topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 38px; }
  .topbar__meta { display: flex; gap: 22px; align-items: center; }
  .topbar__meta span, .topbar__meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
  .topbar__meta a:hover { color: var(--blue); text-decoration: none; }
  .topbar__meta .icon { width: 16px; height: 16px; color: var(--mute); }
  .top-nav { display: flex; gap: 2px; }
  .top-nav a { display: inline-flex; align-items: center; height: 38px; padding: 0 12px; color: var(--ink-2); font-weight: 500; border-radius: 6px; }
  .top-nav a:hover { color: var(--ink); background: #fff; text-decoration: none; }
  .header-main { height: 88px; gap: 28px; }
  .logo img { width: 262px; }
  .header-contacts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .header-contacts .phone { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--ink); letter-spacing: -.01em; white-space: nowrap; line-height: 1.1; }
  .header-contacts .phone:hover { text-decoration: none; color: var(--red-700); }
  .header-contacts .phone b { color: var(--red); }
  .header-contacts small { color: var(--mute); font-size: 12.5px; }
  .header-cta { display: inline-flex; text-align: left; padding: 8px 18px 8px 14px; gap: 10px; }
  .header-cta .icon { width: 26px; height: 26px; color: var(--red); }
  .header-cta span { display: flex; flex-direction: column; line-height: 1.15; }
  .header-cta small { font-weight: 400; font-size: 11.5px; color: var(--mute); text-transform: none; }
  .phone-btn, .burger { display: none; }

  .services-nav { position: sticky; top: 0; z-index: 90; background: var(--blue); border: 0; box-shadow: 0 6px 16px -10px rgba(11, 42, 91, .5); }
  .services-nav__list { display: flex; gap: 0; overflow: visible; padding: 0; margin: 0; scroll-snap-type: none; }
  .services-nav__item { flex: 1 1 auto; display: flex; align-items: stretch; position: relative; }
  .services-nav__link { height: 58px; padding: 0 8px; border-radius: 0; background: transparent; color: #fff; font-size: 12.5px; flex: 1; justify-content: center; letter-spacing: 0; gap: 6px; min-width: 0; }
  .services-nav__link .icon { width: 20px; height: 20px; color: #fff; opacity: .92; }
  .services-nav__link:hover, .services-nav__link:focus-visible,
  .services-nav__item:hover > .services-nav__link, .services-nav__item.is-open > .services-nav__link { background: var(--red); color: #fff; }
  .services-nav__item:hover > .services-nav__link .icon, .services-nav__item.is-open > .services-nav__link .icon { color: #fff; }
  .services-nav__link:focus-visible { outline-offset: -3px; outline-color: #fff; }
  .sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 58px; color: #fff; opacity: .9; margin-left: -6px; padding-right: 4px; }
  .sub-toggle .icon { width: 16px; height: 16px; transition: transform var(--dur); }
  .services-nav__item.is-open .sub-toggle .icon { transform: rotate(180deg); }
  .services-nav__item:hover > .sub-toggle, .services-nav__item.is-open > .sub-toggle { background: var(--red); }
  .sub {
    display: block; position: absolute; left: 0; top: 100%; min-width: 300px; background: #fff; border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-md); padding: 8px; z-index: 95;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
  }
  .services-nav__item:last-child .sub { left: auto; right: 0; }
  .services-nav__item:hover .sub, .services-nav__item.is-open .sub, .services-nav__item:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
  .sub a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; font-weight: 500; }
  .sub a:hover { background: var(--blue-50); color: var(--blue-900); text-decoration: none; }

  /* Hero */
  .hero { padding: 40px 0 44px; }
  .hero__grid { gap: 48px; }
  .eyebrow { font-size: 15px; max-width: 520px; }
  .hero h1 { font-size: 44px; margin: 12px 0 22px; }
  .principles { gap: 20px; margin-top: 28px; }
  .principles li { font-size: 13.5px; padding-left: 12px; }
  .principles b { font-size: 26px; }
  .slide figcaption { padding: 56px 24px 30px; }
  .slide figcaption a { font-size: 14.5px; }
  .slide figcaption strong { font-size: 20px; margin-bottom: 4px; }
  .slider__dots { bottom: 8px; }

  /* Offer */
  .offer { padding: 44px 0 40px; }
  .offer h2 { margin-bottom: 22px; }
  .offer__card { padding: 22px 20px; gap: 8px; }
  .offer__card .icon { width: 30px; height: 30px; }
  .offer__card h3 { font-size: 18px; }
  .offer__card p { font-size: 14px; }

  /* Stats */
  .stats { padding: 40px 0 12px; }
  .stats h2 { font-size: 26px; margin-bottom: 18px; }
  .stats__row { gap: 16px; }
  .stat { padding: 20px 20px 18px; }
  .stat__num { font-size: 42px; }
  .stat__label { font-size: 13.5px; }

  /* Clients: static grid instead of marquee */
  .clients { padding: 26px 0 36px; }
  .clients h2 { font-size: 28px; }
  .clients h2 .small { font-size: 18px; }
  .clients .marquee { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .clients .logo-list { display: grid; grid-template-columns: repeat(5, 1fr); width: auto; animation: none; gap: 12px; }
  .clients .logo-list [aria-hidden="true"] { display: none; }
  .clients .logo-tile { width: 92px; height: 92px; transition: transform var(--dur), box-shadow var(--dur); }
  .clients .logo-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

  /* Reviews */
  .reviews { padding: 44px 0 40px; }
  .section-head { margin-bottom: 22px; }
  .scroller-nav { display: flex; }
  .reviews__track li { flex-basis: 200px; }

  /* Partners */
  .partners { padding: 24px 0; }
  .partners__row { grid-template-columns: auto 1fr; gap: 36px; }
  .partners h2 { font-size: 15px; }

  /* Feed */
  .feed { padding: 44px 0 12px; }
  .tabs { display: none; }
  .feed__grid { grid-template-columns: 1.15fr 1.15fr .95fr; gap: 40px; }
  .feed__col { display: block; }
  .feed__head h2 { font-size: 22px; }
  .event { padding: 24px; }

  /* Videos */
  .videos { padding: 20px 0 44px; }
  .videos h2 { font-size: 26px; margin-bottom: 18px; }
  .videos__row { gap: 32px; }
  .video-card h3 { font-size: 17px; }

  /* Article */
  .article { padding: 44px 0 52px; }
  .prose { padding: 44px 48px 44px; }
  .prose h2 { font-size: 28px; margin-bottom: 16px; }
  .prose h3 { font-size: 19px; }
  .prose p { font-size: 15.5px; }
  .more-btn { display: none; }
  .prose__more[hidden] { display: block !important; }
  .split { margin-top: 24px; gap: 40px; }
  .check-grid { gap: 6px 16px; }
  .check-grid li { font-size: 14.5px; }
  .form-card { padding: 24px; }
  .fold { padding: 0 20px; }
  .fold summary { pointer-events: none; padding: 18px 0 10px; }
  .fold summary .icon { display: none; }
  .fold__title { font-size: 22px !important; }
  .fold__body { padding-bottom: 20px; }
  .divider { margin: 36px 0 28px; }

  /* Footer */
  .site-footer { padding: 36px 0 22px; }
  .footer__top { grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 40px; }
  .socials { grid-column: auto; }
  .footer__links { grid-template-columns: repeat(5, 1fr); margin-top: 28px; padding-top: 22px; }
}

/* ≥ 1200px: roomier services nav */
@media (min-width: 1200px) {
  .services-nav__link { padding: 0 16px; font-size: 14px; letter-spacing: .01em; gap: 8px; }
  .services-nav__link .icon { width: 22px; height: 22px; }
  .sub-toggle { width: 30px; margin-left: -4px; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .logo-list { animation: none; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .reveal { opacity: 1; transform: none; }
}
