@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* „Meistro dirbtuvės" editorial paletė — pušies žalia + popierius + gintaras */
  --primary: #2f5d50;        /* gili pušies žalia — pagrindinis akcentas */
  --primary-dark: #24493f;
  --primary-soft: #eef3f0;   /* primary tono labai šviesus fonas */
  --forest-deep: #142a24;    /* gilus tamsus žalias — hero / dark sekcijos */
  --secondary: #211f1c;      /* espresso — tamsus tekstas / footer */
  --accent: #c98a2d;          /* gintaras (žvaigždėms, akcentams) */
  --amber: #d99a3e;           /* šviesesnis gintaras — akcentai ant tamsaus */
  --amber-deep: #b97d24;
  --terra: #c2683f;           /* terakota — šiltas antrinis akcentas */

  --font-serif: 'Newsreader', Georgia, 'Times New Roman', serif;

  --bg: #f7f4ee;              /* puslapio fonas — šiltas popierius */
  --bg-warm: #f1ece2;         /* dar šiltesnis (tabs, filter blokai) */
  --white: #fffdfa;

  --gray-100: #f4f0e9;        /* labai šviesus akmuo */
  --gray-200: #e9e3d8;
  --gray-300: #dcd4c6;        /* kortelių rėmeliai */
  --gray-400: #b3aa9a;        /* placeholder'iai */
  --gray-500: #9d9486;
  --gray-600: #7c7468;        /* antrinis tekstas */
  --gray-700: #57514a;        /* etiketės */
  --gray-800: #26231f;        /* pagrindinis tekstas */

  --shadow-sm: 0 1px 2px rgba(100,70,40,0.05), 0 1px 4px rgba(100,70,40,0.05);
  --shadow:    0 2px 6px rgba(100,70,40,0.06), 0 10px 24px rgba(100,70,40,0.08);
  --shadow-lg: 0 4px 12px rgba(100,70,40,0.08), 0 20px 48px rgba(100,70,40,0.12);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}

::selection {
  background: rgba(47,93,80,.18);
}

a { text-decoration: none; color: inherit; }

html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }

/* ── FILM GRAIN (tik pagrindinis puslapis) ── */
body.home::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── EDITORIAL SHELL ── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.sec { max-width: 1240px; margin: 0 auto; padding: 88px 24px; }
.kicker {
  display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber-deep); margin-bottom: 14px;
}
.sec-head { margin-bottom: 44px; }
.sec-head.center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }
.sec-title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08;
  letter-spacing: -.02em; color: var(--gray-800);
}
.sec-title em { font-style: italic; color: var(--primary); }
.sec-desc { color: var(--gray-600); font-size: 1.05rem; margin-top: 14px; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.link-arrow { font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: 7px; transition: gap .2s; }
.link-arrow:hover { gap: 12px; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── TOPBAR (announcement) ── */
.topbar { background: var(--forest-deep); color: #cfdbd4; font-size: .8rem; text-align: center; padding: 8px 16px; letter-spacing: .02em; border-bottom: 1px solid rgba(255,255,255,.06); }
.topbar b { color: var(--amber); font-weight: 600; }

/* Inline UI ikonos (icons.js + statinis HTML) */
.ui-ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ── HEADER ── */
header {
  background: rgba(252,250,245,.9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
}

/* tamsi būsena, susiliejanti su hero (tik pagrindinis puslapis) */
header.on-dark {
  background: var(--forest-deep);
  border-bottom-color: transparent;
}
header.on-dark .logo { color: var(--white); }
header.on-dark .logo span { color: var(--amber); }
header.on-dark .header-search {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.22);
}
header.on-dark .header-search input { color: var(--white); }
header.on-dark .header-search input::placeholder { color: rgba(255,255,255,.6); }
header.on-dark .btn-outline { border-color: rgba(255,255,255,.28); color: var(--white); }
header.on-dark .btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: var(--white); }
header.on-dark .btn-primary { background: var(--amber); color: var(--secondary); }
header.on-dark .btn-primary:hover { background: var(--amber-deep); color: #fff; }
header.on-dark [data-user-greeting] { color: rgba(255,255,255,.85) !important; }

/* „Registruotis" (pagrindinis puslapis) — visada gintarinis, kaip hero „Ieškoti" */
#registerBtn { background: var(--amber); color: var(--secondary); }
#registerBtn:hover { background: var(--amber-deep); color: #fff; }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.logo span { color: var(--gray-800); }

.header-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  overflow: visible;
  position: relative;
  transition: border-color .2s;
}

.header-search:focus-within { border-color: var(--primary); }

/* ── VIETOVĖS AUTOCOMPLETE (header laukas, pagrindinis puslapis) ── */
.loc-suggest {
  position: absolute; top: calc(100% + 6px); left: -2px; right: -2px;
  background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px;
  box-shadow: var(--shadow-lg); z-index: 200; max-height: 320px; overflow-y: auto; display: none;
  text-align: left;
}
.loc-suggest.show { display: block; }
.loc-item {
  padding: 10px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 1px;
  border-bottom: 1px solid var(--gray-100);
}
.loc-item:last-child { border-bottom: none; }
.loc-item:hover, .loc-item.active { background: var(--primary-soft); }
.loc-main { font-size: .9rem; font-weight: 600; color: var(--gray-800); display: flex; align-items: center; gap: 7px; }
.loc-main .ui-ico { color: var(--primary); font-size: .95rem; flex-shrink: 0; }
.loc-sub { font-size: .75rem; color: var(--gray-500); padding-left: 21px; }
.loc-empty { padding: 12px 14px; font-size: .85rem; color: var(--gray-400); text-align: center; }

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: .95rem;
  outline: none;
}

.header-search button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 0 18px;
  cursor: pointer;
  font-size: 1rem;
  border-radius: 0 9px 9px 0;
  transition: background .2s;
}

.header-search button:hover { background: var(--primary-dark); }

.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gray-200);
  color: var(--gray-800);
}

.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(47,93,80,.28);
}

.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-amber {
  background: var(--amber);
  color: var(--secondary);
}
.btn-amber:hover {
  background: var(--amber-deep);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217,154,62,.32);
}
.btn-amber:active { transform: translateY(0); box-shadow: none; }

.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ── HERO (tamsus, split) ── */
.hero {
  position: relative;
  background: var(--forest-deep);
  color: var(--white);
  overflow: hidden;
  padding: 64px 24px 104px;
  margin-top: -1px;
}
.hero::before {
  content: ''; position: absolute; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,154,62,.22), transparent 65%);
  top: -280px; right: -180px; filter: blur(20px); pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,93,80,.55), transparent 70%);
  bottom: -340px; left: -160px; filter: blur(20px); pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 2;
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,154,62,.55); } 70% { box-shadow: 0 0 0 9px rgba(217,154,62,0); } 100% { box-shadow: 0 0 0 0 rgba(217,154,62,0); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero-copy { display: flex; flex-direction: column; align-self: stretch; }
.hero-copy > * { animation: fadeUp .6s var(--ease) both; }
.hero-copy .eyebrow { animation-delay: 0s; }
.hero-copy h1 { animation-delay: .08s; }
.hero-copy .hero-sub { animation-delay: .16s; }
.hero-copy .hero-search { animation-delay: .24s; }
.hero-copy .hero-pills { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .hero-copy > * { animation: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber); background: rgba(217,154,62,.12);
  border: 1px solid rgba(217,154,62,.28); padding: 7px 15px; border-radius: 50px; margin-bottom: 26px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: pulse 2s infinite; }

.hero h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.04;
  letter-spacing: -.025em; margin-bottom: 22px;
}
.hero h1 span { color: var(--amber); font-style: italic; font-weight: 600; }
.hero h1 .ul { position: relative; white-space: nowrap; color: inherit; font-style: normal; font-weight: inherit; }
.hero h1 .ul::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.16em; height: .5em; z-index: -1; opacity: .85;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 16' preserveAspectRatio='none'%3E%3Cpath d='M2 11c40-7 120-9 196-4' stroke='%23d99a3e' stroke-width='3.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
}

.hero-sub { font-size: 1.12rem; color: #cfdbd4; max-width: 480px; margin-bottom: 34px; }

.hero-search {
  max-width: 540px; margin: 0;
  display: flex; gap: 8px; padding: 8px;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.hero-search input {
  flex: 1; border: none; background: transparent; padding: 14px 18px;
  font-size: 1.02rem; outline: none; color: var(--gray-800);
}
.hero-search input::placeholder { color: var(--gray-400); }
.hero-search button {
  flex-shrink: 0; background: var(--amber); border: none; color: var(--secondary);
  padding: 0 28px; border-radius: var(--radius-sm); font-size: .98rem; font-weight: 700;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.hero-search button:hover { background: var(--amber-deep); color: white; }
.hero-search-field { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; }
.hero-search-field > input { flex: 1; min-width: 0; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; margin-left: 8px;
  background: var(--primary-soft); color: var(--primary-dark); border: 1px solid var(--primary);
  border-radius: 999px; padding: 6px 6px 6px 12px; font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.hero-chip .ui-ico { color: var(--primary); flex-shrink: 0; }
.hero-chip button { background: none; border: none; color: var(--primary); cursor: pointer; font-size: 1.05rem; line-height: 1; padding: 0 2px; }
.hero-chip button:hover { color: var(--terra); }
.loc-hint { padding: 9px 14px; font-size: .75rem; color: var(--gray-500); background: var(--bg-warm); border-bottom: 1px solid var(--gray-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hero-map-btn {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto; align-self: flex-start;
  position: relative; top: 26px;   /* sulygiavimui su „Gyvai" tickeriu dešinėje */
  background: transparent; border: none; color: var(--amber); cursor: pointer;
  font-family: inherit; font-size: .9rem; font-weight: 600; padding: 4px 2px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(217,154,62,.4);
}
.hero-map-btn:hover { color: #fff; text-decoration-color: rgba(255,255,255,.6); }

.hero-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.pill {
  font-size: .85rem; font-weight: 500; padding: 8px 16px; border-radius: 50px;
  border: 1px solid rgba(255,255,255,.18); color: #dce5e0; cursor: pointer; transition: all .2s;
}
.pill:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.4); color: #fff; }

/* hero meno blokas — plaukiojančios kortelės + tickeris */
.hero-art { position: relative; height: 470px; }
.hero-art.empty { display: none; }
.float-card {
  position: absolute; background: var(--white); color: var(--gray-800);
  border-radius: var(--radius); padding: 18px; width: 270px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.45); animation: floaty 6s ease-in-out infinite;
}
.fc-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.fc-av {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--amber));
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.05rem;
}
.fc-av img { width: 100%; height: 100%; object-fit: cover; }
.fc-name { font-weight: 700; font-size: .95rem; display: flex; align-items: center; gap: 6px; }
.fc-name .v { color: var(--primary); }
.fc-spec { font-size: .8rem; color: var(--gray-600); }
.fc-meta { display: flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--gray-600); }
.fc-stars { color: var(--amber); letter-spacing: 1px; }
.fc-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--gray-200); padding-top: 12px; margin-top: 4px; }
.fc-price { font-weight: 700; color: var(--primary); }
.fc-price small { font-weight: 500; color: var(--gray-600); }
.fc-badge { font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--amber-deep); background: rgba(217,154,62,.16); padding: 3px 9px; border-radius: 50px; }
.float-card.card-1 { top: 14px; left: 6px; z-index: 3; animation-delay: 0s; }
.float-card.card-2 { top: 160px; right: 0; z-index: 2; animation-delay: -2s; }
.float-card.card-3 { bottom: 30px; left: 34px; z-index: 1; animation-delay: -4s; }
@media (prefers-reduced-motion: reduce) { .float-card { animation: none; } }

/* hero meno blokas — gyva meistrų nuotraukų siena („polaroid" rėmeliai) */
.photo-frame {
  position: absolute; width: 234px; margin: 0; display: block;
  background: var(--white); padding: 10px 10px 0; border-radius: 16px;
  box-shadow: 0 24px 50px -16px rgba(0,0,0,.45); animation: floaty 6s ease-in-out infinite;
  text-decoration: none; color: inherit; cursor: pointer;
}
.photo-frame:hover { box-shadow: 0 30px 62px -14px rgba(0,0,0,.58); }
.photo-frame .pf-img-wrap { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--forest-deep); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .55s ease; }
.photo-frame .pf-cap {
  display: flex; flex-direction: column; gap: 2px;
  padding: 9px 6px 11px;
}
.photo-frame .pf-name { font-size: .7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-frame .pf-spec { font-size: .82rem; font-weight: 700; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-frame .pf-meta { display: flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; color: var(--gray-600); }
.photo-frame .pf-meta .ui-ico { color: var(--primary); font-size: .85rem; flex-shrink: 0; }
.photo-frame .pf-city { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-frame .pf-pro { margin-left: auto; flex-shrink: 0; color: var(--accent); font-weight: 800; font-size: .68rem; letter-spacing: .04em; }
.photo-frame.card-1 { top: -22px; left: 0; z-index: 3; animation-delay: 0s; rotate: -2deg; }
.photo-frame.card-2 { top: 150px; right: -6px; z-index: 2; animation-delay: -2s; rotate: 2.5deg; }
.photo-frame.card-3 { bottom: 8px; left: 42px; z-index: 1; animation-delay: -4s; rotate: -1.5deg; }
@media (prefers-reduced-motion: reduce) { .photo-frame { animation: none; } }

.ticker {
  position: absolute; bottom: -52px; left: 0; right: 0; z-index: 4;
  background: rgba(20,42,36,.7); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 50px;
  padding: 11px 20px; display: flex; align-items: center; gap: 12px; overflow: hidden;
}
.ticker .live { display: flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); flex-shrink: 0; }
.ticker .live .dot { width: 7px; height: 7px; border-radius: 50%; background: #5fd08a; animation: pulse 1.6s infinite; }
.ticker-track { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-row { display: flex; gap: 38px; white-space: nowrap; width: max-content; animation: slide 26s linear infinite; }
.ticker-row span { font-size: .85rem; color: #d4ddd7; }
.ticker-row b { color: #fff; font-weight: 600; }

/* ── TRUST MARQUEE ── */
.trust { background: var(--secondary); color: #cfc7b8; padding: 22px 0; overflow: hidden; }
.trust-track { display: flex; gap: 54px; white-space: nowrap; width: max-content; animation: slide 32s linear infinite; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 11px; font-family: var(--font-serif); font-size: 1.12rem; font-style: italic; opacity: .65; }
.trust-item .ui-ico { color: var(--amber); opacity: 1; font-size: 1.1rem; }

/* ── STATS (tamsus žalias skydelis) ── */
.stats { max-width: 1240px; margin: 0 auto; padding: 64px 24px 0; }

.stats-inner {
  position: relative; overflow: hidden;
  background: var(--primary); color: var(--white);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.stats-inner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 18%, rgba(217,154,62,.18), transparent 50%);
}

.stat { text-align: center; position: relative; z-index: 1; }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.12); }

.stat-num {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3rem); line-height: 1; color: var(--amber);
}

.stat-label { font-size: .9rem; color: #cfdbd4; margin-top: 10px; }

/* ── SECTION ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gray-800);
}

.section-link {
  color: var(--primary);
  font-weight: 600;
  font-size: .95rem;
}

.section-link:hover { text-decoration: underline; }

/* ── CATEGORIES (bento) ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 16px;
}

.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  isolation: isolate;
  background: var(--primary);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 20px;
  text-align: left;
  transition: transform .35s var(--ease);
}
.category-card:hover { transform: translateY(-4px); }

/* plati „feature" plytelė (pirmoji) */
.category-card--feature { grid-column: span 2; }
.category-card--feature .category-name { font-size: 1.55rem; }

/* ── PHOTO CARD ── */
.category-card-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2; transition: transform .8s var(--ease-out);
}
.category-card--photo::after {
  content: ''; position: absolute; inset: 0; z-index: -1; transition: opacity .4s;
  background: linear-gradient(180deg, rgba(20,30,26,.05) 30%, rgba(20,30,26,.84) 100%);
}
.category-card--photo::before {
  content: ''; position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7h10v10'/%3E%3Cpath d='M7 17 17 7'/%3E%3C/svg%3E") no-repeat center;
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-6px) scale(.9); transition: all .3s var(--ease); z-index: 1;
}
.category-card--photo:hover::before { opacity: 1; transform: translateY(0) scale(1); }
.category-card--photo:hover .category-card-bg { transform: scale(1.08); }
.category-card--photo:hover::after { opacity: .96; }

.category-card--photo .category-name {
  position: relative; z-index: 1; color: #fff;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; line-height: 1.15; letter-spacing: -.01em;
}
.category-card--photo .category-count {
  position: relative; z-index: 1; color: rgba(255,255,255,.85);
  background: none; padding: 5px 0 0; margin: 0; font-size: .82rem;
}

/* ── ICON CARD (fallback be nuotraukos) ── */
.category-card:not(.category-card--photo) { background: var(--white); border: 1.5px solid var(--gray-200); align-items: center; justify-content: center; text-align: center; gap: 12px; }
.category-card:not(.category-card--photo):hover { border-color: var(--primary); box-shadow: var(--shadow); }
.category-icon {
  width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); border-radius: 50%;
  border: 1px solid rgba(47,93,80,.18); transition: transform .2s;
}
.category-icon svg { width: 26px; height: 26px; }
.category-card:not(.category-card--photo):hover .category-icon { transform: scale(1.1); }

.category-name { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.1rem; } /* Inter — Fraunces blogai piešia „ū" */
.category-count { font-size: .82rem; color: var(--gray-600); }

/* ── PROVIDER CARDS ── */
.providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.provider-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all .35s var(--ease);
  cursor: pointer;
  border: 1px solid var(--gray-200);
}
.provider-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.provider-card:hover::before { transform: scaleX(1); }

.provider-card:hover {
  box-shadow: 0 24px 48px -20px rgba(40,30,15,.28);
  border-color: transparent;
  transform: translateY(-6px);
}

.provider-card-top {
  padding: 24px 20px 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.provider-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.provider-info { flex: 1; }

.provider-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.provider-specialty {
  font-size: .85rem;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.provider-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
}

.stars { color: var(--accent); }

.rating-count { color: var(--gray-400); }

.provider-badge {
  background: var(--amber);
  color: var(--secondary);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 9px;
  border-radius: 50px;
}

/* Demonstracinio (testinio) teikėjo žyma — neutrali pilka, kad nesipainiotų su PRO */
.test-badge {
  display: inline-flex;
  align-items: center;
  background: #64748b;
  color: #fff;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 50px;
  vertical-align: middle;
  margin-left: 4px;
}

.provider-card-details {
  padding: 0 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: 50px;
}

.provider-card-footer {
  border-top: 1px solid var(--gray-200);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.provider-price {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--primary);
  font-size: 1.2rem;
}

.btn-sm {
  padding: 7px 16px;
  font-size: .85rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  background: var(--primary);
  color: white;
  transition: all .2s;
}

.btn-sm:hover { background: var(--primary-dark); }

/* ── ĮMONIŲ DARBO SKELBIMŲ NUOMA (banner kortelės) ── */
.company-ads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}

.company-ad {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  overflow: hidden;
  transition: all .35s var(--ease);
}
.company-ad::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--amber));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.company-ad:hover::before { transform: scaleX(1); }
.company-ad:hover {
  box-shadow: 0 24px 48px -20px rgba(40,30,15,.28);
  border-color: transparent;
  transform: translateY(-6px);
}

.company-ad-tag {
  position: absolute; top: 20px; right: 20px;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--amber-deep); background: rgba(217,154,62,.14);
  padding: 4px 10px; border-radius: 50px;
}
.company-ad-logo {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 1.3rem;
  color: var(--white); background: linear-gradient(135deg, var(--primary), var(--accent));
  margin-bottom: 18px;
}
.company-ad-name {
  font-weight: 700; font-size: 1.08rem; color: var(--gray-800); margin-bottom: 8px;
}
.company-ad-slogan {
  font-size: .92rem; color: var(--gray-600); line-height: 1.5; flex: 1; margin-bottom: 18px;
}
.company-ad-link {
  align-self: flex-start;
  font-weight: 600; color: var(--primary); font-size: .92rem;
  display: inline-flex; align-items: center; gap: 7px; transition: gap .2s;
}
.company-ad:hover .company-ad-link { gap: 12px; }

/* „Nuomotis vietą" CTA kortelė */
.company-ad--rent {
  background: var(--primary-soft);
  border: 1.5px dashed var(--amber-deep);
  text-decoration: none;
}
.company-ad--rent::before { display: none; }
.company-ad--rent:hover {
  border-color: var(--amber-deep);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.company-ad-rent-icon {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 300; line-height: 1;
  color: var(--amber-deep); background: rgba(217,154,62,.14);
  margin-bottom: 18px;
}
.company-ad--rent .company-ad-link { color: var(--amber-deep); }

/* ── HOW IT WORKS (tamsus skydelis) ── */
.how-it-works { max-width: 1240px; margin: 0 auto; padding: 0 24px 88px; }

.how-inner {
  position: relative; overflow: hidden;
  background: var(--secondary); color: var(--white);
  border-radius: var(--radius-lg); padding: 72px 56px;
}
.how-inner::before {
  content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,93,80,.45), transparent 65%); top: -200px; right: -120px;
}
.how-inner .sec-head, .how-inner .steps-grid { position: relative; z-index: 1; }
.how-inner .sec-title { color: var(--white); }
.how-inner .sec-title em { color: var(--amber); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.step { position: relative; text-align: left; }

.step-num {
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--secondary); border: 1.5px solid rgba(217,154,62,.5); color: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600;
  margin: 0 0 20px;
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 25px; left: 50px; right: -30px; height: 1.5px;
  background: repeating-linear-gradient(90deg, rgba(217,154,62,.4) 0 6px, transparent 6px 12px);
}

.step h3 { font-family: var(--font-serif); font-weight: 600; font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: #bcc6c0; font-size: .92rem; }

/* ── CTA (meistrams) ── */
.cta-band { max-width: 1240px; margin: 0 auto; padding: 0 24px 88px; }
.cta {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(120deg, var(--primary) 0%, var(--forest-deep) 100%);
  color: var(--white); border-radius: var(--radius-lg); padding: 72px 56px;
}
.cta::before {
  content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,154,62,.25), transparent 60%);
  top: -300px; left: 50%; transform: translateX(-50%);
}
.cta-in { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cta h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 16px;
}
.cta h2 em { font-style: italic; color: var(--amber); }
.cta p { color: #cfdbd4; font-size: 1.08rem; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta .btn-outline { border-color: rgba(255,255,255,.3); color: #fff; }
.cta .btn-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }

/* ── FOOTER ── */
footer {
  background: var(--secondary);
  color: rgba(255,255,255,.8);
  padding: 48px 20px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-logo span { color: var(--accent); }

.footer-desc { font-size: .9rem; line-height: 1.7; }

.footer-col h4 {
  color: white;
  font-size: .95rem;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: .9rem;
  transition: color .2s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: white;
  border-radius: var(--radius);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  transform: translateY(20px) scale(.98);
  transition: transform .3s var(--ease);
}

.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal h2 { font-size: 1.5rem; margin-bottom: 8px; }
.modal p { color: var(--gray-600); margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47,93,80,.10);
}

.form-group textarea { resize: vertical; min-height: 100px; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--gray-400);
}

.modal { position: relative; }

.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: .9rem;
  color: var(--gray-600);
}

.form-footer a { color: var(--primary); font-weight: 600; }

/* ── TABS ── */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 32px;
}

.tab {
  flex: 1;
  text-align: center;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-600);
  transition: all .2s;
}

.tab.active {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gray-800);
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  z-index: 2000;
  transform: translateY(80px);
  opacity: 0;
  transition: all .3s;
  box-shadow: var(--shadow-lg);
}

.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #38a169; }
.toast.error { background: #c53030; }

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .hero { padding: 52px 20px 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { display: none; }
  .hero-search { max-width: 540px; }
  .hero-map-btn { margin-top: 16px; top: 0; }   /* dešinio stulpelio nėra — atstatom tarpą po paieška */

  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .stat:nth-child(3) { border-left: none; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card--feature { grid-column: span 2; }
  .category-card--feature .category-name { font-size: 1.3rem; }

  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 30px; }
  .step:not(:last-child)::after { display: none; }

  .how-inner, .cta { padding: 56px 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-inner { gap: 12px; padding: 0 14px; }
  .header-search { display: none; }
  .header-nav { gap: 8px; }
  .header-nav .btn { padding: 7px 14px; font-size: .85rem; }
  .header-nav [data-user-greeting] { display: none !important; }

  /* Pagrindinis puslapis: vietovės laukas matomas ir telefone — atskira pilno pločio eilutė */
  body.home .header-inner { flex-wrap: wrap; height: auto; padding: 10px 14px; row-gap: 0; }
  body.home .header-search { display: flex; order: 3; flex-basis: 100%; max-width: 100%; margin-top: 10px; }
  body.home .header-nav { order: 2; }

  .sec { padding: 64px 20px; }
  .stats { padding-top: 48px; }

  footer { padding: 48px 20px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; }

  .modal { padding: 28px 22px; max-width: 100%; }
  .modal h2 { font-size: 1.25rem; }

  .toast { left: 16px; right: 16px; bottom: 16px; padding: 12px 16px; font-size: .9rem; }
}

@media (max-width: 600px) {
  .header-inner { height: 56px; padding: 0 12px; }
  .logo { font-size: 1.15rem; }
  .header-nav .btn { padding: 7px 12px; font-size: .82rem; }
  .header-nav .btn-outline[data-nav="guest"] { display: none; } /* slėpti „Prisijungti", paliekam tik „Registruotis" */

  .hero { padding: 40px 16px 64px; }
  .hero-search { flex-direction: column; background: transparent; padding: 0; gap: 10px; box-shadow: none; }
  .hero-search input { background: var(--white); border-radius: var(--radius-sm); padding: 14px 16px; }
  .hero-search button { justify-content: center; padding: 14px; }
  .hero-search-field { width: 100%; flex-wrap: wrap; background: var(--white); border-radius: var(--radius-sm); padding: 4px; }
  .hero-chip { margin: 4px 0 4px 6px; }

  .stats-inner { grid-template-columns: 1fr 1fr; padding: 36px 22px; gap: 28px 16px; }
  .stat:nth-child(3) { border-left: none; }

  .categories-grid { grid-template-columns: 1fr; grid-auto-rows: 180px; }
  .category-card--feature { grid-column: span 1; }
  .providers-grid { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr; gap: 28px; }
  .how-inner, .cta { padding: 44px 24px; border-radius: var(--radius); }
  .stats { padding-top: 40px; }

  .footer-grid { grid-template-columns: 1fr; }

  .modal { padding: 24px 18px; border-radius: var(--radius-sm); }
  .form-group input, .form-group select, .form-group textarea { padding: 11px 14px; font-size: .9rem; }
}
