/* =========================================================
   Geras Garsas Vilniuje — main stylesheet
   ========================================================= */

:root {
  --ink: #0e1116;
  --ink-2: #161b22;
  --ink-3: #1f2630;
  --text: #1c2129;
  --muted: #5b6573;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --accent: #0a84d6;
  --accent-dark: #0668ab;
  --accent-soft: #e6f3fc;
  --warm: #ffb020;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, .16);
  --wrap: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #c9d1db; }
.section--dark h2, .section--dark h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }
.section--dark .section-head p { color: #9aa5b4; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--messenger { background: linear-gradient(135deg, #0a7cff 0%, #a033ff 100%); color: #fff; }
.btn--messenger:hover { filter: brightness(1.08); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 16px 0;
}
.header.is-scrolled {
  background: rgba(14, 17, 22, .92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  padding: 10px 0;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: #d7dde5; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--ink) url('../img/cover.avif') center / cover no-repeat;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 17, 22, .92) 0%, rgba(14, 17, 22, .72) 55%, rgba(14, 17, 22, .45) 100%),
    linear-gradient(0deg, rgba(14, 17, 22, .9) 0%, rgba(14, 17, 22, 0) 40%);
}
.hero .wrap { position: relative; }
.hero-content { max-width: 680px; }
.hero h1 { color: #fff; font-size: clamp(36px, 6vw, 64px); font-weight: 800; margin-bottom: 20px; }
.hero h1 span { color: var(--warm); }
.hero-lead { font-size: clamp(17px, 2vw, 20px); color: #c9d1db; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-stats strong { display: block; font-size: 28px; font-weight: 800; color: #fff; line-height: 1.1; }
.hero-stats span { font-size: 14px; color: #9aa5b4; }

/* ---------- Brands strip ---------- */
.brands { background: var(--ink-2); padding: 22px 0; }
.brands .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 48px; }
.brands span { color: #7d8896; font-weight: 800; letter-spacing: .14em; font-size: 15px; }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.product-media img { width: 100%; height: 100%; object-fit: contain; }
.product-media--placeholder { color: #9aa5b4; font-size: 64px; background: linear-gradient(160deg, #f8fafc, #eaeef3); }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
}
.badge--new { background: var(--warm); color: var(--ink); }
.badge--hot { background: var(--accent); }

.product-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.product-cat { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.product h3 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.product-desc { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }

.specs { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.specs li { position: relative; padding-left: 26px; }
.specs li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230a84d6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.price { line-height: 1.15; }
.price strong { font-size: 30px; font-weight: 800; color: var(--ink); }
.price span { font-size: 14px; color: var(--muted); }
.price small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }

.products-note { text-align: center; color: var(--muted); margin-top: 36px; font-size: 16px; }

/* ---------- Bundles ---------- */
.bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.bundle {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bundle:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.bundle--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.bundle .badge { top: -12px; left: auto; right: 20px; background: var(--accent); }
.bundle-media {
  display: flex;
  gap: 8px;
  margin: -6px -6px 18px;
}
.bundle-media img {
  flex: 1 1 0;
  min-width: 0;
  height: 110px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
}
.bundle-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.bundle-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); display: grid; place-items: center; font-size: 26px; }
.bundle h3 { font-size: 20px; font-weight: 800; margin: 0 0 2px; }
.bundle .meta { font-size: 14px; font-weight: 700; color: var(--accent); }
.bundle-items { list-style: none; margin: 0 0 20px; padding: 0; font-size: 15.5px; }
.bundle-items li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.bundle-items li span:last-child { color: var(--muted); white-space: nowrap; }
.bundle-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Feature grid ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, .06);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  background: rgba(10, 132, 214, .16);
  margin-bottom: 16px;
}
.feature h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.feature p { font-size: 15px; margin: 0; color: #9aa5b4; }

/* ---------- Two column text block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; }
.split p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; font-size: 19px; }
.checklist strong { display: block; color: var(--ink); }
.checklist span { color: var(--muted); font-size: 15.5px; }

.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
.info-card h3 { font-size: 19px; font-weight: 800; margin: 0; }
.info-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: .5em; font-size: 19px; }
.info-card p { margin: 0; font-size: 15.5px; }
.info-card--accent { background: var(--accent-soft); border-color: transparent; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 24px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.steps strong { display: block; color: var(--ink); margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }
.notice {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: #fff7e6;
  border: 1px solid #ffe2a8;
  color: #6b4a00;
  font-size: 15.5px;
}

/* ---------- Testimonials ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonial { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.stars { color: var(--warm); letter-spacing: 2px; font-size: 18px; margin-bottom: 12px; }
.testimonial blockquote { margin: 0 0 18px; font-size: 16.5px; color: var(--text); }
.testimonial cite { margin-top: auto; font-style: normal; font-weight: 800; color: var(--ink); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
.gallery-cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 17, 22, .78);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.gallery a:only-child { width: 100%; max-width: 760px; margin: 0 auto; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 22px;
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--accent);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- Long read (SEO article) ---------- */
.longread { max-width: 820px; margin: 0 auto; }
.longread details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 28px; }
.longread summary { cursor: pointer; padding: 16px 0; font-weight: 800; font-size: 19px; color: var(--ink); }
.longread p, .longread li { color: var(--muted); font-size: 16px; }
.longread h3 { font-size: 18px; margin-top: 1.4em; }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0a84d6 0%, #0b5ea8 60%, #0e3f7a 100%);
}
.cta::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.cta p { color: #d6e9f8; font-size: 18px; }
.cta .btn { background: #fff; color: var(--accent-dark); font-size: 20px; padding: 16px 32px; margin: 12px 6px 0; }
.cta .btn--ghost { background: transparent; color: #fff; font-size: 17px; }
.cta .btn--messenger { background: linear-gradient(135deg, #0a7cff 0%, #a033ff 100%); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.cta small { display: block; margin-top: 22px; color: #bcdaf2; font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9aa5b4; padding: 64px 0 32px; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer a { color: #d7dde5; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .brand { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 24px; font-size: 14px; text-align: center; }

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .product, .btn, .gallery img { transition: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 72px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .brand span { display: none; }
  .hero { padding: 100px 0 56px; }
  .hero::before { background: linear-gradient(0deg, rgba(14, 17, 22, .95) 10%, rgba(14, 17, 22, .7) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-stats { gap: 22px; }
  .hero-stats strong { font-size: 24px; }
  .products, .bundles { grid-template-columns: 1fr; }
  .bundle { padding: 22px; }
  .product-foot { flex-wrap: wrap; }
  .product-foot .btn { flex: 1 1 100%; }
  .cta { padding: 48px 20px; border-radius: 20px; }
  .cta .btn { width: 100%; margin: 10px 0 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .longread details { padding: 4px 18px; }

  .callbar {
    display: flex;
    gap: 10px;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14, 17, 22, .96);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
  }
  .callbar .btn { flex: 1; padding: 12px 8px; font-size: 15px; gap: 6px; }
  .callbar .btn--ghost { flex: 1.2; }
}
