:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #152033;
  --muted: #5a677d;
  --brand: #199557;
  --brand-dark: #127043;
  --line: #dbe2ee;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  color: var(--brand-dark);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 50px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.lang-btn {
  border: 0;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 12px;
  font-weight: 700;
}

.lang-btn.active {
  background: var(--brand);
  color: #fff;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover {
  color: var(--brand-dark);
}

.hero {
  padding: 88px 0 70px;
  color: #fff;
  background: linear-gradient(120deg, #0f2e48, #199557);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.15;
}

.hero p {
  margin: 18px 0 28px;
  max-width: 780px;
  color: #eaf8ef;
  font-size: 1.05rem;
}

.cta {
  display: inline-block;
  background: #fff;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 22px;
}

.section {
  padding: 64px 0;
}

.section.alt {
  background: #eef3f9;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.narrow {
  max-width: 900px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.download-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.download-list a {
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
}

.download-list a:hover {
  text-decoration: underline;
}

.shop-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.shop-logo {
  width: 120px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  flex: 0 0 auto;
}

.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 20px 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .grid.four,
  .grid.three,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .brand-logo {
    height: 42px;
  }

  .grid.two,
  .grid.three,
  .grid.four,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

html[dir="rtl"] body {
  text-align: right;
}

html[dir="rtl"] .topbar-inner {
  direction: rtl;
}

html[dir="rtl"] .nav {
  direction: rtl;
}

html[dir="rtl"] .lang-switch {
  direction: ltr;
}
