/* =========================================================
   ALMATINA — stilius (juoda / auksinė / sidabrinė)
   ========================================================= */

:root {
  --black: #0b0b0d;
  --black-soft: #121215;
  --panel: #17171b;
  --panel-2: #1d1d22;
  --border: #2a2a30;
  --gold: #c9a24c;
  --gold-light: #e9cc86;
  --gold-dark: #a58138;
  --silver: #b9bac2;
  --text: #f2f2f4;
  --text-dim: #9a9aa3;
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--gold-light); text-decoration: none; }
a:hover { color: var(--gold); }

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: all .25s ease;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #191204;
  box-shadow: 0 6px 22px rgba(201, 162, 76, .28);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 162, 76, .42);
  color: #191204;
}

.btn-outline {
  border: 1px solid var(--gold);
  color: var(--gold-light);
}
.btn-outline:hover {
  background: rgba(201, 162, 76, .12);
  color: var(--gold-light);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 13, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 76, .18);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .7rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 162, 76, .5);
}

.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: .18em;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  gap: 1.8rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--silver);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  position: relative;
  padding: .3rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  transition: width .25s ease;
}

.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-phone { padding: .6rem 1.2rem; font-size: .9rem; }

.lang-switch {
  display: flex;
  gap: .3rem;
}

.lang-switch a {
  color: var(--text-dim);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .25rem .5rem;
  border: 1px solid transparent;
  border-radius: 7px;
}

.lang-switch a:hover { color: var(--gold-light); }

.lang-switch a.active {
  color: var(--gold-light);
  border-color: rgba(201, 162, 76, .45);
}

.lang-switch a.flag {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 3px rgba(0, 0, 0, .5);
  border-color: rgba(255, 255, 255, .22);
  background-size: cover;
  background-position: center;
}

.lang-switch a.flag:hover {
  color: #fff;
  border-color: var(--gold-light);
}

.lang-switch a.flag.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(201, 162, 76, .55);
}

.flag-lt { background-image: linear-gradient(rgba(0,0,0,.32), rgba(0,0,0,.32)), url("/img/flag-lt.svg"); }
.flag-gb { background-image: linear-gradient(rgba(0,0,0,.32), rgba(0,0,0,.32)), url("/img/flag-gb.svg"); }
.flag-ua { background-image: linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.28)), url("/img/flag-ua.svg"); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  margin-left: auto;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--gold);
  transition: all .3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(201, 162, 76, .13), transparent 60%),
    radial-gradient(700px 400px at 10% 110%, rgba(201, 162, 76, .07), transparent 60%),
    var(--black);
  border-bottom: 1px solid rgba(201, 162, 76, .15);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 3rem;
  padding: 5.5rem 0 4.5rem;
}

.hero-kicker {
  color: var(--gold);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.9rem);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: 1.2rem;
}

.gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.hero-stats {
  display: flex;
  gap: 2.6rem;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.2;
}

.stat-label {
  color: var(--text-dim);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero-logo-wrap { display: flex; justify-content: center; }

.hero-logo {
  width: min(330px, 80%);
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 76, .35);
  box-shadow: 0 0 90px rgba(201, 162, 76, .22), var(--shadow);
}

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }

.section-alt {
  background: var(--black-soft);
  border-top: 1px solid rgba(201, 162, 76, .1);
  border-bottom: 1px solid rgba(201, 162, 76, .1);
}

.section-head { text-align: center; margin-bottom: 2.6rem; }

.section-kicker {
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 600;
}

.gold-line {
  width: 72px;
  height: 2px;
  margin: 1.1rem auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ---------- Filters ---------- */
.filters {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: .8rem;
  margin-bottom: 1rem;
}

.filter-input,
.filter-select {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: .75rem 1rem;
  font-family: var(--font-sans);
  font-size: .92rem;
  outline: none;
  transition: border-color .2s;
  width: 100%;
}

.filter-input::placeholder { color: var(--text-dim); }

.filter-input:focus,
.filter-select:focus { border-color: var(--gold); }

.filter-select option { background: var(--panel); }

.results-count {
  color: var(--text-dim);
  font-size: .88rem;
  margin-bottom: 1.6rem;
}

/* ---------- Car grid ---------- */
.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1.4rem;
}

.car-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.car-card:hover {
  transform: translateY(-5px);
  border-color: rgba(201, 162, 76, .55);
  box-shadow: var(--shadow);
}

.car-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--panel-2);
}

.car-img img {
  position: relative;
  z-index: 1; /* nuotrauka virš atsarginio ženklo */
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.car-card:hover .car-img img { transform: scale(1.06); }

.car-img .img-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  color: var(--gold);
  opacity: .55;
  font-size: .82rem;
  letter-spacing: .08em;
}

.car-body-tag {
  position: absolute;
  z-index: 2;
  top: .8rem;
  left: .8rem;
  background: rgba(11, 11, 13, .78);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(201, 162, 76, .4);
  color: var(--gold-light);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .28rem .7rem;
  border-radius: 999px;
}

.car-info {
  padding: 1.1rem 1.2rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.car-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: .65rem;
}

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  color: var(--text-dim);
  font-size: .84rem;
  margin-bottom: 1rem;
}

.car-specs span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.car-specs svg { flex: none; opacity: .75; }

.car-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  padding-top: .9rem;
  border-top: 1px solid var(--border);
}

.car-price {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
}

.car-link {
  font-size: .84rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap .2s;
}

.car-link:hover { gap: .6rem; color: var(--gold-light); }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  padding: 3rem 0;
}

.listings-note {
  margin-top: 2.2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: .9rem;
}

/* ---------- Other vehicles ---------- */
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.other-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  text-align: center;
  color: var(--gold);
  transition: transform .25s, border-color .25s;
}

.other-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 162, 76, .55);
}

.other-card svg { margin: 0 auto .9rem; display: block; }

.other-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: .3rem;
}

.other-card p { color: var(--text-dim); font-size: .86rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.about-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
}

.about-card svg { color: var(--gold); margin-bottom: 1rem; }

.about-card h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: .55rem;
}

.about-card p { color: var(--text-dim); font-size: .93rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.2rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-row svg { color: var(--gold); margin-top: .25rem; flex: none; }

.contact-row h4 {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .15rem;
}

.contact-row a { font-size: 1.05rem; color: var(--text); }
.contact-row a:hover { color: var(--gold-light); }

.contact-cta { align-self: flex-start; margin-top: .4rem; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
  filter: grayscale(.25) contrast(1.03);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #08080a;
  border-top: 1px solid rgba(201, 162, 76, .15);
  padding: 2.6rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  text-align: center;
}

.footer-note { color: var(--silver); font-size: .95rem; }
.footer-small { color: var(--text-dim); font-size: .82rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Prieinamumas ir smulkios pataisos ---------- */
/* inkarų šuoliai neturi lįsti po prilipdyta antrašte */
section[id], main [id] { scroll-margin-top: 92px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
/* vidutinis plotis: telefono numeris antraštėje — tik ikona */
@media (max-width: 1120px) {
  .header-inner { gap: 1.1rem; }
  .main-nav { gap: 1.2rem; }
  .header-phone { padding: .6rem .8rem; }
  .header-phone .phone-num { display: none; }
}

@media (max-width: 980px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .hero-inner { grid-template-columns: 1fr; padding: 4rem 0 3.4rem; }
  .hero-logo-wrap { order: -1; }
  .hero-logo { width: min(220px, 60%); }
  .other-grid, .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(11, 11, 13, .97);
    border-bottom: 1px solid rgba(201, 162, 76, .2);
    flex-direction: column;
    gap: 0;
    padding: .6rem 4%;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; padding: .4rem .2rem; }
  .header-phone { margin-left: 0; padding: .6rem .7rem; }
  .header-inner { position: relative; gap: .5rem; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-name { font-size: 1.15rem; letter-spacing: .1em; }
  .lang-switch { margin-left: auto; gap: .1rem; }
  .lang-switch a { padding: .2rem .35rem; font-size: .78rem; }
  .filters { grid-template-columns: 1fr; }
}

/* labai siauri ekranai / didelis mastelis */
@media (max-width: 420px) {
  .brand-name { display: none; }
  .hero-stats { gap: 1.4rem; }
  .section { padding: 3.2rem 0; }
}
