:root {
  --primary: #2c7a4b;
  --primary-dark: #1f5f3a;
  --accent: #f59e0b;
  --bg: #ffffff;
  --bg-soft: #f5f8f6;
  --text: #1a202c;
  --text-soft: #4a5568;
  --border: #e2e8f0;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(0,0,0,.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; gap: 12px; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--primary); letter-spacing: -.5px; line-height: 1.1; }
.logo .sub { font-size: .68rem; font-weight: 600; color: var(--text-soft); display: block; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
nav.main { display: flex; align-items: center; gap: 22px; }
nav.main a { color: var(--text-soft); font-weight: 600; font-size: .95rem; padding: 6px 0; }
nav.main a:hover { color: var(--primary); text-decoration: none; }
.lang-menu { position: relative; }
.lang-btn { background: var(--bg-soft); border: 1px solid var(--border); padding: 7px 12px; border-radius: 6px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.lang-list { display: none; position: absolute; right: 0; top: 110%; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); min-width: 220px; max-height: 320px; overflow-y: auto; z-index: 200; padding: 6px; }
.lang-list.show { display: block; }
.lang-list a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--text); font-weight: 500; }
.lang-list a:hover { background: var(--bg-soft); text-decoration: none; }

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-inline-start: auto;
  border-radius: 8px; position: relative; z-index: 310;
}
[dir="rtl"] .nav-toggle { margin-inline-start: auto; }
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text-soft); border-radius: 2px; margin: 5px auto; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  nav.main {
    display: none;
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(82vw, 330px);
    background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.14);
    flex-direction: column; align-items: stretch;
    gap: 0; padding: 82px 22px 30px; overflow-y: auto;
    z-index: 95;
  }
  nav.main.nav-open { display: flex; }
  nav.main > a { padding: 13px 10px; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
  nav.main .lang-menu { margin-top: 16px; }
  .lang-menu { position: static; }
  .lang-btn { width: 100%; text-align: left; padding: 13px 10px; font-size: 1.05rem; background: #fff; border: 1px solid var(--border); border-radius: 8px; }
  .lang-list { position: static; top: auto; right: auto; width: 100%; max-height: none; box-shadow: none; margin-top: 8px; border: 1px solid var(--border); }
  .nav-backdrop {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 90;
  }
  .nav-backdrop.show { display: block; }
  [dir="rtl"] nav.main {
    right: auto; left: 0;
    box-shadow: 8px 0 30px rgba(0,0,0,.14);
  }
}
@media (min-width: 861px) {
  nav.main { display: flex !important; }
}

/* Brand images (real service logos) */
.brand-img {
  width: 64px; height: 64px; object-fit: contain;
  border-radius: 12px; background: #fff;
  border: 1px solid var(--border); padding: 6px;
  box-shadow: var(--shadow);
}
.hero-logo { display: inline-flex; justify-content: center; margin: 0 auto 18px; }
.hero-logo .brand-img { width: 88px; height: 88px; padding: 10px; }
.card .brand-img { display: block; width: 56px; height: 56px; padding: 8px; margin-bottom: 16px; }
.brand-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.brand-item { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 10px; text-align: center; }
.brand-item:hover { border-color: var(--primary); text-decoration: none; box-shadow: var(--shadow); }
.brand-item .brand-img { display: inline-flex; width: auto; height: 48px; border: none; box-shadow: none; padding: 0; margin: 0; }
@media (max-width: 1000px) { .brand-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .brand-strip { grid-template-columns: repeat(3, 1fr); } }

/* Hero */
.hero { background: linear-gradient(135deg, #1f5f3a 0%, #2c7a4b 55%, #3da06a 100%); color: #fff; padding: 70px 20px; text-align: center; }
.hero h1 { font-size: 2.6rem; font-weight: 800; line-height: 1.15; max-width: 800px; margin: 0 auto 18px; }
.hero p { font-size: 1.15rem; max-width: 640px; margin: 0 auto 30px; opacity: .95; }
.hero .geo-note { font-size: .92rem; opacity: .9; margin: -16px auto 24px; max-width: 620px; }
.btn { display: inline-block; background: var(--accent); color: #1a202c; font-weight: 700; padding: 13px 28px; border-radius: 8px; margin: 0 6px; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.ghost { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); }

/* Sections */
.section { padding: 60px 20px; }
.section.soft { background: var(--bg-soft); }
.section h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 14px; }
.section .lead { color: var(--text-soft); font-size: 1.05rem; max-width: 720px; margin-bottom: 32px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--text-soft); max-width: 640px; margin: 0 auto; }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid.cols-3, .grid.cols-4, .grid.cols-2 { grid-template-columns: 1fr; } }

.card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--primary); text-decoration: none; }
.card p { color: var(--text-soft); font-size: .95rem; }
.card .meta { font-size: .8rem; color: #718096; margin-top: 10px; }
.card-link { display: inline-block; margin-top: 12px; font-weight: 700; font-size: .9rem; }

/* How it works steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 10px; }
@media (max-width:700px){ .steps { grid-template-columns:1fr; } }
.step { background:#fff; border:1px solid var(--border); border-radius: var(--radius); padding: 26px; text-align:center; box-shadow: var(--shadow); }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; margin:0 auto 14px; font-size:1.2rem; }
.step h3 { margin-bottom: 8px; }

/* Chips/links lists */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--border); border-radius: 40px; padding: 9px 18px; font-weight: 600; font-size: .9rem; color: var(--text); }
.chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* Blog */
article.post h1 { font-size: 2.2rem; margin-bottom: 12px; }
.post .post-meta { color:#718096; font-size:.9rem; margin-bottom: 28px; border-bottom:1px solid var(--border); padding-bottom:18px; }
.post h2 { font-size:1.5rem; margin: 30px 0 12px; }
.post h3 { font-size:1.2rem; margin: 22px 0 8px; }
.post p { margin-bottom: 16px; }
.post ul, .post ol { margin: 0 0 18px 24px; }
.post li { margin-bottom: 6px; }
.toc { background: var(--bg-soft); border-left: 4px solid var(--primary); padding: 18px 22px; border-radius: 8px; margin-bottom: 26px; }
.toc h4 { margin-bottom: 8px; }
.toc ul { margin-left: 20px; }
.callout { background:#fff8e0; border:1px solid #eecf6f; border-radius:8px; padding:16px 18px; margin:20px 0; }

/* Breadcrumbs */
.breadcrumb { font-size: .85rem; color:#718096; padding: 14px 20px; background: var(--bg-soft); border-bottom:1px solid var(--border); }
.breadcrumb a { color: var(--primary); }

/* Content prose for info pages */
.prose { max-width: 820px; margin: 0 auto; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 24px; }
.prose li { margin-bottom: 6px; }
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 24px; }

/* Footer */
footer.site { background: #10261b; color:#c7d8cf; padding: 50px 20px 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; max-width: 1180px; margin: 0 auto; }
@media (max-width:800px){ .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width:500px){ .footer-grid { grid-template-columns: 1fr; } }
footer h4 { color:#fff; margin-bottom: 14px; font-size: 1rem; }
footer ul { list-style:none; }
footer li { margin-bottom: 8px; }
footer a { color:#c7d8cf; font-size:.92rem; }
footer a:hover { color:#fff; }
.footer-bottom { max-width: 1180px; margin: 34px auto 0; border-top:1px solid rgba(255,255,255,.12); padding-top:20px; font-size:.8rem; color:#8aa295; }

/* Table */
table { width:100%; border-collapse: collapse; margin: 18px 0; }
th, td { text-align:left; padding: 10px 12px; border:1px solid var(--border); font-size:.92rem; }
th { background: var(--bg-soft); font-weight:700; }

/* FAQ */
.faq details { border:1px solid var(--border); border-radius:8px; padding:14px 18px; margin-bottom:12px; background:#fff; }
.faq summary { font-weight:700; cursor:pointer; color: var(--text); }
.faq details p { margin-top:10px; color: var(--text-soft); }

/* ===== Mobile responsiveness ===== */
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 16px; }
  .section-head { margin-bottom: 28px; }

  .logo { font-size: 1.15rem; }
  .logo .sub { font-size: .6rem; }

  .hero { padding: 52px 16px; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1.02rem; margin-bottom: 24px; }
  .btn { display: block; width: 100%; margin: 10px auto; padding: 14px 16px; box-sizing: border-box; }

  .card { padding: 20px; }
  .chips { gap: 8px; }
  .chip { padding: 9px 14px; font-size: .85rem; }

  article.post h1 { font-size: 1.7rem; }
  .post h2 { font-size: 1.3rem; }

  .breadcrumb { padding: 12px 16px; }

  table th, table td { padding: 8px 8px; font-size: .84rem; }
  .faq details { padding: 12px 14px; }
}

@media (max-width: 400px) {
  .logo { font-size: 1.05rem; }
  .logo .sub { font-size: .58rem; }
  .hero h1 { font-size: 1.55rem; }
}
