/* ============================================================
   Neužkibk! statinių puslapių dizaino sistema
   Paletė: navy (žaidimo pasaulis) + amber (kabliuko įspėjimas)
   Signature: hero telefono maketas su požymių etiketėmis
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f4f5f9;
  --card: #ffffff;
  --ink: #1c2130;
  --muted: #6b7285;
  --line: #e4e7f0;
  --accent: #2f6df6;
  --accent-dark: #2159d6;
  --amber: #ffb74d;
  --danger: #d64545;
  --navy: #141a2e;
  --navy2: #222c52;
  --radius: 16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--accent); }

/* Prieinamumas: matomas klaviatūros fokusas visur */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.nav :focus-visible, .footer :focus-visible { outline-color: var(--amber); }

.eyebrow {
  font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent); margin-bottom: .5rem;
}
.hero .eyebrow { color: var(--amber); }

/* ===== Navigacija ===== */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  background: var(--navy); color: #fff;
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand img { width: auto; height: 2.4rem; }
.nav nav { display: flex; align-items: center; gap: clamp(.8rem, 2.5vw, 1.6rem); flex-wrap: wrap; }
.nav nav a { color: #cdd6f4; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav nav a:hover { color: #fff; }
.nav .nav-cta { background: var(--accent); color: #fff !important; padding: .45rem 1.1rem; border-radius: 999px; }
.nav .nav-cta:hover { background: var(--accent-dark); }

/* ===== Hero su telefono maketu ===== */
.hero {
  background: radial-gradient(ellipse at 20% 10%, var(--navy2), var(--navy) 70%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.2rem clamp(2.8rem, 7vw, 5rem);
  overflow: hidden;
}
.hero-grid {
  max-width: 64rem; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.14;
  letter-spacing: -.02em; font-weight: 800; margin-bottom: 1rem;
}
.hero .sub { color: #cdd6f4; font-size: clamp(1rem, 2.2vw, 1.15rem); margin-bottom: 1.6rem; max-width: 34rem; }
.hero-cta { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.08rem; padding: .95rem 2.1rem; border-radius: 14px;
  transition: transform .1s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn.btn-orange { background: var(--amber); color: var(--navy); box-shadow: 0 8px 28px rgba(255,183,77,.25); }
.btn.btn-orange:hover { background: #ffc76b; }
.btn-ghost { color: #cdd6f4; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(205,214,244,.4); padding-bottom: .1rem; }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.hero .hero-note { margin-top: 1.1rem; color: #8fa1d9; font-size: .9rem; }

/* Telefono maketas — puslapio signature */
.hero-phone { position: relative; justify-self: center; }
.hp-frame {
  width: min(19rem, 78vw);
  background: linear-gradient(160deg, #35427a, #1b2340);
  border: 8px solid #0b0e18; border-radius: 34px;
  padding: 1.6rem 1rem 1.4rem;
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
  transform: rotate(-2.5deg);
}
.hp-clock { font-size: 2.6rem; font-weight: 200; text-align: center; letter-spacing: 2px; }
.hp-date { text-align: center; font-size: .78rem; opacity: .7; margin-bottom: 1.1rem; }
.hp-notif {
  display: flex; gap: .6rem; align-items: flex-start;
  background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: 14px; padding: .7rem .8rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
.hp-notif-icon { font-size: 1.4rem; }
.hp-notif-app { font-size: .62rem; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.hp-notif-title { font-weight: 700; font-size: .9rem; }
.hp-notif-text { font-size: .78rem; color: #3d4356; line-height: 1.45; }
.hp-link { color: var(--accent); text-decoration: underline; word-break: break-all; }
.hp-q { text-align: center; font-size: .8rem; font-weight: 700; margin: 1rem 0 .5rem; opacity: .9; }
.hp-chips { display: flex; flex-direction: column; gap: .4rem; }
.hp-chip {
  font-size: .8rem; font-weight: 600; padding: .5rem .8rem; border-radius: 10px;
  background: rgba(255,255,255,.12); color: #fff;
}
.hp-chip.safe { background: rgba(125,226,160,.18); color: #a8f0c2; }
.hp-chip.rep { background: rgba(255,140,140,.16); color: #ffb3b3; }

.hp-tag {
  position: absolute; background: #fff; color: var(--danger);
  font-size: .78rem; font-weight: 700; padding: .4rem .7rem; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  white-space: nowrap;
  animation: floaty 5s ease-in-out infinite;
}
.hp-tag.t1 { top: 34%; right: -1.8rem; }
.hp-tag.t2 { bottom: 22%; left: -2.2rem; animation-delay: -2.5s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ===== Sekcijos ===== */
.section { max-width: 62rem; margin: 0 auto; padding: clamp(2.2rem, 6vw, 4rem) 1.2rem; }
.section h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); letter-spacing: -.015em; margin-bottom: 1.2rem; }
.section .section-lead { color: var(--muted); max-width: 44rem; margin-bottom: 1.6rem; }
.sec-alt { background: var(--card); }
.sec-alt .section { padding-top: clamp(2.2rem, 6vw, 3.4rem); padding-bottom: clamp(2.2rem, 6vw, 3.4rem); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card {
  background: var(--card); border-radius: var(--radius); padding: 1.3rem;
  box-shadow: 0 2px 12px rgba(20,30,60,.07);
  border: 1px solid transparent;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,30,60,.12); border-color: #d9e2fb; }
.sec-alt .card { border: 1px solid var(--line); box-shadow: none; }
.card .card-icon { font-size: 1.9rem; margin-bottom: .5rem; }
.card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.card p { font-size: .93rem; color: var(--muted); }
.card a { font-weight: 600; }
.card-link { text-decoration: none; color: inherit; display: block; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.step { background: var(--card); border-radius: var(--radius); padding: 1.3rem; box-shadow: 0 2px 12px rgba(20,30,60,.07); }
.step::before {
  counter-increment: step; content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 800; margin-bottom: .7rem;
}
.step { line-height: 1.55; }

/* ===== DUK ===== */
.box-ai {
  background: linear-gradient(135deg, #232e57, #151b30); color: #fff;
  border-radius: var(--radius); padding: 1.3rem 1.4rem; margin-top: 1.6rem;
  border-left: 4px solid var(--amber);
}
.box-ai p { color: #cdd6f4; font-size: .93rem; margin: .5rem 0 .8rem; line-height: 1.6; }
.box-ai a { color: var(--amber); font-weight: 700; text-decoration: none; }
.box-ai a:hover { text-decoration: underline; }

.faq details {
  background: var(--card); border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: .6rem;
  box-shadow: 0 2px 10px rgba(20,30,60,.06);
}
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin-top: .6rem; color: var(--ink); font-size: .95rem; }

/* ===== Straipsniai ===== */
.article { max-width: 46rem; margin: 0 auto; padding: clamp(1.6rem, 5vw, 3rem) 1.2rem 3rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { color: var(--muted); }
.article h1 { font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.22; letter-spacing: -.015em; margin-bottom: 1rem; }
.article .lead {
  font-size: 1.08rem; background: #eef3ff; border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0; padding: 1rem 1.2rem; margin-bottom: 1.6rem;
}
.article h2 { font-size: 1.35rem; letter-spacing: -.01em; margin: 2rem 0 .7rem; }
.article h3 { font-size: 1.1rem; margin: 1.4rem 0 .5rem; }
.article p { margin-bottom: .9rem; }
.article ul, .article ol { margin: 0 0 1rem 1.4rem; }
.article li { margin-bottom: .45rem; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 1.2rem; font-size: .93rem; }
.article th, .article td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.article th { background: #eef3ff; }
.article .box-warn {
  background: #fff4dd; border-left: 4px solid var(--amber);
  border-radius: 0 12px 12px 0; padding: .9rem 1.1rem; margin: 1rem 0;
}
.meta-line { color: var(--muted); font-size: .85rem; margin-bottom: 1.4rem; }
.senior-type .article { font-size: 1.1rem; }

.cta-box {
  background: linear-gradient(135deg, var(--navy2), var(--navy)); color: #fff;
  border-radius: var(--radius); padding: 1.8rem 1.6rem; text-align: center; margin: 2.2rem 0;
}
.cta-box p { color: #cdd6f4; margin-bottom: 1rem; }
.cta-box h2, .cta-box h3 { color: #fff; margin: 0 0 .5rem; letter-spacing: -.01em; }

.author-box {
  display: flex; gap: .9rem; align-items: center; background: var(--card);
  border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 2rem;
  box-shadow: 0 2px 10px rgba(20,30,60,.06); font-size: .9rem;
}
.author-box img { width: 3rem; height: 3rem; border-radius: 10px; }
.sources { font-size: .88rem; color: var(--muted); margin-top: 1.6rem; }
.sources ul { margin-left: 1.3rem; }

/* ===== 404 ===== */
.err-wrap {
  min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 3rem 1.2rem; gap: .6rem;
}
.err-code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--navy); letter-spacing: -.03em; line-height: 1; }
.err-wrap p { color: var(--muted); max-width: 28rem; }

/* ===== Poraštė ===== */
.footer { background: var(--navy); color: #8fa1d9; padding: 2rem 1.2rem; margin-top: 2rem; font-size: .9rem; }
.footer-inner {
  max-width: 62rem; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center;
}
.footer-inner > div:last-child { flex-basis: 100%; text-align: center; }
.footer a { color: #cdd6f4; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .footer-brand img { width: auto; height: 2.2rem; display: block; }
.footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.socials { display: flex; gap: .7rem; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #cdd6f4;
  transition: background .15s, color .15s, transform .1s;
}
.socials a:hover { background: var(--amber); color: var(--navy); transform: translateY(-2px); }
.socials svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

/* ===== Mobilus ===== */
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-phone { margin-top: 1.6rem; }
  .hp-tag.t1 { right: 0; }
  .hp-tag.t2 { left: 0; }
}
@media (max-width: 560px) {
  .nav { flex-direction: column; align-items: center; gap: .5rem; }
  .nav nav { justify-content: center; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer nav { justify-content: center; }
  .footer .footer-brand { display: none; }
}

/* Prieinamumas: gerbiam sumažintą judesį */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
