*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Same palette and type as epesicrm.com */
:root {
  --bg:           #F7F6F2;
  --surface:      #FFFFFF;
  --surface-2:    #EEECEA;
  --ink:          #0F1923;
  --ink-2:        #1A2B4A;
  --muted:        #64748B;
  --accent:       #1D4ED8;
  --accent-h:     #1E40AF;
  --accent-lt:    #EFF6FF;
  --green:        #059669;
  --border:       #E5E7EB;
  --border-s:     #CBD5E1;
  --epe-green:    #2FBF71;
  --epe-green-d:  #1F9D5A;
  --epe-navy-d:   #081B2E;
  --epe-border:   #E2E8EE;
  /* Exo for titles, Titillium Web for everything else */
  --font-title:   'Exo', 'Titillium Web', system-ui, sans-serif;
  --font-body:    'Titillium Web', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.display { font-family: var(--font-title); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--epe-border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 69px; gap: 24px;
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { display: block; width: 128px; height: 28px; }
.nav-tag {
  font-family: var(--font-body); font-size: .65rem; font-weight: 700;
  letter-spacing: .04em; color: var(--epe-green-d);
  background: rgba(47,191,113,.12); border-radius: 100px; padding: 2px 8px;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin-inline-start: auto; }
.nav-links a {
  white-space: nowrap; font-size: .95rem; font-weight: 600; color: #111;
  text-decoration: none; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--epe-green-d); }
.nav-links a.nav-cta {
  background: var(--epe-green); color: var(--epe-navy-d);
  padding: 9px 18px; border-radius: 7px; font-weight: 700;
}
.nav-links a.nav-cta:hover { background: var(--epe-green-d); color: #fff; }
/* Phone menu: a checkbox toggles the dropdown. It stays focusable (visually hidden,
   not display:none) so it works from the keyboard. */
#navToggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.burger { display: none; color: #111; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
#navToggle:focus-visible + .burger { outline: 2px solid var(--epe-green); outline-offset: 2px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem;
  border-radius: 8px; padding: 12px 22px;
  text-decoration: none; border: none; cursor: pointer;
  transition: all .16s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(29,78,216,.32); }
.btn-green { background: var(--epe-green); color: var(--epe-navy-d); font-weight: 700; }
.btn-green:hover { background: var(--epe-green-d); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1.5px solid var(--border-s); }
.btn-ghost:hover { border-color: var(--ink-2); background: var(--surface); }
.btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }

/* ── SECTION SHARED ── */
section { padding: 96px 0; }
.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.section-h {
  font-family: var(--font-title);
  font-size: clamp(1.875rem, 3.2vw, 2.625rem);
  font-weight: 700; letter-spacing: -.01em;
  color: var(--ink-2); line-height: 1.15; margin-bottom: 14px;
  text-wrap: balance;
}
.section-sub {
  font-size: 1.0625rem; color: var(--muted); line-height: 1.7; max-width: 600px;
}
.section-hd { margin-bottom: 56px; }

/* ── HERO ── */
.hero { padding: 76px 0 0; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: 56px; align-items: center; padding-bottom: 64px;
}
.hero-badge {
  display: flex; width: fit-content; align-items: center; gap: 8px;
  font-family: var(--font-body); line-height: 1.4;
  font-size: .8125rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--green); margin-bottom: 20px;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; flex-shrink: 0;
  background: var(--green); border-radius: 50%; display: inline-block;
}
.hero-h {
  font-family: var(--font-title);
  font-size: clamp(2.5rem, 4.5vw, 3.625rem);
  font-weight: 800; letter-spacing: -.02em;
  color: var(--ink-2); line-height: 1.08; margin-bottom: 22px;
}
.hero-h .blue { color: var(--accent); }
.hero-sub {
  font-size: 1.0625rem; color: var(--muted);
  line-height: 1.72; margin-bottom: 34px; max-width: 500px;
}
.hero-sub strong { color: var(--ink-2); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; }
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: .8125rem; color: var(--muted);
}
.trust-item .chk { color: var(--green); }

/* Hero card: what the client keeps */
.own-card {
  background: var(--surface); border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(15,25,35,.06), 0 12px 48px rgba(15,25,35,.18), 0 0 0 1px rgba(0,0,0,.06);
}
.own-head { background: var(--ink-2); padding: 22px 26px; }
.own-tag {
  display: inline-block; font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px; margin-bottom: 10px;
  background: rgba(255,255,255,.14); color: rgba(255,255,255,.85);
}
.own-title { font-family: var(--font-title); font-size: 1.375rem; font-weight: 700; color: #fff; line-height: 1.25; text-wrap: balance; }
.own-list { list-style: none; padding: 8px 26px; }
.own-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.own-list li:last-child { border-bottom: 0; }
.own-chk {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(47,191,113,.14); color: var(--epe-green-d);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; margin-top: 1px;
}
.own-list b { display: block; color: var(--ink-2); font-weight: 600; font-size: .9375rem; }
.own-list span.t { display: block; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.own-foot {
  background: var(--accent-lt); border-top: 1px solid var(--border);
  padding: 16px 26px; font-size: .875rem; color: var(--ink-2); line-height: 1.6;
}

/* ── STAT BAR ── */
.stat-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-n {
  font-family: var(--font-title); font-size: 2.375rem; font-weight: 700;
  color: var(--ink-2); letter-spacing: -.02em; line-height: 1; margin-bottom: 6px;
}
.stat-l { font-size: .875rem; color: var(--muted); }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-grid .section-hd { margin-bottom: 0; }
.about-grid .section-sub + .section-sub { margin-top: 16px; }
.crm-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px; display: flex; flex-direction: column;
}
.crm-tag {
  align-self: flex-start; font-size: .65rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px; margin-bottom: 18px;
  background: var(--accent); color: #fff;
}
.crm-card h3 { font-family: var(--font-title); font-size: 1.5rem; color: var(--ink-2); margin-bottom: 10px; line-height: 1.2; }
.crm-card p { font-size: .9375rem; color: var(--muted); line-height: 1.65; margin-bottom: 14px; }
.crm-card .btn { align-self: flex-start; margin-top: 8px; }
.crm-meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .8125rem; color: var(--muted); }

/* ── OWN, DON'T RENT ── */
.own-wrap { background: var(--ink-2); }
.own-wrap .eyebrow { color: #93C5FD; }
.own-wrap .section-h { color: #fff; }
.own-wrap .section-sub { color: rgba(255,255,255,.6); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px; padding: 28px 30px;
}
.why-card h3 {
  font-family: var(--font-title); font-size: 1.25rem; font-weight: 700; color: #fff;
  margin-bottom: 8px; display: flex; gap: 10px; align-items: baseline;
}
.why-card h3 .chk { color: var(--epe-green); font-size: 1rem; }
.why-card p { font-size: .9375rem; color: rgba(255,255,255,.7); line-height: 1.65; }

/* ── SERVICES ── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px;
}
.feat-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--accent-lt); display: flex; align-items: center;
  justify-content: center; font-size: 1.0625rem; margin-bottom: 14px;
}
.feat-title { font-size: 1rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.feat-desc { font-size: .9rem; color: var(--muted); line-height: 1.62; }

/* ── PROCESS ── */
.process-wrap { background: var(--surface); }
.process-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.process-grid .section-hd { margin-bottom: 32px; }
.steps { list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 20px 0; padding-inline-start: 44px; font-size: .9375rem; color: var(--muted); line-height: 1.6;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-lt); color: var(--accent);
  font-size: .8125rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps b { display: block; color: var(--ink-2); font-weight: 600; }
.kick-card {
  background: var(--ink); border-radius: 12px; padding: 36px 34px;
  box-shadow: 0 12px 40px rgba(15,25,35,.18); color: #fff;
}
.kick-card .own-tag { margin-bottom: 16px; }
.kick-card h3 { font-family: var(--font-title); font-size: 1.5rem; font-weight: 700; line-height: 1.25; margin-bottom: 12px; text-wrap: balance; }
.kick-card p { font-size: .9375rem; color: rgba(255,255,255,.7); line-height: 1.7; margin-bottom: 14px; }
.kick-card ul { list-style: none; margin: 6px 0 26px; }
.kick-card li { display: flex; gap: 9px; font-size: .9rem; color: rgba(255,255,255,.8); padding: 5px 0; }
.kick-card li .chk { color: var(--epe-green); flex-shrink: 0; }

/* ── CONTACT ── */
.contact-wrap { background: var(--surface-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
.addr-card, .form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 32px;
}
.addr-card h3 { font-family: var(--font-title); font-size: 1.375rem; color: var(--ink-2); margin-bottom: 12px; }
.addr-card address { font-style: normal; color: var(--ink); line-height: 1.8; }
.addr-card p { margin-top: 20px; font-size: .9375rem; color: var(--muted); line-height: 1.6; }
.addr-card a, .form-msg a { font-weight: 600; text-decoration: none; }
.addr-card a:hover, .form-msg a:hover { text-decoration: underline; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-s); border-radius: 8px;
  font-size: 1rem; font-family: inherit; color: var(--ink); background: #FBFBFA;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; background: #fff; }
.field textarea { resize: vertical; min-height: 140px; }
/* Honeypot: clipped away for people (not moved off-screen, which makes right-to-left pages scroll sideways), still filled in by naive bots */
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* reCAPTCHA's checkbox widget is a fixed 304x78; reserve the space so nothing jumps */
.captcha { min-height: 78px; margin-bottom: 20px; display: flex; align-items: center; font-size: .875rem; color: var(--muted); }
.form-msg { margin-top: 16px; font-size: .9375rem; padding: 12px 14px; border-radius: 8px; display: none; }
.form-msg.ok { display: block; background: #ECFDF5; color: #047857; }
.form-msg.err { display: block; background: #FEF2F2; color: #B91C1C; }

/* ── FOOTER ── */
footer { background: var(--ink); padding: 52px 0 0; }
.foot-inner {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 40px; padding-bottom: 48px;
}
.foot-brand {
  font-family: var(--font-title); font-weight: 700; font-size: 1.25rem;
  color: #fff; margin-bottom: 8px;
}
.foot-tagline { font-size: .875rem; color: rgba(255,255,255,.45); max-width: 280px; line-height: 1.6; }
.foot-grp h4 {
  font-size: .68rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: rgba(255,255,255,.35); margin-bottom: 14px;
}
.foot-grp ul { list-style: none; }
.foot-grp li { margin-bottom: 9px; }
.foot-grp a { font-size: .875rem; color: rgba(255,255,255,.55); text-decoration: none; transition: color .14s; }
.foot-grp a:hover { color: rgba(255,255,255,.9); }
.foot-grp address { font-style: normal; font-size: .875rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.foot-btm {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: rgba(255,255,255,.35);
}

.foot-btm a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot-btm a:hover { color: rgba(255,255,255,.7); }

/* ── COOKIE BANNER ── */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15,25,35,.18); padding: 18px 20px;
}
.cookie-bar[hidden] { display: none; }
.cookie-inner { display: flex; align-items: center; gap: 20px; }
.cookie-inner p { flex: 1; font-size: .9rem; color: var(--ink); line-height: 1.55; }
.cookie-inner p a { font-weight: 600; text-decoration: none; }
.cookie-inner p a:hover { text-decoration: underline; }
.cookie-btns { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-btns .btn { padding: 9px 18px; }

.hero-grid > *, .about-grid > *, .process-grid > *, .contact-grid > * { min-width: 0; }

/* ── RESPONSIVE ── */
/* The nav and language switcher collapse to the phone menu before the layout does, because
   the labels of other languages are longer */
@media (max-width: 1100px) {
  .nav-inner { gap: 12px; }
  .burger { display: block; order: 1; }
  .lang-switch { margin-inline-start: auto; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--epe-border); box-shadow: 0 8px 16px rgba(15,35,55,.08);
    flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 24px 20px;
    display: none;
  }
  .nav-links a { display: block; padding: 10px 0; border-bottom: 1px solid var(--epe-border); }
  .nav-links a.nav-cta { margin-top: 10px; text-align: center; border-bottom: 0; }
  #navToggle:checked ~ .nav-links { display: flex; }
}
@media (max-width: 1250px) and (min-width: 1101px) { .nav-links { gap: 18px; } }
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding-top: 48px; }
  .hero-grid, .about-grid, .process-grid, .contact-grid, .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-grid, .contact-grid { gap: 20px; }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .foot-inner { flex-wrap: wrap; justify-content: flex-start; column-gap: 56px; row-gap: 32px; }
  .foot-inner > :first-child { flex-basis: 100%; }
}
@media (max-width: 580px) {
  .container { padding: 0 16px; }
  .feat-grid { grid-template-columns: 1fr; }
  .crm-card, .addr-card, .form-card, .why-card, .kick-card { padding: 24px; }
  .own-head, .own-foot { padding-left: 20px; padding-right: 20px; }
  .own-list { padding: 4px 20px; }
  .stat-n { font-size: 1.875rem; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .cookie-btns .btn { flex: 1; justify-content: center; }
}
/* Shrink the fixed-width reCAPTCHA widget so it fits inside the card on narrow phones */
@media (max-width: 380px) {
  .captcha { transform: scale(.8); transform-origin: 0 0; min-height: 62px; }
}

/* ── LANGUAGE SWITCHER: a dropdown outside the menu, so it stays in the bar next to the burger on phones ── */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; line-height: 1.4; color: var(--ink-2);
  border: 1px solid var(--epe-border); border-radius: 7px; padding: 6px 10px; user-select: none;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch details[open] summary { border-color: var(--epe-green); color: var(--epe-green-d); }
.lang-switch summary:focus-visible { outline: 2px solid var(--epe-green); outline-offset: 2px; }
.lang-switch ul {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 250; min-width: 180px; list-style: none;
  background: #fff; border: 1px solid var(--epe-border); border-radius: 10px; padding: 6px;
  box-shadow: 0 12px 32px rgba(15,35,55,.14);
}
.lang-switch li a {
  display: block; padding: 8px 12px; border-radius: 6px; font-size: .92rem; font-weight: 600;
  color: #111; text-decoration: none; white-space: nowrap;
}
.lang-switch li a:hover { background: var(--surface-2); }
.lang-switch li a[aria-current] { background: rgba(47,191,113,.14); color: var(--epe-green-d); }
.lang-switch li a:focus-visible { outline: 2px solid var(--epe-green); outline-offset: -2px; }

/* ── OTHER SCRIPTS: Noto fallbacks (loaded by build.php); no letter-spacing, which breaks
   Arabic joining and looks wrong in CJK ── */
html[lang="ru"] { --font-title: "Exo 2", "Noto Sans", system-ui, sans-serif; --font-body: "Noto Sans", system-ui, sans-serif; }
html[lang="ar"] { --font-title: "Noto Sans Arabic", system-ui, sans-serif; --font-body: "Noto Sans Arabic", system-ui, sans-serif; }
html[lang="ja"] { --font-title: "Noto Sans JP", system-ui, sans-serif; --font-body: "Noto Sans JP", system-ui, sans-serif; }
html[lang="zh-CN"] { --font-title: "Noto Sans SC", system-ui, sans-serif; --font-body: "Noto Sans SC", system-ui, sans-serif; }
html[lang="ar"] *, html[lang="ja"] *, html[lang="zh-CN"] * { letter-spacing: normal !important; }
html[lang="ar"] .eyebrow, html[lang="ja"] .eyebrow, html[lang="zh-CN"] .eyebrow { text-transform: none; }
html[lang="ja"] body, html[lang="zh-CN"] body { line-height: 1.75; }
html[lang="ja"] .hero-h, html[lang="zh-CN"] .hero-h { line-height: 1.25; font-weight: 700; }
html[lang="ar"] .hero-h, html[lang="ar"] .section-h { line-height: 1.35; }

/* Right-to-left (Arabic): numbers, email and the reCAPTCHA widget stay left-to-right */
[dir="rtl"] .stat-n, [dir="rtl"] input[type="email"] { direction: ltr; }
[dir="rtl"] .field input[type="email"] { text-align: right; }
[dir="rtl"] .captcha { direction: ltr; }