* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Tahoma, Arial, sans-serif;
  background: #f4f7f5;
  color: #1f2937;
  line-height: 1.85;
  direction: rtl;
  text-align: right;
  -webkit-text-size-adjust: 100%;
}

header {
  background: linear-gradient(135deg, #0f6b3d, #084b2b);
  color: #fff;
  padding: 30px 16px 24px;
  text-align: center;
}

header h1 {
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  line-height: 1.5;
  margin-bottom: 6px;
}

header p {
  opacity: .92;
  font-size: .95rem;
  max-width: 650px;
  margin: auto;
}

nav {
  background: #073d24;
  display: flex;
  justify-content: center;
  gap: 8px 18px;
  padding: 11px 12px;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-size: .9rem;
  padding: 5px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, opacity .2s;
}

nav a:hover,
nav a:focus-visible {
  opacity: .85;
  border-bottom-color: #fff;
  outline: none;
}

.container {
  width: min(720px, calc(100% - 24px));
  margin: 24px auto;
}

section {
  background: #fff;
  border: 1px solid #e5ebe7;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 5px 20px rgba(15, 107, 61, .07);
}

h2 {
  color: #0f6b3d;
  margin-bottom: 14px;
  font-size: 1.25rem;
  line-height: 1.5;
}

label {
  display: block;
  margin-top: 14px;
  font-size: .92rem;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  margin-top: 7px;
  border: 1px solid #cfd8d2;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 1rem;
  direction: ltr;
  text-align: left;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input:focus,
select:focus {
  border-color: #0f6b3d;
  box-shadow: 0 0 0 3px rgba(15, 107, 61, .12);
}

button {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #0f6b3d, #0a5731);
  color: #fff;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(15, 107, 61, .18);
  transition: transform .15s, filter .15s;
}

button:hover {
  filter: brightness(.95);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 3px solid rgba(15, 107, 61, .25);
  outline-offset: 2px;
}

#result {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #cde8d7;
  border-radius: 12px;
  background: #edf9f1;
  color: #173b28;
  display: none;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.faq-item {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0ee;
}

.faq-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.faq-item h3 {
  font-size: 1rem;
  color: #0f6b3d;
  margin-bottom: 5px;
}

footer {
  text-align: center;
  padding: 24px 16px 30px;
  color: #6b7280;
  font-size: .85rem;
}

footer a {
  color: #0f6b3d;
  text-decoration: none;
  margin: 0 4px;
}

footer a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  header {
    padding: 24px 14px 20px;
  }

  nav {
    gap: 4px 12px;
  }

  nav a {
    font-size: .82rem;
  }

  .container {
    width: min(100% - 16px, 720px);
    margin: 16px auto;
  }

  section {
    padding: 17px 14px;
    border-radius: 13px;
    margin-bottom: 14px;
  }

  h2 {
    font-size: 1.12rem;
  }

  input,
  select,
  button {
    min-height: 46px;
  }

  #result {
    padding: 15px 11px;
    font-size: 1rem;
  }
}
