/* ==========================================================================
   Stagus – Aptarnaujamos teritorijos (Elementor valdikliai)
   Paletė: navy / plieno mėlyna. Spalvas galima keisti Elementor skiltyje
   „Stilius → Spalvos“ – jos perrašo šiuos kintamuosius.
   ========================================================================== */

.st-loc {
  --st-navy:        #1b3a5c;
  --st-navy-deep:   #12283f;
  --st-accent:      #2e7bc4;
  --st-accent-dark: #23629e;
  --st-accent-soft: #e7f0fa;

  --st-heading:     #16212e;
  --st-body:        #414f5d;
  --st-line:        #dde5ec;
  --st-line-strong: #c3d0dd;
  --st-surface:     #ffffff;
  --st-surface-alt: #f2f6fa;

  --st-radius:   12px;
  --st-radius-s: 8px;
  --st-max:      1140px;
  --st-shadow:   0 1px 2px rgba(22,33,46,.06), 0 8px 24px rgba(22,33,46,.06);
  --st-shadow-h: 0 2px 4px rgba(22,33,46,.08), 0 14px 32px rgba(27,58,92,.14);

  color: var(--st-body);
  font-size: 17px;
  line-height: 1.75;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}
.st-loc *, .st-loc *::before, .st-loc *::after { box-sizing: inherit; }

.st-loc .st-wrap { max-width: var(--st-max); margin: 0 auto; padding: 0 24px; }

/* Elementor: valdiklis turi driekti hero per visą konteinerio plotį */
.elementor-widget-container > .st-loc { margin: 0; }
.st-loc--elementor { width: 100%; }

/* --- Tipografija ------------------------------------------------------- */
.st-loc h1, .st-loc h2, .st-loc h3 {
  color: var(--st-heading);
  line-height: 1.22;
  letter-spacing: -.015em;
  font-weight: 800;
}
.st-loc h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 18px; }

.st-loc h2 {
  font-size: clamp(24px, 2.9vw, 32px);
  margin: 56px 0 16px;
  padding-top: 26px;
  position: relative;
  border-top: 1px solid var(--st-line);
}
.st-loc h2::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 56px; height: 3px; border-radius: 3px;
  background: var(--st-accent);
}
.st-loc .st-body > .st-wrap > h2:first-child { margin-top: 0; }

.st-loc h3 { font-size: 20px; margin: 30px 0 8px; font-weight: 700; }
.st-loc p { margin: 0 0 17px; }

.st-loc a {
  color: var(--st-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(46,123,196,.35);
  transition: color .15s ease, border-color .15s ease;
}
.st-loc a:hover { color: var(--st-accent-dark); border-bottom-color: var(--st-accent-dark); }

.st-loc ul, .st-loc ol { margin: 0 0 20px; padding-left: 22px; }
.st-loc li { margin-bottom: 9px; }
.st-loc li::marker { color: var(--st-accent); }

/* WYSIWYG laukų turinys */
.st-loc .st-rte > *:last-child { margin-bottom: 0; }

/* --- Hero -------------------------------------------------------------- */
.st-loc .st-hero {
  position: relative;
  background: linear-gradient(160deg, var(--st-navy) 0%, var(--st-navy-deep) 100%);
  color: #fff;
  padding: 84px 0 74px;
  overflow: hidden;
}
.st-loc .st-hero--photo::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--st-hero-img);
  background-size: cover;
  background-position: center;
  opacity: .34;
}
.st-loc .st-hero--photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(18,40,63,.94) 0%, rgba(18,40,63,.72) 52%, rgba(18,40,63,.34) 100%);
}
.st-loc .st-hero .st-wrap { position: relative; z-index: 2; }

.st-loc .st-hero h1 { color: #fff; border: 0; padding-top: 0; }
.st-loc .st-hero h1::before { display: none; }
.st-loc .st-hero p {
  color: #d3e0ed; font-size: 19px; max-width: 720px; margin-bottom: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.st-loc .st-hero .st-wrap[style*="center"] p { margin-left: auto; margin-right: auto; }

.st-loc .st-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #eaf2fa;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}

.st-loc .st-crumbs { font-size: 14px; color: #a9bed2; margin-bottom: 16px; }
.st-loc .st-crumbs a { color: #a9bed2; border-bottom-color: rgba(169,190,210,.4); }
.st-loc .st-crumbs a:hover { color: #fff; border-bottom-color: #fff; }

/* --- Mygtukai ---------------------------------------------------------- */
.st-loc .st-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.st-loc .st-cta--end { margin-top: 34px; }
.st-loc .st-hero .st-wrap[style*="center"] .st-cta { justify-content: center; }

.st-loc .st-btn {
  display: inline-block; padding: 15px 28px;
  border-radius: var(--st-radius-s);
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.st-loc .st-btn:hover { transform: translateY(-1px); }
.st-loc .st-btn--primary { background: var(--st-accent); color: #fff; border-color: var(--st-accent); }
.st-loc .st-btn--primary:hover { background: var(--st-accent-dark); border-color: var(--st-accent-dark); color: #fff; }
.st-loc .st-btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.st-loc .st-btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }

/* Pabaigos CTA – ant šviesaus fono */
.st-loc .st-cta--end .st-btn--ghost { border-color: var(--st-line-strong); color: var(--st-heading); }

/* --- Turinys ----------------------------------------------------------- */
.st-loc .st-body { padding: 52px 0 68px; }
.st-loc .st-lead { font-size: 20px; line-height: 1.68; color: var(--st-heading); }

/* --- Kortelės ---------------------------------------------------------- */
.st-loc .st-grid {
  display: grid; gap: 18px; margin: 26px 0;
  grid-template-columns: repeat(auto-fit, minmax(min(258px, 100%), 1fr));
}
.st-loc .st-card {
  background: var(--st-surface);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  padding: 24px 26px;
  box-shadow: var(--st-shadow);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.st-loc .st-card:hover {
  box-shadow: var(--st-shadow-h); transform: translateY(-2px);
  border-color: var(--st-line-strong);
}
.st-loc .st-card h3 { margin: 0 0 8px; font-size: 19px; }
.st-loc .st-card p { margin-bottom: 0; font-size: 16px; }

/* --- Patarimo blokas --------------------------------------------------- */
.st-loc .st-box {
  background: var(--st-accent-soft);
  border: 1px solid rgba(46,123,196,.22);
  border-left: 4px solid var(--st-accent);
  border-radius: 0 var(--st-radius) var(--st-radius) 0;
  padding: 24px 26px; margin: 30px 0;
}
.st-loc .st-box > *:last-child { margin-bottom: 0; }

/* --- Nuorodų blokas ---------------------------------------------------- */
.st-loc .st-links {
  list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(min(238px, 100%), 1fr));
}
.st-loc .st-links li { margin: 0; }
.st-loc .st-links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--st-surface); border: 1px solid var(--st-line);
  border-radius: var(--st-radius-s); padding: 15px 18px;
  color: var(--st-heading); font-weight: 600;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.st-loc .st-links a::after {
  content: "→"; color: var(--st-accent); font-weight: 700;
  transition: transform .15s ease;
}
.st-loc .st-links a:hover {
  border-color: var(--st-accent); color: var(--st-accent); background: var(--st-accent-soft);
}
.st-loc .st-links a:hover::after { transform: translateX(3px); }

/* --- Lentelė ----------------------------------------------------------- */
.st-loc .st-table-wrap {
  overflow-x: auto; margin: 26px 0;
  border: 1px solid var(--st-line); border-radius: var(--st-radius);
  -webkit-overflow-scrolling: touch;
}
.st-loc table { border-collapse: collapse; width: 100%; min-width: 540px; font-size: 16px; margin: 0; }
.st-loc th, .st-loc td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--st-line); }
.st-loc th {
  background: var(--st-navy); color: #fff; font-weight: 700;
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
}
.st-loc tbody tr:last-child td { border-bottom: 0; }
.st-loc tbody tr:nth-child(even) { background: var(--st-surface-alt); }
.st-loc td:first-child { font-weight: 600; color: var(--st-heading); white-space: nowrap; }

/* --- DUK --------------------------------------------------------------- */
.st-loc .st-faq details {
  border: 1px solid var(--st-line); border-radius: var(--st-radius-s);
  padding: 16px 20px; margin-bottom: 10px; background: var(--st-surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.st-loc .st-faq details[open] { border-color: var(--st-line-strong); box-shadow: var(--st-shadow); }
.st-loc .st-faq summary {
  cursor: pointer; font-weight: 700; color: var(--st-heading);
  list-style: none; position: relative; padding-right: 34px;
}
.st-loc .st-faq summary::-webkit-details-marker { display: none; }
.st-loc .st-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--st-accent-soft); color: var(--st-accent);
  font-size: 17px; font-weight: 700; line-height: 24px; text-align: center;
}
.st-loc .st-faq details[open] summary::after { content: "–"; background: var(--st-accent); color: #fff; }
.st-loc .st-faq details[open] summary { margin-bottom: 12px; }
.st-loc .st-faq p:last-child { margin-bottom: 0; }

/* --- Kontaktai --------------------------------------------------------- */
.st-loc .st-nap {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  background: linear-gradient(160deg, var(--st-navy) 0%, var(--st-navy-deep) 100%);
  color: #d3e0ed; border-radius: var(--st-radius);
  padding: 34px 36px; margin: 40px 0 0;
}
.st-loc .st-nap h3 {
  color: #fff; margin: 0 0 10px; font-size: 14px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
}
.st-loc .st-nap p { margin-bottom: 0; font-size: 16px; }
.st-loc .st-nap a { color: #9fc8f0; border-bottom-color: rgba(159,200,240,.4); }
.st-loc .st-nap a:hover { color: #fff; border-bottom-color: #fff; }

/* --- Žemėlapis --------------------------------------------------------- */
.st-loc .st-map {
  border: 1px solid var(--st-line); width: 100%; height: 380px;
  border-radius: var(--st-radius); margin: 26px 0; display: block;
}

/* --- Responsyvumas ----------------------------------------------------- */
@media (max-width: 1024px) {
  .st-loc .st-hero { padding: 66px 0 58px; }
  .st-loc .st-body { padding: 44px 0 56px; }
}

@media (max-width: 767px) {
  .st-loc { font-size: 16.5px; }
  .st-loc .st-wrap { padding: 0 18px; }
  .st-loc .st-hero { padding: 54px 0 48px; }
  .st-loc .st-hero p { font-size: 17.5px; }
  .st-loc .st-lead { font-size: 18px; }
  .st-loc h2 { margin-top: 44px; padding-top: 22px; }
  .st-loc .st-cta { flex-direction: column; }
  .st-loc .st-btn { width: 100%; text-align: center; }
  .st-loc .st-nap { padding: 26px 22px; }
  .st-loc .st-card { padding: 20px 22px; }
  .st-loc .st-box { padding: 20px 22px; }
  .st-loc .st-faq details { padding: 14px 16px; }
}

/* --- Elementor redaktoriaus pataisos ----------------------------------- */
.elementor-editor-active .st-loc .st-faq details { pointer-events: auto; }
.elementor-editor-active .st-loc .st-hero { min-height: 120px; }
