/* Hisense landing – zajednički stil za sve TV stranice.
   Dizajn je rađen po screenshot-u širine 1920px. */

:root {
  --bg: #232b2b;
  --bg-black: #121212;
  --teal: #00b3ac;
  --white: #fff;
  --ink: #121212;
  --gray-on-dark: #8f9696;

  --fs-h1: clamp(30px, 2.71vw, 52px);
  --fs-h2: clamp(26px, 2.09vw, 40px);
  --fs-h3: clamp(21px, 1.67vw, 32px);
  --fs-body: clamp(16px, 1.15vw, 22px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.02em;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teal); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.sprite { position: absolute; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 640px);
  justify-content: center;
  gap: clamp(48px, 9vw, 172px);
  padding: 60px 40px;
}

.gallery {
  align-self: start;
  padding: 20px 20px 16px;
  border-radius: 30px;
  background: var(--white);
  color: var(--ink);
}
.gallery-stage { position: relative; }
.gallery-stage img { width: 100%; aspect-ratio: 560 / 505; object-fit: contain; transition: opacity .3s ease; }
.gallery-stage img.is-fading { opacity: 0; }
.gallery-arrow { position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; color: #a8a8a8; }
.gallery-arrow--prev { left: 0; }
.gallery-arrow--next { right: 0; }
.gallery-arrow svg, .thumb-arrow svg { width: 100%; height: 100%; }
.gallery-arrow:hover, .thumb-arrow:hover { color: var(--teal); }

.gallery-thumbs { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.gallery-thumbs ul { display: flex; gap: 16px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.gallery-thumbs ul::-webkit-scrollbar { display: none; }
.gallery-thumbs [data-thumb] {
  display: block;
  flex: none;
  width: 50px;
  height: 50px;
  padding: 2px;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  overflow: hidden;
}
.gallery-thumbs [data-thumb][aria-current="true"] { border: 2px solid var(--teal); }
.gallery-thumbs [data-thumb] img { width: 100%; height: 100%; object-fit: contain; }
.thumb-arrow { flex: none; width: 18px; height: 18px; color: #8a8a8a; }

.buybox { align-self: center; }
.buybox h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.14; }
.model { margin-top: 20px; font-size: 20px; font-weight: 700; }


.key-specs { margin-top: 20px; padding-left: 20px; list-style: disc; color: var(--gray-on-dark); }
.key-specs li::marker { color: var(--white); }
.key-specs strong { color: var(--white); font-weight: 500; }

.labels { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.energy img { width: auto; height: 60px; }
.badge img { width: 60px; height: 60px; }

.datasheet { display: inline-block; margin-top: 20px; color: var(--teal); font-size: 13px; }



/* ---------- Karakteristike ---------- */
.features { padding: 62px 24px 70px; background: var(--bg-black); }
.features > h2 { font-size: 32px; font-weight: 700; line-height: 1.3; text-align: center; text-transform: uppercase; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  grid-auto-rows: 160px;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 24px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  cursor: default;
}
.tile-icon { width: 70px; height: 70px; }
.tile strong { font-size: 18px; font-weight: 400; line-height: 1.3; text-transform: uppercase; }
.tile > span:not(.tile-small):not(.tile-wide-text) { font-size: 12px; font-weight: 300; }
.tile-small { font-size: 12px; font-weight: 500; }
.tile--tall { grid-row: span 2; gap: 26px; padding-inline: 30px; }
.tile--wide { grid-column: span 2; flex-direction: row; gap: 50px; text-align: left; }
.tile--wide img { width: 70px; }
.tile-wide-text { display: flex; flex-direction: column; gap: 6px; }
.tile-wide-text span { font-size: 12px; font-weight: 300; }

/* ---------- Tekstualni blokovi ---------- */
.chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
}

.story-text h2, .split-text h2 {
  margin-top: 26px;
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}
.story-text h3, .split-text h3 {
  margin-top: 22px;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.5;
}
.story-text p, .split-text p {
  margin-top: 18px;
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Sekcije preko cele širine ---------- */
.story-text {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 80px 0 42px;
}
.story { background: var(--bg); }
.story--black { background: var(--bg-black); }
.story--black .story-text { padding-top: 55px; }
#deljenje .story-text { padding-top: 40px; }
.story-img { width: 100%; }

/* ---------- Naizmenični blokovi ---------- */
.splits { padding: 136px 0 80px; }
.split {
  display: grid;
  grid-template-columns: 6.04% 35.2% 14.17% 35.2% 9.39%;
  align-items: center;
  width: min(100%, 1920px);
  margin: 0 auto;
}
.split + .split { margin-top: 72px; }
.split-img {
  grid-column: 2;
  width: 100%;
  aspect-ratio: 676 / 379;
  border-radius: 30px;
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-text { grid-column: 4; }
.split-text h2 { margin-top: 26px; }

.split--rev { grid-template-columns: 9.48% 35.2% 5.42% 35.2% 14.7%; }
.split--rev .split-text { grid-column: 2; grid-row: 1; }
.split--rev .split-img { grid-column: 4; grid-row: 1; }

/* ---------- Zoom slike na hover ---------- */
.zoom { overflow: hidden; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .zoom img { transition: transform .5s ease; }
  .zoom:hover img { transform: scale(1.05); }
}
/* ---------- Prilagođavanje ekranima ---------- */
@media (min-width: 1700px) {
  .hero { padding-left: 92px; }
}

@media (max-width: 1500px) {
  .story-text { width: auto; padding-inline: 6%; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 600px); gap: 32px; padding: 20px 16px; }
  .split, .split--rev { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 0 16px; }
  .split .split-img, .split .split-text,
  .split--rev .split-img, .split--rev .split-text { grid-column: 1; grid-row: auto; }
  .split--rev .split-img { order: -1; }
  .splits { padding: 56px 0 72px; }
  .split + .split { margin-top: 56px; }
  .story-text { padding: 48px 16px 28px; }
  .story--black .story-text, #deljenje .story-text { padding-top: 40px; }
}

@media (max-width: 720px) {
  .features { padding: 44px 16px 48px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(130px, auto); gap: 12px; }
  .tile--tall, .tile--wide { grid-column: span 2; grid-row: auto; }
  .tile--tall { padding-block: 28px; }
  .tile--wide { gap: 28px; }
}

@media (max-width: 480px) {
  .gallery-thumbs ul { gap: 8px; }
}

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