/* Base */
:root {
  --bg: #fbfbfb;
  --text: rgba(15, 15, 15, 0.90);
  --text-muted: rgba(15, 15, 15, 0.60);
  --text-faint: rgba(15, 15, 15, 0.45);
  --text-strong: rgba(15, 15, 15, 0.88);
  --card: rgba(255, 255, 255, 0.70);
  --border: rgba(0, 0, 0, 0.12);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0f14;
    --text: rgba(255, 255, 255, 0.92);
    --text-muted: rgba(255, 255, 255, 0.60);
    --text-faint: rgba(255, 255, 255, 0.45);
    --text-strong: rgba(255, 255, 255, 0.88);
    --card: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.14);
  }

  body {
    background:
      radial-gradient(1100px 700px at 50% 35%, rgba(100, 90, 160, 0.09), transparent 60%),
      radial-gradient(900px 540px at 80% 15%, rgba(180, 140, 60, 0.06), transparent 55%),
      var(--bg);
  }

  .lang-switch span[aria-current="page"],
  .back-link,
  .kvkk-wrap p a {
    color: #d89928;
  }

  .kvkk-wrap p a:focus-visible {
    outline-color: #d89928;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  min-height: 100svh;
  margin: 0;
  padding-top: max(22px, env(safe-area-inset-top));
  padding-right: max(22px, env(safe-area-inset-right));
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  padding-left: max(22px, env(safe-area-inset-left));
  background:
    radial-gradient(1100px 700px at 50% 35%, rgba(127, 127, 127, 0.10), transparent 60%),
    radial-gradient(900px 540px at 80% 15%, rgba(127, 127, 127, 0.06), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.62;
}

/* Selection behavior */
img,
svg,
.logo,
.rule,
.lang-switch,
.company,
.footer {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

p,
h1,
h2,
h3,
a,
button {
  user-select: text;
  -webkit-user-select: text;
}

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

/* Shared layout */
.wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  width: 100%;
  max-width: 780px;
  margin-top: clamp(8vh, 10vh, 11.5vh);
  padding-inline: clamp(16px, 5vw, 40px);
}

.wrap--subpage,
.wrap--legal {
  max-width: 780px;
}

.lang-switch {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 20px);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.lang-switch a,
.lang-switch span {
  display: inline-block;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}

.lang-switch span[aria-current="page"] {
  color: #8a5e0e;
}

.lang-switch a {
  transition: color 0.15s ease;
}

.lang-switch a:hover {
  color: var(--text);
  text-decoration: underline;
}

.lang-switch a:focus-visible {
  color: var(--text);
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}

.logo {
  display: block;
  width: min(620px, 100%);
  height: auto;
  max-height: 44vh;
  margin: 0 auto clamp(20px, 3vh, 32px);
  object-fit: contain;
  pointer-events: none;
}

.logo--small {
  width: 300px;
  max-width: min(300px, 100%);
  margin: 0 auto clamp(16px, 2.45vh, 28px);
}

.rule {
  width: 100%;
  height: 1px;
  margin: 0 0 clamp(16px, 2.2vh, 22px);
  background: currentColor;
  opacity: 0.10;
}

.company {
  width: 100%;
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(0.86rem, 4.4vw, 1.24rem);
  font-weight: 600;
  line-height: 1.54;
  letter-spacing: 0.028em;
  text-align: center;
  text-transform: uppercase;
}

.company--subpage {
  max-width: 720px;
  font-size: clamp(0.84rem, 3.6vw, 1.06rem);
  line-height: 1.56;
}

.company-suffix {
  display: none;
}

.seo-legal {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Homepage */
.company-desc {
  width: 100%;
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--text);
  font-size: 0.945rem;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  text-wrap: pretty;
}

/* Shared contact strip */
.contact-strip {
  width: 100%;
  max-width: 780px;
  margin: 24px auto 6px;
  padding-inline: clamp(16px, 5vw, 40px);
}

.contact-strip__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0 0 10px;
}

.contact-strip__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
  transition: color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.contact-strip__link:hover {
  color: var(--text-strong);
  transform: translateY(-1px);
}

.contact-strip__link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.brand-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.contact-strip__address {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.895rem;
  line-height: 1.58;
  text-align: center;
}

.contact-strip__address-full {
  display: inline;
}

.contact-strip__address-short {
  display: none;
}

/* Footer */
.footer {
  width: 100%;
  margin-top: 10px;
  padding-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.765rem;
  letter-spacing: 0.038em;
  text-align: center;
}

.footer a,
.footer small a {
  color: inherit;
  text-decoration: none;
}

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

.footer a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}

/* Legal / status shared blocks */
.page-card {
  width: 100%;
  max-width: 720px;
  margin: 24px 0 0;
  padding: 22px 20px 24px;
  border-radius: var(--radius);
}

.page-card--plain {
  padding: 18px 0 0;
  background: transparent;
  border: 0;
}

.page-card--legal {
  text-align: left;
}

.page-card--status {
  text-align: center;
}

.page-title {
  margin: 0 0 1.5rem;
  color: var(--text-strong);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: left;
}

.page-card--legal p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.8;
  text-align: justify;
  text-justify: inter-word;
}

.page-card--legal .meta {
  margin-top: 2rem;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-style: italic;
  text-align: left;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.35rem;
  color: #8a5e0e;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.back-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 3px;
}

.not-found-code {
  margin: 0 0 10px;
  color: var(--text-strong);
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.038em;
}

.not-found-msg {
  margin: 0 0 26px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.038em;
}

.offline-msg {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 1.03rem;
  font-weight: 400;
  letter-spacing: 0.035em;
}

.not-found-links {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.038em;
}

.not-found-links--center {
  justify-content: center;
}

.status-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}

.status-action:hover {
  text-decoration: underline;
}

.status-action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 640px) {
  .wrap,
  .wrap--subpage,
  .wrap--legal {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
  }

  .logo {
    width: min(100%, 540px);
  }

  .wrap--subpage .logo--small,
  .wrap--legal .logo--small {
    width: 300px;
    max-width: min(300px, 100%);
    height: auto;
  }

  .company-desc {
    max-width: 100%;
    font-size: 0.91rem;
    line-height: 1.66;
  }

  /* suffix visibility handled by JS only */

  .page-card {
    padding: 18px 16px 20px;
  }

  .page-title {
    font-size: 0.98rem;
  }

  .status-action {
    font-size: 0.98rem;
  }

  .contact-strip {
    max-width: 100%;
    margin-top: 20px;
    padding-inline: 16px;
  }

  .contact-strip__links {
    gap: 12px;
    justify-content: center;
    overflow-x: auto;
    padding-bottom: 2px;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .contact-strip__links::-webkit-scrollbar {
    display: none;
  }

  .contact-strip__link {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

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

  .contact-strip__address {
    font-size: 0.875rem;
  }

  .contact-strip__address-full {
    display: none;
  }

  .contact-strip__address-short {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
