/* ==========================================================================
   American Pizza – stiliai

   Paletė ir tipografija perimtos iš senosios americanpizza.lt:
     mėlyna  #27337F  – buvo navbar ir adresų juosta
     mėlyna  #2F2482  – buvo kortelių rėmelis, pavadinimai ir kainos
     raudona #EE4423  – buvo 6 px / 4 px juostelės ir žvaigždutės
     baltas fonas, tekstas #333, šriftas Lato
   Būdingi senosios svetainės bruožai, kuriuos išlaikome:
     · kortelės rėmelis 2 px mėlynas, kampai `border-radius: 28px 0`
     · mygtukai stačiakampiai (be apvalinimo)
     · raudonos juostelės virš ir po mėlyna adresų juosta
     · žvaigždutės ★ šalia telefono numerių
   ========================================================================== */

/* ── Šriftas ─────────────────────────────────────────────────────────
   Lato talpinamas pas save, o ne imamas iš Google Fonts: jų atiduodamame
   `latin-ext` poaibyje trūksta č, ė, į, ū, ų glifų, todėl tos raidės
   krisdavo į sisteminį šriftą ir atrodydavo kitaip nei visos kitos.
   Failai generuojami su `python tools/build-fonts.py` (SIL OFL 1.1).
   ------------------------------------------------------------------ */
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 300;
  src: url('../fonts/lato-300.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Lato'; font-style: italic; font-weight: 300;
  src: url('../fonts/lato-300i.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 400;
  src: url('../fonts/lato-400.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 700;
  src: url('../fonts/lato-700.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Lato'; font-style: normal; font-weight: 900;
  src: url('../fonts/lato-900.woff2') format('woff2');
  font-display: swap;
}

:root {
  --blue:       #27337F;   /* antraštė, adresų juosta, kontaktai */
  --blue-deep:  #1E2A66;   /* poraštė, viršutinė juostelė */
  --blue-ink:   #2F2482;   /* rėmeliai, pavadinimai, kainos */
  --red:        #EE4423;   /* originali firmine – juostelės, žvaigždutės, rėmeliai */
  --red-fill:   #D93A1C;   /* tas pats raudonis, tik gilesnis: ant jo guli baltas
                              tekstas, o #EE4423 su baltu duoda tik 3.83:1 */
  --red-dark:   #C9331A;   /* užvedimas */

  --white:      #FFFFFF;
  --paper:      #F4F5F9;
  --paper-2:    #E8EAF2;
  --line:       #D9DCE8;

  --text:       #333333;
  --text-soft:  #666E7D;
  --on-blue:    #FFFFFF;
  --on-blue-soft: rgba(255, 255, 255, .78);

  --radius-card: 28px 0;   /* senosios svetainės kortelės kampai */
  --radius-sm:   0;        /* mygtukai buvo stačiakampiai */

  --shadow:    3px 10px 40px -18px rgba(0, 0, 0, .55);
  --shadow-lg: 3px 10px 64px -16px rgba(0, 0, 0, .55);

  --font: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --header-h: 78px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
svg { width: 100%; height: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.01em;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red-fill); color: #fff; padding: 12px 20px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }

:where(a, button, input):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

/* ── Mygtukai (senojoje – stačiakampiai, su mėlynu rėmeliu) ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px;
  border: 2px solid var(--blue); border-radius: var(--radius-sm);
  background: var(--white); color: var(--blue);
  font: 700 15px/1 var(--font);
  text-decoration: none; cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--blue); color: var(--white); }

.btn--primary { background: var(--red-fill); border-color: var(--red-fill); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); transform: translateY(-1px); }

.btn--ghost { background: transparent; border-color: rgba(255, 255, 255, .75); color: var(--white); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--blue); }

.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--text {
  background: none; border: 0; color: var(--text-soft); padding: 10px;
  font-weight: 400; text-decoration: underline; text-underline-offset: 3px;
}
.btn--text:hover { color: var(--red); background: none; }

/* ── Viršutinė juostelė ──────────────────────────────────────────── */
.topbar {
  background: var(--blue-deep);
  color: var(--on-blue-soft);
  font-size: 13.5px;
  font-weight: 300;
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 38px;
}
.topbar__item { display: inline-flex; align-items: center; gap: 8px; }
.topbar__item strong { color: var(--white); font-weight: 700; }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5BD37F;
  box-shadow: 0 0 0 0 rgba(91, 211, 127, .7);
  animation: pulse 2.4s infinite;
}
.topbar.is-closed .dot { background: var(--red); animation: none; }
@keyframes pulse {
  70%  { box-shadow: 0 0 0 8px rgba(91, 211, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(91, 211, 127, 0); }
}

/* ── Antraštė (senojoje – mėlyna juosta su logotipu) ─────────────── */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--blue);
  border-bottom: 4px solid var(--red);
  color: var(--on-blue);
}
.header__in {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.brand img { width: 150px; height: auto; }

.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a {
  padding: 10px 15px;
  font-size: 16px; font-weight: 400; text-decoration: none;
  color: var(--on-blue-soft);
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav a:hover, .nav a.is-current { color: var(--white); border-bottom-color: var(--red); }

.header__cta { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 44px; height: 44px; padding: 12px;
  background: rgba(255, 255, 255, .12); border: 0; border-radius: 0;
  cursor: pointer;
}
.burger span {
  display: block; height: 2px; background: var(--white);
  transition: transform .22s ease, opacity .18s ease;
}
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero (originali main.jpg nuotrauka) ─────────────────────────── */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 108px) 0;
  background:
    linear-gradient(180deg, rgba(30, 42, 102, .9) 0%, rgba(39, 51, 127, .82) 55%, rgba(30, 42, 102, .94) 100%),
    url('../img/main.webp') center / cover no-repeat;
  color: var(--on-blue);
  text-align: center;
}
.hero__in { max-width: 860px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 20px;
  padding: 7px 16px;
  background: var(--red-fill);
  color: var(--white);
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow--dark { background: var(--blue); color: var(--white); }

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  margin-bottom: 14px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .35);
}
/* Senosios svetainės pagrindinė eilutė – plonas Lato per visą plotį. */
.hero__hours {
  margin: 0 0 22px;
  font-size: clamp(24px, 4.2vw, 46px);
  font-weight: 300;
  line-height: 1.15;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .35);
}
.lead {
  max-width: 58ch; margin: 0 auto 30px;
  font-size: clamp(16px, 1.4vw, 18px); font-weight: 300;
  color: rgba(255, 255, 255, .9);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }

.hero__stats {
  list-style: none; margin: 0; padding: 26px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 6vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, .28);
}
.hero__stats li { display: flex; flex-direction: column; gap: 2px; }
.hero__stats b { font-size: 34px; font-weight: 900; line-height: 1; }
.hero__stats span { font-size: 13px; font-weight: 300; color: var(--on-blue-soft); }

@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Picerijų juosta (senoji „addresses“: mėlyna tarp raudonų linijų) */
.strip {
  background: var(--blue);
  color: var(--on-blue);
  border-top: 6px solid var(--red);
  border-bottom: 4px solid var(--red);
}
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__cell {
  display: flex; flex-direction: column; gap: 2px;
  padding: 20px; text-align: center;
  text-decoration: none;
  transition: background .16s ease;
}
.strip__cell + .strip__cell { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .22); }
.strip__cell:hover { background: rgba(0, 0, 0, .16); }
.strip__cell b { font-size: 20px; font-weight: 900; }
/* Senojoje adreso eilutė buvo kursyvu. */
.strip__cell small { font-size: 13.5px; font-style: italic; font-weight: 300; opacity: .9; }
.strip__phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 6px; font-weight: 700; font-size: 17px;
}
.strip__phone::before, .strip__phone::after { content: '★'; color: var(--red); font-size: 11px; }
.strip__phone svg { width: 14px; height: 14px; }

/* ── Sekcijos ────────────────────────────────────────────────────── */
.section { padding: clamp(52px, 7vw, 88px) 0; }
.section--menu { background: var(--white); }
.section--builder { background: var(--paper); }
.section--delivery { background: var(--white); }
.section--contacts { background: var(--blue); color: var(--on-blue); }

.section__head { max-width: 640px; margin-bottom: 34px; }
.section__head h2 { font-size: clamp(30px, 4vw, 46px); color: var(--blue-ink); margin-bottom: 12px; }
.section__head--light h2 { color: var(--white); }
.section__sub { margin: 0; color: var(--text-soft); font-size: 16.5px; font-weight: 300; }
.section__head--light .section__sub { color: var(--on-blue-soft); }
.section__head--light .section__sub a { color: var(--white); }

/* ── Meniu įrankiai ──────────────────────────────────────────────── */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px;
}
.tabs { display: inline-flex; gap: 8px; }
.tab {
  padding: 12px 26px;
  border: 2px solid var(--blue); border-radius: var(--radius-sm);
  background: var(--white); color: var(--blue);
  font: 700 15px/1 var(--font); cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.tab:hover { background: var(--paper-2); }
.tab.is-active { background: var(--blue); color: var(--white); }

.toolbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.search {
  display: flex; align-items: center; gap: 9px;
  padding: 0 15px; height: 46px; min-width: 280px;
  background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text-soft);
  transition: border-color .16s ease;
}
.search:focus-within { border-color: var(--blue); }
.search svg { width: 17px; height: 17px; flex: none; }
.search input {
  flex: 1; min-width: 0; align-self: stretch;
  border: 0; background: none; outline: none;
  font: 400 15px var(--font); color: var(--text);
}

.chips { display: flex; gap: 8px; }
.chip {
  padding: 12px 16px; cursor: pointer;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm);
  font: 400 14px/1 var(--font); color: var(--text-soft);
  transition: all .16s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-on { background: var(--blue); border-color: var(--blue); color: var(--white); }

.sizebar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 14px 18px; margin-bottom: 28px;
  background: var(--paper); border: 2px solid var(--line);
}
.sizebar__label {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
}
.sizebar__hint { font-size: 13.5px; font-weight: 300; color: var(--text-soft); margin-left: auto; }

.segmented { display: inline-flex; gap: 6px; }
.seg {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 9px 20px;
  border: 2px solid var(--blue); border-radius: var(--radius-sm);
  background: var(--white); color: var(--blue);
  font: 700 14px/1.2 var(--font); cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.seg small { font-size: 10.5px; font-weight: 400; opacity: .8; }
.seg:hover { background: var(--paper-2); }
.seg.is-active { background: var(--blue); color: var(--white); }
.segmented--light .seg { background: transparent; border-color: rgba(47, 36, 130, .35); }
.segmented--light .seg.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ── Kortelės (senosios: 2 px mėlynas rėmelis, kampai 28px 0) ────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 2px solid var(--blue-ink);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card__media {
  position: relative;
  aspect-ratio: 1 / .82;
  display: grid; place-items: center;
  background: var(--white);
  overflow: hidden;
}
.card__media img {
  width: 96%; height: auto;
  mix-blend-mode: multiply;   /* originalios nuotraukos su baltu fonu */
  transition: transform .35s ease;
}
.card:hover .card__media img { transform: scale(1.06); }
.card__ph { width: 62%; }

.card__tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.tagpill {
  padding: 5px 10px;
  background: var(--blue); color: var(--white);
  font-size: 11.5px; font-weight: 700;
}
.tagpill--spicy { background: var(--red-fill); }
.tagpill--veggie { background: #2E7D4F; }

.card__body { display: flex; flex-direction: column; gap: 7px; padding: 16px 20px 20px; flex: 1; }
.card__title { font-size: 21px; font-weight: 700; line-height: 1.15; color: var(--blue-ink); }
.card__desc { margin: 0; flex: 1; font-size: 14px; line-height: 1.5; color: var(--text-soft); }
.card__foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 6px; padding-top: 12px;
  border-top: 1px solid var(--line);
}
/* Senojoje kainos buvo mėlynos ir paryškintos. */
.card__price { font-size: 24px; font-weight: 900; line-height: 1; color: var(--blue-ink); }
.card__size { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }

.empty { text-align: center; padding: 48px 0; color: var(--text-soft); font-size: 17px; font-weight: 300; }

/* ── Susikurk picą ───────────────────────────────────────────────── */
.builder { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.builder__picker {
  background: var(--white);
  border: 2px solid var(--blue-ink); border-radius: var(--radius-card);
  padding: 24px;
}
.builder__sizes {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.bgroup + .bgroup { margin-top: 24px; }
.bgroup h4 {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 900; letter-spacing: .16em;
  text-transform: uppercase; color: var(--red-fill);
}
.bgroup__items { display: flex; flex-wrap: wrap; gap: 8px; }

.ing {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 15px; cursor: pointer;
  background: var(--white);
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  color: var(--text);
  font: 400 14px/1 var(--font);
  transition: all .16s ease;
}
.ing:hover { border-color: var(--blue); }
.ing__price { font-size: 12.5px; font-weight: 700; color: var(--blue-ink); }
.ing.is-on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.ing.is-on .ing__price { color: rgba(255, 255, 255, .85); }
.ing__check {
  width: 16px; height: 16px; flex: none;
  border: 2px solid var(--line);
  display: grid; place-items: center; font-size: 10px; line-height: 1;
}
.ing.is-on .ing__check { background: var(--white); border-color: var(--white); color: var(--blue); }

.builder__sum {
  position: sticky; top: calc(var(--header-h) + 18px);
  background: var(--white);
  border: 2px solid var(--blue-ink); border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow);
}
.builder__sum h3 { font-size: 24px; color: var(--blue-ink); margin-bottom: 6px; }
.sum__size {
  display: inline-block; margin-bottom: 16px;
  padding: 4px 12px;
  background: var(--red-fill); color: var(--white);
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.sum__list { list-style: none; margin: 0 0 16px; padding: 0; max-height: 260px; overflow-y: auto; }
.sum__list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.sum__list li span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum__list li.is-base { color: var(--text-soft); font-weight: 300; }
.sum__total {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 14px; border-top: 2px solid var(--blue-ink);
}
.sum__total span { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
.sum__total b { font-size: 34px; font-weight: 900; color: var(--blue-ink); }
.sum__note { margin: 12px 0 16px; font-size: 13.5px; color: var(--text-soft); }
.builder__sum .btn--text { display: block; margin: 6px auto 0; }

/* ── Pristatymas ─────────────────────────────────────────────────── */
.delivery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.dcard {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 2px solid var(--blue-ink); border-radius: var(--radius-card);
  padding: 24px;
}
.dcard__head { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.dcard__district { font-size: 23px; font-weight: 900; color: var(--blue-ink); }
.dcard__street { font-size: 14px; font-style: italic; font-weight: 300; color: var(--text-soft); }
.dcard__phone {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 10px;
  font-weight: 900; font-size: 18px; color: var(--red-fill); text-decoration: none;
}
.dcard__phone svg { width: 15px; height: 15px; }
.dcard__phone:hover { text-decoration: underline; }

.zone + .zone { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.zone__area { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; color: var(--blue-ink); }
.zone__rules { display: flex; flex-wrap: wrap; gap: 6px; }
.zone__rule { padding: 4px 10px; background: var(--paper); font-size: 12.5px; color: var(--text-soft); }
.zone__rule b { color: var(--text); font-weight: 700; }
.zone__rule--free { background: rgba(46, 125, 79, .1); }
.zone__rule--free b { color: #2E7D4F; }

/* ── Kontaktai ───────────────────────────────────────────────────── */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.ccard {
  display: flex; flex-direction: column; gap: 3px;
  padding: 26px 24px;
  background: rgba(255, 255, 255, .08);
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-card);
  transition: background .18s ease, transform .18s ease;
}
.ccard:hover { background: rgba(255, 255, 255, .14); transform: translateY(-3px); }
.ccard__district { font-size: 24px; font-weight: 900; color: var(--white); }
.ccard__street { font-size: 14.5px; font-style: italic; font-weight: 300; color: var(--on-blue-soft); margin-bottom: 14px; }
.ccard__phone {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: auto; padding: 12px 18px;
  background: var(--red-fill); color: var(--white);
  font-weight: 900; font-size: 17px; text-decoration: none;
  transition: background .16s ease;
}
.ccard__phone:hover { background: var(--red-dark); }
.ccard__phone svg { width: 16px; height: 16px; }

/* ── Poraštė ─────────────────────────────────────────────────────── */
.footer {
  background: var(--blue-deep); color: var(--on-blue);
  border-top: 6px solid var(--red);
  padding: 40px 0 36px;
}
.footer__in { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.footer__logo { width: 150px; height: auto; }
.footer__brand p { margin: 10px 0 0; font-size: 13.5px; font-weight: 300; color: var(--on-blue-soft); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer__nav a { font-size: 14.5px; font-weight: 300; color: var(--on-blue-soft); text-decoration: none; }
.footer__nav a:hover { color: var(--white); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 40px; height: 40px; padding: 10px;
  background: rgba(255, 255, 255, .12); color: var(--white);
  transition: background .16s ease;
}
.footer__social a:hover { background: var(--red); }
.footer__copy {
  width: 100%; margin: 6px 0 0; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px; font-weight: 300; color: var(--on-blue-soft);
}

/* ── Skambučio mygtukas (mobiliesiems) ───────────────────────────── */
.callfab {
  position: fixed; z-index: 55; left: 14px; right: 14px; bottom: 14px;
  display: none; align-items: center; justify-content: center; gap: 10px;
  padding: 16px;
  background: var(--red-fill); color: var(--white);
  font-weight: 900; text-decoration: none;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .5);
}
.callfab svg { width: 19px; height: 19px; }

/* ── Pasirodymo animacija ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s ease; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ── Adaptyvumas ─────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .builder { grid-template-columns: 1fr; }
  .builder__sum { position: static; }
  .strip__grid { grid-template-columns: repeat(2, 1fr); }
  .strip__cell:nth-child(n+3) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
  .strip__cell:nth-child(4) { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .22); }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px 20px 16px;
    background: var(--blue);
    border-bottom: 4px solid var(--red);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .nav a:hover, .nav a.is-current { border-bottom-color: var(--red); }
  .header__in { position: relative; }
}

@media (max-width: 720px) {
  .topbar__item--sep { display: none; }
  .brand img { width: 122px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 15px 8px; }
  .search { min-width: 0; width: 100%; }
  .toolbar__right { flex-direction: column; align-items: stretch; }
  .chips { justify-content: center; }
  .chip { flex: 1; }
  .sizebar { flex-direction: column; align-items: stretch; }
  .sizebar__hint { margin-left: 0; }
  .segmented { justify-content: center; }
  .seg { flex: 1; padding: 11px 6px; }

  /* Pirštu liečiami plotai – ne mažiau 44 px. */
  .btn { padding: 15px 24px; }
  .btn--text { padding: 14px; }
  .ing { padding: 13px 15px; }
  .dcard__phone { padding: 9px 0; }
  .footer__nav a { padding: 10px 0; }

  /* Visada du stulpeliai: auto-fill 320–360 px telefonuose krisdavo
     į vieną stulpelį ir meniu tapdavo labai ilgas. */
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { border-radius: 20px 0; }
  .card__body { padding: 14px 15px 16px; }
  .card__title { font-size: 17px; }
  .card__desc { font-size: 13px; }
  .card__price { font-size: 21px; }
  .btn--call span { display: none; }

  .callfab { display: flex; }
  .footer { padding-bottom: 96px; }
  .footer__nav { margin-left: 0; width: 100%; }
  .header__cta .btn--call { display: none; }
}

@media (max-width: 520px) {
  .strip__grid { grid-template-columns: 1fr; }
  .strip__cell { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22) !important; }
  .strip__cell:first-child { box-shadow: none !important; }
  .hero__stats { gap: 24px; }
  .hero__stats b { font-size: 28px; }
}

@media (max-width: 360px) {
  .wrap { padding-inline: 14px; }
  .card__body { padding: 12px 12px 14px; }
  .card__title { font-size: 16px; }
}
