/* ═══════════════════════════════════════════════════════
   MINDPLAY-COACH · DESIGN SYSTEM v2.0
   Single source of truth for all visual tokens
═══════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  /* Brand Colors */
  --navy:       #071B3A;
  --navy-2:     #0C2A57;
  --navy-3:     #112f60;
  --navy-4:     #183870;
  --navy-5:     #1e4280;
  --yellow:     #F6C21A;
  --yellow-dim: rgba(246,194,26,0.80);
  --yellow-bg:  rgba(246,194,26,0.10);
  --yellow-bdr: rgba(246,194,26,0.30);
  --white:      #FFFFFF;

  /* Text Hierarchy */
  --t1: #FFFFFF;                   /* Primary   – headlines, labels */
  --t2: rgba(255,255,255,0.85);    /* Secondary – body, descriptions */
  --t3: rgba(255,255,255,0.70);    /* Tertiary  – hints, placeholders */

  /* Borders */
  --line:       rgba(255,255,255,0.09);
  --line-md:    rgba(255,255,255,0.16);
  --line-hi:    rgba(255,255,255,0.26);

  /* Shadows */
  --shadow-sm:  0 4px 16px rgba(0,0,0,0.35);
  --shadow-md:  0 12px 36px rgba(0,0,0,0.45);
  --shadow-lg:  0 24px 64px rgba(0,0,0,0.60);
  --shadow-y:   0 8px 28px -4px rgba(246,194,26,0.35);

  /* Radii */
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  26px;
  --r-pill:99px;

  /* Typography */
  --font-head: 'Archivo', sans-serif;
  --font-body: 'Albert Sans', sans-serif;
  --font-disp: 'Anton', sans-serif;

  /* Transitions */
  --t-fast: .15s ease;
  --t-med:  .25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--t1);
  background-color: var(--navy);
  background-image:
    radial-gradient(ellipse 90% 55% at 15% 10%, rgba(24,56,112,0.55) 0%, transparent 60%),
    radial-gradient(ellipse 70% 45% at 85% 80%, rgba(7,27,58,0.70) 0%, transparent 65%),
    url('bg-texture.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center center;
  background-attachment: fixed;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
/* background-attachment:fixed is unreliable on mobile browsers (causes
   rendering glitches and jank on iOS Safari) – use normal scrolling there */
@media(max-width: 760px) {
  body { background-attachment: scroll; }
}
::selection { background: var(--yellow); color: var(--navy); }

/* ── Layout ── */
.wrap {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ── Navigation ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,27,58,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-md);
}
.nav {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 0; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 38px; width: auto; border-radius: 8px; }
.brand .tag {
  font-family: var(--font-head); font-weight: 700;
  letter-spacing: .1em; font-size: 11px;
  color: var(--yellow); text-transform: uppercase;
}
.brand .tag small {
  display: block; color: var(--t3);
  font-weight: 500; font-size: 10px;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  color: var(--t2); text-decoration: none;
  padding: 7px 11px; border-radius: var(--r-sm);
  transition: color var(--t-fast), background var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--yellow); }
.nav-links a.nav-gu {
  color: #00C6B2; border: 1px solid rgba(0,198,178,0.45);
  background: rgba(0,198,178,0.08);
}
.nav-links a.nav-gu:hover { background: rgba(0,198,178,0.16); color: #00d8c2; border-color: rgba(0,198,178,0.7); }

.nav-right { display: flex; align-items: center; gap: 8px; }

/* Avatar */
.avatar-wrap { position: relative; }
.avatar-btn {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--navy-3); border: 1px solid var(--line-md);
  border-radius: var(--r-pill); padding: 5px 12px 5px 5px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--t1); transition: background var(--t-fast);
}
.avatar-btn:hover { background: var(--navy-4); }
.avatar-circle {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow); color: var(--navy);
  font-family: 'Roboto', sans-serif; font-weight: 900; font-size: 12px;
  display: grid; place-items: center; flex-shrink: 0; letter-spacing: .02em;
}
.avatar-drop {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--navy-2); border: 1px solid var(--line-md);
  border-radius: var(--r-md); overflow: hidden; min-width: 195px;
  box-shadow: var(--shadow-lg); display: none; z-index: 200;
}
.avatar-drop.open { display: block; }
.avatar-drop a, .avatar-drop button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 16px; font-family: var(--font-head); font-weight: 600;
  font-size: 13.5px; color: var(--t2); text-decoration: none;
  background: none; border: none; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast); text-align: left;
}
.avatar-drop a:hover, .avatar-drop button:hover {
  background: rgba(255,255,255,0.06); color: var(--white);
}
.avatar-drop .sep { height: 1px; background: var(--line); margin: 4px 0; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: 1px solid var(--line-md);
  border-radius: var(--r-sm); padding: 8px; cursor: pointer; color: var(--t1);
  align-items: center;
}
@media(max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
.nav-links.open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(7,27,58,0.97); border-bottom: 1px solid var(--line-md);
  padding: 12px 20px 16px; gap: 4px; z-index: 150;
  backdrop-filter: blur(16px);
}

/* Header overflow fix on narrow phones: brand subtitle + lang code + avatar
   chevron take up too much space alongside the hamburger and can push the
   nav wider than the viewport, causing horizontal scrolling. */
@media(max-width: 480px) {
  .nav { gap: 4px; }
  .nav-right { gap: 4px; }
  .brand { gap: 8px; }
  .brand .tag small { display: none; }
  .brand .tag { font-size: 10px; }
  .lang-btn { padding: 5px 8px; }
  .lang-btn .flag-code { display: none; }
  .avatar-btn { padding: 4px; gap: 0; }
  .avatar-btn svg { display: none; }
}

/* Lang picker */
.lang-wrap { position: relative; display: flex; align-items: center; }
.lang-btn {
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line-md); background: rgba(255,255,255,0.07);
  color: var(--t1); font-family: var(--font-head); font-weight: 700;
  font-size: 12px; transition: background var(--t-fast);
  user-select: none; white-space: nowrap;
}
.lang-btn:hover { background: rgba(255,255,255,0.13); }
.lang-drop {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--navy-2); border: 1px solid var(--line-md);
  border-radius: var(--r-md); overflow: hidden; min-width: 160px;
  box-shadow: var(--shadow-lg); display: none; z-index: 300;
}
.lang-drop.open { display: block; }
.lang-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--t2); transition: background var(--t-fast), color var(--t-fast);
}
.lang-opt:hover, .lang-opt.active {
  background: rgba(255,255,255,0.06); color: var(--white);
}
.lang-opt.active .flag-label { color: var(--yellow); }
.flag-svg { display: flex; align-items: center; flex-shrink: 0; }

/* ── Buttons ── */
.btn {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  border: 1px solid var(--line-md); background: var(--navy-3);
  color: var(--t1); padding: 11px 18px; border-radius: var(--r-md);
  cursor: pointer; transition: transform var(--t-fast), background var(--t-med), border-color var(--t-fast);
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); background: var(--navy-4); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: var(--yellow); color: var(--navy); border-color: var(--yellow);
  font-size: 15px; padding: 13px 24px; border-radius: var(--r-md);
  box-shadow: var(--shadow-y);
}
.btn.primary:hover { background: #fdd23a; border-color: #fdd23a; }
.btn.ghost { background: rgba(255,255,255,0.07); border-color: var(--line-md); }
.btn.ghost:hover { background: rgba(255,255,255,0.13); }
.btn.sm { font-size: 13px; padding: 8px 14px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ── Cards / Panels ── */
.card {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, rgba(12,42,87,0.60), rgba(7,27,58,0.75));
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-md);
}
.card-hover {
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med);
}
.card-hover:hover {
  transform: translateY(-5px);
  border-color: var(--line-hi);
  box-shadow: var(--shadow-lg);
}

/* ── Tiles (Was brauchst du heute) ── */
.tiles-section { padding: 80px 0 30px; }
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media(max-width: 1080px) { .tiles-grid { grid-template-columns: repeat(3,1fr); } }
@media(max-width: 660px)  { .tiles-grid { grid-template-columns: 1fr 1fr; } }

.tile {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 22px 24px;
  background: linear-gradient(160deg, rgba(17,47,96,0.75), rgba(7,27,58,0.85));
  border: 1px solid var(--line-md); border-radius: var(--r-xl);
  cursor: pointer; text-decoration: none; color: inherit;
  transition: transform var(--t-med), border-color var(--t-med), box-shadow var(--t-med), background var(--t-med);
  position: relative; overflow: hidden;
}
.tile::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(246,194,26,0.06) 0%, transparent 55%);
  opacity: 0; transition: opacity var(--t-med);
}
.tile:hover { transform: translateY(-6px); border-color: rgba(246,194,26,0.4); box-shadow: 0 24px 56px -16px rgba(0,0,0,0.65), 0 0 0 1px rgba(246,194,26,0.12); }
.tile:hover::before { opacity: 1; }

.tile-gu {
  background: linear-gradient(160deg, #0a0c18, #0e1030);
  border-color: rgba(246,194,26,0.20);
}
.tile-gu:hover { border-color: rgba(246,194,26,0.55); box-shadow: 0 24px 56px -16px rgba(0,0,0,0.65), 0 0 32px rgba(246,194,26,0.10); }

.tile-ico {
  width: 54px; height: 54px; border-radius: 16px;
  display: grid; place-items: center; flex-shrink: 0;
}
.tile-ico svg { width: 27px; height: 27px; }
.tile h3 {
  font-family: var(--font-head); font-weight: 800; font-size: 16px;
  color: var(--white); line-height: 1.2;
}
.tile p { font-size: 13.5px; color: var(--t2); line-height: 1.6; flex: 1; }
.tile-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--yellow); margin-top: 6px; transition: gap var(--t-fast);
}
.tile:hover .tile-cta { gap: 10px; }

/* ── Problem Chips ── */
.prob-section { padding: 50px 0 70px; }
.prob-section .section-label { margin-bottom: 6px; }
.prob-section .section-sub { margin-bottom: 28px; }
.prob-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media(max-width: 860px) { .prob-chips { grid-template-columns: repeat(2, 1fr); } }
@media(max-width: 520px) { .prob-chips { grid-template-columns: 1fr; } }

.prob-chip {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(17,47,96,0.60), rgba(7,27,58,0.70));
  border: 1px solid var(--line-md); border-radius: var(--r-lg);
  padding: 16px 20px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  color: var(--t2); transition: all var(--t-fast); text-decoration: none;
  min-height: 58px;

}
.prob-chip span:first-child { font-size: 20px; flex-shrink: 0; }
.prob-chip:hover {
  border-color: rgba(246,194,26,0.50);
  color: var(--white);
  background: linear-gradient(135deg, rgba(246,194,26,0.10), rgba(17,47,96,0.70));
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(246,194,26,0.15);
}

/* ── Section Labels ── */
.section-label {
  font-family: var(--font-disp);
  font-size: clamp(26px, 4vw, 40px);
  color: var(--white); margin-bottom: 10px; letter-spacing: .01em;
}
.section-sub { color: var(--t2); font-size: 16px; margin-bottom: 36px; }

/* ── About Teaser ── */
.about-teaser {
  margin: 10px 0 80px;
  border: 1px solid var(--line-md); border-radius: var(--r-xl);
  background: linear-gradient(155deg, rgba(17,47,96,0.55), rgba(7,27,58,0.65));
  padding: 34px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.about-av {
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-4));
  border: 2px solid var(--yellow);
  display: grid; place-items: center;
  font-family: 'Anton', sans-serif; font-size: 26px;
  color: var(--yellow); flex-shrink: 0;
}
.about-txt h3 { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--white); margin-bottom: 8px; }
.about-txt p { color: var(--t2); font-size: 14.5px; line-height: 1.65; max-width: 700px; }
.about-txt a { color: var(--yellow); text-decoration: none; }
.about-txt a:hover { text-decoration: underline; }

/* ── Hero ── */
.hero {
  position: relative; min-height: 84vh;
  display: flex; align-items: center;
  background: url('hero.jpg') center 28% / cover no-repeat; padding: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg,
      rgba(7,27,58,1.00)   0%,
      rgba(7,27,58,0.97)  28%,
      rgba(7,27,58,0.82)  52%,
      rgba(7,27,58,0.28)  72%,
      rgba(7,27,58,0.04) 100%),
    linear-gradient(to top,
      rgba(7,27,58,0.70)   0%,
      rgba(7,27,58,0.30)  30%,
      transparent         60%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 100px 0 90px 12vw; max-width: 570px;
  margin-left: 0; margin-right: auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(246,194,26,0.12); border: 1px solid rgba(246,194,26,0.30);
  border-radius: var(--r-pill); padding: 6px 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 12px;
  color: var(--yellow); text-transform: uppercase; letter-spacing: .10em; margin-bottom: 22px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }

.hero h1 {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(38px, 6.5vw, 76px); line-height: .95;
  text-transform: uppercase; color: var(--white); letter-spacing: .02em; margin-bottom: 12px;
}
.hero h1 .y { color: var(--yellow); }
.hero h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(17px, 2.2vw, 24px); color: var(--t2);
  margin-bottom: 14px; line-height: 1.3;
}
.hero p { font-size: 16px; color: var(--t2); line-height: 1.7; max-width: 500px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
@media(max-width: 760px) { .hero { min-height: auto; } .hero-content { padding: 70px clamp(20px, 5vw, 60px) 60px; } }

/* ── Forms ── */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; color: var(--t1);
}
textarea, select,
input[type="text"], input[type="number"], input[type="date"],
input[type="email"], input[type="tel"] {
  font-family: var(--font-body); font-size: 14.5px;
  color: var(--t1); background: rgba(7,27,58,0.80);
  border: 1px solid var(--line-md); border-radius: var(--r-md);
  padding: 12px 16px; width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none; appearance: none;
  color-scheme: dark;
}
/* Number- & Date-Felder: iOS/Safari zeigt sie sonst weiß */
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="date"] {
  min-height: 46px;
  -webkit-appearance: none;
  position: relative;
}
/* Kalender-Icon einfärben (WebKit / iOS Safari) */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(78%) sepia(60%) saturate(600%) hue-rotate(1deg) brightness(103%);
  cursor: pointer; opacity: 0.9;
}
input[type="date"]::-webkit-date-and-time-value { text-align: left; color: var(--t1); }
input[type="date"]::-webkit-datetime-edit { color: var(--t1); }
textarea {
  resize: vertical; min-height: 130px;
  line-height: 1.6; padding: 14px 16px;
}
textarea::placeholder, input::placeholder { color: var(--t3); }
textarea:focus, select:focus, input:focus {
  outline: none; border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(246,194,26,0.18);
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px; cursor: pointer;
}
.example-hint { font-size: 13px; color: var(--t3); font-style: italic; margin-top:6px; line-height: 1.5; }

/* ── Coach Panel ── */
.coach-panel {
  border: 1px solid var(--line-md); border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(17,47,96,0.50), rgba(7,27,58,0.65));
  box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 32px;
  backdrop-filter: blur(8px);
}
.panel-head {
  padding: 22px 28px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.panel-head .bar { width: 4px; height: 26px; border-radius: 4px; background: var(--accent, var(--yellow)); }
.panel-head h2 { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--white); }
.panel-body { padding: 28px; }

/* ── Result Card ── */
.result { margin-bottom: 40px; }
.result.hidden { display: none !important; }
.result-card {
  border: 1px solid var(--line-md); border-radius: var(--r-xl);
  background: rgba(7,27,58,0.85); box-shadow: var(--shadow-lg); overflow: hidden;
  backdrop-filter: blur(8px);
}
.rc-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 26px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.rc-head .t { font-family: var(--font-head); font-weight: 800; color: var(--white); font-size: 16px; }
.rc-head .rc-actions { display: flex; gap: 8px; }
.rc-body { padding: 8px 28px 32px; }

/* ── Markdown Output ── */
.md h1, .md h2, .md h3 {
  font-family: var(--font-head); color: var(--white);
  margin-top: 28px; margin-bottom: 12px; line-height: 1.2;
}
.md h1 { font-size: 24px; }
.md h2 { font-size: 20px; border-bottom: 1px solid var(--line-md); padding-bottom: 8px; }
.md h3 { font-size: 16px; color: var(--yellow-dim); }
.md p { margin: 10px 0; color: var(--t2); }
.md ul, .md ol { margin: 10px 0 10px 22px; }
.md li { margin: 6px 0; color: var(--t2); }
.md li::marker { color: var(--yellow); }
.md strong { color: var(--white); }
.md hr { border: none; border-top: 1px solid var(--line-md); margin: 24px 0; }
.md blockquote {
  border-left: 3px solid var(--accent, var(--yellow));
  padding: 6px 18px; margin: 14px 0;
  color: var(--t2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(246,194,26,0.06);
}

/* ── Loading ── */
.loading { display: flex; align-items: center; gap: 14px; padding: 44px 28px; color: var(--t2); }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.12);
  border-top-color: var(--accent, var(--yellow));
  animation: spin .8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.dots::after { content: ''; animation: dots 1.4s steps(4,end) infinite; }
@keyframes dots { 0%{content:''} 25%{content:'.'} 50%{content:'..'} 75%{content:'...'} }

/* ── Alerts ── */
.alert { border-radius: var(--r-md); padding: 14px 18px; font-size: 14px; border: 1px solid; }
.alert.err { background: rgba(255,80,80,0.08); border-color: rgba(255,80,80,0.35); color: #ffb0b0; }
.alert.hidden { display: none !important; }

/* ── Page Hero (subpages) ── */
.page-hero { padding: 50px 0 38px; border-bottom: 1px solid var(--line-md); margin-bottom: 36px; }
.page-hero .back {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--t2); text-decoration: none; margin-bottom: 22px;
  transition: color var(--t-fast);
}
.page-hero .back:hover { color: var(--yellow); }
.page-hero-inner { display: flex; align-items: center; gap: 22px; }
.ph-ico {
  width: 62px; height: 62px; border-radius: 18px;
  display: grid; place-items: center; flex-shrink: 0;
  background: rgba(246,194,26,0.12); color: var(--yellow);
}
.ph-ico svg { width: 30px; height: 30px; }
.page-hero h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  color: var(--white); letter-spacing: .01em;
}
.page-hero .sub { font-size: 16px; color: var(--t2); margin-top: 6px; }

/* ── Grid ── */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media(max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }

/* ── Gen Row ── */
.gen-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.gen-hint { font-size: 13px; color: var(--t3); }

/* ── PDF Toast ── */
.pdf-toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  background: var(--navy-2); border: 1px solid rgba(246,194,26,0.50);
  border-radius: var(--r-md); padding: 14px 18px; font-size: 13.5px;
  color: var(--t1); font-family: var(--font-head); font-weight: 600;
  box-shadow: var(--shadow-lg); display: none; align-items: center;
  gap: 10px; max-width: 340px;
}
.pdf-toast.show { display: flex; }
.t-close { cursor: pointer; color: var(--t3); background: none; border: none; font-size: 20px; margin-left: auto; }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--line-md);
  padding: 30px 0 52px; color: var(--t3);
  font-size: 13px; text-align: center;
}
footer strong { color: var(--yellow); }
footer a { color: var(--t3); text-decoration: none; }
footer a:hover { color: var(--t1); }
.foot-links { margin-top: 10px; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ── Print ── */
.print-head { display: none; }
.print-footer { display: none; }
@media print {
  @page { margin: 18mm 15mm; }
  body { background: #fff !important; color: #111 !important; }
  header, .page-hero, footer, .gen-row, .pdf-toast { display: none !important; }
  .wrap { width: 100% !important; max-width: 100% !important; }
  .result { margin: 0 !important; }
  .result-card { box-shadow: none !important; border: none !important; background: #fff !important; }
  .rc-head { display: none !important; }
  .rc-body { padding: 0 !important; }
  .print-head { display: flex !important; align-items: center; gap: 14px; border-bottom: 2px solid #071B3A; padding-bottom: 14px; margin-bottom: 14px; }
  .print-head img { height: 46px; border-radius: 6px; }
  .ph-t { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: #071B3A; }
  .ph-s { font-size: 12px; color: #b8860b; font-weight: 700; }
  .ph-meta { font-size: 11px; color: #666; margin-top: 2px; }
  .md, .md p, .md li, .md strong { color: #111 !important; }
  .md h1, .md h2 { color: #071B3A !important; }
  .md h3 { color: #b8860b !important; }
  .md h2 { border-color: #bbb !important; }
  .md blockquote { background: #f7f3e6 !important; color: #333 !important; }
  .print-footer { display: block !important; text-align: center; font-size: 10px; color: #999; margin-top: 40px; border-top: 1px solid #ddd; padding-top: 10px; }
}

/* ── Utility ── */
.hidden { display: none !important; }
