@font-face {
  font-family: Vazirmatn;
  src: url('/hokmestan/assets/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/hokmestan/assets/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #0F2C4C;
  --surface: #1C3A5A;
  --surface-raised: #234967;
  --felt: #287674;
  --gold: #DF9870;
  --gold-soft: #F0B190;
  --text: #FDFBF7;
  --muted: #BECEDD;
  --danger: #A62639;
  --success: #42bd72;
  --border: #66839777;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Vazirmatn, Tahoma, Arial, sans-serif;
  line-height: 1.9;
}

a {
  color: var(--gold-soft);
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header-inner,
.page,
.site-footer-inner {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  color: var(--gold);
  margin-left: 8px;
}
.brand img { width: 44px; height: 44px; }
a:focus-visible, button:focus-visible { outline: 3px solid #EAA023; outline-offset: 5px; }

nav {
  display: flex;
  gap: 18px;
}

.page {
  padding: 48px 0 64px;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.4;
  letter-spacing: 0;
}

.updated,
.lead,
.hint {
  color: var(--muted);
}

.lead {
  font-size: 18px;
  max-width: 720px;
}

.content-section {
  padding: 26px 0;
  border-top: 1px solid var(--border);
}

.content-section h2 {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: 22px;
  letter-spacing: 0;
}

.content-section ul {
  margin: 10px 0;
  padding-right: 22px;
}

.request-form {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-raised);
}

.field {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

label {
  font-weight: 700;
}

input,
textarea,
button {
  width: 100%;
  min-height: 48px;
  border: 1px solid #4e594f;
  border-radius: 6px;
  font: inherit;
}

input,
textarea {
  padding: 11px 13px;
  background: #0F2C4C;
  color: var(--text);
}

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

input:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

button {
  cursor: pointer;
  border-color: var(--gold);
  background: var(--felt);
  color: #fff;
  font-weight: 700;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 34px;
  margin: 16px 0 0;
  font-weight: 700;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: #ff8b80;
}

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.notice {
  padding: 16px;
  border-right: 4px solid var(--gold);
  background: var(--surface-raised);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.site-footer-inner {
  padding: 24px 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .site-header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
  }

  .page {
    padding-top: 32px;
  }

  .request-form {
    padding: 18px;
  }
}
