/* ==========================================================================
   VALYMO PASLAUGŲ KATALOGAS — STILIAI
   Švarus, profesionalus, responsyvus dizainas.
   ========================================================================== */

:root {
  --bg: #F4F8FC;
  --surface: #FFFFFF;
  --surface-2: #F8FBFE;
  --ink: #16324F;
  --muted: #566A80;
  --faint: #8496A8;

  --primary: #0E97E6;
  --primary-dark: #0B7BC0;
  --primary-soft: #DFF0FC;
  --primary-tint: #F0F8FE;

  --navy: #123A5C;
  --navy-dark: #0D2C46;

  --accent: #57A930;
  --accent-dark: #478C24;
  --accent-soft: #EAF6E0;

  --border: #E2EAF2;
  --border-strong: #CCD9E6;

  --warn-bg: #FBEFD6;
  --warn-ink: #8A5A0B;

  --danger: #C0392B;
  --danger-bg: #FBEAE7;

  --ok: #57B22A;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16,50,79,.05), 0 1px 3px rgba(16,50,79,.04);
  --shadow: 0 2px 6px rgba(16,50,79,.05), 0 12px 28px -8px rgba(16,50,79,.10);
  --shadow-lg: 0 8px 24px -6px rgba(16,50,79,.12), 0 24px 48px -12px rgba(16,50,79,.16);
  --ring: 0 0 0 4px rgba(14,151,230,.14);

  --maxw: 1120px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', var(--font-body);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.13; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .62em 1.1em; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--primary-tint); border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--surface); color: var(--danger); border-color: #E7C9C9; }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { font-size: .85rem; padding: .45em .8em; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 40px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: .95rem; padding: .5em .8em; border-radius: var(--radius-sm); }
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }
.main-nav .btn-primary { color: #fff; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; cursor: pointer; }
.nav-toggle svg { display: block; }

/* ---------- Hero + search ---------- */
.hero {
  background:
    radial-gradient(1200px 460px at 88% -30%, var(--primary-soft), transparent 62%),
    radial-gradient(900px 420px at 0% 120%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--primary-tint), var(--bg));
  border-bottom: 1px solid var(--border);
  padding: clamp(52px, 8vw, 104px) 0 clamp(40px, 6vw, 72px);
}
.hero-inner { max-width: 760px; }
.hero h1 { max-width: 18ch; margin-bottom: .28em; }
.hero p.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 54ch; margin: 0; }

.searchbar {
  display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 8px;
  background: var(--surface); padding: 10px 10px 10px 18px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); margin-top: 30px; align-items: center;
}
.searchbar .field { display: flex; flex-direction: column; padding: 4px 0; }
.searchbar .field + .field { border-left: 1px solid var(--border); padding-left: 16px; }
.searchbar label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); font-weight: 700; margin: 0 0 1px 2px; }
.searchbar input, .searchbar select {
  border: none; background: transparent; font-size: 1.02rem; font-family: inherit; color: var(--ink);
  padding: 6px 2px; outline: none; font-weight: 500;
}
.searchbar .btn-search { align-self: stretch; padding: 0 1.6em; font-size: 1rem; border-radius: var(--radius); box-shadow: 0 6px 16px -4px rgba(14,151,230,.5); }
.searchbar .btn-search svg { width: 19px; height: 19px; }

/* Hero statistika + pasitikėjimo ženkleliai */
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 30px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--navy); line-height: 1; letter-spacing: -.02em; }
.stat-label { font-size: .86rem; color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; }
.trust { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--ink); }
.trust svg { width: 18px; height: 18px; color: var(--accent); flex: none; }

/* ---------- Sections ---------- */
.section { padding: clamp(36px, 6vw, 64px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  display: flex; flex-direction: column; gap: 15px; height: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.cat-card:hover { text-decoration: none; border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.cat-icon { width: 60px; height: 60px; flex: none; border-radius: 16px; background: linear-gradient(140deg, var(--primary-soft), var(--primary-tint)); color: var(--primary); display: grid; place-items: center; transition: transform .18s; }
.cat-card:hover .cat-icon { transform: scale(1.05); }
.cat-icon svg { width: 30px; height: 30px; }
.cat-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cat-card .cat-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--font-display); font-weight: 600; color: var(--ink);
  font-size: 1.05rem; line-height: 1.3; min-height: 2.6em;
}
.cat-card .cat-count { font-size: .8rem; font-weight: 600; color: var(--primary); margin-bottom: 3px; }
.cat-card .cat-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--muted); font-size: .88rem; line-height: 1.5; min-height: 2.9em;
}

/* ---------- City chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .6em 1.1em; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.chip:hover { text-decoration: none; border-color: var(--primary); background: var(--surface); box-shadow: var(--shadow); transform: translateY(-2px); }
.chip svg { width: 16px; height: 16px; color: var(--primary); }
.chip-count { font-size: .78rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; margin-left: 2px; }

/* ---------- Company cards ---------- */
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.results-head .count { color: var(--muted); font-size: .95rem; }

.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.company-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.cc-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

/* Įmonės vaizdas / užpildas */
.cc-cover {
  position: relative; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
}
.cc-cover.cc-card { height: 132px; }
.cc-cover.cc-page { height: 190px; border-radius: var(--radius); margin-bottom: 22px; }
.cc-ph {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 15px;
  background: rgba(255, 255, 255, .8); box-shadow: var(--shadow-sm);
}
.cc-ph svg { width: 30px; height: 30px; color: var(--primary); }
.cc-cover.cc-page .cc-ph { width: 78px; height: 78px; border-radius: 20px; }
.cc-cover.cc-page .cc-ph svg { width: 38px; height: 38px; }
.cc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.company-card h3 { margin: 0; }
.company-card h3 a { color: var(--ink); }
.company-card h3 a:hover { color: var(--primary); text-decoration: none; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; font-weight: 500; color: var(--primary);
  background: var(--primary-tint); border-radius: 999px; padding: .28em .7em;
}
.tag.city { color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }
.tag svg { width: 13px; height: 13px; }
.company-card .desc { color: var(--muted); font-size: .92rem; margin: 0; }
.contact-lines { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.contact-lines .line { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.contact-lines .line svg { width: 15px; height: 15px; color: var(--faint); flex: none; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.card-actions .btn { flex: 1; min-width: 120px; }

.demo-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--warn-bg); color: var(--warn-ink);
  font-size: .74rem; font-weight: 600; border-radius: 6px; padding: .3em .6em; align-self: flex-start;
}
.demo-badge svg { width: 13px; height: 13px; }

/* ---------- Company page ---------- */
.company-page { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.company-main h1 { margin-bottom: .3rem; }
.company-header-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.prose { color: var(--ink); }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.service-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.service-list li svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.company-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.info-card h3 { margin-bottom: 14px; }
.info-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.info-list .item { display: flex; gap: 10px; align-items: flex-start; }
.info-list .item svg { width: 17px; height: 17px; color: var(--primary); flex: none; margin-top: 2px; }
.info-list .item .k { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.info-list .item .v { font-size: .95rem; word-break: break-word; }
.info-card .btn { margin-bottom: 8px; }
.report-link { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.report-link:hover { color: var(--danger); }
.report-link svg { width: 14px; height: 14px; }

.crumbs { display: flex; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs .sep { color: var(--border-strong); }

/* ---------- Filters (category/city pages) ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; align-items: center; }
.filter-bar .lbl { font-size: .8rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.filter-chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: .4em .9em; font-size: .88rem; cursor: pointer; color: var(--ink); font-family: inherit;
  transition: border-color .15s, background .15s, color .15s;
}
.filter-chip:hover { border-color: var(--primary); }
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Forms ---------- */
.form-wrap { max-width: 720px; }
.card-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.form-field label .req { color: var(--danger); }
.form-field .hint { font-size: .78rem; color: var(--faint); }
.form-field input, .form-field select, .form-field textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: .6em .75em; background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.form-field textarea { resize: vertical; min-height: 92px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); font-size: .95rem; }
.notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.notice-ok { background: #E7F4EE; color: #1E5B41; }
.notice-ok svg { color: var(--ok); }
.notice-info { background: var(--primary-tint); color: var(--primary-dark); }

/* ---------- Empty state ---------- */
.empty {
  text-align: center; padding: 48px 20px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius); background: var(--surface-2); color: var(--muted);
}
.empty svg { width: 40px; height: 40px; color: var(--faint); margin-bottom: 10px; }
.empty h3 { color: var(--ink); }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.admin-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav button {
  text-align: left; background: none; border: none; font-family: inherit; font-size: .95rem;
  color: var(--ink); padding: .6em .8em; border-radius: var(--radius-sm); cursor: pointer; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.admin-nav button:hover { background: var(--surface); }
.admin-nav button.active { background: var(--primary); color: #fff; }
.admin-nav .badge { background: var(--warn-bg); color: var(--warn-ink); font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1em .55em; }
.admin-nav button.active .badge { background: rgba(255,255,255,.25); color: #fff; }

.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.admin-toolbar input, .admin-toolbar select {
  font-family: inherit; font-size: .9rem; padding: .5em .7em; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); outline: none;
}
.admin-toolbar input:focus, .admin-toolbar select:focus { border-color: var(--primary); }
.admin-toolbar .grow { flex: 1; min-width: 160px; }

.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: top; }
.data-table th { background: var(--surface-2); font-family: var(--font-display); font-weight: 600; font-size: .82rem; color: var(--muted); }
.data-table tr:last-child td { border-bottom: none; }
.data-table .row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; }

.request-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
.request-card .rc-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.request-card .rc-type { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary); }
.request-card .rc-date { font-size: .8rem; color: var(--faint); }
.request-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0; font-size: .9rem; }
.request-card dt { color: var(--faint); }
.request-card dd { margin: 0; word-break: break-word; }
.request-card .rc-actions { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20,38,43,.45); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 20px; z-index: 60;
}
.modal { background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(20,38,43,.25); width: 100%; max-width: 520px; max-height: 90vh; overflow: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 6px; line-height: 0; }
.modal-close:hover { background: var(--surface-2); color: var(--ink); }
.modal-body { padding: 22px; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); font-size: .92rem; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; }
.toast svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C7D3D2; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 36px; }
.site-footer h4 { font-family: var(--font-display); color: #fff; font-size: .95rem; margin: 0 0 12px; }
.site-footer a { color: #C7D3D2; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.footer-wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: #fff; letter-spacing: -.01em; line-height: 1; }
.footer-wordmark span { color: var(--accent); }
.footer-tagline { font-family: var(--font-display); font-weight: 500; color: var(--primary); font-size: .95rem; margin: 8px 0 12px; }
.footer-brand p { font-size: .9rem; color: #A9BACB; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #93A6B8; }
.footer-bottom a { color: #93A6B8; }
.site-footer a { color: #C2D0DE; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .company-page { grid-template-columns: 1fr; }
  .company-side { position: static; }
  .info-card { position: static; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; position: absolute; top: 68px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 20px; box-shadow: var(--shadow);
  }
  .main-nav.open a { padding: .7em .8em; }
  .nav-toggle { display: inline-flex; }
  .searchbar { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .card-actions .btn { min-width: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   DOMENO PARDAVIMO JUOSTA IR REKLAMOS VIETOS
   ========================================================================== */
.topbar { background: var(--navy); color: #fff; font-size: .88rem; }
.topbar-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 8px 14px; padding: 9px 0; text-align: center;
}
.topbar-tag {
  background: var(--accent); color: #fff; font-weight: 600; font-size: .72rem;
  letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
}
.topbar strong { color: #fff; }
.topbar-link {
  display: inline-flex; align-items: center; gap: 6px; color: #fff;
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.topbar-link:hover { color: #fff; opacity: .85; }
.topbar-link svg { width: 16px; height: 16px; }

.ad-slot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  flex-direction: column; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 120px at 50% 0%, var(--primary-tint), transparent 70%),
    var(--surface-2);
  color: var(--ink); padding: 30px 24px; box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.ad-slot:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.ad-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint);
}
.ad-text { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); }
.ad-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; color: var(--primary);
}
.ad-cta svg { width: 16px; height: 16px; }
.ad-wide { min-height: 128px; }
.ad-box { min-height: 200px; padding: 24px 18px; }
.ad-box .ad-text { font-size: 1rem; }
@media (max-width: 520px) {
  .ad-text { font-size: 1rem; }
  .ad-wide { min-height: 108px; }
  .topbar { font-size: .82rem; }
  .topbar-tag { display: none; }
  .topbar-inner { gap: 4px 10px; padding: 8px 0; }
}

.footer-ver { font-size: .75rem; color: rgba(255,255,255,.45); margin-right: 14px; }

/* ==========================================================================
   PREMIUM SEKCIJOS: TINKLARAŠTIS, KODĖL, PUSLAPIŲ HERO
   ========================================================================== */
.section-head p { margin-top: 6px; max-width: 52ch; }
.section-alt { background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hide-sm { display: inline-flex; }

/* Tinklaraščio kortelės */
.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tip-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: box-shadow .18s, transform .18s;
}
.tip-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.tip-media {
  height: 160px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--primary-soft), var(--accent-soft));
  color: var(--primary);
}
.tip-media svg { width: 46px; height: 46px; opacity: .9; }
.tip-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tip-cat {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}
.tip-title { font-size: 1.12rem; margin: 0; line-height: 1.3; }
.tip-excerpt { color: var(--muted); font-size: .92rem; line-height: 1.55; margin: 0; flex: 1; }
.tip-more {
  align-self: flex-start; margin-top: 4px; display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--primary); font-family: var(--font-body); font-weight: 600; font-size: .92rem;
}
.tip-more svg { width: 16px; height: 16px; transition: transform .15s; }
.tip-more:hover svg { transform: translateX(3px); }

/* Kodėl Plaunu.lt */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.why-item { display: flex; flex-direction: column; gap: 10px; }
.why-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-tint); color: var(--primary);
}
.why-icon svg { width: 26px; height: 26px; }
.why-title { font-size: 1.05rem; margin: 4px 0 0; }
.why-text { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0; }

/* Puslapių hero + tekstas */
.page-hero {
  background: linear-gradient(180deg, var(--primary-tint), var(--bg));
  border-bottom: 1px solid var(--border); padding: clamp(30px, 5vw, 52px) 0;
}
.page-hero .crumbs { margin-bottom: 12px; }
.page-hero h1 { margin-bottom: .2em; }
.page-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 60ch; margin: 0; }
.prose { max-width: 720px; }
.prose p { color: var(--muted); margin: 0 0 1em; }
.prose h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; color: var(--ink); }
.prose .why-grid { margin-top: 32px; }

/* ==========================================================================
   RESPONSYVUMAS – PREMIUM SEKCIJOS
   ========================================================================== */
@media (max-width: 900px) {
  .tips-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hide-sm { display: none; }
  .searchbar { grid-template-columns: 1fr; gap: 4px; padding: 14px; }
  .searchbar .field + .field { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 10px; margin-top: 4px; }
  .searchbar .btn-search { margin-top: 8px; padding: .8em; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.6rem; }
}
@media (max-width: 560px) {
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 26px; }
  .hero-stats { gap: 18px 28px; }
}
