:root {
  --bg: #f5f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #d8e0ea;
  --brand: #2563eb;
  --brand-dark: #1743b0;
  --brand-soft: #e8f0fe;
  --accent: #0891b2;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f7faff 0%, #eaf1fb 100%);
  line-height: 1.5;
}

body.rtl {
  direction: rtl;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 224, 234, 0.7);
}

.header-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 0;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.brand-icon svg {
  width: 26px;
  height: 26px;
}

.brand-word {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.brand-word .brand-accent {
  color: var(--brand);
}

.brand.small .brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.brand.small .brand-icon svg {
  width: 21px;
  height: 21px;
}

.brand.small .brand-word {
  font-size: 1.4rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.header-language-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #bfd6fb;
  background: #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn:hover {
  background: #f0f6ff;
}

.lang-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-large {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.hero {
  padding: 46px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-copy p.lead {
  margin: 0 0 22px;
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 700px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid #c9dcfb;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.hero-card,
.feature-card,
.step-card,
.showcase-card,
.info-panel,
.form-panel {
  background: var(--card);
  border: 1px solid rgba(216, 224, 234, 0.9);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.hero-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

.mini-steps,
.info-list,
.checkbox-group {
  display: grid;
  gap: 12px;
}

.mini-step,
.info-list li,
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f9ff;
  border: 1px solid #e4ecf7;
  font-size: 1rem;
}

.mini-step-number,
.step-card .step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex: 0 0 auto;
}

.section,
.form-page {
  padding: 34px 0;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.section-subtitle,
.info-panel p,
.form-panel .intro {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 820px;
  font-size: 1.08rem;
}

.features,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card h3,
.step-card h3,
.showcase-card h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.feature-card p,
.step-card p,
.showcase-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.showcase-card {
  text-align: center;
  padding: 24px 20px;
}

.showcase-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.showcase-icon svg {
  width: 26px;
  height: 26px;
}

.form-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.info-panel h1,
.form-panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 16px;
}

.field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.input,
.select,
textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 17px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.input:focus,
.select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.checkbox-item input {
  margin-top: 4px;
  transform: scale(1.15);
}

.checkbox-item label {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  font-size: 1rem;
}

.form-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.form-actions,
.helper-links,
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(216, 224, 234, 0.9);
  padding-top: 20px;
}

.static-page {
  padding: 44px 0 60px;
  max-width: 800px;
}

.static-page h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 6px;
}

.static-page h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.static-page p,
.static-page li {
  color: var(--muted);
}

.static-page ul {
  padding-left: 1.4rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .features,
  .steps,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand-icon {
    width: 40px;
    height: 40px;
  }

  .brand-word {
    font-size: 1.45rem;
  }

  .nav-links a {
    font-size: 15px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 22px), var(--max));
  }

  .header-shell {
    gap: 8px;
    padding: 12px 0;
  }

  .header-top {
    justify-content: center;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .brand-icon svg {
    width: 20px;
    height: 20px;
  }

  .brand-word {
    font-size: 1.25rem;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
    justify-content: center;
  }

  .nav-links-mobile {
    justify-content: center;
    gap: 14px;
  }

  .nav-links-mobile a {
    font-size: 14px;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .lang-btn {
    min-width: 48px;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1,
  .info-panel h1,
  .form-panel h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem);
    word-break: break-word;
  }

  .hero-copy p.lead,
  .section-subtitle,
  .hero-card p,
  .feature-card p,
  .step-card p,
  .info-panel p,
  .form-panel .intro {
    font-size: 1rem;
  }

  .hero-card,
  .feature-card,
  .step-card,
  .showcase-card,
  .info-panel,
  .form-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
