/* ME-BUILD: 20261014-0800 | by: Klemens | scope: mediaexpress.us AI department (/ai/, /pl/ai/) shared stylesheet. Loaded after me-ui.css; only AI department pages use it. CMS MESH 5.1 (Media Express Static Hub). */

:root {
  --ai: #a855f7;
  --ai2: #c084fc;
  --ai-dim: rgba(168,85,247,.12);
  --ai-border: rgba(168,85,247,.34);
  --ai-glow: rgba(168,85,247,.42);
}

.ai-page { background: var(--bg); }

/* ── HERO: one screen, height-aware sizes (golden hero standard) ── */
#ai-hero .container { max-width: 1180px; width: 100%; padding: 0 24px; }
#ai-hero .hero-content { max-width: 980px; }
#ai-hero .hero-orb-1 { background: var(--ai-glow) !important; filter: blur(90px); }
#ai-hero .hero-orb-2 { background: rgba(168,85,247,.22) !important; }
#ai-hero .hero-orb-3 { background: rgba(96,165,250,.16) !important; }
#ai-hero .hero-label {
  color: var(--ai2); background: var(--ai-dim); border-color: var(--ai-border);
  margin-bottom: clamp(8px, 2.2vh, 24px);
}
#ai-hero .hero-label-dot { background: var(--ai); box-shadow: 0 0 8px var(--ai); }
#ai-hero h1 {
  font-size: clamp(1.5rem, min(4.4vw, 6.4vh), 3rem) !important;
  margin-bottom: clamp(8px, 2vh, 22px);
}
#ai-hero h1 em {
  font-style: normal; color: var(--ai2);
  background: none; -webkit-text-fill-color: currentColor;
}
#ai-hero .hero-sub {
  font-size: clamp(.9rem, min(1.8vw, 2.5vh), 1.16rem);
  line-height: 1.55;
  max-width: 780px;
  margin-bottom: clamp(12px, 3vh, 30px);
}
#ai-hero .hero-actions { margin-bottom: clamp(10px, 2.6vh, 30px); }
#ai-hero .hero-trust { font-size: clamp(.68rem, 1.9vh, .8rem); }
#ai-hero .hero-scroll { border-color: var(--ai-border); color: var(--ai2); background: var(--ai-dim); }
#ai-hero .hero-scroll:hover { border-color: var(--ai); color: #fff; background: var(--ai-glow); }
@media (max-height: 620px) { #ai-hero .hero-trust { display: none; } }
@media (max-height: 520px) { #ai-hero .hero-sub { display: none; } }

/* ── SECTIONS ── */
.ai-section { padding: clamp(48px, 8vh, 84px) 24px; max-width: 1180px; margin: 0 auto; }
.ai-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.ai-eyebrow {
  display: inline-block; color: var(--ai2); font-size: .72rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px;
}
.ai-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 900; line-height: 1.15;
  letter-spacing: -.01em; color: var(--text); margin: 0 0 14px;
}
.ai-title em { font-style: normal; color: var(--ai2); }
.ai-lead { color: var(--text2); font-size: 1.04rem; line-height: 1.75; max-width: 780px; margin: 0 0 34px; }
.ai-lead a, .ai-text a, .ai-ans a { color: var(--ai2); text-decoration: underline; text-underline-offset: 3px; }
.ai-lead a:hover, .ai-text a:hover, .ai-ans a:hover { color: #fff; }
.ai-text { color: var(--text2); line-height: 1.8; max-width: 820px; margin: 0 0 16px; }
.ai-note { font-size: .8rem; color: var(--muted); line-height: 1.6; max-width: 820px; margin-top: 18px; }

/* ── CARDS ── */
.ai-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.ai-grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.ai-grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ai-card {
  background: linear-gradient(155deg, var(--card) 0%, var(--card2) 100%);
  border: 1px solid var(--border-solid); border-radius: var(--r-lg);
  padding: 28px 26px; display: flex; flex-direction: column;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
a.ai-card, .ai-card.is-link { color: inherit; text-decoration: none; }
a.ai-card:hover, .ai-card.is-link:hover {
  border-color: var(--ai-border); transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 1px var(--ai-border);
}
.ai-card .ic { font-size: 1.8rem; line-height: 1; margin-bottom: 14px; }
.ai-card h3 { color: var(--text); font-size: 1.12rem; font-weight: 800; margin: 0 0 8px; line-height: 1.3; }
.ai-card p { color: var(--text2); font-size: .94rem; line-height: 1.65; margin: 0; }
.ai-card .ai-go { margin-top: auto; padding-top: 16px; color: var(--ai2); font-weight: 700; font-size: .9rem; }
.ai-price { font-size: 1.7rem; font-weight: 900; color: var(--ai2); letter-spacing: -.01em; margin-bottom: 4px; }

/* ── DIRECTORY (all services) ── */
.ai-dir { display: grid; gap: 28px 36px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ai-dir h3 {
  font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ai2); padding-bottom: 8px; border-bottom: 2px solid var(--ai-border); margin: 0 0 10px;
}
.ai-dir ul { list-style: none; margin: 0; padding: 0; }
.ai-dir li { margin: 0; }
.ai-dir a { display: block; padding: 9px 0; color: var(--text2); border-bottom: 1px solid var(--border); font-size: .95rem; line-height: 1.4; }
.ai-dir a b { color: var(--text); font-weight: 700; display: block; }
.ai-dir a:hover { color: #fff; padding-left: 4px; }

/* ── CHIPS ── */
.ai-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.ai-chip {
  border: 1px solid var(--ai-border); background: var(--ai-dim); border-radius: 50px;
  padding: 8px 16px; font-size: .84rem; font-weight: 700; color: var(--text2);
}
a.ai-chip:hover { color: #fff; border-color: var(--ai); }

/* ── STEPS ── */
.ai-steps { counter-reset: aistep; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ai-step {
  counter-increment: aistep; background: var(--card); border: 1px solid var(--border-solid);
  border-radius: var(--r-lg); padding: 24px 22px;
}
.ai-step::before {
  content: counter(aistep); display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px; font-weight: 900;
  color: #fff; background: linear-gradient(135deg, var(--ai), #6366f1);
}
.ai-step h3 { color: var(--text); font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; }
.ai-step p { color: var(--text2); font-size: .92rem; line-height: 1.6; margin: 0; }

/* ── TABLE ── */
.ai-table-wrap { overflow-x: auto; border: 1px solid var(--border-solid); border-radius: var(--r-lg); background: var(--card); }
.ai-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.ai-table th {
  text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ai2); padding: 14px 18px; border-bottom: 2px solid var(--ai-border); background: rgba(168,85,247,.06);
}
.ai-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text2); font-size: .92rem; line-height: 1.55; vertical-align: top; }
.ai-table td:first-child { color: var(--text); font-weight: 700; white-space: nowrap; }
.ai-table tr:last-child td { border-bottom: none; }

/* ── LIST WITH MARKS ── */
.ai-list { list-style: none; margin: 0 0 18px; padding: 0; max-width: 820px; }
.ai-list li { position: relative; padding: 8px 0 8px 30px; color: var(--text2); line-height: 1.65; border-bottom: 1px solid var(--border); }
.ai-list li::before { content: "\2713"; position: absolute; left: 4px; top: 8px; color: var(--ai2); font-weight: 900; }
.ai-list.x li::before { content: "\00D7"; color: #f87171; }
.ai-list b { color: var(--text); }

/* ── FAQ (one open at a time through details name) ── */
.ai-faq { max-width: 880px; }
.ai-faq details { border: 1px solid var(--border-solid); border-radius: var(--r); background: var(--card); margin: 0 0 10px; }
.ai-faq details[open] { border-color: var(--ai-border); }
.ai-faq summary {
  cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; position: relative;
  font-weight: 700; color: var(--text); line-height: 1.45;
}
.ai-faq summary::-webkit-details-marker { display: none; }
.ai-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--ai2); }
.ai-faq details[open] summary::after { content: "\2212"; }
.ai-faq .ai-ans { padding: 0 20px 18px; color: var(--text2); line-height: 1.75; }
.ai-faq .ai-ans p { margin: 0 0 10px; }

/* ── CTA + BREADCRUMB ── */
.ai-cta { text-align: center; padding: clamp(56px, 9vh, 96px) 24px; background: var(--surface); border-top: 1px solid var(--border); }
.ai-cta .ai-title { max-width: 760px; margin-left: auto; margin-right: auto; }
.ai-cta p { color: var(--text2); max-width: 640px; margin: 0 auto 28px; line-height: 1.7; }
.ai-cta .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ai-cta .contact { margin-top: 22px; color: var(--muted); font-size: .9rem; }
.ai-cta .contact a { color: var(--ai2); }
.ai-crumbs { max-width: 1180px; margin: 0 auto; padding: 18px 24px 0; font-size: .8rem; color: var(--muted); }
.ai-crumbs a { color: var(--muted); }
.ai-crumbs a:hover { color: var(--ai2); }

@media (max-width: 640px) {
  .ai-grid.cols-2 { grid-template-columns: 1fr; }
  .ai-section { padding-left: 18px; padding-right: 18px; }
}
