/* Grabli Systems — consolidated styles (rebuild)
   - Shared for all pages
   - Fix: content is visible even if JS fails (reveal only animates when body.js exists)
   - Update: centered headings + gold accents (home feel)
*/

/* ===== Base ===== */я
:root{
  --bg:#070707;
  --bg2:#0c0c0c;
  --card:#111111;
  --card2:#0f0f0f;
  --text:#ffffff;
  --muted:#bdbdbd;
  --muted2:#8f8f8f;
  --line:#232323;
  --gold:#d6b25e;
  --gold2:#b38b2f;
  --shadow: 0 12px 40px rgba(0,0,0,.35);
  --r:18px;

  --field-bg:rgba(255,255,255,.03);
  --field-border:rgba(35,35,35,.95);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;color-scheme:dark}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 520px at 50% -140px, rgba(214,178,94,.18), transparent 70%),
    radial-gradient(900px 480px at 20% 0%, rgba(214,178,94,.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
}

a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.wrap{max-width:1160px;margin:0 auto;padding:0 20px}

/* ===== Header / Nav ===== */
.topbar{
  position:sticky;top:0;z-index:50;
  backdrop-filter: blur(10px);
  background:rgba(7,7,7,.65);
  border-bottom:1px solid rgba(35,35,35,.8);
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 0;gap:14px}
.brand{display:flex;align-items:center;gap:12px;font-weight:900;letter-spacing:1px}
.brand small{display:block;font-weight:600;color:var(--muted2);letter-spacing:0;margin-top:2px}
.crest{
  width:34px;height:34px;border-radius:12px;
  border:1px solid rgba(214,178,94,.55);
  background:linear-gradient(145deg, rgba(214,178,94,.18), rgba(214,178,94,.02));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.35);
  display:grid;place-items:center;
  font-size:16px;
}

.links{display:flex;gap:10px;align-items:center}
.links a{
  padding:10px 12px;border-radius:14px;
  border:1px solid transparent;
  color:rgba(255,255,255,.88);
}
.links a:hover{
  border-color:rgba(214,178,94,.22);
  background:rgba(214,178,94,.06);
}
.links a.active{
  border-color:rgba(214,178,94,.35);
  background:rgba(214,178,94,.08);
  color:#fff;
}

.burger{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(35,35,35,.95);
  background:rgba(255,255,255,.03);
  cursor:pointer;
  padding:0;
  position:relative;
}

.burger span{
  position:absolute;
  left:12px;
  right:12px;
  height:2px;
  background:#fff;
  border-radius:2px;
}

.burger span:nth-child(1){ top:14px; }
.burger span:nth-child(2){ top:21px; }
.burger span:nth-child(3){ top:28px; }
.burger svg{width:22px;height:22px}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:11px 14px;border-radius:14px;
  border:1px solid rgba(35,35,35,.95);
  background:rgba(255,255,255,.03);
  color:#fff;cursor:pointer;font-weight:800;
  transition:transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn.primary{
  background:rgba(214,178,94,.12);
  border-color:rgba(214,178,94,.25);
  box-shadow:0 10px 30px rgba(214,178,94,.07);
}
.btn.gold{
  background:linear-gradient(180deg, rgba(214,178,94,.95), rgba(179,139,47,.95));
  border-color:rgba(214,178,94,.35);
  color:#121212;
  box-shadow:0 16px 40px rgba(214,178,94,.12);
}
.btn.outline{background:transparent;border-color:rgba(214,178,94,.22)}
.btn.ghost{background:rgba(255,255,255,.02);border-color:rgba(35,35,35,.75)}

/* ===== Mobile menu ===== */
.mobileMenu{position:fixed;inset:0;z-index:120;display:none}
.mobileMenu.open{display:block}
.backdrop{position:absolute;inset:0;background:rgba(0,0,0,.62)}
.panel{
  position:absolute;right:0;top:0;height:100%;
  width:min(380px,86vw);
  background:rgba(15,15,15,.98);
  border-left:1px solid rgba(35,35,35,.9);
  box-shadow:var(--shadow);
  padding:16px;
}
.mTop{display:flex;align-items:center;justify-content:space-between;gap:10px}
.mTitle{display:flex;align-items:center;gap:10px;font-weight:900}
.mTitle small{display:block;font-weight:700;color:var(--muted2);font-size:12px;margin-top:2px}
.closeBtn{
  width:44px;height:44px;border-radius:14px;border:1px solid rgba(35,35,35,.95);
  background:rgba(255,255,255,.03);color:#fff;cursor:pointer
}
.closeBtn svg{width:22px;height:22px}
.mLinks{display:grid;gap:10px;margin-top:14px}
.mLinks a{
  padding:12px 12px;border-radius:14px;
  border:1px solid rgba(35,35,35,.85);
  background:rgba(255,255,255,.02);
}
.mLinks a.active{
  border-color:rgba(214,178,94,.35);
  background:rgba(214,178,94,.08);
}
.mCta{margin-top:14px}
.mNote{margin-top:12px;color:var(--muted2);font-size:13px}
.noScroll{overflow:hidden}

/* ===== Hero ===== */
.hero{padding:54px 0 26px;border-bottom:1px solid rgba(35,35,35,.55)}
.badge{
  display:inline-flex;align-items:center;gap:10px;
  padding:10px 14px;border:1px solid rgba(214,178,94,.35);
  border-radius:999px;
  color:#e7d7ab;background:rgba(214,178,94,.06);
  box-shadow:0 10px 30px rgba(214,178,94,.07);
}
.h1{
  margin:18px 0 0;
  font-weight:950;
  letter-spacing:1.5px;
  font-size:clamp(34px, 4.8vw, 56px);
  line-height:1.05;
}
.sub{
  margin:14px auto 0;
  max-width:820px;
  color:var(--muted);
  font-size:clamp(15px, 2vw, 20px);
  line-height:1.6;
}
.cta{margin-top:18px;display:flex;gap:12px;flex-wrap:wrap}

/* Center headings on the main landing look (requested) */
.hero .wrap{ text-align:center; }
.hero .cta{ justify-content:center; }

/* ===== Section ===== */
.section{padding:48px 0}
.section.alt{background:linear-gradient(180deg, rgba(255,255,255,.02), transparent 55%)}

.title{
  font-size:28px;margin:0 0 10px;
  text-align:center; /* requested */
  position:relative;
}
.lead{
  color:var(--muted);
  margin:0 auto 18px;
  max-width:72ch;
  line-height:1.6;
  text-align:center; /* requested */
}

/* Gold accent under section titles (requested) */
.title::after{
  content:"";
  display:block;
  width:min(120px,42vw);
  height:3px;
  margin:12px auto 0;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(214,178,94,.15), rgba(214,178,94,.95), rgba(214,178,94,.15));
  box-shadow:0 12px 34px rgba(214,178,94,.10);
}

.grid{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(4,1fr);
}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid rgba(35,35,35,.95);
  border-radius:var(--r);
  padding:22px;
  box-shadow:var(--shadow);
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover{
  transform:translateY(-2px);
  border-color:rgba(214,178,94,.26);
  box-shadow:0 14px 46px rgba(0,0,0,.45);
}
.card h3{margin:0 0 10px}
.list{margin:10px 0 0;padding:0;list-style:none;color:var(--muted2);line-height:1.7}
.list li small{color:var(--muted2);opacity:.9}

/* Steps */
/* Steps */
/* ===== Steps (PROCESS BLOCK FIXED) ===== */

/* ===== Steps FIX (override .grid) ===== */

.grid.steps{
  display:grid;
  gap:24px;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

.grid.steps .card{
  height:100%;
}

.grid.steps .card:nth-child(5){
  border-color:rgba(214,178,94,.45);

  background:
    linear-gradient(
      180deg,
      rgba(214,178,94,.06),
      rgba(255,255,255,.01)
    );

  box-shadow:
    0 0 0 1px rgba(214,178,94,.15) inset,
    0 20px 60px rgba(214,178,94,.10);

  position:relative;
}

.grid.steps .card:nth-child(5)::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:radial-gradient(
    500px 180px at 50% -30%,
    rgba(214,178,94,.20),
    transparent 70%
  );
  pointer-events:none;
}

.grid.steps .card:nth-child(5):hover{
  transform:translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(214,178,94,.25) inset,
    0 30px 80px rgba(214,178,94,.18);
}

/* Work */
.workGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.work{
  border-radius:var(--r);
  border:1px solid rgba(35,35,35,.9);
  overflow:hidden;
  background:rgba(255,255,255,.02)
}
.thumb{
  height:150px;
  background:
    radial-gradient(600px 220px at 20% 0%, rgba(214,178,94,.18), transparent 60%),
    linear-gradient(135deg, rgba(214,178,94,.10), rgba(255,255,255,.02));
}
.workBody{padding:14px}
.tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.tag{
  font-size:12px;padding:6px 10px;border-radius:999px;
  border:1px solid rgba(35,35,35,.85);
  color:rgba(255,255,255,.85);
  background:rgba(255,255,255,.02)
}

/* Pricing */
.price .amount{font-size:26px;font-weight:1000;margin:8px 0 10px}
.ribbon{
  display:inline-block;font-size:12px;font-weight:900;
  padding:6px 10px;border-radius:999px;
  background:rgba(214,178,94,.14);
  border:1px solid rgba(214,178,94,.25);
  margin-bottom:10px
}

/* Details */
details{
  padding:16px;border-radius:var(--r);
  border:1px solid rgba(35,35,35,.9);
  background:rgba(255,255,255,.02)
}
summary{cursor:pointer;font-weight:900}
details p{color:var(--muted);line-height:1.6}

/* ===== Footer (basic) ===== */
.footer{padding:34px 0;border-top:1px solid rgba(35,35,35,.55)}

/* ===== Forms ===== */
.form{margin-top:24px;display:grid;gap:12px;max-width:760px;margin-inline:auto}
.row{display:grid;gap:12px;grid-template-columns:1fr 1fr}
label{font-weight:700}
input,textarea,select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--field-border);
  background:var(--field-bg);
  color:#fff;
  outline:none;
}
select option{background:#111;color:#fff}
textarea{min-height:120px}
.status{color:var(--muted2);font-weight:700}

/* Contact map (from contact.html) */
.mapWrap{
  margin-top:16px;
  border-radius:var(--r);
  overflow:hidden;
  border:1px solid rgba(35,35,35,.95);
  background:rgba(255,255,255,.02);
  box-shadow:var(--shadow)
}
.mapWrap iframe{display:block;width:100%;height:360px;border:0}

/* ===== Reveal (IMPORTANT FIX) =====
   Default: visible. Animation only when JS adds body.js
*/
.reveal{opacity:1;transform:none}
body.js .reveal{opacity:0;transform:translateY(12px);transition:opacity .6s ease, transform .6s ease}
body.js .reveal.on{opacity:1;transform:translateY(0)}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .links{display:none}
  .burger{display:grid;place-items:center}
  .heroGrid{grid-template-columns:1fr 1fr}
  .grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .workGrid{grid-template-columns:1fr}
  .row{grid-template-columns:1fr}
}

@media (max-width: 520px){
  .h1{letter-spacing:.8px}
  .badge{gap:8px;padding:9px 12px}
  .btn{width:auto}
  .cta{gap:10px}
}

/* =====================================================
   NEW FOOTER (3 columns): brand / contacts / legal
   ===================================================== */

.footer{
  margin-top:60px;
  border-top:1px solid rgba(35,35,35,.8);
  background:
    radial-gradient(800px 200px at 50% -50%, rgba(214,178,94,.12), transparent 70%),
    #070707;
  padding:50px 0 40px;
}

/* Layout */
.footerGrid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap:40px;
}

.fCol{min-width:0}

/* Brand column */
.fBrand{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:16px;
}
.fName{
  font-weight:950;
  letter-spacing:1px;
}
.fTag{
  font-size:13px;
  color:var(--muted2);
  margin-top:2px;
}
.fText{
  color:var(--muted);
  line-height:1.6;
  font-size:14px;
  margin:0 0 14px;
}
.fBadge{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(214,178,94,.35);
  background:rgba(214,178,94,.08);
  font-size:13px;
  font-weight:800;
  box-shadow:0 12px 34px rgba(214,178,94,.07);
}

/* Titles */
.fTitle{
  font-weight:950;
  margin-bottom:14px;
  letter-spacing:.4px;
}

/* Contacts column */
.fLinks{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.fLinks a{
  padding:8px 0;
  color:#ddd;
  transition:transform .2s ease, color .2s ease;
}
.fLinks a:hover{
  color:#fff;
  transform:translateX(4px);
}
.fNote{
  margin-top:12px;
  color:var(--muted2);
  font-size:13px;
}

/* Legal column */
.fList{
  padding-left:16px;
  margin:12px 0;
  color:#cfcfcf;
  font-size:14px;
}
.fList li{margin-bottom:6px}
.fLegal{
  margin-top:14px;
  color:#8a8a8a;
  font-size:13px;
  line-height:1.5;
}

/* Footer responsive */
@media (max-width: 900px){
  .footerGrid{
    grid-template-columns:1fr;
    gap:30px;
  }

  .footer{
    text-align:center;
  }

  .fBrand{
    justify-content:center;
  }

  .fList{
    list-style:none;
    padding-left:0;
  }
}


/* ===== FOOTER (3 columns) — override at end ===== */
.footer{
  margin-top:60px;
  padding:52px 0 42px;
  border-top:1px solid rgba(35,35,35,.8);
  background:
    radial-gradient(900px 240px at 50% -60px, rgba(214,178,94,.12), transparent 70%),
    #070707;
  text-align:left; /* важливо: щоб не було центру по всьому футеру */
}







/* ===== FORCE FOOTER GRID FIX ===== */

.footer .footerGrid{
  display:grid !important;
  grid-template-columns: 1.3fr 1fr 1fr !important;
  gap:50px !important;
  align-items:flex-start;
}

.footer .fCol{
  display:block;
  text-align:left;
}

.footer{
  text-align:left !important;
}

@media (max-width:900px){
  .footer .footerGrid{
    grid-template-columns:1fr !important;
  }
}

.footerBottom{
  margin-top:38px;
  padding-top:22px;
  border-top:1px solid rgba(35,35,35,.7);
  text-align:center;
  font-size:13px;
  color:#8a8a8a;
  letter-spacing:.3px;
}

.reveal{opacity:1!important; transform:none!important}









/* footer icons FA */
.footer .fLinks i{
  width:18px;
  text-align:center;
  font-size:16px;
  opacity:.9;
  transition:.2s;
}

.footer .fLinks a{
  display:flex;
  align-items:center;
  gap:10px;
}

.footer .fLinks a:hover i{
  transform:scale(1.15);
  opacity:1;
}
