/* Nick Zick — сайт у стилі референса eugenedev.dev: чорно-білий, Fira Sans Condensed, великий заголовок навколо фото,
   «занурення у воронку» на першому екрані, чат «Як я працюю», каруселька кейсів, питання, контакт. */
:root {
  --bg: #ffffff;
  --bg-muted: #f4f4f4;
  --ink: #0a0a0a;
  --text: #1a1a1a;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --ring: #d4d4d4;
  --dark: #0a0a0a;
  --dark-2: #141414;
  --dark-line: #272727;
  --dark-text: #ededed;
  --dark-muted: #8f8f8f;
  --ease: cubic-bezier(.22, .8, .25, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 72px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.5 "Fira Sans Condensed", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }
.container { width: 100%; max-width: 1304px; margin: 0 auto; padding: 0 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.path :focus-visible { outline-color: #fff; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.5;
  padding: 14px 44px; border-radius: 6px; border: 1px solid transparent; transition: background .25s, color .25s, transform .25s, box-shadow .25s; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-sm { font-size: 13px; padding: 10px 28px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-light { background: var(--bg); color: var(--ink); border-color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }
.btn-pill { border-radius: 999px; padding: 15px 28px; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #e9e9e9; }
.btn-block { width: 100%; justify-content: space-between; }

/* шапка */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled { border-color: var(--line); }
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { position: relative; font-size: 23px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1; padding-top: 6px; }
.logo b { display: inline-block; width: 6px; height: 6px; background: var(--ink); margin-left: 2px; }
.logo-dots { position: absolute; left: 1px; top: -2px; display: flex; gap: 3px; }
.logo-dots i { width: 3px; height: 3px; border-radius: 50%; background: #9a9a9a; }
.logo-sm { font-size: 19px; }
.nav { display: flex; gap: 34px; margin-left: auto; }
.nav a { font-size: 13px; font-weight: 300; color: var(--text); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; }
.lang-btn svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 12px 30px rgba(0, 0, 0, .08); min-width: 140px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s; }
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; font-size: 13px; }
.lang-menu button:hover, .lang-menu button[aria-selected="true"] { background: var(--bg-muted); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 6px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 23px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ===== ПЕРШИЙ ЕКРАН ===== */
.hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--bg); }
.hero-title { position: absolute; inset: 24svh 0 auto; padding: 0 12px; text-align: center; pointer-events: none; }
.tl { display: block; font-size: var(--tl-size, min(11.2vw, 20svh, 186px)); font-weight: 700; line-height: .98; letter-spacing: -.012em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color 1.2s var(--ease), opacity 1.2s var(--ease), transform .9s var(--ease); }
/* задній шар: активний рядок залитий, інший — контур (ховається за фото) */
.title-back { z-index: 1; }
.hero[data-line="1"] .title-back .l1, .hero[data-line="2"] .title-back .l2 { color: var(--ink); }
/* передній шар: контур активного рядка поверх фото */
.title-front { z-index: 3; }
.title-front .tl { opacity: 0; }
.hero[data-line="1"] .title-front .l1, .hero[data-line="2"] .title-front .l2 { opacity: 1; }
.hover-zone { position: absolute; left: 10%; right: 10%; pointer-events: auto; cursor: default; }
.hover-zone.z1 { top: -6%; bottom: 50%; } .hover-zone.z2 { top: 50%; bottom: -6%; }

.hero-row { position: absolute; inset: 68svh 0 auto; z-index: 1; display: flex; justify-content: center; pointer-events: none; }
.hero-row > * { pointer-events: auto; }
.hero-row { padding: 0 calc((100vw - min(58vw, 1180px)) / 2); justify-content: space-between; align-items: center; }
.hero-label { font-size: clamp(17px, 1.45vw, 21px); color: var(--ink); white-space: nowrap; }
.marquee { position: relative; overflow: hidden; max-width: 380px; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 24px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-size: 11px; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

.portrait { position: absolute; left: 50%; top: 40svh; z-index: 2; width: min(30vw, 44svh, 440px); transform: translateX(-50%); transform-origin: 50% 50%; will-change: transform; }
.portrait-inner { transform: scale(1.015); transform-origin: 50% 40%; will-change: transform; }
.portrait img { width: 100%; height: auto; filter: grayscale(1) contrast(1.04);
  -webkit-mask-image: linear-gradient(to bottom, #000 54%, transparent 86%); mask-image: linear-gradient(to bottom, #000 54%, transparent 86%); }

.hero-cta { position: absolute; inset: auto 0 5svh; z-index: 30; padding: 0 20px; }
.hero-buttons { display: flex; justify-content: center; gap: 12px; }
.hero-mobile-row { display: none; }

/* воронка */
.rings { position: absolute; left: 50%; top: 17svh; z-index: 0; width: max(93vw, 900px); height: auto; transform: translateX(-50%); overflow: visible; pointer-events: none; }
.rings .ring { transform-box: view-box; transform-origin: 670px 548px; transform: scale(2.7); opacity: 0;
  transition: transform .8s var(--ease), opacity .45s ease; }
.rings ellipse, .rings path { fill: none; stroke: var(--ring); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rings .well { stroke: none; opacity: 0; transition: opacity .35s ease; }
.vline { position: absolute; z-index: 1; width: 1px; height: 0; background: var(--ink); opacity: 0; transform: translateX(-.5px);
  transition: height .3s ease, opacity .2s; }

/* стан «занурення» */
.hero .title-back, .hero .title-front, .hero .hero-row, .hero .hero-cta { transition: opacity .45s ease, transform .6s var(--ease); }
.hero.dive .title-back, .hero.dive .title-front, .hero.dive .hero-row, .hero.dive .hero-cta { opacity: 0; transform: translateY(-16px); pointer-events: none; }
/* затримки лише «туди»: назад (rise) усе повертається одразу */
.hero.dive .rings .ring { transform: scale(1); opacity: 1;
  transition: transform 1.25s var(--ease) calc(.12s + var(--i) * .06s), opacity .7s ease calc(.12s + var(--i) * .06s); }
.hero.dive .rings .well { opacity: 1; transition: opacity .9s ease .95s; }
.hero.dive .vline { opacity: 1; height: var(--vline-h, 40svh); transition: height .7s var(--ease-io) 1.55s, opacity .2s 1.55s; }
.hero.dive .portrait { animation: dive 1.95s var(--ease-io) .18s forwards; }
.hero.rise .portrait { animation: rise .95s var(--ease) both; }
@keyframes dive {
  0%   { transform: translate(-50%, 0) scale(1); opacity: 1; }
  42%  { transform: translate(-50%, calc(var(--dy, 200px) * .5)) scale(.34); opacity: 1; }
  78%  { transform: translate(-50%, calc(var(--dy, 200px) * .93)) scale(.11); opacity: 1; }
  100% { transform: translate(-50%, var(--dy, 200px)) scale(.02); opacity: 0; }
}
@keyframes rise {
  from { transform: translate(-50%, var(--dy, 200px)) scale(.06); opacity: 0; }
  to   { transform: translate(-50%, 0) scale(1); opacity: 1; }
}
/* поява при завантаженні */
.hero.preload .tl { transform: translateY(26px); opacity: 0; }
.hero.preload .title-front .tl { opacity: 0; }
.hero.preload .portrait { transform: translate(-50%, 70px); opacity: 0; }
.hero.preload .hero-row, .hero.preload .hero-cta { opacity: 0; }
.hero .portrait { transition: transform 1.1s var(--ease) .3s, opacity .9s ease .3s; }
.hero .title-back .l2, .hero .title-front .l2 { transition-delay: .08s; }

/* ===== ЯК Я ПРАЦЮЮ (темний чат) ===== */
.path { position: relative; z-index: 5; background: var(--dark); color: var(--dark-text); padding: 150px 0 120px; }
.path-curve { position: absolute; left: -6%; right: -6%; top: -1px; height: clamp(46px, 7vw, 110px); background: var(--bg); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.path-title { font-size: clamp(17px, 1.4vw, 20px); font-weight: 400; line-height: 1.45; color: #f2f2f2; max-width: 360px; }
.chat { max-width: 880px; margin: 36px auto 0; }
.msg { display: flex; align-items: flex-end; gap: 12px; margin: 18px 0; opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s var(--ease); }
.msg.show { opacity: 1; transform: none; }
.msg.client { justify-content: flex-end; }
.av { width: 30px; height: 30px; border-radius: 50%; flex: none; overflow: hidden; background: #2a2a2a; display: grid; place-items: center; }
.av img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.av.client::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9a9a9a; }
.bubble { max-width: 540px; padding: 12px 16px; border-radius: 14px; font-size: 15px; line-height: 1.45; border: 1px solid var(--dark-line); }
.client .bubble { background: #1e1e1e; color: #f4f4f4; }
.me .bubble { background: var(--dark-2); color: #e9e9e9; }
.typing { display: inline-flex; gap: 4px; padding: 15px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #777; animation: blink 1.1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.pcard { width: 330px; max-width: 100%; background: #111; border: 1px solid var(--dark-line); border-radius: 14px; padding: 16px 18px; }
.pcard-head { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.pcard-head .spin { width: 14px; height: 14px; border: 1.5px solid #444; border-top-color: #ddd; border-radius: 50%; animation: spin 1s linear infinite; }
.pcard-head svg { width: 16px; height: 16px; fill: none; stroke: #ddd; stroke-width: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.ci { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #d6d6d6; padding: 4px 0; opacity: .35; transition: opacity .4s; }
.ci.on { opacity: 1; }
.ci svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #cfcfcf; stroke-width: 1.6; }
.pcard-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--dark-line); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #9a9a9a; opacity: 0; transition: opacity .4s; }
.pcard-foot.on { opacity: 1; }
.flow { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #1a1a1a; border-radius: 10px; padding: 18px 14px; margin-bottom: 14px; overflow: hidden; }
.flow::before { content: ""; position: absolute; left: 22%; right: 22%; top: 50%; height: 1px; background: #3a3a3a; }
.flow span { position: relative; z-index: 1; font-size: 11px; color: #dcdcdc; background: #232323; border: 1px solid #353535; border-radius: 8px; padding: 6px 9px; white-space: nowrap; }
.flow .pulse { position: absolute; z-index: 2; top: calc(50% - 3px); left: 22%; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: pulse 2.4s var(--ease-io) infinite; }
@keyframes pulse { 0% { left: 22%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { left: 77%; opacity: 0; } }
.chat-more { display: flex; justify-content: center; margin-top: 34px; min-height: 52px; }
.chat-more .btn[hidden] { display: none; }
.path-tip { position: absolute; left: 0; bottom: -118px; width: 100%; height: 120px; fill: var(--dark); z-index: 2; pointer-events: none; }

/* ===== КЕЙСИ ===== */
.cases { position: relative; background: var(--bg-muted); padding: 170px 0 70px; overflow: hidden; }
.cases-line { position: absolute; left: 50%; top: 0; width: 1px; height: 150px; background: var(--ink); transform: translateX(-.5px); }
.cases-title { font-size: clamp(17px, 1.4vw, 20px); font-weight: 400; color: var(--text); }
.carousel { position: relative; height: clamp(440px, 46vw, 620px); margin-top: 26px; perspective: 1600px; outline: none; touch-action: pan-y; user-select: none; }
.stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.ccase { position: absolute; left: 50%; top: 50%; width: clamp(220px, 21vw, 300px); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #ddd;
  box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .45); transition: transform .75s var(--ease), opacity .55s ease, filter .55s ease; cursor: pointer; }
.ccase img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ccase .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .35)); opacity: 0; transition: opacity .3s; }
.ccase.active:hover .play { opacity: 1; }
.ccase .play svg { width: 64px; height: 64px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .4)); }
.arrow { position: absolute; top: 50%; z-index: 20; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12); transition: transform .25s, box-shadow .25s; }
.arrow:hover { transform: scale(1.06); box-shadow: 0 14px 34px rgba(0, 0, 0, .16); }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arrow.prev { left: max(20px, calc(50% - 620px)); } .arrow.next { right: max(20px, calc(50% - 620px)); }
.case-info { max-width: 560px; margin: 26px auto 0; transition: opacity .3s; }
.case-info.swap { opacity: 0; }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.case-name { font-size: clamp(21px, 2vw, 27px); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
.case-head .btn { padding: 15px 26px; flex: none; }
.case-tag { margin-top: 18px; padding-top: 14px; border-top: 1px solid #e0e0e0; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.case-desc { margin-top: 8px; font-size: 15px; color: #333; }
.case-dots { display: flex; gap: 6px; margin-top: 18px; }
.case-dots button { width: 6px; height: 6px; border-radius: 6px; background: #c9c9c9; transition: width .3s, background .3s; }
.case-dots button[aria-selected="true"] { width: 22px; background: var(--ink); }
.cases-more { text-align: center; margin-top: 30px; font-size: 14px; }
.cases-more a { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ===== ПИТАННЯ ===== */
.faq { background: var(--bg-muted); padding: 60px 0 100px; }
.faq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 36px; }
.faq-head h2 { font-size: clamp(28px, 2.4vw, 35px); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.faq-aside { text-align: right; font-size: 13px; color: var(--muted); }
.faq-aside a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--ink); font-weight: 500; }
.faq-aside svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.faq-item { border-top: 1px solid #e2e2e2; }
.faq-item:last-child { border-bottom: 1px solid #e2e2e2; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; text-align: left; padding: 24px 0;
  font-size: clamp(20px, 2.15vw, 31px); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.faq-q .circ { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform .45s var(--ease), background .25s; }
.faq-q .circ svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.faq-q:hover .circ { background: #2a2a2a; }
.faq-q[aria-expanded="true"] .circ { transform: rotate(90deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { max-width: 780px; padding: 0 0 26px; font-size: 17px; color: #444; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }

/* ===== КОНТАКТ ===== */
.contact { background: var(--bg); padding: 100px 0 70px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; align-items: center; gap: 48px; }
.contact h2 { font-size: clamp(27px, 2.35vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; max-width: 420px; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ccard { background: linear-gradient(160deg, #fbfbfb, #f1f1f1); border-radius: 20px; padding: 28px; box-shadow: 0 1px 0 #fff inset, 0 24px 40px -30px rgba(0, 0, 0, .25); }
.cicon { width: 58px; height: 58px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .08); }
.cicon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ccard h3 { margin-top: 26px; font-size: 16px; font-weight: 600; }
.ccard p { margin-top: 8px; font-size: 13px; color: var(--muted); min-height: 40px; }
.ccard .btn { margin-top: 24px; }
.contact-note { grid-column: 1 / -1; justify-self: center; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.contact-note svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.contact-note a { color: var(--ink); border-bottom: 1px solid currentColor; }

/* ===== ПІДВАЛ ===== */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); padding: 30px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.copy { margin-top: 10px; font-size: 12px; color: var(--muted); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background .25s, color .25s; }
.socials a:hover { background: var(--ink); color: #fff; }
.si { width: 16px; height: 16px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.si-telegram { --m: url(../assets/icons/telegram.svg); } .si-instagram { --m: url(../assets/icons/instagram.svg); }
.si-tiktok { --m: url(../assets/icons/tiktok.svg); } .si-youtube { --m: url(../assets/icons/youtube.svg); } .si-linkedin { --m: url(../assets/icons/linkedin.svg); }
.footer-links { display: flex; gap: 18px; font-size: 12px; color: var(--text); }
.footer-links a:hover { text-decoration: underline; }

/* ===== ВІКНО З ВІДЕО ===== */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .86); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.mbox { position: relative; width: min(calc(84vh * 9 / 16), 440px, calc(100vw - 32px)); }
.mframe { aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; }
.mframe iframe { width: 100%; height: 100%; border: 0; display: block; }
.mclose { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 15px; }

/* ===== АДАПТИВ ===== */
@media (max-width: 1080px) {
  .nav { gap: 22px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact h2 { max-width: 640px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .container { padding: 0 20px; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a { font-size: 17px; font-weight: 400; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .burger { display: block; }
  .hero-title { inset: 21svh 0 auto; }
  .tl { font-size: var(--tl-size, clamp(40px, 13vw, 110px)); }
  .portrait { width: min(68vw, 40svh, 400px); top: 31svh; }
  .hero-row { display: none; }
  .hero-cta { inset: auto 0 3.5svh; }
  .hero-buttons { flex-direction: column; align-items: stretch; max-width: 420px; margin: 0 auto; gap: 10px; }
  .hero-mobile-row { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; }
  .hero-mobile-row .hero-label { font-size: 15px; }
  .rings { top: 22svh; width: 150vw; min-width: 0; }
  .path { padding: 110px 0 100px; }
  .faq-head { flex-direction: column; }
  .faq-aside { text-align: left; }
  .faq-q .circ { width: 40px; height: 40px; }
}
@media (max-width: 640px) {
  .header-actions .btn-sm { display: none; }
  .contact-cards { grid-template-columns: 1fr; }
  .case-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .arrow { width: 46px; height: 46px; margin-top: -23px; }
  .bubble { font-size: 14px; }
  .chat { margin-top: 24px; }
  .pcard { width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .flow .pulse, .typing i { animation: none; }
  .hero .portrait, .tl, .msg { transition: none; }
}

/* продовження лінії з воронки в білій дузі над чатом (видно лише після «занурення») */
.path-curve::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--well-x, 50vw) + 5.357%); /* дуга зсунута на -6% ширини і має 112% ширини */ width: 1px; background: var(--ink); opacity: 0; transition: opacity .3s; }
html.dived .path-curve::after { opacity: 1; }
