/* ============================================================
   eSkaičiuoklė.lt – main.css
   Dizaino sistema: navy + oranžinis akcentas
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ---------- CSS kintamieji ---------- */
:root {
  --c-bg:       #f4f3ef;
  --c-surface:  #ffffff;
  --c-border:   #e2e1dc;
  --c-text:     #1a1a1a;
  --c-muted:    #6b6b6b;
  --c-accent:   #e8650a;
  --c-accent-h: #c85508;
  --c-navy:     #1e2b3c;
  --c-navy-l:   #263548;
  --c-green:    #22a06b;
  --font-main:  'DM Sans', sans-serif;
  --font-mono:  'Space Mono', monospace;
  --radius:     10px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --transition: .18s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  background: var(--c-navy);
  border-bottom: 3px solid var(--c-accent);
  position: sticky; top: 0; z-index: 100;
}
.nav__inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
}
.nav__logo {
  width: 32px; height: 32px;
  background: var(--c-accent);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav__logo svg { color: #fff; }
.nav__title {
  font-family: var(--font-mono);
  font-size: 18px; font-weight: 700;
  color: #fff; letter-spacing: -0.5px;
}
.nav__title span { color: var(--c-accent); }
.nav__links {
  display: flex; gap: 4px; list-style: none; align-items: center;
}
.nav__links a {
  color: rgba(255,255,255,.75);
  font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  transition: var(--transition);
}
.nav__links a:hover,
.nav__links a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav__links a.active { color: var(--c-accent); }
.nav__cta {
  background: var(--c-accent) !important;
  color: #fff !important;
  padding: 7px 14px !important;
  border-radius: 7px !important;
  font-weight: 600 !important;
  transition: background var(--transition) !important;
}
.nav__cta:hover { background: var(--c-accent-h) !important; }

/* hamburger */
.nav__burger {
  display: none; background: none; border: none;
  padding: 6px; flex-direction: column; gap: 5px;
}
.nav__burger span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,.8); border-radius: 2px;
  transition: var(--transition);
}
.nav__mobile {
  display: none; flex-direction: column;
  background: var(--c-navy-l);
  padding: 8px 16px 12px;
}
.nav__mobile a {
  color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: block; transition: var(--transition);
}
.nav__mobile a:last-child { border: none; }
.nav__mobile a:hover { color: var(--c-accent); }
.nav__mobile.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--c-navy) 0%, #2a3f58 100%);
  padding: 60px 20px 56px;
  text-align: center;
}
.page-hero__inner {
  max-width: 680px; margin: 0 auto;
}
.page-hero__badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(232,101,10,.15);
  border: 1px solid rgba(232,101,10,.4);
  color: var(--c-accent);
  font-size: 12px; font-family: var(--font-mono);
  padding: 5px 12px; border-radius: 20px;
  margin-bottom: 20px;
}
.page-hero h1 {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700; color: #fff;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero h1 span { color: var(--c-accent); }
.page-hero p {
  color: rgba(255,255,255,.65);
  font-size: clamp(14px, 2vw, 16px);
  max-width: 520px; margin: 0 auto 32px;
  line-height: 1.7;
}
.page-hero__stats {
  display: flex; justify-content: center; gap: 40px;
  flex-wrap: wrap;
}
.page-hero__stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.page-hero__stat strong {
  font-family: var(--font-mono);
  font-size: 24px; font-weight: 700;
  color: var(--c-accent);
}
.page-hero__stat span {
  font-size: 11px; color: rgba(255,255,255,.45);
  text-transform: uppercase; letter-spacing: .6px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.main-content { flex: 1; }
.container {
  max-width: 1280px; margin: 0 auto;
  padding: 0 16px;
}

/* ============================================================
   KATEGORIJŲ BLOKAI
   ============================================================ */
.category-block {
  padding: 40px 0 8px;
  border-bottom: 1px solid var(--c-border);
}
.category-block:last-child { border-bottom: none; }

.category-header {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px;
}
.category-icon {
  font-size: 22px;
  width: 44px; height: 44px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.category-header h2 {
  font-size: 18px; font-weight: 600;
  color: var(--c-text); margin-bottom: 2px;
}
.category-header p {
  font-size: 12px; color: var(--c-muted);
}

/* ============================================================
   KORTELIŲ TINKLELIS
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding-bottom: 32px;
}

.calc-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

/* Aktyvi kortelė */
.calc-card--active {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent), var(--shadow-md);
}
.calc-card--active::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-accent);
}
.calc-card--active:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--c-accent), 0 8px 24px rgba(232,101,10,.2);
}

/* Išjungta kortelė */
.calc-card--disabled {
  opacity: .6;
  cursor: not-allowed;
  filter: grayscale(100%) contrast(0.9);
  pointer-events: none;
}
.calc-card--disabled:hover {
  box-shadow: var(--shadow-sm);
}

.card-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 10px;
}
.card-emoji { font-size: 22px; line-height: 1; }
.card-arrow {
  font-size: 16px; color: var(--c-border);
  transition: color var(--transition);
}
.calc-card--active .card-arrow { color: var(--c-accent); }

.card-name {
  font-size: 14px; font-weight: 600;
  color: var(--c-text);
  margin-bottom: 6px; line-height: 1.35;
}
.card-desc {
  font-size: 12px; color: var(--c-muted);
  line-height: 1.6; flex: 1;
  margin-bottom: 12px;
}

/* Žymės */
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; }
.tag {
  font-size: 10px; font-weight: 600;
  font-family: var(--font-mono);
  padding: 3px 7px; border-radius: 4px;
  letter-spacing: .3px;
}
.tag-new     { background: rgba(232,101,10,.12); color: var(--c-accent); }
.tag-popular { background: rgba(34,160,107,.12); color: var(--c-green); }
.tag-status  { background: var(--c-bg); color: var(--c-muted); border: 1px solid var(--c-border); }

/* ============================================================
   APIE PROJEKTĄ
   ============================================================ */
.about-section {
  background: var(--c-navy);
  padding: 64px 0;
  color: #fff;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.section-badge {
  display: inline-block;
  background: rgba(232,101,10,.2);
  border: 1px solid rgba(232,101,10,.4);
  color: var(--c-accent);
  font-size: 11px; font-family: var(--font-mono);
  padding: 4px 10px; border-radius: 20px;
  margin-bottom: 14px;
}
.about-text h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600; color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.about-text p { font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.7; }
.about-text strong { color: rgba(255,255,255,.9); }

.about-features { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.about-feature {
  display: flex; gap: 12px; align-items: flex-start;
}
.about-feature__icon {
  width: 28px; height: 28px;
  background: rgba(232,101,10,.15);
  border: 1px solid rgba(232,101,10,.3);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--c-accent);
}
.about-feature h4 {
  font-size: 13px; font-weight: 600; color: #fff;
  margin-bottom: 3px;
}
.about-feature p { font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.6; }
.about-feature strong { color: rgba(255,255,255,.8); }

.about-highlights {
  display: flex; flex-direction: column; gap: 14px;
}
.highlight-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px;
  background: var(--c-accent);
}
.highlight-num {
  font-family: var(--font-mono);
  font-size: 26px; font-weight: 700;
  color: rgba(232,101,10,.18);
  line-height: 1;
  display: block; margin-bottom: 6px;
}
.highlight-card h3 {
  font-size: 14px; font-weight: 600; color: #fff;
  margin-bottom: 4px;
}
.highlight-card p { font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.6; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section {
  padding: 64px 0;
  background: var(--c-bg);
}
.section-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-header h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600; letter-spacing: -0.3px;
  margin-bottom: 6px;
}
.section-header p { font-size: 14px; color: var(--c-muted); }
.section-header .section-badge { margin-bottom: 12px; }

.faq-list {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  padding: 16px 18px;
  background: none; border: none;
  font-size: 14px; font-weight: 600;
  color: var(--c-text);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: background var(--transition);
}
.faq-q:hover { background: var(--c-bg); }
.faq-q svg { flex-shrink: 0; transition: transform .2s; color: var(--c-accent); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 18px 16px;
  font-size: 13px; color: var(--c-muted); line-height: 1.7;
  border-top: 1px solid var(--c-border);
}
.faq-a p { padding-top: 14px; }
.faq-item.open .faq-a { display: block; }
.faq-a strong { color: var(--c-text); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--c-navy);
  border-top: 3px solid var(--c-accent);
  color: rgba(255,255,255,.65);
  padding: 40px 20px 24px;
}
.footer__inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.footer__brand p {
  font-size: 13px; line-height: 1.7; margin-top: 6px; max-width: 260px;
}
.footer__col h4 {
  font-size: 11px; font-weight: 600;
  color: #fff; letter-spacing: .8px;
  text-transform: uppercase; margin-bottom: 12px;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer__col a {
  font-size: 13px; color: rgba(255,255,255,.55);
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--c-accent); }
.footer__bottom {
  max-width: 1280px; margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: rgba(255,255,255,.35);
}

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .page-hero { padding: 44px 16px 40px; }
  .page-hero__stats { gap: 24px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 24px; }
  .category-block { padding-top: 28px; }
}

@media (max-width: 420px) {
  .cards-grid { grid-template-columns: 1fr; }
  .about-features { gap: 12px; }
}
