﻿:root,
html[data-theme="light"] {
  --bg: #eef3f6;
  --bg-elevated: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-solid: #ffffff;
  --line: rgba(40, 70, 90, 0.12);
  --text: #1a2b34;
  --muted: #5d7380;
  --accent: #1b8f7a;
  --accent-strong: #157a68;
  --accent-2: #c48a1a;
  --accent-soft: rgba(27, 143, 122, 0.1);
  --input-bg: #f7fafb;
  --input-border: rgba(40, 70, 90, 0.14);
  --danger: #c94444;
  --danger-soft: rgba(201, 68, 68, 0.1);
  --radius: 18px;
  --shadow: 0 16px 40px rgba(30, 55, 70, 0.08);
  --header-bg: rgba(238, 243, 246, 0.86);
  --body-glow-1: rgba(27, 143, 122, 0.08);
  --body-glow-2: rgba(196, 138, 26, 0.06);
  --grid-line: rgba(30, 55, 70, 0.04);
  --btn-primary-text: #ffffff;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Sora", "Manrope", sans-serif;
  --container: 1120px;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #141c24;
  --bg-elevated: #1b2530;
  --surface: rgba(30, 40, 52, 0.78);
  --surface-solid: #1e2834;
  --line: rgba(160, 190, 210, 0.12);
  --text: #e6eef3;
  --muted: #93a6b4;
  --accent: #3fa894;
  --accent-strong: #4db8a2;
  --accent-2: #d4a84a;
  --accent-soft: rgba(63, 168, 148, 0.14);
  --input-bg: #162028;
  --input-border: rgba(160, 190, 210, 0.16);
  --danger: #e57373;
  --danger-soft: rgba(229, 115, 115, 0.12);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  --header-bg: rgba(20, 28, 36, 0.88);
  --body-glow-1: rgba(63, 168, 148, 0.1);
  --body-glow-2: rgba(212, 168, 74, 0.06);
  --grid-line: rgba(255, 255, 255, 0.035);
  --btn-primary-text: #06241e;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 520px at 8% -8%, var(--body-glow-1), transparent 55%),
    radial-gradient(900px 480px at 92% 0%, var(--body-glow-2), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

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

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
  padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.7;
  z-index: 0;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 20px var(--accent-soft);
  object-fit: cover;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong) 55%, var(--accent-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 8px 20px var(--accent-soft);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: flex;
  gap: 0.35rem;
  margin-inline: auto;
}

.nav a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s, background 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: var(--accent-soft);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.theme-toggle,
.lang-btn,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface-solid);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
}

.theme-toggle:hover,
.lang-btn:hover {
  border-color: rgba(27, 143, 122, 0.28);
  background: var(--accent-soft);
}

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

.lang-switch {
  position: relative;
}

.lang-btn {
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  min-width: 180px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  max-height: 320px;
  overflow: auto;
  z-index: 60;
}

.lang-menu a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.lang-menu a:hover,
.lang-menu a[aria-selected="true"] {
  background: var(--accent-soft);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 12px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0;
  background: var(--text);
  border-radius: 1px;
  flex-shrink: 0;
}

.hero {
  padding: 4.5rem 0 3rem;
  display: grid;
  gap: 1.25rem;
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-primary-text);
  box-shadow: 0 8px 20px var(--accent-soft);
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.btn-secondary {
  background: var(--surface-solid);
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: rgba(27, 143, 122, 0.35);
  background: var(--accent-soft);
}

.section {
  padding: 2.5rem 0 3.5rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.02em;
}

.section-head a {
  color: var(--accent);
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 1.1rem;
}

.grid-apps {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.grid-websites {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  box-shadow: var(--shadow);
}

.card-link {
  display: block;
  height: 100%;
}

.app-card {
  display: flex;
  flex-direction: column;
}

.app-card .card-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.15rem 0;
}

.app-card .card-status-row .status-badge {
  margin-bottom: 0;
}

.app-card .card-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 0.75rem 1.15rem 1.15rem;
  align-items: start;
  flex: 1;
}

.btn-card-test {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid #7a1f2b;
  background: #8b1e2d;
  color: #fff;
  box-shadow: none;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-card-test:hover {
  background: #6e1824;
  border-color: #5c1420;
  color: #fff;
}
[data-theme="dark"] .btn-card-test {
  background: #a3283a;
  border-color: #c44558;
  color: #fff;
}
[data-theme="dark"] .btn-card-test:hover {
  background: #b83245;
}

.btn-card-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid #9b1520;
  background: #c62828;
  color: #fff;
  box-shadow: none;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.btn-card-download:hover {
  background: #a61f1f;
  border-color: #8e1a1a;
  color: #fff;
}
[data-theme="dark"] .btn-card-download {
  background: #e53935;
  border-color: #ef5350;
  color: #fff;
}
[data-theme="dark"] .btn-card-download:hover {
  background: #ef5350;
}

.app-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--input-bg);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.app-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
  line-height: 1;
  border: 1px solid transparent;
}
.status-badge.status-published {
  color: #0f6b4c;
  background: color-mix(in srgb, #1b8f7a 16%, transparent);
  border-color: color-mix(in srgb, #1b8f7a 28%, transparent);
}
.status-badge.status-testing {
  color: #8a5a00;
  background: color-mix(in srgb, #e6a23c 18%, transparent);
  border-color: color-mix(in srgb, #e6a23c 35%, transparent);
}
.status-badge.status-coming {
  color: var(--muted);
  background: var(--input-bg);
  border-color: var(--line);
}
.status-badge.status-soft {
  opacity: 0.85;
  font-weight: 700;
  text-transform: none;
}
[data-theme="dark"] .status-badge.status-published {
  color: #7ddec4;
}
[data-theme="dark"] .status-badge.status-testing {
  color: #f0c674;
}

.detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.btn-admin-edit {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
}
.btn-admin-edit:hover {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  border-style: solid;
}
.detail-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.detail-status-row .status-badge {
  margin-bottom: 0;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  line-height: 1;
  border: 1px solid transparent;
}
.pricing-badge.pricing-free {
  color: #0f6b4c;
  background: color-mix(in srgb, #1b8f7a 16%, transparent);
  border-color: color-mix(in srgb, #1b8f7a 28%, transparent);
}
.pricing-badge.pricing-paid {
  color: #7a3e00;
  background: color-mix(in srgb, #f0a202 18%, transparent);
  border-color: color-mix(in srgb, #f0a202 35%, transparent);
}
.pricing-badge.pricing-freemium {
  color: #1a4f8b;
  background: color-mix(in srgb, #3b82f6 14%, transparent);
  border-color: color-mix(in srgb, #3b82f6 30%, transparent);
}
.pricing-badge.pricing-trial {
  color: #5b2d8e;
  background: color-mix(in srgb, #8b5cf6 14%, transparent);
  border-color: color-mix(in srgb, #8b5cf6 28%, transparent);
  text-transform: none;
  font-weight: 700;
}
[data-theme="dark"] .pricing-badge.pricing-free { color: #7ddec4; }
[data-theme="dark"] .pricing-badge.pricing-paid { color: #ffd48a; }
[data-theme="dark"] .pricing-badge.pricing-freemium { color: #93c5fd; }
[data-theme="dark"] .pricing-badge.pricing-trial { color: #c4b5fd; }

.btn-buy {
  background: #c62828;
  color: #fff !important;
  border: 1px solid #9b1520;
  box-shadow: none;
}
.btn-buy:hover {
  background: #a61f1f;
  border-color: #8e1a1a;
  color: #fff !important;
}
.btn-donate {
  background: color-mix(in srgb, #0f6b4c 14%, transparent);
  color: #0f6b4c !important;
  border: 1px solid color-mix(in srgb, #0f6b4c 35%, transparent);
}
.btn-donate:hover {
  background: color-mix(in srgb, #0f6b4c 24%, transparent);
}
[data-theme="dark"] .btn-donate {
  color: #7ddec4 !important;
  border-color: color-mix(in srgb, #7ddec4 35%, transparent);
  background: color-mix(in srgb, #1b8f7a 18%, transparent);
}

.error-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.error-card {
  max-width: 520px;
}
.error-code {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin: 0;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 70%, var(--muted));
  letter-spacing: -0.04em;
}
.error-card h1 {
  margin: 0.5rem 0 0.75rem;
  font-family: var(--display);
}
.privacy-content .content-block + .content-block {
  margin-top: 1rem;
}

.tester-preselect-note {
  margin: 0.75rem 0 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  background: color-mix(in srgb, #e6a23c 14%, transparent);
  border: 1px solid color-mix(in srgb, #e6a23c 30%, transparent);
  color: var(--text);
  font-size: 0.95rem;
}
.tester-apps-fieldset {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.85rem 1rem 1rem;
  margin: 0 0 1rem;
}
.tester-apps-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.tester-interest-option,
.tester-app-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.45rem 0;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.tester-app-checks {
  margin-top: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: var(--input-bg);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.15rem;
}
.tester-app-checks.is-all-mode {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--input-bg));
}
.tester-app-checks.is-all-mode .tester-app-check {
  opacity: 1;
  color: var(--text);
}
.tester-app-checks.is-all-mode input[type="checkbox"] {
  accent-color: var(--accent);
  opacity: 1;
  cursor: default;
}
.tester-app-checks.is-invalid {
  border-color: color-mix(in srgb, #c45c5c 55%, var(--line));
}
.tester-apps-error {
  color: #c45c5c !important;
  font-weight: 700;
  margin: 0.55rem 0 0;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.meta-row span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.web-thumb {
  aspect-ratio: 16 / 10;
  background: var(--input-bg);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.web-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.web-card .card-body {
  padding: 1.1rem 1.15rem 1.25rem;
}

.empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.detail-hero {
  padding: 2.5rem 0 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}

.detail-icon {
  width: 108px;
  height: 108px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--input-bg);
}

.detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.detail-hero .lead {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 40rem;
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.spec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.spec small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.spec strong {
  font-size: 0.95rem;
}

.content-block {
  background: var(--surface-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow);
}

.content-block h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.15rem;
}

.content-block p,
.content-block li {
  color: var(--muted);
}

.feature-list {
  margin: 0;
  padding-inline-start: 1.1rem;
}

.shots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 220px);
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.shots img {
  border-radius: 16px;
  border: 1px solid var(--line);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--input-bg);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: var(--text);
  font-family: var(--display);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.08s; }
.reveal:nth-child(3) { animation-delay: 0.16s; }
.reveal:nth-child(4) { animation-delay: 0.24s; }
.reveal:nth-child(5) { animation-delay: 0.32s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.toolbar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.search-input {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 999px;
  padding: 0.8rem 1.1rem;
  font: inherit;
}

.page-title {
  padding: 2.5rem 0 0.5rem;
}

.page-title h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.page-title p {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

html[dir="rtl"] .header-tools {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

html[dir="rtl"] .nav {
  margin-inline: auto;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.85rem;
}

label.field > span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.84rem;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="password"],
input[type="search"],
select,
textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--accent) 50%, var(--input-border));
  box-shadow: 0 0 0 3px var(--accent-soft);
}

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

.flash {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 700;
}

.flash-ok {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.flash-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.check-inline {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--muted);
}

.tester-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding: 1.5rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-2) 12%, transparent)),
    var(--surface);
}

.tester-cta h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  letter-spacing: -0.02em;
}

.tester-cta p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.tester-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.1rem;
  align-items: start;
}

.tester-form .field {
  margin-bottom: 0.85rem;
}

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

.rating-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.35rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.stars {
  display: inline-flex;
  gap: 0.1rem;
  color: rgba(140, 190, 210, 0.35);
  letter-spacing: 0.02em;
}

.stars .star.on {
  color: var(--accent-2);
}

.review-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.review-item {
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--input-bg);
}

.review-item p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.review-head time {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 0.8rem;
}

.review-form-title {
  margin: 1.25rem 0 0.75rem;
  font-family: var(--display);
  font-size: 1.05rem;
}

.review-grid {
  margin-bottom: 0.5rem;
}

.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.15rem;
  margin-top: 0.35rem;
}

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

.rating-input label {
  cursor: pointer;
  font-size: 1.55rem;
  color: rgba(140, 190, 210, 0.35);
  transition: color 0.15s;
  line-height: 1;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
  color: var(--accent-2);
}

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

@media (max-width: 960px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
  }

  body {
    padding-top: var(--header-offset, 72px);
  }

  .header-inner {
    gap: 0.65rem;
  }

  .nav {
    display: none;
    position: fixed;
    top: calc(var(--header-offset, 72px) + 0.4rem);
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    right: max(0.75rem, env(safe-area-inset-right, 0px));
    flex-direction: column;
    background: var(--surface-solid);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.55rem;
    box-shadow: var(--shadow);
    z-index: 120;
    max-height: min(70vh, calc(100dvh - var(--header-offset, 72px) - 1.5rem));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav.open {
    display: flex;
  }

  .nav-backdrop {
    display: none;
    position: fixed;
    top: var(--header-offset, 72px);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    background: rgba(10, 18, 24, 0.4);
    border: 0;
    padding: 0;
    cursor: pointer;
  }

  .nav-backdrop.open {
    display: block;
  }

  .nav a {
    padding: 0.75rem 0.95rem;
    min-height: 44px;
    border-radius: 12px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    min-width: 44px;
    min-height: 44px;
  }

  .theme-toggle,
  .lang-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .lang-btn span:nth-child(2) {
    display: none;
  }

  .header-tools {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .brand-text small {
    display: none;
  }

  .brand-text strong {
    font-size: 0.98rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
  }

  .tester-layout {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container), calc(100% - 1.25rem));
  }

  .hero {
    padding: 2rem 0 1.25rem;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .hero-actions .btn,
  .tester-cta .btn,
  .detail-hero .hero-actions .btn {
    width: 100%;
  }

  .tester-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 1.15rem 1.15rem;
    gap: 0.9rem;
  }

  .page-title {
    padding-top: 1.5rem;
  }

  .section {
    padding: 1.75rem 0;
  }

  .app-card .card-link {
    grid-template-columns: 64px 1fr;
    gap: 0.75rem;
    padding: 0.7rem 0.95rem 1rem;
  }

  .app-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }

  .app-card .card-status-row {
    padding: 0.7rem 0.95rem 0;
  }

  .detail-icon {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }

  .detail-hero h1 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    word-break: break-word;
  }

  .detail-hero .lead,
  .content-block p,
  .spec strong {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .shots {
    gap: 0.65rem;
    padding-bottom: 0.35rem;
  }

  .shots img {
    height: 220px;
    max-width: 70vw;
  }

  .footer-inner {
    gap: 1rem;
  }

  .sitemap-grid {
    grid-template-columns: 1fr !important;
  }

  .lang-menu {
    inset-inline-end: 0;
    inset-inline-start: auto;
    min-width: min(220px, 80vw);
    max-height: 60vh;
  }
}

@media (max-width: 420px) {
  .specs {
    grid-template-columns: 1fr;
  }

  .app-card .card-link {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .app-icon-wrap {
    width: 72px;
    height: 72px;
  }

  .btn-card-test,
  .btn-card-download {
    font-size: 0.68rem;
    padding: 0.3rem 0.5rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}

/* —— SEO / a11y —— */
.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.85rem;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.footer-nav a:hover {
  color: var(--accent);
}

.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.sitemap-grid .content-block h2 {
  margin-top: 0;
  font-family: var(--display);
  font-size: 1.15rem;
}
.sitemap-grid a {
  color: var(--text);
  text-decoration: none;
}
.sitemap-grid a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .sitemap-grid {
    grid-template-columns: 1fr;
  }
}

body.nav-open {
  touch-action: none;
}

@media (min-width: 961px) {
  .nav-backdrop {
    display: none !important;
  }
}

.site-footer {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

