/* Ponas Kreditas — ramus modernus: tamsiai žalia + šviesiai pilka, tipografinis pirmas ekranas */
:root {
  --bg: #F3F5F2;
  --surface: #FFFFFF;
  --ink: #142019;
  --muted: #4D5A53;
  --line: #D9DFDA;
  --line-strong: #C9D2CC;
  --green: #1F6B4A;
  --green-dark: #17402F;
  --green-darkest: #0F2A1F;
  --green-tint: #E6EFE9;
  --on-dark: #CFE3D7;
  --on-dark-accent: #A9D1B9;
  --display: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #8FC4A6; outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: 88px; }
.section--white { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--green-dark); color: #FFFFFF; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.section--dark .eyebrow { color: var(--on-dark-accent); }
.h2 { font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.02em; }
.lead { margin: 0; color: var(--muted); font-size: 18px; max-width: 480px; }

/* Mygtukai */
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 18px; padding: 17px 28px; border-radius: 10px; border: 1px solid transparent; text-align: center; cursor: pointer; font-family: inherit; }
.btn--primary { background: var(--green); color: #FFFFFF; }
.btn--primary:hover { background: var(--green-dark); color: #FFFFFF; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--small { font-size: 15px; padding: 11px 18px; border-radius: 8px; }

/* Antraštė */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; border-radius: 8px; background: var(--green-dark); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 16px; }
.logo__name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--green); }

/* Pirmas ekranas */
.hero { padding-block: 80px 72px; }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.025em; }
.hero__lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 580px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { flex: none; }

.terms { flex: 1 1 400px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: 0 24px 48px -32px rgba(23, 64, 47, 0.35); }
.terms__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.terms__title { font-family: var(--display); font-weight: 800; font-size: 20px; }
.terms__tag { font-size: 13px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.terms dl { margin: 0; }
.terms dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid #E4E9E5; }
.terms dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.terms dt { color: var(--muted); }
.terms dd { margin: 0; font-family: var(--display); font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.terms dd small { display: block; font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--muted); }

/* Kam tinka */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split__intro { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.split__body { flex: 1 1 520px; min-width: 0; }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.case { background: var(--bg); border-radius: 12px; padding: 24px; }
.case h3 { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.case p { margin: 0; color: var(--muted); font-size: 16px; }

/* Privalumai */
.stack { display: flex; flex-direction: column; gap: 40px; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px 48px; }
.benefit { border-top: 1px solid var(--line-strong); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.benefit h3 { font-weight: 700; font-size: 20px; }
.benefit p { margin: 0; color: var(--muted); }

/* Eiga */
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.steps li { border-top: 1px solid #3F6B57; padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.steps__num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--on-dark-accent); }
.steps h3 { font-weight: 700; font-size: 20px; }
.steps p { margin: 0; color: var(--on-dark); font-size: 16px; }

/* Skaičiuoklė */
.calc { flex: 1 1 560px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 26px; }
.field-range { display: flex; flex-direction: column; gap: 6px; }
.field-range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field-range label { font-weight: 600; }
.field-range output { font-family: var(--display); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.field-range input { width: 100%; accent-color: var(--green); height: 28px; margin: 0; }
.field-range__ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.calc__result { background: var(--green-tint); border-radius: 12px; padding: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }
.calc__pay-label { display: block; font-size: 14px; color: var(--muted); }
.calc__pay { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 4.5vw, 44px); line-height: 1.05; color: var(--green-dark); font-variant-numeric: tabular-nums; }
.calc__totals { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; flex-direction: column; gap: 4px; }
.calc__totals strong { color: var(--ink); }
.calc__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.calc__note { font-size: 13px; color: var(--muted); max-width: 360px; margin: 0; }

/* Atsiliepimai */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.review { margin: 0; background: var(--bg); border-radius: 14px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; }
.chips span { background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.review blockquote { margin: 0; font-size: 18px; line-height: 1.55; }
.review figcaption { margin-top: auto; font-size: 15px; color: var(--muted); }

/* D.U.K. */
.faq-title { flex: 1 1 300px; }
.faq { flex: 2 1 560px; min-width: 0; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: var(--display); font-weight: 700; font-size: 19px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--green); transition: transform .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--muted); max-width: 640px; }

/* Užklausa */
.request .split__intro p { color: var(--on-dark); margin: 0; font-size: 18px; max-width: 440px; }
.request h2 { font-size: clamp(32px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 800; }
.mail-label { display: block; font-size: 14px; color: var(--on-dark-accent); }
.mail { font-family: var(--display); font-weight: 700; font-size: 20px; user-select: all; }
.form { flex: 1 1 560px; min-width: 0; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 30px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 15px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid #B9C4BD; border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; }
.field textarea { resize: vertical; min-height: 110px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }
.form__status { margin: 0; padding: 14px 16px; border-radius: 8px; font-weight: 600; }
.form__status--ok { background: var(--green-tint); color: var(--green-dark); }
.form__status--err { background: #FBE7E4; color: #8A2A1C; }
.form button[disabled] { opacity: .6; cursor: wait; }

/* Poraštė */
.site-footer { background: var(--green-darkest); color: var(--on-dark); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.site-footer a { color: var(--on-dark); }
.site-footer__name { font-family: var(--display); font-weight: 800; font-size: 18px; color: #FFFFFF; }

/* Teksto puslapiai */
.doc { padding-block: 64px 96px; }
.doc article { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }
.doc h1 { font-weight: 800; font-size: clamp(34px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.doc h2 { font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.doc p { margin: 0 0 10px; }
.doc .meta { color: var(--muted); font-size: 15px; margin-top: 10px; }
.center-page { min-height: 60vh; display: flex; align-items: center; }
.center-page .wrap { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* Telefone visada matomas mygtukas */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .nav .btn { display: none; }
  .section { padding-block: 64px; }
  .hero { padding-block: 40px 56px; }
  .hero .wrap, .split { gap: 36px; }
  .terms, .calc, .form { padding: 22px; }
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--surface); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); box-shadow: 0 -12px 24px -16px rgba(23, 64, 47, 0.3); }
  .mobile-cta .btn { display: block; font-size: 17px; padding: 15px; }
  .site-footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}
