/* ============================================================
   ГРОУВЕЙ — Консалтинг  (base: ui-ux-pro-max)
   Headings: Agbalumo (lat/digits) → Comfortaa (Cyrillic) · Body: Open Sans
   Green-forward · no gold · moderate radius · photo-rich
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Agbalumo&family=Comfortaa:wght@500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --green:    #2e7d33;
  --green-d:  #205c24;
  --green-l:  #5db062;
  --forest:   #143a20;
  --forest-2: #0e2a16;
  --wash:     #eef5ec;
  --cream:    #f6faf4;
  --paper:    #ffffff;
  --paper-2:  #eef3ec;
  --ink:      #15271a;
  --text:     #415045;
  --muted:    #66766b;
  --line:     #e1eae0;
  --line-d:   rgba(255,255,255,0.14);

  --head: 'Agbalumo', 'Comfortaa', system-ui, cursive;
  --body: 'Open Sans', system-ui, sans-serif;

  --r-sm: 8px;
  --r:    14px;
  --maxw: 1220px;
  --ease: cubic-bezier(0.16,1,0.3,1);
  --shadow: 0 22px 50px -26px rgba(20,58,32,0.5);
  --shadow-sm: 0 10px 26px -16px rgba(20,58,32,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* scroll-behavior:smooth не вмикаємо: сторінки перемикаються роутером,
   а плавний скрол заважає миттєво ставати на початок нової сторінки */
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); background: var(--paper); color: var(--text); line-height: 1.7; font-size: 16px; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
::selection { background: var(--green); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 6px; }

/* ───────── СТОРІНКИ В ОДНОМУ ФАЙЛІ (перемикає js/main.js) ───────── */
.page[hidden] { display: none !important; }
/* поява сторінки при переході — чистий CSS, перезапускається сама,
   бо блок щоразу виходить із display:none */
.page { animation: pageIn .45s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

/* ───────── LAYOUT ───────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
section { padding: 100px 0; position: relative; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.18; font-weight: 700; }
.h-display { font-size: clamp(36px, 5vw, 66px); line-height: 1.12; }
.h-section { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.16; }
.lead { font-family: var(--body); font-size: clamp(16px, 1.4vw, 19px); color: var(--muted); line-height: 1.75; max-width: 620px; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-inline: auto; text-align: center; }

.dark { position: relative; background: var(--forest); color: #dde6df; overflow: hidden; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lead { color: #b6c5b9; }
.dbg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0.16; }
.dark > .wrap { position: relative; z-index: 1; }

/* ───────── BUTTONS ───────── */
.btn { display: inline-flex; align-items: center; gap: 11px; font-family: var(--body); font-size: 15px; font-weight: 700; padding: 15px 28px; border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn .ar { display: inline-flex; transition: transform .3s var(--ease); }
.btn:hover .ar { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 14px 26px -14px rgba(46,125,51,0.75); }
.btn-primary:hover { background: var(--green-d); transform: translateY(-2px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); }
.btn-onphoto { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); backdrop-filter: blur(4px); }
.btn-onphoto:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light { background: #fff; color: var(--green-d); }
.btn-light:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.tlink { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; color: var(--green); }
.tlink svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.tlink:hover svg { transform: translateX(5px); }

/* ───────── REVEAL ───────── */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="img"] { transform: translateY(46px) scale(1.015); }
[data-d1]{transition-delay:.09s}[data-d2]{transition-delay:.18s}[data-d3]{transition-delay:.27s}[data-d4]{transition-delay:.36s}

/* ───────── NAV ───────── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0; transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease); }
.nav.scrolled { background: #ffffff; box-shadow: 0 6px 24px -12px rgba(20,58,32,0.32); padding: 9px 0; }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 50px; height: 50px; object-fit: contain; transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-6deg); }
.brand .logo-light { display: none; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.05; }
.brand .bt b { font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--ink); }
.brand .bt span { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 4px; font-family: var(--body); }
/* over dark hero (not scrolled): white logo + text */
.nav.on-dark:not(.scrolled) .logo-dark { display: none; }
.nav.on-dark:not(.scrolled) .logo-light { display: block; }
.nav.on-dark:not(.scrolled) .brand .bt b { color: #fff; }
.nav.on-dark:not(.scrolled) .brand .bt span { color: #cdd9ce; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-family: var(--body); font-size: 15px; font-weight: 600; color: var(--ink); position: relative; padding: 4px 0; transition: color .3s; }
.nav.on-dark:not(.scrolled) .nav-links a { color: #eef3ee; }
.nav-links a::after { content:''; position:absolute; left:0; bottom:-4px; width:100%; height:2px; background: var(--green); border-radius:2px; transform: scaleX(0); transform-origin:left; transition: transform .35s var(--ease); }
.nav.on-dark:not(.scrolled) .nav-links a::after { background: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav.on-dark:not(.scrolled) .nav-links a:hover, .nav.on-dark:not(.scrolled) .nav-links a.active { color: #fff; }
.nav-cta { background: var(--green); color: #fff !important; padding: 12px 22px; border-radius: var(--r-sm); font-weight: 700; box-shadow: 0 12px 22px -12px rgba(46,125,51,0.8); transition: background .3s var(--ease), transform .3s var(--ease); }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--green-d); transform: translateY(-2px); color:#fff !important; }
.burger { display: none; width: 30px; height: 22px; position: relative; background: none; border: none; cursor: pointer; z-index: 110; }
.burger span { position: absolute; left: 0; width: 100%; height: 2.5px; background: var(--ink); border-radius: 2px; transition: all .4s var(--ease); }
.nav.on-dark:not(.scrolled) .burger span { background: #fff; }
.burger span:nth-child(1){top:2px}.burger span:nth-child(2){top:10px}.burger span:nth-child(3){top:18px}
.burger.x span { background: #fff; }
.burger.x span:nth-child(1){top:10px;transform:rotate(45deg)}
.burger.x span:nth-child(2){opacity:0}
.burger.x span:nth-child(3){top:10px;transform:rotate(-45deg)}

/* ───────── HERO ───────── */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content:''; position:absolute; inset:0;
  background: linear-gradient(95deg, rgba(14,42,22,0.94) 0%, rgba(20,58,32,0.68) 50%, rgba(20,58,32,0.34) 100%),
              linear-gradient(180deg, rgba(14,42,22,0.5), rgba(14,42,22,0.72)); }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 130px 32px 70px; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lead { color: #dde7de; margin: 24px 0 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-trust .ht { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #e6eee7; font-weight: 600; }
.hero-trust .ht svg { width: 20px; height: 20px; color: var(--green-l); flex-shrink: 0; }
.scroll-cue { position: absolute; right: 34px; bottom: 56px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; color: rgba(255,255,255,0.7); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 48px; background: linear-gradient(rgba(255,255,255,0.7), transparent); }

/* ───────── FRAMED IMAGE ───────── */
.framed { position: relative; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.framed img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.framed:hover img { transform: scale(1.04); }

/* ───────── SPLIT ───────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.wide-text { grid-template-columns: 1.05fr 0.95fr; }
.split-media { position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-tag { position: absolute; left: 20px; bottom: 20px; z-index: 3; background: var(--green); color: #fff; padding: 16px 22px; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.split-tag .n { font-family: var(--head); font-size: 28px; line-height: 1; }
.split-tag .l { font-size: 12px; margin-top: 6px; opacity: 0.92; }
.rich p { font-size: 16.5px; line-height: 1.85; color: var(--text); margin-bottom: 16px; }
.dark .rich p { color: #c3cec5; }
.tick-list { margin: 28px 0 34px; display: grid; gap: 14px; }
.tick { display: flex; gap: 16px; align-items: flex-start; }
.tick .ti { flex-shrink: 0; width: 42px; height: 42px; border-radius: var(--r-sm); background: var(--wash); display: flex; align-items: center; justify-content: center; color: var(--green); }
.dark .tick .ti { background: rgba(255,255,255,0.1); color: var(--green-l); }
.tick .ti svg { width: 20px; height: 20px; }
.tick h4 { font-family: var(--body); font-size: 16.5px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.dark .tick h4 { color: #fff; }
.tick p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.dark .tick p { color: #aebbb0; }

/* ───────── SERVICES (photo cards) ───────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.svc { position: relative; aspect-ratio: 3/3.5; border-radius: var(--r); overflow: hidden; display: block; color: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(14,42,22,0.12) 0%, rgba(14,42,22,0.5) 50%, rgba(14,42,22,0.94) 100%); transition: background .4s var(--ease); }
.svc:hover img { transform: scale(1.07); }
.svc:hover::after { background: linear-gradient(180deg, rgba(20,58,32,0.28) 0%, rgba(20,58,32,0.62) 45%, rgba(20,58,32,0.96) 100%); }
.svc-body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 28px; }
.svc-no { font-family: var(--head); font-size: 14px; color: var(--green-l); margin-bottom: auto; padding-top: 2px; }
.svc h3 { color: #fff; font-size: 23px; line-height: 1.2; margin-bottom: 8px; }
.svc p { font-size: 14px; color: #d6e0d7; line-height: 1.6; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s var(--ease), opacity .4s, margin .5s var(--ease); }
.svc:hover p { max-height: 130px; opacity: 1; margin-bottom: 16px; }
.svc-go { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 13px; color: #fff; }
.svc-go i { width: 32px; height: 32px; border-radius: var(--r-sm); background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center; transition: background .3s var(--ease), transform .3s var(--ease); }
.svc:hover .svc-go i { background: var(--green); transform: translateX(3px); }
.svc-go svg { width: 15px; height: 15px; }

/* ───────── COOL FEATURE BAND ───────── */
.feature { position: relative; overflow: hidden; padding: 120px 0; background: var(--forest); }
.feature-bg { position: absolute; inset: 0; z-index: 0; }
.feature-bg img { width: 100%; height: 100%; object-fit: cover; }
.feature-bg::after { content:''; position:absolute; inset:0; background: linear-gradient(120deg, rgba(14,42,22,0.95) 0%, rgba(20,58,32,0.7) 60%, rgba(20,58,32,0.5) 100%); }
.feature .wrap { max-width: 1000px; }
.feature h2 { color: #fff; max-width: 18ch; margin-bottom: 18px; }
.feature p { color: #cfdace; font-size: 18px; max-width: 560px; margin-bottom: 48px; }
.fhl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.fhl { border-top: 2px solid rgba(255,255,255,0.2); padding-top: 22px; }
.fhl .fi { width: 40px; height: 40px; color: var(--green-l); margin-bottom: 16px; }
.fhl .fi svg { width: 100%; height: 100%; }
.fhl h4 { font-family: var(--head); font-size: 21px; color: #fff; margin-bottom: 8px; }
.fhl p { font-size: 14.5px; color: #b7c5ba; margin: 0; max-width: none; }

/* ───────── TIMELINE (process) ───────── */
.timeline { position: relative; margin-top: 20px; }
.tl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; }
.tl-line { position: absolute; top: 32px; left: 12%; right: 12%; height: 2px; background: var(--line); z-index: 0; }
.tl-step { position: relative; z-index: 1; text-align: center; }
.tl-dot { width: 66px; height: 66px; border-radius: 50%; background: #fff; border: 2px solid var(--green); color: var(--green); font-family: var(--head); font-size: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 22px; transition: all .35s var(--ease); position: relative; }
.tl-step:hover .tl-dot { background: var(--green); color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.tl-step h4 { font-family: var(--body); font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 9px; }
.tl-step p { font-size: 14.5px; color: var(--muted); line-height: 1.65; padding: 0 8px; }

/* ───────── PRINCIPLES (about, distinct from timeline) ───────── */
.prin { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.prin .p { border-top: 3px solid var(--green); padding-top: 24px; }
.prin .pn { font-family: var(--head); font-size: 34px; color: var(--green); line-height: 1; margin-bottom: 16px; }
.prin h4 { font-family: var(--head); font-size: 24px; color: var(--ink); margin-bottom: 12px; }
.prin p { font-size: 15px; color: var(--muted); line-height: 1.75; }

/* ───────── VALUES (dark columns) ───────── */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vcol { padding: 38px 32px; border-radius: var(--r); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.09); transition: background .35s var(--ease), transform .35s var(--ease); }
.vcol:hover { background: rgba(255,255,255,0.09); transform: translateY(-5px); }
.vcol .vi { width: 50px; height: 50px; border-radius: var(--r-sm); background: rgba(93,176,98,0.2); color: var(--green-l); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.vcol .vi svg { width: 26px; height: 26px; }
.vcol h4 { font-size: 22px; color: #fff; margin-bottom: 12px; }
.vcol p { font-size: 15px; color: #b4c1b6; line-height: 1.75; }

/* ───────── SERVICE DETAIL ───────── */
.sd-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 36px; margin: 8px 0 0; }
.sd-list li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: var(--text); line-height: 1.6; }
.sd-list li svg { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.sd-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.sd-step { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.sd-step .n { font-family: var(--head); font-size: 26px; color: var(--green); margin-bottom: 10px; }
.sd-step h4 { font-family: var(--body); font-weight: 700; font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.sd-step p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ───────── SERVICE DETAIL: extra blocks ───────── */
.sd-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sd-card { display: flex; gap: 14px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.sd-card:hover { border-color: var(--green); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.sd-card .ci { width: 42px; height: 42px; border-radius: 9px; background: var(--wash); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sd-card .ci svg { width: 20px; height: 20px; }
.sd-card span { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.out-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.out { padding: 34px 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.out:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.out .oi { width: 50px; height: 50px; border-radius: 10px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.out .oi svg { width: 25px; height: 25px; }
.out h4 { font-family: var(--body); font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.4; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) { .sd-cards { grid-template-columns: 1fr 1fr; } .out-grid, .rel-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .sd-cards { grid-template-columns: 1fr; } .rel-grid { grid-template-columns: 1fr; } }

/* ───────── SD LAYOUT VARIANTS ───────── */
/* zigzag with photos */
.zz { display: flex; flex-direction: column; gap: 30px; }
.zz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.zz-row.rev .zz-media { order: 2; }
.zz-media { aspect-ratio: 4/3; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); }
.zz-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.zz-row:hover .zz-media img { transform: scale(1.04); }
.zz-txt .n { font-family: var(--head); font-size: 30px; color: var(--green); line-height: 1; margin-bottom: 10px; }
.zz-txt h3 { font-size: 25px; margin-bottom: 10px; }
.zz-txt p { font-size: 15.5px; color: var(--muted); line-height: 1.7; }

/* horizontal numbered rows */
.hrow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; }
.hrow { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line); }
.hrow .n { font-family: var(--head); font-size: 28px; color: var(--green); line-height: 1.1; }
.hrow h4 { font-family: var(--body); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 5px; }
.hrow p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* photo band (content over darkened photo) */
.photo-band { position: relative; overflow: hidden; padding: 104px 0; }
.pb-bg { position: absolute; inset: 0; z-index: 0; }
.pb-bg img { width: 100%; height: 100%; object-fit: cover; }
.pb-bg::after { content:''; position:absolute; inset:0; background: linear-gradient(120deg, rgba(14,42,22,0.93), rgba(20,58,32,0.72)); }
.photo-band .wrap { position: relative; z-index: 1; }
.photo-band h2 { color: #fff; }

/* diagonal cards */
.diag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 42px; }
.diag-card { background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); transition: transform .45s var(--ease); display: flex; flex-direction: column; gap: 14px; }
.diag-card:nth-child(3n+1) { transform: rotate(-2.2deg); }
.diag-card:nth-child(3n+2) { transform: rotate(1.4deg); }
.diag-card:nth-child(3n+3) { transform: rotate(-1deg); }
.diag-card:hover { transform: rotate(0deg) translateY(-5px); }
.diag-card .ci { width: 44px; height: 44px; border-radius: 10px; background: var(--wash); color: var(--green); display: flex; align-items: center; justify-content: center; }
.diag-card .ci svg { width: 21px; height: 21px; }
.diag-card span { font-weight: 600; color: var(--ink); font-size: 15.5px; line-height: 1.45; }

/* horizontal outcome strip */
.hstrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.hstrip .hi { padding: 0 32px; border-left: 1px solid var(--line); }
.hstrip .hi:first-child { border-left: 0; padding-left: 0; }
.hstrip .hi .oi { width: 48px; height: 48px; border-radius: 10px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.hstrip .hi .oi svg { width: 24px; height: 24px; }
.hstrip .hi h4 { font-family: var(--body); font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.45; }

/* bento */
.bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; }
.bento .b-photo { grid-column: 1; grid-row: 1 / span 3; border-radius: var(--r); overflow: hidden; min-height: 300px; }
.bento .b-photo img { width: 100%; height: 100%; object-fit: cover; }
.bento .b-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; gap: 13px; align-items: center; transition: border-color .3s, transform .3s var(--ease); }
.bento .b-card:hover { border-color: var(--green); transform: translateY(-3px); }
.bento .b-card .ci { width: 40px; height: 40px; border-radius: 9px; background: var(--wash); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bento .b-card .ci svg { width: 19px; height: 19px; }
.bento .b-card span { font-weight: 600; color: var(--ink); font-size: 14.5px; line-height: 1.35; }

@media (max-width: 1024px) {
  .zz-row { grid-template-columns: 1fr; gap: 22px; } .zz-row.rev .zz-media { order: 0; }
  .hrow-grid { grid-template-columns: 1fr; }
  .diag-grid { grid-template-columns: 1fr; } .diag-card { transform: none !important; }
  .hstrip { grid-template-columns: 1fr; gap: 26px; } .hstrip .hi { border-left: 0; padding: 0; }
  .bento { grid-template-columns: 1fr; } .bento .b-photo { grid-row: auto; min-height: 240px; }
}

/* ───────── CTA ───────── */
.cta { position: relative; overflow: hidden; padding: 120px 0; }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-bg::after { content:''; position:absolute; inset:0; background: linear-gradient(100deg, rgba(14,42,22,0.94), rgba(20,58,32,0.64)); }
.cta .wrap { text-align: center; }
.cta h2 { color: #fff; max-width: 20ch; margin: 0 auto 18px; }
.cta p { color: #cfdace; max-width: 540px; margin: 0 auto 34px; font-size: 17px; }

/* ───────── PAGE HERO ───────── */
.phero { position: relative; padding: 175px 0 88px; overflow: hidden; background: var(--forest); }
.phero-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.32; }
.phero-bg img { width: 100%; height: 100%; object-fit: cover; }
.phero::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(14,42,22,0.55), var(--forest)); z-index: 1; }
.phero .wrap { z-index: 2; }
.phero h1 { color: #fff; }
.phero .lead { color: #c3cec5; margin-top: 18px; }
.crumb { display: flex; gap: 11px; font-size: 13px; color: #93ac98; margin-bottom: 22px; }
.crumb a:hover { color: #fff; } .crumb .c { color: var(--green-l); }

/* ───────── ACCORDION ───────── */
.acc { max-width: 860px; }
.acc-item { border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 12px; overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s; }
.acc-item.open { box-shadow: var(--shadow-sm); border-color: var(--green); }
.acc-h { padding: 24px 26px; cursor: pointer; display: flex; align-items: center; gap: 18px; background: #fff; }
.acc-h:hover { background: var(--cream); }
.acc-h .qn { font-family: var(--head); font-size: 17px; color: var(--green); width: 34px; flex-shrink: 0; }
.acc-h p { flex: 1; font-family: var(--head); font-size: 18px; color: var(--ink); }
.acc-h .pm { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.acc-h .pm::before, .acc-h .pm::after { content:''; position:absolute; background: var(--green); transition: transform .4s var(--ease); }
.acc-h .pm::before { top: 10px; left: 0; width: 22px; height: 2px; }
.acc-h .pm::after { left: 10px; top: 0; width: 2px; height: 22px; }
.acc-item.open .pm::after { transform: rotate(90deg); opacity: 0; }
.acc-b { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); background: #fff; }
.acc-b-in { padding: 0 26px 24px 60px; font-size: 15.5px; color: var(--muted); line-height: 1.8; }

/* ───────── CONTACT ───────── */
.cgrid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 54px; align-items: start; }
.cinfo { display: flex; gap: 18px; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); margin-bottom: 14px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.cinfo:hover { border-color: var(--green); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.cinfo .cii { width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--wash); color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cinfo .cii svg { width: 22px; height: 22px; }
.cinfo h4 { font-family: var(--body); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.cinfo p, .cinfo a { font-family: var(--head); font-size: 17px; color: var(--ink); }
.cinfo a:hover { color: var(--green); }
.cform { background: var(--cream); border-radius: var(--r); border: 1px solid var(--line); padding: 40px; }
.cform h3 { font-size: 26px; margin-bottom: 8px; }
.cform .sub { font-size: 14.5px; color: var(--muted); margin-bottom: 26px; }
.fld { margin-bottom: 18px; }
.fld label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.fld input, .fld textarea { width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; font-family: var(--body); font-size: 15px; color: var(--ink); transition: border-color .3s; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--green); }
.fld textarea { resize: vertical; min-height: 130px; }
.cform .btn { width: 100%; justify-content: center; }
.map { margin-top: 56px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 430px; border: 0; display: block; }

/* ───────── FOOTER ───────── */
.foot { background: var(--forest-2); color: #9fb3a4; padding: 84px 0 30px; position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.9fr 1.2fr; gap: 46px; padding-bottom: 42px; border-bottom: 1px solid var(--line-d); }
.foot-svc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.foot .brand .bt b { color: #fff; } .foot .brand .bt span { color: #8fa894; }
.foot-brand p { font-size: 14.5px; line-height: 1.8; margin-top: 20px; max-width: 320px; color: #93a796; }
.foot-col h5 { font-family: var(--body); color: #fff; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; }
.foot-col li { margin-bottom: 12px; }
.foot-col a { font-size: 14.5px; color: #9fb3a4; transition: color .3s, padding-left .3s var(--ease); }
.foot-col a:hover { color: var(--green-l); padding-left: 5px; }
.fc { display: flex; gap: 11px; margin-bottom: 14px; font-size: 14.5px; color: #9fb3a4; }
.fc svg { width: 17px; height: 17px; color: var(--green-l); flex-shrink: 0; margin-top: 3px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; }
.foot-bottom p { font-size: 13px; color: #6f8576; }

/* ───────── LEAVES ───────── */
.leaf { position: absolute; z-index: 5; pointer-events: none; color: var(--green); width: 46px; filter: drop-shadow(0 7px 9px rgba(14,42,22,0.3)); opacity: 0; transform: translateY(-100px) rotate(-35deg); }
.leaf.settled { opacity: 1; transform: translateY(0) rotate(var(--rot,0deg)); transition: opacity 1s var(--ease), transform 1.5s var(--ease); }
.leaf svg { width: 100%; height: auto; display: block; }
#leaf-fall { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }
.fleaf { position: absolute; top: -60px; will-change: transform; }
.fleaf svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 8px rgba(14,42,22,0.25)); }

/* ───────── RESPONSIVE ───────── */
@media (max-width: 1024px) {
  section { padding: 78px 0; }
  .split, .split.wide-text { grid-template-columns: 1fr; gap: 46px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .cols-3, .prin, .fhl-row, .sd-steps { grid-template-columns: 1fr; }
  .prin { gap: 30px; }
  .tl-grid { grid-template-columns: 1fr 1fr; gap: 36px 26px; }
  .tl-line { display: none; }
  .sd-list { grid-template-columns: 1fr; }
  .cgrid { grid-template-columns: 1fr; gap: 42px; }
}
@media (max-width: 1024px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
/* на сенсорних екранах немає hover — описи послуг мають бути видимі одразу */
@media (hover: none) {
  .svc p { max-height: 160px; opacity: 1; margin-bottom: 14px; }
}
@media (max-width: 720px) {
  .wrap, .nav-in, .hero-in { padding-left: 20px; padding-right: 20px; }
  section, .feature, .cta { padding-top: 60px; padding-bottom: 60px; }
  .phero { padding: 128px 0 56px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 30px; }
  .foot-svc { grid-template-columns: 1fr 1fr; }
  .foot { padding-top: 56px; }
  .foot-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .foot-brand p { max-width: none; }
  .brand img { width: 42px; height: 42px; }
  .brand .bt b { font-size: 19px; }
  .brand .bt span { font-size: 9px; letter-spacing: 0.2em; }
  .hero-in { padding-top: 116px; padding-bottom: 56px; }
  .hero .lead { margin: 18px 0 28px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-trust { gap: 12px; flex-direction: column; }
  .svc { aspect-ratio: 4/3.4; }
  .acc-h { padding: 18px 18px; gap: 12px; }
  .acc-h p { font-size: 16px; }
  .acc-h .qn { width: 26px; font-size: 15px; }
  .acc-b-in { padding: 0 18px 20px 18px; font-size: 15px; }
  .cinfo { padding: 18px; gap: 14px; }
  .map iframe { height: 300px; }
  .map { margin-top: 36px; }
  .split { gap: 34px; }
  .sd-step, .out, .vcol { padding: 24px 20px; }
  .zz-row { gap: 18px; }
  .crumb { flex-wrap: wrap; font-size: 12px; }
  /* декоративні листочки на вузькому екрані налазили на заголовки — піднімаємо й зменшуємо */
  .leaf { width: 32px !important; top: -44px !important; }
  .split .leaf, .feature .leaf, .cta .leaf { left: -2px !important; margin-left: 0 !important; }
}
@media (max-width: 400px) {
  .brand .bt b { font-size: 17px; }
  .brand img { width: 38px; height: 38px; }
  .btn { padding: 13px 22px; font-size: 14px; }
  .tl-dot { width: 58px; height: 58px; font-size: 21px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; position: fixed; inset: 0; flex-direction: column; justify-content: center; align-items: center; gap: 26px; background: rgba(14,42,22,0.97); backdrop-filter: blur(18px); z-index: 105; }
  .nav-links.open { display: flex; }
  .nav-links a { font-family: var(--head); font-size: 26px; color: #fff !important; }
  .nav-links a::after { display: none; }
  .nav-cta { color: #fff !important; }
  .burger { display: block; }
  .svc-grid, .tl-grid, .fhl-row { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .cform { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .leaf { opacity: 1; transform: none; }
  #leaf-fall { display: none; }
}
