/* Betűk: saját tárhelyről (fonts/), nincs külső kérés. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(fonts/fredoka-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(fonts/fredoka-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0150-0153, U+0170-0171, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/nunito-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/nunito-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Koncepció: laza, barátságos családi vállalkozás. Puha, lekerekített formák, kék-fehér-szürke
   színvilág. Egy hangsúly: a telt kék (gombok, kapcsolat doboz). */
:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --ink: #1c2b3f;
  --muted: #5a6b7f;
  --link: #1f5fbf;
  --sky: #5b9bea;
  --brand: #1f5fbf;
  --brand-hover: #174a96;
  --on-brand: #ffffff;
  --wave: #8fbcf3;
  --t1: #e3edfb;
  --t2: #eceff3;
  --t3: #d5e4fa;
  --t4: #e2e7ee;
  --c1: #1f4f9e;
  --c2: #2f6fcf;
  --c3: #4a88e0;
  --c4: #6aa0ea;
  --box-btn-bg: #ffffff;
  --box-btn-fg: #174a96;
  --on-tile: #1c2b3f;
  --on-tile-muted: #5a6b7f;
  --track: #e3edfb;
  --hover: #e3edfb;
  --dot: #1f5fbf;
  --chip-bg: #ffffff;
  --chip-fg: #1c2b3f;
  --todo: #ffe08a;
  --shadow: 0 2px 4px rgba(28, 43, 63, .05), 0 18px 40px rgba(28, 43, 63, .09);

  --display: 'Fredoka', 'Avenir Next Rounded', 'Avenir Next', 'Segoe UI', sans-serif;
  --body: 'Nunito Sans', 'Avenir Next', 'Segoe UI', sans-serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081426;
    --surface: #10233f;
    --ink: #f2f8ff;
    --muted: #b4cdea;
    --link: #a9d1ff;
    --sky: #a9d1ff;
    --brand: #8ec3fa;
    --brand-hover: #b5d8fc;
    --on-brand: #07172e;
    --wave: #8ec3fa;
    --t1: #cfe2fb;
    --t2: #bcd6f7;
    --t3: #dcebfc;
    --t4: #a9c9f3;
    --c1: #1f4f9e;
    --c2: #2f6fcf;
    --c3: #4a88e0;
    --c4: #6aa0ea;
    --box-btn-bg: #081426;
    --box-btn-fg: #f2f8ff;
    --todo: #6b5a10;
    --on-tile: #0c2140;
    --on-tile-muted: #2f4a6b;
    --track: #25426e;
    --hover: #18305a;
    --dot: #1f5fbf;
    --chip-bg: #cfe2fb;
    --chip-fg: #0c2140;
    --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 18px 40px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #081426;
  --surface: #10233f;
  --ink: #f2f8ff;
  --muted: #b4cdea;
  --link: #a9d1ff;
  --sky: #a9d1ff;
  --brand: #8ec3fa;
  --brand-hover: #b5d8fc;
  --on-brand: #07172e;
  --wave: #8ec3fa;
  --t1: #cfe2fb;
  --t2: #bcd6f7;
  --t3: #dcebfc;
  --t4: #a9c9f3;
  --c1: #1f4f9e;
  --c2: #2f6fcf;
  --c3: #4a88e0;
  --c4: #6aa0ea;
  --box-btn-bg: #081426;
  --box-btn-fg: #f2f8ff;
  --todo: #6b5a10;
  --on-tile: #0c2140;
  --on-tile-muted: #2f4a6b;
  --track: #25426e;
  --hover: #18305a;
  --dot: #1f5fbf;
  --chip-bg: #cfe2fb;
  --chip-fg: #0c2140;
  --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 18px 40px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; }
h3 { font-size: 1.3rem; line-height: 1.2; font-weight: 500; }
.nw { white-space: nowrap; }
.mark { position: relative; }
.mark svg { position: absolute; left: -2%; bottom: -.16em; width: 104%; height: .3em; overflow: visible; }
h1 .deg { display: inline-block; vertical-align: top; margin: .08em 0 0 .04em; }
.mark path { fill: none; stroke: var(--wave); stroke-width: 7; stroke-linecap: round; }

/* fejléc */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: flex-start; gap: 3px; text-decoration: none; color: var(--ink); font: 600 1.75rem/1 var(--display); }
.deg { width: .4em; height: .4em; margin-top: .05em; border: .13em solid var(--brand); border-radius: 50%; }
nav { display: flex; align-items: center; gap: 8px; }
nav a { font-weight: 700; font-size: .98rem; color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; }
nav a:not(.btn):hover { background: var(--hover); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font: 700 1.05rem/1.2 var(--body);
  text-decoration: none;
  transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); background: var(--brand-hover); color: var(--on-brand); }
.btn.soft { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--hover); }
.btn.soft:hover { background: var(--hover); color: var(--ink); }
.btn.small { padding: 8px 20px; font-size: .95rem; }
nav a.btn { color: var(--on-brand); padding: 8px 20px; }
nav a.btn:hover { background: var(--brand-hover); }

/* hero */
.hero { padding-block: clamp(24px, 5vw, 64px) clamp(56px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.lead { max-width: 28em; font-size: 1.25rem; color: var(--muted); margin: 26px 0 34px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* hőmérséklet-skála */
.scale { margin: 0; color: var(--on-tile); background: var(--t3); border-radius: 36px; box-shadow: var(--shadow); padding: clamp(22px, 3vw, 34px); }
@media (min-width: 861px) { .scale { transform: rotate(1.2deg); } }
.visual { display: grid; min-width: 0; }
/* a kép magától váltakozik, jobbra csúszva: hűtőpult, tábla, italok, vissza */
.slides { overflow: hidden; border-radius: 36px; height: clamp(260px, 38vw, 420px); }
.slides-track { display: flex; width: 500%; height: 100%; animation: slide-right 20s infinite; }
.slides-track:hover { animation-play-state: paused; }
.slides-track img { display: block; flex: none; width: 20%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.slides-track img:nth-child(2) { object-position: 50% 60%; }
.slides-track img:nth-child(3) { object-position: 50% 60%; }
@keyframes slide-right {
  0%, 22% { transform: translateX(-80%); animation-timing-function: ease-in-out; }
  25%, 47% { transform: translateX(-60%); animation-timing-function: ease-in-out; }
  50%, 72% { transform: translateX(-40%); animation-timing-function: ease-in-out; }
  75%, 97% { transform: translateX(-20%); animation-timing-function: ease-in-out; }
  100% { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { .slides-track { animation: none; transform: none; } }
.visual .scale { position: relative; margin: -72px 20px 0 clamp(16px, 5vw, 48px); }
.scale h2 { font-size: 1.55rem; line-height: 1.15; margin-bottom: 24px; }
.scale-rows { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.scale-name { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 1rem; line-height: 1.2; margin-bottom: 7px; }
.scale-name b { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--on-tile-muted); }
.track { position: relative; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .85); }
.range { position: absolute; top: 0; bottom: 0; left: var(--from); width: var(--w); border-radius: 999px; background: var(--c); }

/* szakaszok */
.sec { padding-block: clamp(40px, 6vw, 72px); }
.sec-head { max-width: 30em; margin-bottom: clamp(24px, 4vw, 40px); }
.sec-head p { margin: 12px 0 0; color: var(--muted); font-size: 1.12rem; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); margin: 0; padding: 0; list-style: none; }
.tiles li { border-radius: 30px; padding: clamp(22px, 3vw, 32px); background: var(--t1); color: var(--on-tile); }
.tiles li:nth-child(4n+2) { background: var(--t2); }
.tiles li:nth-child(4n+3) { background: var(--t3); }
.tiles li:nth-child(4n+4) { background: var(--t4); }
.tiles h3 { margin-bottom: 10px; }
.tiles p { margin: 0; color: var(--on-tile-muted); }
.tiles li:nth-child(odd) { border-radius: 30px 30px 30px 10px; }

.panel { color: var(--on-tile); background: var(--t1); border-radius: 44px; padding: clamp(28px, 5vw, 56px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
.steps h3 { margin-bottom: 8px; }
.steps h3::before { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: var(--dot); margin-bottom: 14px; }
.steps p { margin: 0; color: var(--on-tile-muted); }
.panel .sec-head p { color: var(--on-tile-muted); }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 6vw, 80px); }
.two p { margin: 12px 0 0; color: var(--muted); max-width: 28em; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.chips li { background: var(--chip-bg); color: var(--chip-fg); box-shadow: inset 0 0 0 2px var(--hover); padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .98rem; }

/* kapcsolat */
.contact-box { background: var(--brand); color: var(--on-brand); border-radius: 48px; padding: clamp(28px, 5vw, 60px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.contact-box h2 { margin-bottom: 12px; }
.contact-box p { margin: 0; font-size: 1.15rem; max-width: 22em; }
.contact-box a { color: inherit; }
.contact-box .row { margin: 0 0 20px; }
.contact-box .label { display: block; font-size: .88rem; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.contact-box .big { font: 600 clamp(1.5rem, 3.6vw, 2.2rem)/1.15 var(--display); overflow-wrap: anywhere; }
.contact-box .btn { background: var(--box-btn-bg); color: var(--box-btn-fg); }
.contact-box .btn:hover { background: var(--box-btn-bg); color: var(--box-btn-fg); }

footer { padding-block: 24px 56px; color: var(--muted); font-size: .92rem; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(16px, 4vw, 56px); }
footer p { margin: 0 0 8px; }
footer strong { display: inline-flex; align-items: flex-start; gap: 3px; font: 600 1.4rem/1 var(--display); color: var(--ink); }

.todo { background: var(--todo); color: var(--ink); padding: 0 6px; border-radius: 6px; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero .wrap, .contact-box, footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .bar { min-height: 60px; }
  nav a:not(.btn) { display: none; }
  .tiles, .steps, .two { grid-template-columns: minmax(0, 1fr); }
  .panel { border-radius: 32px; }
  .contact-box { border-radius: 32px; }
}
