:root {
  --apps-ink: #17233a;
  --apps-muted: #5e6b7e;
  --apps-paper: #f7f5ef;
  --apps-card: #ffffff;
  --apps-line: #dfe4ea;
  --apps-blue: #1f4f8a;
  --apps-blue-dark: #163a66;
  --apps-gold: #d6a83f;
  --apps-success: #17633b;
  --apps-error: #8d2424;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--apps-ink);
  background: var(--apps-paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--apps-paper); color: var(--apps-ink); line-height: 1.65; }
a { color: var(--apps-blue); }
a:hover { color: var(--apps-blue-dark); }

.apps-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--apps-line);
}

.apps-brand { color: var(--apps-ink); font-weight: 850; text-decoration: none; letter-spacing: -0.02em; }
.apps-nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.92rem; font-weight: 700; }
.apps-nav a { text-decoration: none; }

.apps-hero {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
  background:
    radial-gradient(circle at 82% 18%, rgba(214, 168, 63, 0.27), transparent 31%),
    linear-gradient(145deg, #142b4b 0%, #1f4f8a 66%, #2b649f 100%);
  color: white;
}

.apps-hero-inner, .apps-main, .apps-footer-inner { width: min(1120px, 100%); margin: 0 auto; }
.apps-kicker { margin: 0 0 10px; color: var(--apps-gold); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.15em; text-transform: uppercase; }
.apps-hero h1 { max-width: 780px; margin: 0; font-size: clamp(2.4rem, 7vw, 5.2rem); line-height: 0.98; letter-spacing: -0.055em; }
.apps-hero p:not(.apps-kicker) { max-width: 700px; margin: 24px 0 0; color: #edf4ff; font-size: clamp(1.05rem, 2vw, 1.28rem); }
.apps-hero.compact { padding-block: clamp(42px, 6vw, 72px); }
.apps-hero.compact h1 { font-size: clamp(2.1rem, 5vw, 4rem); }

.apps-main { padding: clamp(44px, 7vw, 84px) clamp(20px, 5vw, 0px); }
.apps-intro { max-width: 760px; margin-bottom: 36px; }
.apps-intro h2, .policy h2 { margin: 0 0 10px; line-height: 1.15; letter-spacing: -0.025em; }
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  background: var(--apps-card);
  border: 1px solid var(--apps-line);
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(28, 43, 67, 0.08);
}

.app-icon { width: 86px; height: 86px; border-radius: 20px; object-fit: cover; box-shadow: 0 10px 24px rgba(24, 36, 58, 0.18); }
.app-card h2 { margin: 22px 0 8px; font-size: 1.42rem; line-height: 1.12; }
.app-card p { margin: 0 0 24px; color: var(--apps-muted); }
.app-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  color: white;
  background: var(--apps-blue);
  border: 1px solid var(--apps-blue);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.app-button:hover { color: white; background: var(--apps-blue-dark); }
.app-button.secondary { color: var(--apps-blue); background: transparent; }
.app-button.secondary:hover { color: white; background: var(--apps-blue); }
.app-button[disabled] { cursor: wait; opacity: 0.68; }

.app-detail-head { display: flex; align-items: center; gap: 22px; margin-bottom: 34px; }
.app-detail-head .app-icon { width: 104px; height: 104px; }
.app-detail-head h2 { margin: 0 0 6px; font-size: clamp(1.65rem, 3vw, 2.4rem); line-height: 1.05; }
.app-detail-head p { margin: 0; color: var(--apps-muted); }
.app-subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.support-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr); gap: 36px; align-items: start; }
.support-note, .policy-note { padding: 20px; background: #edf4fb; border: 1px solid #cad9ea; border-radius: 18px; }
.support-note h3 { margin-top: 0; }
.support-note ul { padding-left: 20px; margin-bottom: 0; }

.app-support-form { padding: clamp(22px, 4vw, 34px); background: white; border: 1px solid var(--apps-line); border-radius: 24px; box-shadow: 0 18px 44px rgba(28, 43, 67, 0.08); }
.app-support-form h2 { margin-top: 0; }
.support-field { display: grid; gap: 7px; margin-bottom: 18px; }
.support-field label { font-size: 0.9rem; font-weight: 800; }
.support-field input, .support-field select, .support-field textarea {
  width: 100%;
  padding: 12px 14px;
  color: var(--apps-ink);
  background: white;
  border: 1px solid #bfc9d6;
  border-radius: 12px;
  font: inherit;
}
.support-field textarea { min-height: 150px; resize: vertical; }
.support-field input:focus, .support-field select:focus, .support-field textarea:focus { outline: 3px solid rgba(31, 79, 138, 0.18); border-color: var(--apps-blue); }
.support-honeypot { position: absolute !important; left: -10000px !important; }
.support-status { margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.support-status[hidden] { display: none; }
.support-status.is-success { color: var(--apps-success); background: #e9f7ef; border: 1px solid #a8d7ba; }
.support-status.is-error { color: var(--apps-error); background: #fff0f0; border: 1px solid #e3b4b4; }

.policy { max-width: 820px; padding: clamp(24px, 5vw, 52px); margin: 0 auto; background: white; border: 1px solid var(--apps-line); border-radius: 26px; box-shadow: 0 18px 44px rgba(28, 43, 67, 0.07); }
.policy h2 { margin-top: 2.2em; font-size: 1.42rem; }
.policy h2:first-child { margin-top: 0; }
.policy h3 { margin-top: 1.6em; }
.policy li + li { margin-top: 7px; }
.policy-meta { color: var(--apps-muted); font-weight: 650; }

.apps-footer { padding: 34px clamp(20px, 5vw, 72px); color: #dbe6f4; background: #101f34; }
.apps-footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.apps-footer p { margin: 0; }
.apps-footer a { color: white; }

@media (max-width: 840px) {
  .apps-grid, .support-layout { grid-template-columns: 1fr; }
  .apps-header { align-items: flex-start; flex-direction: column; gap: 10px; }
}

@media (max-width: 520px) {
  .app-detail-head { align-items: flex-start; flex-direction: column; }
  .apps-nav { gap: 12px; }
}
