/* ==========================================================
   365 INVEST — стили сайта
   ========================================================== */
:root {
  --navy-950: #061426;
  --navy-900: #081c30;
  --navy-800: #0d2a47;
  --navy-700: #123a60;
  --blue-600: #1f63a8;
  --blue-500: #2f7fd0;
  --blue-400: #4f9be6;
  --sky-200: #bfe0f6;
  --sky-100: #e4f1fb;
  --ink: #0f2233;
  --muted: #5b6b79;
  --line: #e2e8ee;
  --paper: #f5f7fa;
  --white: #ffffff;

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --shadow-sm: 0 2px 10px rgba(8, 28, 48, .06);
  --shadow: 0 24px 60px -20px rgba(8, 28, 48, .28);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--white); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: 22px; letter-spacing: -.02em; font-weight: 700; line-height: 1.2; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; color: var(--blue-600); }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--navy-900); color: #fff; border-radius: 10px; }
.skip-link:focus { top: 16px; }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-600);
}
.eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 127, 208, .15); }
.eyebrow--light { color: var(--sky-200); }
.eyebrow--light .eyebrow__dot { background: var(--sky-200); box-shadow: 0 0 0 4px rgba(191, 224, 246, .15); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); box-shadow: 0 10px 30px -10px rgba(31, 99, 168, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(31, 99, 168, .8); }
.btn--ghost { color: var(--ink); background: rgba(255, 255, 255, .7); border-color: var(--line); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { color: var(--navy-900); background: #fff; }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .45); }

/* ==========================================================
   HEADER
   ========================================================== */
.header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px var(--gutter); transition: padding .3s var(--ease); }
.header__inner {
  max-width: var(--container); margin: 0 auto; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 14px 0 22px; border-radius: 26px; border: 1px solid transparent;
  transition: background .3s, box-shadow .3s, border-color .3s, height .3s var(--ease);
}
.header.is-scrolled { padding-top: 10px; }
.header.is-scrolled .header__inner, .header.menu-open .header__inner {
  height: 72px; background: rgba(255, 255, 255, .82); border-color: rgba(226, 232, 238, .9);
  box-shadow: 0 12px 40px -18px rgba(8, 28, 48, .25); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
}
.header__logo img { height: 66px; width: auto; transition: height .3s var(--ease); }
.header.is-scrolled .header__logo img { height: 54px; }
.header__nav { display: flex; gap: 6px; }
.header__nav a { padding: 10px 16px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink); transition: background .2s; }
.header__nav a:hover { background: rgba(15, 34, 51, .06); }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__phone { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.header__phone:hover { color: var(--blue-600); }
.burger { display: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--navy-900); position: relative; }
.burger span { position: absolute; left: 15px; right: 15px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }
.mobile-menu {
  max-width: var(--container); margin: 8px auto 0; padding: 12px; display: grid; gap: 2px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 16px; border-radius: 14px; font-weight: 700; font-size: 18px; }
.mobile-menu a:hover { background: var(--paper); }
.mobile-menu__phone { color: var(--blue-600); }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; padding: calc(var(--header-h) + 64px) 0 56px; overflow: hidden; background: linear-gradient(180deg, #eef5fb 0%, #f7fafd 55%, #fff 100%); }
.hero__bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 420px at 85% 20%, rgba(79, 155, 230, .22), transparent 70%),
    radial-gradient(500px 400px at 10% 90%, rgba(191, 224, 246, .55), transparent 70%);
}
.hero__bg::after { content: ""; position: absolute; inset: 0; opacity: .45;
  background-image: linear-gradient(rgba(15, 34, 51, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 34, 51, .05) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero__title { font-size: clamp(40px, 6.4vw, 88px); line-height: .98; letter-spacing: -.045em; }
.hero__title em { display: block; font-size: 1.08em; line-height: .95; font-weight: 500; }
.hero__lead { max-width: 540px; margin-top: 28px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__channels { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; color: var(--muted); }
.hero__channels > span { margin-right: 4px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 700; transition: border-color .2s, color .2s, transform .2s; }
.chip:hover { border-color: var(--blue-500); color: var(--blue-600); transform: translateY(-1px); }
.chip--max { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.chip--max:hover { color: #fff; background: var(--blue-600); border-color: var(--blue-600); }

.hero__visual { position: relative; justify-self: end; width: 100%; max-width: 500px; }
.hero__photo { position: relative; aspect-ratio: 4 / 5; border-radius: 240px 240px 32px 32px; overflow: hidden; box-shadow: var(--shadow); background: var(--sky-100); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; animation: heroZoom 1.6s var(--ease) both; }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(8, 28, 48, .35)); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: none; } }
.float-card {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  border-radius: 18px; background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 18px 44px -16px rgba(8, 28, 48, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: floatIn .9s var(--ease) .4s both;
}
.float-card strong { display: block; font-size: 15px; line-height: 1.25; }
.float-card small { display: block; color: var(--muted); font-size: 13px; }
.float-card--name { left: -44px; bottom: 44px; }
.float-card--tag { right: -24px; top: 26%; font-size: 14px; font-weight: 700; animation-delay: .6s; }
.float-card--tag svg { width: 22px; height: 22px; fill: none; stroke: var(--blue-600); stroke-width: 1.8; stroke-linejoin: round; }
.pulse { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #22c55e; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid #22c55e; animation: pulse 2s infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@keyframes floatIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__facts { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.hero__facts li { display: flex; gap: 16px; padding: 22px 24px; background: rgba(255, 255, 255, .75); border: 1px solid var(--line); border-radius: var(--r-lg); backdrop-filter: blur(8px); }
.hero__facts b { font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 600; color: var(--blue-500); line-height: 1.1; }
.hero__facts strong { display: block; font-size: 16px; }
.hero__facts span { font-size: 14px; color: var(--muted); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; padding: 22px 0; background: var(--navy-900); color: #fff; }
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-400); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.section-head__text { color: var(--muted); font-size: 18px; max-width: 440px; justify-self: end; }

/* ---------- bento directions ---------- */
.bento { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 32px;
  border-radius: var(--r-xl); background: var(--paper); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 10px 0 10px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile__num { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-600); }
.tile__icon { width: 60px; height: 60px; margin-bottom: auto; display: grid; place-items: center; border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.tile__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--blue-600); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile__icon + .tile__num { margin-top: 48px; }
.tile__link { margin-top: 20px; padding: 0; border: 0; background: none; align-self: flex-start; font-weight: 700; font-size: 15px; color: var(--blue-600); display: inline-flex; gap: 8px; }
.tile__link span { transition: transform .25s var(--ease); }
.tile__link:hover span { transform: translateX(5px); }

.tile--photo { grid-row: span 2; min-height: 620px; padding: 0; border: 0; color: #fff; justify-content: flex-end;
  background: linear-gradient(165deg, #1b4f82 0%, var(--navy-800) 45%, var(--navy-950) 100%); }
.tile__glow { position: absolute; width: 420px; height: 420px; left: 50%; top: -120px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(191, 224, 246, .45), transparent 65%); transition: transform 1s var(--ease); }
.tile--photo:hover .tile__glow { transform: translateX(-50%) scale(1.15); }
.skyline { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 72%; transition: transform 1s var(--ease); }
.skyline g { fill: rgba(255, 255, 255, .035); stroke: rgba(191, 224, 246, .38); stroke-width: 1.4; stroke-linecap: round; }
.tile--photo:hover .skyline { transform: translateY(-8px); }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(6, 20, 38, .92) 85%); }
.tile--photo .tile__body { position: relative; z-index: 1; padding: 36px; }
.tile--photo .tile__num { color: var(--sky-200); }
.tile--photo h3 { font-size: clamp(28px, 3vw, 40px); }
.tile--photo p { color: rgba(255, 255, 255, .78); max-width: 360px; }
.tile--photo .tile__link { color: #fff; }

.tile--wide { grid-column: span 2; min-height: 0; }
.tile--accent { background: linear-gradient(135deg, var(--navy-800), var(--blue-600)); color: #fff; border: 0; }
.tile--accent .tile__icon { background: rgba(255, 255, 255, .12); box-shadow: none; }
.tile--accent .tile__icon svg { stroke: #fff; }
.tile--accent .tile__num { color: var(--sky-200); }
.tile--accent p { color: rgba(255, 255, 255, .75); max-width: 420px; }
.tile__wide-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 40px; }
.tile--accent .tile__icon { margin-bottom: 0; }

/* ---------- expert ---------- */
.section--dark { position: relative; overflow: hidden; background: var(--navy-950); color: #fff; }
.section--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 500px at 90% 10%, rgba(47, 127, 208, .28), transparent 70%), radial-gradient(500px 500px at 0% 100%, rgba(47, 127, 208, .16), transparent 70%); }
.section--dark em { color: var(--sky-200); }
.expert { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.expert__photo { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; }
.expert__photo img { width: 100%; height: 100%; object-fit: cover; }
.expert__badge { position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 18px; background: rgba(6, 20, 38, .55); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.expert__badge img { width: auto; height: 38px; }
.expert__badge span { font-size: 13px; color: rgba(255, 255, 255, .8); text-align: right; }
.expert__lead { margin-top: 24px; font-size: 18px; color: rgba(255, 255, 255, .75); max-width: 560px; }
.expert__quote { margin: 32px 0 0; padding-left: 22px; border-left: 2px solid var(--blue-400); font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.3; color: #fff; }
.expert__list { list-style: none; margin: 36px 0 40px; padding: 0; display: grid; gap: 0; }
.expert__list li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .68); font-size: 15px; }
.expert__list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.expert__list span { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--sky-200); line-height: 1.2; }
.expert__list strong { display: block; color: #fff; font-size: 17px; margin-bottom: 2px; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.process__media { position: sticky; top: 110px; padding-bottom: 80px; }
.process__img { margin: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.process__img img { width: 100%; height: 100%; object-fit: cover; }
.process__img--main { aspect-ratio: 4 / 5; }
.process__img--main img { object-position: 55% 50%; }
.process__img--small { position: absolute; right: -24px; bottom: 0; width: 56%; aspect-ratio: 4 / 3; border: 6px solid #fff; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 30px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__num { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--sky-100); color: var(--blue-600); font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 22px; transition: background .3s, color .3s; }
.steps li:hover .steps__num { background: var(--blue-600); color: #fff; }
.steps h3 { margin-bottom: 6px; font-size: 22px; }
.steps p { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { padding: 0 0 clamp(80px, 10vw, 120px); }
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(40px, 6vw, 72px); border-radius: 40px; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; }
.cta__glow { position: absolute; width: 520px; height: 520px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(79, 155, 230, .55), transparent 65%); pointer-events: none; }
.cta__copy { position: relative; max-width: 680px; }
.cta h2 { font-size: clamp(30px, 4vw, 48px); }
.cta em { color: var(--sky-200); }
.cta p:not(.eyebrow) { margin-top: 18px; color: rgba(255, 255, 255, .72); font-size: 17px; }
.cta .btn { position: relative; flex: none; }

/* ---------- contacts ---------- */
.section--contacts { background: var(--paper); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__lead { margin-top: 22px; color: var(--muted); font-size: 18px; max-width: 460px; }
.contact__phone { display: inline-block; margin-top: 32px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.035em; transition: color .2s; }
.contact__phone:hover { color: var(--blue-600); }
.messengers { display: grid; gap: 10px; margin-top: 32px; max-width: 460px; }
.messenger { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.messenger:hover { border-color: var(--blue-500); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.messenger b { font-size: 17px; }
.messenger small { grid-column: 1; color: var(--muted); font-size: 13px; }
.messenger span { grid-column: 2; grid-row: 1 / 3; font-size: 20px; color: var(--blue-600); }
.messenger--max { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.messenger--max small { color: rgba(255, 255, 255, .65); }
.messenger--max span { color: var(--sky-200); }

.lead-form { display: grid; gap: 16px; padding: clamp(28px, 4vw, 44px); background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow); }
.lead-form h3 { font-size: 26px; margin-bottom: 4px; }
.lead-form__note { font-size: 13px; color: var(--muted); text-align: center; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0; }
.field input, .field select {
  width: 100%; min-height: 54px; padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper);
  font-size: 16px; transition: border-color .2s, background .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b79' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(47, 127, 208, .12); }
.field--radios { display: flex; flex-wrap: wrap; gap: 8px; }
.field--radios legend { width: 100%; margin-bottom: 8px; }
.field--radios label { position: relative; cursor: pointer; }
.field--radios input, .choices input { position: absolute; left: 0; top: 0; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0; margin: 0; opacity: 0; pointer-events: none; }
.field--radios span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; background: #fff; transition: all .2s; }
.field--radios input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.field--radios input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue-600); flex: none; }

/* ---------- footer ---------- */
.footer { padding: 72px 0 28px; background: var(--navy-950); color: rgba(255, 255, 255, .7); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__brand img { height: 64px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 320px; font-size: 14px; }
.footer__nav, .footer__contact { display: grid; align-content: start; gap: 12px; font-size: 15px; }
.footer__nav a:hover, .footer__contact button:hover { color: #fff; }
.footer__contact a { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.footer__contact button { padding: 0; border: 0; background: none; text-align: left; color: rgba(255, 255, 255, .7); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13px; color: rgba(255, 255, 255, .45); }

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

/* ==========================================================
   MODALS
   ========================================================== */
.modal { width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 40px; border: 0; border-radius: 28px; color: var(--ink); background: #fff; box-shadow: 0 40px 100px -20px rgba(6, 20, 38, .5); overflow: auto; }
.modal::backdrop { background: rgba(6, 20, 38, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .35s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--paper); font-size: 24px; line-height: 1; transition: background .2s; }
.modal__close:hover { background: var(--line); }
.modal__logo { width: auto; height: 56px; margin-bottom: 20px; }
.modal h2 { font-size: 30px; }
.modal__text { margin-top: 12px; color: var(--muted); }
.modal__phone { display: block; margin: 20px 0 24px; font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.quiz__progress { height: 4px; margin: 4px 52px 28px 0; border-radius: 4px; background: var(--line); overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--blue-500), var(--blue-400)); border-radius: 4px; transition: width .4s var(--ease); }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.quiz__count { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px; }
.modal--quiz h2 { font-size: clamp(24px, 4vw, 30px); margin-bottom: 24px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices label { position: relative; cursor: pointer; }
.choices span { display: flex; align-items: center; min-height: 64px; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 16px; font-weight: 700; font-size: 15px; line-height: 1.3; transition: all .2s; }
.choices label:hover span { border-color: var(--blue-400); }
.choices input:checked + span { border-color: var(--blue-500); background: var(--sky-100); color: var(--navy-800); }
.choices input:focus-visible + span { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.quiz__fields { display: grid; gap: 14px; margin-bottom: 18px; }
.modal--quiz .field--radios { margin-bottom: 18px; }
.quiz__nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; }
.quiz__nav[hidden] { display: none; }
.quiz__step--done { text-align: center; }
.done-icon { width: 72px; height: 72px; margin: 8px auto 20px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); }
.done-icon svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.quiz__done-text { color: var(--muted); margin: -12px 0 20px; }
.quiz__summary { white-space: pre-line; text-align: left; padding: 18px 20px; margin-bottom: 20px; border-radius: 16px; background: var(--paper); font-size: 14px; line-height: 1.6; }
.quiz__send { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.quiz__send .btn--ghost { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 100px; z-index: 200; padding: 14px 22px; border-radius: 14px; background: var(--navy-900); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .3s, transform .3s var(--ease); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.bento .reveal:nth-child(4), .steps .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .header__nav { display: none; }
  .burger { display: block; }
  .float-card--name { left: 16px; }
  .float-card--tag { right: 16px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { justify-self: center; max-width: 460px; }
  .hero__facts { grid-template-columns: 1fr; margin-top: 44px; gap: 10px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .section-head__text { justify-self: start; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--photo { grid-column: span 2; grid-row: auto; min-height: 440px; }
  .expert, .process, .contact { grid-template-columns: 1fr; }
  .expert__photo { max-width: 520px; }
  .process__media { position: relative; top: 0; max-width: 560px; order: 2; }
  .process__img--small { right: 0; }
  .cta { flex-direction: column; align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  body { font-size: 15px; padding-bottom: 84px; }
  .header { padding: 8px 12px; }
  .header__inner { padding: 0 8px 0 14px; border-radius: 20px; }
  .header.is-scrolled { padding-top: 8px; }
  .header.is-scrolled .header__inner, .header.menu-open .header__inner { height: 64px; }
  .header__logo img, .header.is-scrolled .header__logo img { height: 48px; }
  .header__phone, .header__actions .btn { display: none; }
  .burger { width: 44px; height: 44px; }
  .burger span { left: 13px; right: 13px; }
  .burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
  .burger[aria-expanded="true"] span:first-child, .burger[aria-expanded="true"] span:last-child { top: 21px; }

  .hero { padding: calc(var(--header-h) + 36px) 0 40px; }
  .hero__title { font-size: clamp(36px, 10.4vw, 48px); }
  .hero__lead { margin-top: 20px; font-size: 16px; }
  .hero__cta { flex-direction: column; margin-top: 28px; }
  .hero__cta .btn { width: 100%; }
  .hero__photo { border-radius: 200px 200px 28px 28px; }
  .float-card { padding: 11px 14px; border-radius: 14px; }
  .float-card--name { left: 12px; right: auto; bottom: 16px; }
  .float-card--tag { top: auto; bottom: 86px; right: 12px; font-size: 13px; }
  .hero__facts li { padding: 18px; }

  .bento { grid-template-columns: 1fr; gap: 12px; }
  .tile, .tile--photo, .tile--wide { grid-column: auto; }
  .tile { min-height: 0; padding: 26px; }
  .tile__icon + .tile__num { margin-top: 28px; }
  .tile--photo { min-height: 400px; }
  .tile--photo .tile__body { padding: 26px; }
  .tile__wide-body { flex-direction: column; align-items: flex-start; margin-top: 28px; }

  .expert__badge { flex-direction: column; align-items: flex-start; }
  .expert__badge span { text-align: left; }
  .expert .btn { width: 100%; }
  .steps li { grid-template-columns: 56px 1fr; padding: 24px 0; }
  .steps__num { width: 44px; height: 44px; font-size: 18px; }
  .process__media { padding-bottom: 56px; }
  .process__img--small { width: 60%; border-width: 4px; }
  .cta { border-radius: 28px; }
  .cta .btn { width: 100%; }

  .footer { padding-bottom: 110px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }

  .modal { padding: 28px 20px 22px; border-radius: 24px; }
  .choices { grid-template-columns: 1fr; }
  .choices span { min-height: 54px; }

  .mobile-bar {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px; border-radius: 20px;
    background: rgba(255, 255, 255, .9); border: 1px solid var(--line); box-shadow: 0 16px 40px -12px rgba(8, 28, 48, .35);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .mobile-bar a, .mobile-bar button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 0; }
  .mobile-bar a { background: var(--paper); }
  .mobile-bar svg { width: 18px; height: 18px; fill: var(--ink); }
  .mobile-bar button { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); color: #fff; }
  .toast { bottom: 96px; }
}
