/* ELPAT — патентне агентство. Стиль першої (односторінкової) версії, перенесений на багатосторінковий сайт */
:root {
  --ink: #14142b; --text: #2a2a3c; --muted: #626277; --line: #e4e2ee; --bg: #faf9f6; --card: #fff; --soft: #efeef8;
  --accent: #7270ad; --accent-d: #5f5d9b; --accent2: #9d9be0; --gold: #c9a96a;
  --r: 18px; --pad: max(16px, calc((100% - 1180px) / 2)); --top-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mist: rgba(255,255,255,.72); --steel: #626277;
  --consent-bg: #fff; --consent-fg: #14142b; --consent-accent: #7270ad;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font: 400 17px/1.6 Manrope, system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 22px; }
h4 { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 40em; }
.prose { max-width: 42em; }
.prose p + p, .lead + .lead { margin-top: 1em; }
.prose > p:not(.lead) { color: var(--text); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.rule { display: block; width: 56px; height: 2px; margin-top: 18px; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: left; }
.js .rule { transform: scaleX(0); transition: transform .9s .15s var(--ease); }
.js .in .rule, .js .rule.in { transform: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s, color .25s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-main { background: var(--accent); color: #fff; }
.btn-main::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); }
.btn-line { border-color: var(--accent); color: var(--accent); background: #fff; }
:is(.hero, .section--dark, .cta, .drawer, .bar) .btn-line { border-color: rgba(255,255,255,.3); color: #fff; background: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--accent); }
.more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
:is(.section--dark, .cta) .more { color: var(--accent2); }

/* ---------- logo ---------- */
.logo { display: block; flex: none; width: 40px; height: 40px; border-radius: 10px; }
.logo-tile { fill: var(--accent); }
.logo .key { fill: #000; transform-origin: 0 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: #fff; }
.wordmark { display: flex; flex-direction: column; font: 700 21px/1 Manrope, sans-serif; letter-spacing: .1em; }
.wordmark b { font-weight: 700; }
.wordmark > span { white-space: nowrap; margin-top: 5px; font-size: 10.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--accent2); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 28px; height: var(--top-h); padding: 0 var(--pad); background: rgba(20,20,43,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(255,255,255,.06); color: #fff; transition: height .3s var(--ease); }
.top.slim { height: 64px; }
.progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.nav { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.nav a { position: relative; opacity: .8; padding: 6px 0; white-space: nowrap; transition: opacity .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent2); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a[aria-current] { opacity: 1; }
.nav a[aria-current]::after { transform: scaleX(1); }
.phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.phone svg { display: none; }
.phone::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5bd68a; animation: live 2.4s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(91,214,138,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(91,214,138,0); } }
.burger { display: none; place-items: center; width: 48px; height: 48px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2px; background: #fff; transition: transform .3s var(--ease), background-color .2s; }
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: fixed; inset: var(--top-h) 0 0 0; z-index: 49; background: var(--ink); color: #fff; padding: 8px var(--pad) 40px; overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-10px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
.menu-open .drawer { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.drawer a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 18px; font-weight: 500; }
.drawer a[aria-current] { color: var(--accent2); }
.drawer .drawer-contact { margin-top: 24px; color: rgba(255,255,255,.62); font-size: 15px; }
.drawer .drawer-contact a { display: inline; border: 0; padding: 0; font-size: inherit; font-weight: 700; color: #fff; }
.menu-open { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; padding: clamp(56px, 8vw, 110px) var(--pad); background: radial-gradient(1200px 600px at 85% 10%, #2c2a5c 0%, transparent 60%), var(--ink); color: #fff; }
.hero--plain { grid-template-columns: minmax(0, 1fr); }
.hero-text { position: relative; min-width: 0; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 66px); }
.hero--page h1 { font-size: clamp(34px, 4.4vw, 56px); }
.hero .kicker { color: var(--gold); }
.hero .lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.74); max-width: 560px; }
.hero .lede strong { font-weight: 600; color: var(--accent2); }
.hero-photo { position: relative; aspect-ratio: 4 / 4.2; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); }
.hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.hero-art { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; margin-left: auto; }
.hero-art svg { width: 100%; height: 100%; }
.hero-art .spin { transform-origin: 200px 200px; animation: spin 60s linear infinite; }
.hero-art .r { transform-origin: 200px 200px; transition: transform .6s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.crumbs a { text-decoration: underline; text-decoration-color: rgba(157,155,224,.5); text-underline-offset: 3px; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }

/* ---------- promise strip ---------- */
.promise { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0 var(--pad); background: #fff; border-bottom: 1px solid var(--line); }
.promise li { display: flex; align-items: center; gap: 12px; min-height: 84px; padding: 0 20px; font-weight: 700; border-left: 1px solid var(--line); }
.promise li:first-child { border-left: 0; padding-left: 0; }
.check { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: var(--accent); color: #fff; stroke-width: 3.2; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) var(--pad); }
.section--grey { background: #fff; border-block: 1px solid var(--line); }
.section--dark { background: radial-gradient(900px 500px at 10% 0%, #2c2a5c 0%, transparent 60%), var(--ink); color: rgba(255,255,255,.74); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: rgba(255,255,255,.72); }
.section--dark .kicker { color: var(--gold); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head > div { max-width: 760px; }
.section-head .lead { max-width: 440px; font-size: 17px; }

/* ---------- service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.svc { --mx: 50%; --my: 50%; position: relative; height: 100%; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(360px circle at var(--mx) var(--my), rgba(114,112,173,.12), transparent 60%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.svc-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.svc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 26px 28px 28px; }
.svc-body p { color: var(--muted); font-size: 16px; flex: 1; }
.svc .more { margin-top: 10px; }
.svc:active { transform: scale(.985); }

/* ---------- dark about block ---------- */
.why { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.why-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 28px; }
.ticks { display: grid; gap: 14px; margin-top: 28px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.ticks .check { margin-top: 2px; }

/* ---------- numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats li { padding: 30px 0 30px 28px; border-right: 1px solid var(--line); }
.stats li:first-child { padding-left: 0; }
.stats li:last-child { border-right: 0; }
.stats b { display: block; font: 500 clamp(40px, 5vw, 60px)/1 "Playfair Display", Georgia, serif; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats span span { display: inline; }
.stats li > span { display: block; margin-top: 10px; color: var(--muted); font-size: 15px; }
.section--dark .stats, .section--dark .stats li { border-color: rgba(255,255,255,.1); }
.section--dark .stats b { color: #fff; }
.section--dark .stats li > span { color: rgba(255,255,255,.62); }

/* ---------- principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); counter-reset: pr; }
.principles li { counter-increment: pr; position: relative; padding: 40px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.principles li::before { content: "0" counter(pr); display: flex; align-items: center; gap: 10px; font: 500 15px "Playfair Display", Georgia, serif; color: var(--accent); margin-bottom: 22px; }
.principles li::after { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.principles h3 { margin-bottom: 10px; }
.principles p { color: var(--muted); font-size: 16px; }
.section--grey .principles li:hover { background: var(--bg); }

/* ---------- clients ---------- */
.clients-band { padding: clamp(56px, 7vw, 90px) 0; overflow: hidden; }
.areas-label { padding: 0 var(--pad); margin-bottom: 30px; font-size: clamp(30px, 4.4vw, 52px); }
.marquee { display: flex; width: max-content; }
.marquee-row { display: flex; gap: 16px; padding-right: 16px; flex: none; }
.clients-band img { width: 132px; height: 132px; object-fit: contain; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.clients-band > p { padding: 26px var(--pad) 0 !important; }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.clients li { aspect-ratio: 1; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .3s, transform .4s var(--ease); }
.clients img { width: 86%; height: 86%; object-fit: contain; }

/* ---------- consultation band ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 120px) var(--pad); background: var(--ink); color: #fff; }
.cta::before { content: "®"; position: absolute; right: -40px; bottom: -140px; font: 500 520px/1 "Playfair Display", Georgia, serif; color: rgba(157,155,224,.07); pointer-events: none; }
.cta-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 22px; }
.cta-text > p { color: rgba(255,255,255,.72); font-size: 19px; max-width: 520px; }
.ways { display: grid; gap: 14px; }
.way { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); transition: background .25s, border-color .25s, transform .25s var(--ease); }
.way i { flex: none; width: 48px; height: 48px; border-radius: 12px; background: rgba(157,155,224,.15); display: grid; place-items: center; color: var(--accent2); transition: transform .4s var(--ease); }
.way i svg { width: 22px; height: 22px; }
.way small { display: block; color: rgba(255,255,255,.58); font-size: 13px; }
.way b { font-size: 18px; font-weight: 700; }
.way::after { content: "→"; margin-left: auto; color: var(--accent2); opacity: 0; transform: translateX(-8px); transition: .3s var(--ease); }
.way:active { transform: scale(.98); }

/* ---------- inner pages ---------- */
.tasks { display: flex; flex-wrap: wrap; gap: 10px; padding: 22px var(--pad); background: #fff; border-bottom: 1px solid var(--line); }
.tasks li { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--soft); color: var(--ink); font-weight: 600; font-size: 15px; }
.tasks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.split h2 + .rule { margin-bottom: 26px; }
.split-photo { position: sticky; top: 100px; }
.split-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 28px; }
.portrait img { object-position: 50% 20%; }
.block + .block { margin-top: 56px; }
.cite { position: relative; padding: 4px 0 4px 28px; font: italic 500 clamp(21px, 2.3vw, 28px)/1.4 "Playfair Display", Georgia, serif; color: var(--ink); }
.cite::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.cite footer { margin-top: 20px; font: 500 15px Manrope, sans-serif; color: var(--muted); }
.equal { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.equal li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-weight: 600; font-size: 15px; }
.equal li:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.cards.cards--sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.cards li { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.cards figure { aspect-ratio: 16 / 11; overflow: hidden; background: var(--soft); }
.cards figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cards figure.contain img { object-fit: contain; padding: 12%; background: #fff; }
.cards .c-body { display: grid; gap: 10px; padding: 24px 26px 28px; }
.cards p { color: var(--muted); font-size: 16px; }
.section--grey .cards li { background: var(--bg); }

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.reasons li { padding: 30px 28px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); transition: background .25s, border-color .25s; }
.reasons h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.reasons h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.reasons p { color: rgba(255,255,255,.68); font-size: 16px; }

.systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.system { display: flex; flex-direction: column; gap: 14px; padding: 34px 30px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); }
.system > p { color: var(--muted); font-size: 16px; }
.system h4 { margin-top: 6px; }
.pros, .cons { display: grid; gap: 10px; font-size: 16px; }
.pros li, .cons li { display: flex; gap: 10px; align-items: flex-start; }
.pros .check { margin-top: 2px; }
.cons li::before { content: "–"; width: 22px; text-align: center; font-weight: 800; color: #b3261e; flex: none; }

/* ---------- prices ---------- */
.price-top { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; padding: clamp(26px, 3.5vw, 40px); margin-bottom: 20px; border-radius: var(--r); background: radial-gradient(700px 300px at 90% 0%, #2c2a5c 0%, transparent 60%), var(--ink); color: #fff; }
.price-top p { max-width: 30em; font-size: 18px; color: rgba(255,255,255,.72); }
.price-top b { font: 500 clamp(40px, 5vw, 60px)/1 "Playfair Display", Georgia, serif; white-space: nowrap; }
.price-top .btn { margin-left: auto; }
.tariffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.tariff { display: flex; flex-direction: column; gap: 6px; padding: 32px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.section--grey .tariff { background: var(--bg); }
.tariff .sub { color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.plist li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.plist li span:last-child { max-width: 50%; text-align: right; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.plist li.sub-item { padding-left: 14px; color: var(--muted); font-size: 14px; }
.plist li.head { border-top: 0; padding-top: 18px; }
.plist li.head span:last-child { max-width: none; text-align: left; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.tariff .btn { margin-top: 18px; }
.note { margin-top: 22px; padding: 16px 20px; border-radius: 14px; background: var(--soft); border-left: 3px solid var(--accent); font-size: 15px; color: var(--text); }
.ptable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; -webkit-overflow-scrolling: touch; }
.ptable { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.ptable th, .ptable td { padding: 12px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ptable thead th { background: var(--ink); color: #fff; font-weight: 700; }
.ptable td:not(:first-child), .ptable thead th:not(:first-child) { width: 16%; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ptable td:last-child { font-weight: 700; color: var(--ink); }
.ptable .grp th { background: var(--soft); color: var(--accent-d); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ptable .sub td:first-child { padding-left: 36px; color: var(--muted); }
details.more-table { margin-top: 24px; }
details.more-table > summary { display: inline-flex; align-items: center; gap: 12px; padding: 12px 0; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
details.more-table > summary::-webkit-details-marker { display: none; }
details.more-table > summary::after { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 1.2rem; transition: transform .3s var(--ease); }
details.more-table[open] > summary::after { transform: rotate(45deg); }

/* ---------- process ---------- */
.proc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.proc li { counter-increment: st; position: relative; padding: 28px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.proc li::before { content: counter(st); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 50%; background: var(--soft); color: var(--accent); font: 500 20px "Playfair Display", Georgia, serif; transition: background .4s, color .4s; transition-delay: calc(var(--d, 0) * .15s); }
.proc.in li::before { background: var(--accent); color: #fff; }
.proc h3 { font-size: 19px; margin-bottom: 10px; }
.proc h3::first-letter { text-transform: uppercase; }
.proc p { color: var(--muted); font-size: 15px; }

/* ---------- copyright ---------- */
.objects { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.objects li { padding: 22px 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; }
.objects b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 17px; }
.objects span { color: var(--muted); font-size: 15px; }
.copy-sign { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.copy-sign .big-c { font: 500 clamp(130px, 17vw, 230px)/.8 "Playfair Display", Georgia, serif; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 960px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .3s, background .3s; }
.faq details[open] { background: #fff; border-color: var(--accent2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; padding: 20px 24px; font-weight: 700; font-size: 17px; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-size: 1.3rem; font-weight: 400; transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq .a { padding: 0 24px 22px; color: var(--muted); font-size: 16px; }
.faq .a p + p, .faq .a p + ul, .faq .a ul + p { margin-top: .8em; }
.faq .a ul { display: grid; gap: 8px; margin-top: .8em; padding-left: 1.2em; list-style: disc; }
.faq .a li::marker { color: var(--accent); }

/* ---------- other services ---------- */
.others { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.others a { display: flex; align-items: center; gap: 14px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, transform .25s var(--ease); }
.others img { width: 60px; height: 60px; flex: none; object-fit: cover; border-radius: 10px; }
.others b { font: 600 18px/1.2 "Playfair Display", Georgia, serif; color: var(--ink); }

/* ---------- contacts ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 30px; align-items: start; }
.form, .card-info { padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.section--grey .form, .section--grey .card-info { background: var(--bg); }
.form h2, .card-info h2 { font-size: clamp(28px, 3vw, 38px); }
.form h2 { margin-bottom: 26px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field input, .field textarea { font: inherit; width: 100%; min-height: 52px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field :is(input, textarea):focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(114,112,173,.18); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: 14px; font-weight: 600; }
.form .btn { width: 100%; }
.form-note { margin-top: 14px; color: var(--muted); font-size: 14px; }
.card-info > p { margin-top: 12px; color: var(--muted); }
.info { display: grid; gap: 22px; margin-top: 26px; }
.info dt { margin-bottom: 4px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info dd { font-size: 17px; font-weight: 700; color: var(--ink); }
.info dd a { display: inline-block; padding: 4px 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c5c3d3; }
.status.open::before { background: #3cb371; animation: live 2.4s infinite; }
.map-box { position: relative; display: grid; place-items: center; height: 300px; margin-top: 26px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: #e9e7f2 radial-gradient(circle at 50% 46%, rgba(114,112,173,.18), transparent 45%); }
.map-box::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(114,112,173,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(114,112,173,.12) 1px, transparent 1px); background-size: 36px 36px; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-box .btn { position: relative; }

/* ---------- document pages ---------- */
.doc { max-width: 760px; }
.doc .crumbs { color: var(--muted); }
.doc h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 40px 0 14px; }
.doc p + p { margin-top: 1em; }
.doc ul { display: grid; gap: 8px; padding-left: 1.2em; list-style: disc; }
.doc a, .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.foot { padding: clamp(48px, 6vw, 72px) var(--pad) 32px; background: var(--ink); color: rgba(255,255,255,.62); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot .brand { margin-bottom: 18px; }
.foot h2 { margin-bottom: 14px; font: 700 13px Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.foot ul { display: grid; gap: 4px; }
.foot li a { display: inline-block; padding: 4px 0; }
.social { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 6px 0; color: #fff; font-weight: 700; }
.social svg { width: 20px; height: 20px; color: var(--accent2); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-bottom a, .foot-bottom button { display: inline-flex; align-items: center; min-height: 32px; }
.foot-bottom button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font-size: 14px; }
.bar { display: none; }

/* ---------- hover only where a mouse exists ---------- */
@media (hover: hover) {
  .btn-main:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(114,112,173,.7); }
  .btn-main:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }
  .btn-line:hover { background: var(--accent); color: #fff; }
  :is(.hero, .section--dark, .cta) .btn-line:hover { border-color: #fff; background: rgba(255,255,255,.06); }
  .nav a:hover { opacity: 1; }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .more:hover svg, a:hover .more svg { transform: translateX(4px); }
  .hero-art:hover .r { transform: rotate(-12deg) scale(1.05); }
  .svc:hover, .cards li:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(20,20,43,.35); border-color: transparent; }
  .svc:hover::before { opacity: 1; }
  .svc:hover .svc-photo img, .cards li:hover figure img { transform: scale(1.05); }
  .principles li:hover::after { transform: scaleX(1); }
  .reasons li:hover { background: rgba(255,255,255,.04); border-color: var(--accent2); }
  .way:hover { background: rgba(255,255,255,.05); border-color: var(--accent2); }
  .way:hover i { transform: rotate(-10deg) scale(1.08); }
  .way:hover::after { opacity: 1; transform: none; }
  .clients li:hover, .others a:hover { border-color: var(--accent2); transform: translateY(-3px); }
  .info dd a:hover { color: var(--accent); background-size: 100% 1px; }
  .foot a:hover, .foot button:hover { color: #fff; }
  .crumbs a:hover { color: #fff; }
}

/* ---------- motion (only if the visitor did not ask to reduce it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .w > span { animation: rise 1s calc(.1s + var(--i) * .06s) var(--ease) both; }
  @keyframes rise { from { transform: translateY(105%); } }
  .hero .lede, .hero .actions, .crumbs, .hero .kicker { animation: fade .9s .45s var(--ease) both; }
  .hero .actions { animation-delay: .6s; }
  .hero-photo, .hero-art { animation: fade 1.2s .35s var(--ease) both; }
  .hero-photo img { animation: settle 2.4s var(--ease) both; }
  @keyframes fade { from { opacity: 0; transform: translateY(16px); } }
  @keyframes settle { from { transform: scale(1.1); } }
  .btn-main::after { animation: shine 5s ease-in-out 3s infinite; }
  @keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
  .js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-clip { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
  .js .reveal-clip.in { clip-path: inset(0); }
  .js .draw .check { transform: scale(0); transition: transform .5s var(--ease); transition-delay: calc(var(--d, 0) * .12s + .1s); }
  .js .draw.in .check { transform: none; }
  .js .stats li { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * .12s); }
  .js .stats.in li { opacity: 1; transform: none; }
  .marquee { animation: marquee 60s linear infinite; }
  .clients-band:hover .marquee { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .top .logo .key { animation: key-in 2.4s .3s cubic-bezier(.6,0,.2,1) both; }
  .top .logo { animation: key-click .6s 2.3s ease both; }
  .brand:hover .logo .key { animation: key-turn 1.1s cubic-bezier(.6,0,.2,1); }
  @keyframes key-in { 0% { transform: translateX(-140px); opacity: 0; } 12% { opacity: 1; } 45% { transform: translateX(6px); } 52%, 58% { transform: none; } 74% { transform: scaleY(-1); } 90%, 100% { transform: scaleY(1); } }
  @keyframes key-turn { 0% { transform: none; } 45% { transform: scaleY(-1); } 100% { transform: scaleY(1); } }
  @keyframes key-click { 0% { box-shadow: 0 0 0 0 rgba(157,155,224,.7); } 100% { box-shadow: 0 0 0 12px rgba(157,155,224,0); } }
}

/* ---------- layout breakpoints ---------- */
@media (max-width: 1360px) {
  .nav { display: none; }
  .burger { display: grid; }
}
@media (max-width: 1000px) {
  .services, .reasons, .systems, .tariffs, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why, .split, .contact, .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .split-photo { position: static; }
  .split-photo img, .why-photo img { aspect-ratio: 16 / 10; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .cta-grid { gap: 36px; }
}
@media (max-width: 860px) {
  :root { --top-h: 64px; }
  .top, .top.slim { height: var(--top-h); gap: 12px; }
  .top .phone { width: 44px; height: 44px; justify-content: center; font-size: 0; }
  .top .phone::before { display: none; }
  .top .phone svg { display: block; width: 22px; height: 22px; color: var(--accent2); }
  .hero, .hero--page { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; padding-bottom: 52px; }
  .hero-photo { order: 2; aspect-ratio: 16 / 10; border-radius: 22px; }
  .hero-art { display: none; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 46px); }
  .hero--page h1 { font-size: clamp(30px, 8.4vw, 40px); }
  .actions .btn { flex: 1 1 200px; }
  .promise { grid-template-columns: 1fr 1fr; padding: 6px var(--pad); }
  .promise li { min-height: 64px; padding: 0 0 0 12px; font-size: 14px; line-height: 1.35; }
  .promise li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .promise li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot li a { padding: 10px 0; }
  .crumbs a { display: inline-block; padding: 10px 0; }
  body { padding-bottom: 72px; }
  .bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(20,20,43,.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.08); transform: translateY(110%); transition: transform .4s var(--ease); }
  .bar.show { transform: none; }
  .bar .btn { min-height: 50px; border-radius: 14px; padding: 0 10px; }
  .hug-consent { bottom: calc(86px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .services, .reasons, .systems, .tariffs, .proc, .principles, .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stats li, .stats li:first-child { display: flex; align-items: baseline; gap: 16px; padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats li:last-child { border-bottom: 0; }
  .section--dark .stats li { border-color: rgba(255,255,255,.1); }
  .stats b { font-size: 40px; min-width: 120px; }
  .stats li > span { margin-top: 0; }
  .principles li { padding: 28px 22px; }
  .form, .card-info { padding: 28px 22px; }
  .tariff { padding: 26px 22px; }
  .price-top .btn { margin-left: 0; width: 100%; }
  .copy-sign { grid-template-columns: minmax(0, 1fr); }
  .faq summary { padding: 16px 18px; font-size: 16px; }
  .faq .a { padding: 0 18px 18px; }
  .clients-band img { width: 104px; height: 104px; }
  .plist li span:last-child { white-space: normal; }
  .way { padding: 16px 18px; }
}
@media (max-width: 360px) {
  .wordmark { font-size: 18px; }
  .wordmark > span { font-size: 9px; letter-spacing: .12em; }
}
