:root {
  --red: #e31e24;
  --red-dark: #c4191f;
  --text: #1a1a2e;
  --muted: #6b7280;
  --bg: #fff;
  --surface: #f8f9fa;
  --border: #e5e7eb;
  --green: #22c55e;
  --radius: 12px;
  --max: 1120px;
  --touch: 44px;
  --gutter: clamp(1rem, 3vw, 1.5rem);
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--touch);
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.page-hero {
  padding-block: 2rem 1.25rem;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
}

.page-hero p {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.page-main {
  padding-bottom: 3rem;
}

.sayfa-404 {
  text-align: center;
  padding: clamp(2rem, 6vw, 3.5rem) 0 3rem;
}

.sayfa-404-code {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(4rem, 18vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.04em;
}

.sayfa-404 h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
}

.sayfa-404-metin {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.0625rem;
}

.sayfa-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.75rem 0 0;
}

.sayfa-404-search {
  max-width: 28rem;
  margin: 2rem auto 0;
  text-align: left;
}

.sayfa-404-arama {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.sayfa-404-arama .search-field {
  flex: 1 1 12rem;
  min-width: 0;
}

.content-narrow {
  max-width: 42rem;
  margin: 0 auto;
}

.content-wide {
  max-width: 52rem;
  margin: 0 auto;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text);
  font-size: 1rem;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--touch);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-body {
  padding: 0 1.125rem 1.125rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.faq-body a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
}

.contact-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-card li {
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.contact-card li strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  min-height: var(--touch);
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-color: var(--red);
}

.form-hint {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}

.form-hint a,
.contact-card a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.captcha-question {
  font-weight: 700;
  font-size: 1rem;
}

.captcha-box input {
  width: 5rem;
  min-height: var(--touch);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.form-alert {
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  display: none;
}

.form-alert.is-visible {
  display: block;
}

.form-alert--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.form-alert--success {
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
