:root {
  --lime: #c5d12d;
  --lime-deep: #a8b424;
  --lime-glow: rgba(197, 209, 45, 0.28);
  --teal: #1a5c48;
  --teal-deep: #002828;
  --black: #070807;
  --black-2: #0e100e;
  --panel: #121412;
  --panel-2: #181b16;
  --line: rgba(197, 209, 45, 0.18);
  --line-strong: rgba(197, 209, 45, 0.45);
  --white: #f7f7f2;
  --muted: #b7bba8;
  --danger: #f87171;
  --ok: #86efac;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font-ar: "Cairo", "Segoe UI", sans-serif;
  --font-en: "Outfit", "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--black);
  color: var(--white);
}

body {
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

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

.en {
  direction: ltr;
  unicode-bidi: isolate;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: 0;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--lime);
  color: #111;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(1rem);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(700px 500px at -10% 80%, rgba(26, 92, 72, 0.35), transparent 55%),
    linear-gradient(180deg, #070807 0%, #0b0d0a 100%);
}

.bg__layers {
  position: absolute;
  width: 42vw;
  max-width: 520px;
  height: 70vh;
  left: -8vw;
  top: 12vh;
  opacity: 0.22;
}

.bg__layers span {
  position: absolute;
  inset: 0;
  clip-path: polygon(18% 8%, 72% 0%, 88% 78%, 12% 100%);
}

.bg__layers span:nth-child(1) {
  background: var(--lime);
  transform: translate(0, 0);
}

.bg__layers span:nth-child(2) {
  background: #30a868;
  transform: translate(-28px, 18px);
}

.bg__layers span:nth-child(3) {
  background: var(--teal-deep);
  transform: translate(-56px, 36px);
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0 0.5rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 20, 18, 0.7);
  direction: ltr;
}

.lang-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 36px;
  min-width: 52px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 180ms ease, color 180ms ease;
}

.lang-btn:hover {
  color: var(--white);
}

.lang-btn.is-active {
  background: var(--lime);
  color: #11150a;
}

.hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 1.5rem 0 3rem;
}

.hero__art {
  display: grid;
  place-items: center;
}

.hero__art img {
  width: min(420px, 100%);
  filter: drop-shadow(0 20px 50px rgba(197, 209, 45, 0.18));
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  line-height: 1.25;
  font-weight: 800;
}

html[lang="en"] .hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
}

.form-section {
  padding-bottom: 4.5rem;
}

.form-card {
  background: linear-gradient(180deg, rgba(24, 27, 22, 0.92), rgba(12, 14, 12, 0.94));
  border: 1px solid #2a2f24;
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
}

.form-card__head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.form-required-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #ea4335;
  font-weight: 500;
}

form {
  padding: 1.5rem;
  display: grid;
  gap: 1.05rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field.full {
  grid-column: 1 / -1;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

legend {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 0.55rem;
  padding: 0;
}

label {
  font-weight: 700;
  font-size: 0.98rem;
}

.req {
  color: #ea4335;
  font-weight: 700;
  margin-inline-start: 0.2rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #2a2f24;
  background: #0c0e0b;
  color: var(--white);
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7d826f;
}

input:hover,
textarea:hover {
  border-color: #3c4332;
}

input:focus,
textarea:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-glow);
}

.ltr {
  direction: ltr;
  text-align: left;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.choice {
  cursor: pointer;
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 76px;
  padding: 0.8rem;
  border-radius: 16px;
  border: 1px solid #2a2f24;
  background: #0c0e0b;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.choice strong {
  font-size: 1rem;
}

.choice input:focus-visible + span {
  box-shadow: 0 0 0 3px var(--lime-glow);
}

.choice input:checked + span {
  border-color: var(--lime);
  background: rgba(197, 209, 45, 0.1);
  box-shadow: inset 0 0 0 1px var(--lime);
}

.error {
  min-height: 1.1em;
  color: var(--danger);
  font-size: 0.8rem;
}

.hidden {
  display: none !important;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 0.4rem;
}

.submit {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-height: 52px;
  min-width: 220px;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--lime);
  color: #11150a;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(197, 209, 45, 0.25);
  transition: background 180ms ease, transform 180ms ease;
}

.submit:hover:not(:disabled) {
  background: #d4e045;
}

.submit:active:not(:disabled) {
  transform: translateY(1px);
}

.submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.status {
  margin: 0 1.5rem 1.5rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid transparent;
}

.status.ok {
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(22, 101, 52, 0.25);
  color: var(--ok);
}

.status.err {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(127, 29, 29, 0.25);
  color: #fecaca;
}

.success-panel {
  padding: 3rem 1.5rem;
  text-align: center;
}

.success-panel img {
  width: 120px;
  margin: 0 auto 1rem;
}

.success-panel h2 {
  margin: 0 0 0.4rem;
}

.success-panel p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 32rem;
}

footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer img {
  height: 56px;
  width: auto;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 0.5rem;
  }

  .hero__art {
    order: -1;
  }

  .hero__art img {
    width: min(280px, 70vw);
  }
}

@media (max-width: 720px) {
  .grid-2,
  .choices {
    grid-template-columns: 1fr;
  }

  form,
  .form-card__head {
    padding: 1.1rem;
  }

  .submit {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
