/* Averta – DEMO licence, replace with licensed files (Regular/Semibold/Bold) before launch */
@font-face {
  font-family: "Averta";
  src: url("/fonts/Averta-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Giorgio Sans – headings */
@font-face {
  font-family: "Giorgio Sans";
  src: url("/fonts/GiorgioSans-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Giorgio Sans";
  src: url("/fonts/GiorgioSans-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --red: #e30613;
  --red-dark: #c00510;
  --ink: #111;
  --muted: #555;
  --line: #cfcfcf;
  --bg: #fff;
  --head: "Giorgio Sans", "Impact", "Arial Narrow", sans-serif;
  --body: "Averta", system-ui, sans-serif;
  --wrap: 1240px;
  --gutter: 16px;

  /* Type scale – the only four font sizes on the site (fluid, so each viewport width resolves to exactly four) */
  --fs-xl: clamp(50px, 7.4vw, 104px);          /* display: h1, films headline */
  --fs-l: clamp(30px, 24px + 1.4vw, 44px);     /* section headings, prices, plan names, CTAs */
  --fs-m: clamp(16px, 14px + .3125vw, 18px);   /* body, lead, labels, inputs */
  --fs-s: 14px;                                /* hints, errors, captions, card details */
  --lh-tight: 1;       /* single-line display type (prices, CTAs, plan names) */
  --lh-heading: 1.05;  /* multi-line headings */
  --lh-body: 1.5;
  --lh-s: 1.4;
  --fw-strong: 600;    /* labels (Averta) */
  --fw-head: 700;      /* all Giorgio Sans display type */

  /* Spacing – 8px grid with 4px half-steps */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --space-label: var(--sp-2);     /* label → input */
  --space-heading: var(--sp-3);   /* heading → supporting text */
  --space-para: var(--sp-4);      /* paragraph → paragraph */
  --space-field: var(--sp-5);     /* form field → next field */
  --space-group: var(--sp-6);     /* content group → next group */
  --space-sub: var(--sp-7);       /* sub-section → sub-section (info blocks) */
  --space-section: var(--sp-9);   /* page section → page section */
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fs-m)/var(--lh-body) var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Logo ---------- */
.logo { display: inline-block; line-height: 0; }
.logo img { width: clamp(170px, 18vw, 230px); height: auto; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); grid-template-areas: "head img" "picker img";
  grid-template-rows: auto 1fr; padding-top: var(--sp-7); padding-bottom: var(--space-section); align-items: start; }
.hero__head { grid-area: head; position: relative; z-index: 2; }
/* The people stand in the left ~70% of the photo – zoom in from the top-left so they sit centred (empty wall on the right is cropped) */
.hero__img { grid-area: img; position: relative; overflow: hidden; aspect-ratio: 687 / 1296; }
.hero__img img { position: absolute; top: 0; left: 0; width: 140%; max-width: none; height: auto; filter: grayscale(1); }
h1 { font: var(--fw-head) var(--fs-xl)/var(--lh-heading) var(--head); text-transform: uppercase; color: var(--red); letter-spacing: -.5px;
  margin: var(--sp-8) 0 var(--space-heading); white-space: nowrap; }
.lead { font-size: var(--fs-m); margin: 0 0 var(--sp-7); }
.picker { grid-area: picker; display: grid; gap: var(--sp-5); max-width: 470px; margin-left: clamp(0px, 5vw, 80px); }

/* Duration cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); }
.card { background: #fff; border: 1px solid #333; border-radius: 14px; padding: var(--sp-5) var(--sp-3) var(--sp-4); text-align: center; cursor: pointer;
  font: inherit; color: inherit; transition: transform .25s ease, box-shadow .25s ease, border-color .15s; }
@media (hover: hover) {
  .card:hover { border-color: var(--red); transform: scale(1.05); box-shadow: 0 10px 24px rgba(0, 0, 0, .15); }
  .card[aria-checked="true"]:hover { box-shadow: 0 0 0 2px var(--red), 0 10px 24px rgba(0, 0, 0, .15); }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } }
.card[aria-checked="true"] { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.card:focus-visible, .plan:focus-visible, .cta:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
.card { display: flex; flex-direction: column; } /* buttons centre content vertically – keep every card top-aligned */
.card__dur { font: var(--fw-head) var(--fs-m)/var(--lh-tight) var(--head); }
.card__price { font: var(--fw-head) var(--fs-l)/var(--lh-tight) var(--head); color: var(--red); margin: var(--sp-4) 0 var(--sp-2); white-space: nowrap; }
.card__tag { border-top: 1px solid #333; margin: var(--sp-3) var(--sp-1) 0; padding-top: var(--sp-3); font-size: var(--fs-s); line-height: var(--lh-s); }
.card__old { color: var(--ink); text-decoration: line-through; font-size: var(--fs-s); line-height: var(--lh-s); min-height: 1.4em; }
/* Discount ribbon across the top-right corner */
.card { position: relative; overflow: hidden; }
.card__ribbon { position: absolute; top: 18px; right: -36px; width: 130px; transform: rotate(45deg);
  background: var(--red); color: #fff; font: var(--fw-head) 18px/1 var(--head); letter-spacing: .03em;
  padding: 4px 0; text-align: center; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); pointer-events: none; }

/* Plan radios */
.plans { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); }
.plan { display: flex; gap: var(--sp-2); align-items: center; cursor: pointer; background: none; border: 0; padding: 2px; font: inherit; color: inherit; }
.plan__dot { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #111; display: grid; place-items: center; }
.plan[aria-checked="true"] .plan__dot { border-color: #111; background: var(--red); }
.plan b { font: var(--fw-head) var(--fs-l)/var(--lh-tight) var(--head); text-transform: uppercase; }
.plan-group { display: grid; gap: var(--sp-3); }
.plan-feat { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4); }
.plan-feat li { display: flex; align-items: center; gap: var(--sp-2); }
.plan-feat li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* CTA */
.cta { display: flex; width: 100%; justify-content: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); border: 0; border-radius: 6px; background: var(--red); color: #fff;
  font: var(--fw-head) var(--fs-l)/var(--lh-tight) var(--head); cursor: pointer; text-decoration: none; }
.cta:hover { background: var(--red-dark); }
.cta:disabled { opacity: .6; cursor: progress; }

/* ---------- Section headings ---------- */
.h-big { font: var(--fw-head) var(--fs-xl)/var(--lh-heading) var(--head); text-transform: uppercase; color: var(--red); letter-spacing: -.5px; margin: 0 auto var(--sp-4); }
.h-sec { font: var(--fw-head) var(--fs-l)/var(--lh-heading) var(--head); text-transform: uppercase; margin: 0 0 var(--space-heading); }

/* ---------- Gift form ---------- */
.gift { max-width: 760px; padding-bottom: var(--space-section); }
.summary { color: var(--muted); margin: 0 0 var(--space-group); }
form { display: flex; flex-direction: column; gap: var(--space-field); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-field) var(--sp-4); }
.field { display: flex; flex-direction: column; gap: var(--space-label); }
.field > span, .quotes__label, .delivery legend { font-weight: var(--fw-strong); }
.field > span { display: flex; justify-content: space-between; gap: var(--sp-2); }
.counter { color: var(--muted); font-weight: 400; font-size: var(--fs-s); }
.quotes__label { display: block; margin-bottom: var(--space-label); }
.quotes__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.quote-chip { font: 400 var(--fs-s)/1 var(--body); padding: var(--sp-2) var(--sp-4); border: 1px solid #333; border-radius: 999px; background: #fff; color: var(--ink);
  cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.quote-chip:hover { border-color: var(--red); color: var(--red); }
.quote-chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.quote-chip:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
input[type=email], input:not([type]), textarea { font: inherit; padding: var(--sp-3) var(--sp-4); border: 1px solid #999; border-radius: 8px; width: 100%; background: #fff; color: var(--ink); }
input:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; min-height: 110px; }
.hint, .err, .secure { font-size: var(--fs-s); line-height: var(--lh-s); }
.hint, .secure { color: var(--muted); }
.err { color: var(--red-dark); }
.err:empty { display: none; }
.delivery { display: grid; gap: var(--sp-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.delivery legend { padding: 0; margin-bottom: var(--space-label); }
.radio, .check { display: flex; gap: var(--sp-3); align-items: flex-start; margin: 0; cursor: pointer; }
.radio input, .check input { accent-color: var(--red); width: 18px; height: 18px; margin: 3px 0 0; flex: none; }
.check a, .info a { color: var(--red); }
.pay { display: grid; gap: var(--sp-3); /* group gap = field gap + this */ margin-top: calc(var(--space-group) - var(--space-field)); }
.pay > p { margin: 0; }
.secure { text-align: center; }

/* ---------- Films strip ---------- */
.films { padding-bottom: var(--space-section); }
.posters { --edge: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: flex; gap: var(--sp-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--edge); scroll-padding-inline: var(--edge); padding-block: var(--sp-4); }
.posters::-webkit-scrollbar { display: none; }
.poster { flex: none; width: clamp(150px, 15vw, 190px); scroll-snap-align: start; border-radius: 8px; position: relative;
  transition: transform .25s ease, box-shadow .25s ease; color: inherit; text-decoration: none; }
.poster img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: #eee; }
.poster:focus-visible { outline: 3px solid #000; outline-offset: 3px; }
@media (hover: hover) {
  .poster:hover { transform: scale(1.06); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); z-index: 1; }
}
@media (prefers-reduced-motion: reduce) { .poster { transition: none; } }
/* last tile: "all films" */
.poster--all { display: grid; place-items: center; aspect-ratio: 2 / 3; height: auto; background: var(--red); color: #fff; text-align: center;
  font: var(--fw-head) var(--fs-l)/var(--lh-heading) var(--head); text-transform: uppercase; padding: var(--sp-4); }
.poster--all span { display: block; margin-top: var(--sp-2); }

/* arrows (desktop) */
.films__strip { position: relative; }
.films__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: var(--fs-m); cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  transition: background .15s, color .15s, opacity .2s; }
.films__nav:hover { background: var(--red); color: #fff; }
.films__nav:disabled { opacity: 0; pointer-events: none; }
.films__nav--prev { left: max(8px, calc((100vw - var(--wrap)) / 2 - 20px)); }
.films__nav--next { right: max(8px, calc((100vw - var(--wrap)) / 2 - 20px)); }
@media (hover: none), (max-width: 640px) { .films__nav { display: none; } }

/* ---------- Info ---------- */
.info { padding-bottom: var(--space-section); }
.info p { margin: 0; max-width: 72ch; }
.info p + p { margin-top: var(--space-para); }
.info p + .h-sec { margin-top: var(--space-sub); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "img" "picker"; padding-top: var(--sp-5); }
  h1 { white-space: normal; margin-top: var(--sp-6); }
  .lead { margin-bottom: var(--sp-5); }
  .hero__img { margin: 0 calc(-1 * var(--gutter)) var(--sp-5); aspect-ratio: 4 / 3.4; }
  .picker { margin-left: 0; max-width: 560px; }
}
@media (max-width: 640px) {
  :root { --space-section: var(--sp-8); }
  .cards { gap: var(--sp-2); }
  .card { padding: 30px var(--sp-1) var(--sp-3); border-radius: 12px; }
  .card__ribbon { top: 14px; right: -30px; width: 108px; font-size: 14px; padding: 3px 0; }
  .card__tag { margin-inline: 0; }

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


/* ---------- Simple pages (aciu.html) ---------- */
.page { max-width: 1040px; margin: 0 auto; padding: var(--sp-5) var(--gutter) var(--sp-8); }
.page h1 { white-space: normal; margin-top: var(--sp-7); }

/* ---------- Black Friday page (juodasis-penktadienis.html) ---------- */
.bf h1 { color: var(--ink); }
/* Longer headline ("… -60%") must not run into the photo on narrow desktops */
@media (min-width: 901px) { .bf h1 { font-size: clamp(50px, min(7.4vw, calc((100vw - 520px) / 7)), 104px); } }
.bf .card__ribbon { display: none; }
