:root {
  --bg: #f3f4ef;
  --bg-2: #fbfcf8;
  --lime: #d4f034;
  --lime-dark: #c2e017;
  --dark: #1a1f17;
  --ink: #161817;
  --muted: #6a6f64;
  --body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r: 1.6rem;
}
* { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; scroll-padding-top:90px; }
body { font-family:var(--body); background:var(--bg); color:var(--ink); line-height:1.6; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
a { color:inherit; text-decoration:none; }
ul { list-style:none; }
img { display:block; max-width:100%; }
em { font-style:italic; color:var(--muted); }
.hl { color:var(--lime-dark); }
.skip-link { position:absolute; left:-999px; }
.skip-link:focus { left:8px; top:8px; background:var(--dark); color:#fff; padding:8px 14px; z-index:999; }
:focus-visible { outline:2px solid var(--lime-dark); outline-offset:3px; }
.js .reveal { opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto} .js .reveal{opacity:1!important;transform:none!important} }

.pill { display:inline-block; background:var(--bg-2); border:1px solid #e0e1da; border-radius:2rem; padding:.4rem 1.1rem; font-size:.8rem; font-weight:600; margin-bottom:1.2rem; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.4rem; padding:.85rem 1.8rem; border-radius:2rem; font-weight:600; font-size:.9rem; border:1px solid transparent; cursor:pointer; transition:all .25s var(--ease); }
.btn-lime { background:var(--lime); color:var(--dark); border-color:var(--lime); }
@media (hover: hover) { .btn-lime:hover { background:var(--lime-dark); transform:translateY(-2px); } }
.btn-dark { background:var(--dark); color:#fff; border-color:var(--dark); }
@media (hover: hover) { .btn-dark:hover { background:#2c3326; transform:translateY(-2px); } }

/* Header */
#siteHeader { position:sticky; top:0; z-index:100; padding:.8rem 1rem 0; }
.head-inner { max-width:1280px; margin:0 auto; background:var(--bg-2); border:1px solid #e6e7e0; border-radius:2rem; padding:.7rem 1.4rem; display:flex; align-items:center; gap:1.5rem; transition:box-shadow .3s; }
#siteHeader.scrolled .head-inner { box-shadow:0 10px 30px rgba(0,0,0,.08); }
.brand { display:inline-flex; align-items:center; gap:.5rem; font-weight:800; font-size:1.2rem; }
.dot { width:14px; height:14px; border-radius:50%; background:var(--lime); display:inline-block; }
.nav-links { display:flex; gap:1.6rem; margin:0 auto; }
.nav-links a { font-size:.9rem; font-weight:500; color:var(--muted); }
@media (hover: hover) { .nav-links a:hover { color:var(--ink); } }
.head-actions { display:flex; align-items:center; gap:1rem; }
.head-phone { font-size:.85rem; font-weight:600; color:var(--muted); }
.mobile-menu-btn { display:none; background:none; border:none; cursor:pointer; width:40px; height:40px; align-items:center; justify-content:center; }
.burger, .burger::before, .burger::after { content:""; display:block; width:24px; height:2px; background:var(--ink); transition:transform .3s var(--ease), opacity .2s; }
.burger { position:relative; } .burger::before { position:absolute; top:-7px; } .burger::after { position:absolute; top:7px; }
#siteHeader.nav-open .burger { background:transparent; }
#siteHeader.nav-open .burger::before { transform:translateY(7px) rotate(45deg); }
#siteHeader.nav-open .burger::after { transform:translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { max-width:1280px; margin:0 auto; padding:1.5rem 1rem 4rem; display:grid; grid-template-columns:1.1fr 1fr; gap:1.2rem; align-items:stretch; }
.hero-img { border-radius:var(--r); overflow:hidden; min-height:520px; background:#dfe0d8; }
.hero-img img { width:100%; height:100%; object-fit:cover; }
.hero-panel { background:var(--bg-2); border-radius:var(--r); padding:3rem; display:flex; flex-direction:column; justify-content:center; }
.hero-panel h1 { font-size:clamp(2.4rem,4.5vw,3.8rem); font-weight:800; line-height:1.05; letter-spacing:-.02em; margin-bottom:1.3rem; }
.hero-panel p { color:var(--muted); font-size:1.05rem; margin-bottom:2rem; max-width:380px; }
.hero-row { display:flex; align-items:center; gap:1.5rem; flex-wrap:wrap; }
.badge-40 { display:flex; align-items:center; gap:.6rem; background:var(--lime); border-radius:2rem; padding:.5rem 1.1rem; }
.badge-40 strong { font-size:2rem; font-weight:800; color:var(--dark); }
.badge-40 span { font-size:.75rem; font-weight:600; line-height:1.1; color:var(--dark); }

/* Develop */
.develop { max-width:1280px; margin:0 auto; padding:4rem 1.5rem; }
.dev-head { max-width:760px; margin-bottom:2.5rem; }
.dev-head h2 { font-size:clamp(2rem,4vw,3.2rem); font-weight:800; line-height:1.1; letter-spacing:-.02em; }
.dev-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem; }
.dev-card { border-radius:var(--r); padding:2rem; min-height:300px; display:flex; flex-direction:column; position:relative; overflow:hidden; }
.dev-card .dc-n { font-weight:800; font-size:1rem; opacity:.6; margin-bottom:auto; }
.dev-card h3 { font-size:1.5rem; font-weight:700; margin:1.5rem 0 .7rem; }
.dev-card p { font-size:.95rem; margin-bottom:1.2rem; }
.dc-link { font-size:.85rem; font-weight:600; }
.dev-card.dark { background:var(--dark); color:#fff; }
.dev-card.dark p { color:rgba(255,255,255,.7); }
@media (hover: hover) { .dev-card.dark .dc-link:hover { color:var(--lime); } }
.dev-card.lime { background:var(--lime); color:var(--dark); }
.dev-card.lime p { color:#3a401f; }
.dev-card.photo { color:#fff; justify-content:flex-end; }
.dev-card.photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.dev-card.photo::after { content:""; position:absolute; inset:0; background:linear-gradient(to top, rgba(0,0,0,.85), rgba(0,0,0,.1)); z-index:1; }
.dev-card.photo > * { position:relative; z-index:2; }
.dev-card.photo .dc-n { margin-bottom:auto; }

/* Filters */
.filters { max-width:1280px; margin:0 auto; padding:1rem 1.5rem 4rem; display:flex; gap:1rem; flex-wrap:wrap; justify-content:center; }
.filter { background:var(--bg-2); border:1px solid #e0e1da; border-radius:2rem; padding:.7rem 1.5rem; font-size:.92rem; font-weight:500; }

/* Stats */
.stats { background:var(--dark); color:#fff; border-radius:var(--r); margin:0 1.5rem; max-width:1280px; }
.stats { margin:0 auto; max-width:1248px; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; padding:3.5rem 2.5rem; }
.stat { border-left:2px solid var(--lime); padding-left:1.2rem; }
.stat strong { font-size:clamp(1.8rem,3.5vw,2.8rem); font-weight:800; display:block; }
.stat strong span { color:var(--lime); }
.stat p { font-size:.88rem; color:rgba(255,255,255,.7); margin-top:.3rem; }

/* Team */
.team { max-width:1280px; margin:0 auto; padding:5rem 1.5rem; }
.team-head { text-align:center; margin-bottom:2.5rem; }
.team-head h2 { font-size:clamp(2rem,4vw,3rem); font-weight:800; }
.team-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.3rem; }
.member { border-radius:var(--r); overflow:hidden; position:relative; aspect-ratio:4/5; background:#ddd; }
.member img { width:100%; height:100%; object-fit:cover; }
.member figcaption { position:absolute; bottom:1rem; left:1rem; right:1rem; background:var(--bg-2); border-radius:1rem; padding:.8rem 1.1rem; }
.member strong { display:block; font-size:1rem; }
.member span { font-size:.82rem; color:var(--muted); }

/* CTA */
.cta { padding:2rem 1.5rem 5rem; }
.cta-inner { max-width:1248px; margin:0 auto; background:var(--lime); border-radius:var(--r); padding:4rem 3rem; text-align:center; }
.cta-inner h2 { font-size:clamp(2rem,4.5vw,3.4rem); font-weight:800; color:var(--dark); margin-bottom:.8rem; }
.cta-inner em { color:#3a401f; }
.cta-inner p { color:#3a401f; margin-bottom:2rem; }
.cta-form { display:flex; gap:.7rem; max-width:460px; margin:0 auto; flex-wrap:wrap; }
.cta-form input { flex:1; min-width:200px; padding:.9rem 1.2rem; border-radius:2rem; border:1px solid rgba(0,0,0,.2); background:var(--bg-2); font-family:var(--body); }
.cta-form input:focus { outline:none; border-color:var(--dark); }
.form-note { margin-top:1rem; color:var(--dark); font-weight:600; }

/* Footer */
.site-footer { padding:3rem 1.5rem; }
.foot-inner { max-width:1280px; margin:0 auto; display:flex; justify-content:space-between; align-items:center; gap:1.5rem; flex-wrap:wrap; }
.foot-inner .brand { font-size:1.3rem; }
.foot-inner > div:first-child p { color:var(--muted); font-size:.85rem; margin-top:.3rem; }
.foot-contact { display:flex; flex-direction:column; gap:.3rem; font-weight:600; }
@media (hover: hover) { .foot-contact a:hover { color:var(--lime-dark); } }
.foot-legal { display:flex; gap:1.2rem; align-items:center; font-size:.85rem; color:var(--muted); flex-wrap:wrap; }
@media (hover: hover) { .foot-legal a:hover { color:var(--ink); } }

@media (max-width:900px){
  .hero { grid-template-columns:1fr; }
  .hero-img { min-height:320px; }
  .dev-grid, .team-grid { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:1fr 1fr; gap:1.5rem 1rem; }
}
@media (max-width:600px){
  .head-inner { gap:1rem; }
  .nav-links { display:none; position:absolute; top:calc(100% + .5rem); left:1rem; right:1rem; flex-direction:column; gap:0; background:var(--bg-2); border:1px solid #e6e7e0; border-radius:1.2rem; padding:.5rem 1.2rem; margin:0; }
  #siteHeader.nav-open .nav-links { display:flex; }
  .nav-links a { padding:.8rem 0; border-bottom:1px solid #ececea; }
  .head-phone { display:none; }
  .mobile-menu-btn { display:flex; }
  .hero-panel { padding:2rem 1.5rem; }
  .develop, .team { padding: 2.5rem 1.5rem; }
  .dev-card { min-height: 240px; }
  .stats-grid { grid-template-columns:1fr; }
  .cta-inner { padding:2.5rem 1.5rem; }
  .cta-form { flex-direction: column; }
  .cta-form input { min-width: 0; flex: 1 1 auto; }
  .cta-form .btn { width: 100%; }
  .foot-inner { flex-direction:column; align-items:flex-start; }
}


/* --- GLOBAL POLISH --- */
.ico {
  width: 1.4em;
  height: 1.4em;
  display: inline-block;
  vertical-align: middle;
  flex: none;
}
.bullet-ico {
  width: .5em;
  height: .5em;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5em;
}
@media (hover: hover) {
  button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}


@media (max-width: 480px) {
  .grid, .stats-grid, .serv-grid, .pricing-grid, .test-grid, .project-grid, .why-grid, .seller-grid, .cat-grid {
    grid-template-columns: 1fr !important;
  }

  /* Mobile UI Fixes from Reviewer */
  .dev-card { min-height: 240px !important; }

  .hero-panel h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); letter-spacing: 0.02em; }
  .dev-head h2, .team-head h2, .cta-inner h2 { font-size: clamp(1.6rem, 7vw, 2rem); }

  .hero-row { flex-direction: column; align-items: stretch; text-align: center; }
  .hero-row .btn { width: 100%; }
  .badge-40 { justify-content: center; }

  .stats-grid { padding: 2rem 1.5rem !important; }

  .head-inner { padding: 0.7rem 1rem; gap: 0.5rem; }
}

@media (max-width: 600px) { .stats-grid { grid-template-columns: 1fr !important; } .dev-card { min-height: 300px !important; } }

/* Global Mobile Header Nav Fix */
@media (max-width: 768px) {
  .head-inner, .header-inner, .nav-container, header > .container { justify-content: space-between !important; width: 100%; }
  .mobile-menu-btn { display: flex !important; margin-left: auto; }
}
