/* ENETZ – písma hostované na enetz.sk (Archivo, Inter, JetBrains Mono; OFL licencia), sady latin a latin-ext */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(/fonts/archivo-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: 'Archivo';
  font-style: normal;
  font-weight: 600 900;
  font-stretch: 100% 125%;
  font-display: swap;
  src: url(/fonts/archivo-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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-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;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-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;
}

/*
 * ENETZ – jednotný motív 2026, hlavný web (domovská stránka + /sluzby/* + /systemy/*)
 * Načítať ZA pôvodným /css/styles.css:
 *   <link rel="stylesheet" href="/css/styles.css?v=20260801-menu1">
 *   <link rel="stylesheet" href="/css/enetz-tema.css?v=2026-10">
 * Rovnaké hodnoty farieb a písiem používa eshop-tema.css, aby web a e-shop ladili.
 */

:root {
  /* Farby značky – vychádzajú z loga (#364F41) a žltej z webu a polepu */
  --brand: #364f41;          /* logo */
  --brand-deep: #1f2d26;     /* tmavé sekcie namiesto takmer čiernej */
  --brand-deeper: #16201b;   /* pätička */
  --accent: #f2b705;         /* žltá značky, len tlačidlá a drobné akcenty */
  --accent-hover: #ffc933;
  --accent-dark: #8f6400;    /* žltá ako text na svetlom podklade */
  --green: #2e7d5b;          /* odkazy, ikony, ceny */
  --green-soft: #e6efe9;

  /* Neutrálne farby so zeleným nádychom */
  --ink: #18221d;
  --ink-soft: #2b3a32;
  --paper: #f4f6f3;
  --white: #ffffff;
  --line: #dbe2dd;
  --muted: #5f6d66;

  --radius: 8px;
  --shadow: 0 18px 48px rgba(24, 34, 29, 0.12);

  /* Písma: Archivo na nadpisy, Inter na text (teraz sa naozaj načíta), JetBrains Mono na technické popisky */
  --font-display: "Archivo", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;

  font-family: var(--font-body);
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typografia ---------- */
h1, h2, h3,
.hero h1, .detail-hero h1,
.section h2, .contact-copy h2, .calculator-band h2, .detail-cta h2,
.detail-section h2, .detail-benefits h2, .detail-faq h2,
.service-group h3, .why-card h3, .system-card strong, .reference-card h3, .process-card h3,
.site-footer h2 {
  font-family: var(--font-display);
  font-stretch: 108%;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.section h2, .contact-copy h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.detail-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.02; }

.eyebrow,
.hero__eyebrow,
.service-group__label,
.why-card__number,
.service-line__link,
.system-card__link {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.eyebrow, .service-group__label { font-size: 0.74rem; }

.process-card strong {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 2rem;
}

.trust-card strong,
.hero-stat strong {
  font-family: var(--font-display);
  font-stretch: 108%;
}

/* ---------- Hlavička ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 22px rgba(24, 34, 29, 0.06);
}
.brand { background-color: var(--brand); }
.site-nav a, .nav-menu__toggle { color: var(--ink-soft); font-weight: 600; }
.site-nav a:hover, .site-nav a:focus-visible,
.nav-menu__toggle:hover, .nav-menu__toggle:focus-visible, .nav-menu.is-open .nav-menu__toggle {
  background: var(--green-soft);
  color: var(--ink);
}
.nav-toggle span { background: var(--brand); }

/* ---------- Tlačidlá ---------- */
.button { border-radius: var(--radius); font-weight: 700; }
.button--primary {
  background: var(--accent);
  color: #1d1600;
  box-shadow: 0 8px 20px rgba(242, 183, 5, 0.22);
}
.button--primary:hover, .button--primary:focus-visible { background: var(--accent-hover); }
.button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Tmavé plochy vo farbe loga ---------- */
.section--ink {
  background: linear-gradient(135deg, var(--brand-deep), #24352d 60%, var(--brand-deep));
}
.section--contact,
.detail-cta {
  background: var(--brand-deep);
}
.calculator-band {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
}
.site-footer { background: var(--brand-deeper); }

.process-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  min-height: 0;
}

/* ---------- Karty ---------- */
.service-group,
.system-card,
.reference-card,
.why-card {
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(24, 34, 29, 0.04), 0 10px 26px rgba(24, 34, 29, 0.06);
}
.system-card { background: var(--white); }

.service-group__media {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
}

/* Karta „Bezpečnosť“ nemá fotku: namiesto písmena „B“ ikona štítu */
.service-group__mark {
  font-size: 0;
}
.service-group__mark::before {
  content: "";
  width: 72px;
  height: 72px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 9.5C8 19.3 5 15.5 5 11V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 9.5C8 19.3 5 15.5 5 11V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.service-line:hover, .service-line:focus-visible {
  background: var(--green-soft);
  border-color: rgba(46, 125, 91, 0.4);
}

/* žltý pásik na službách nahradí šikmý rez z loga */
.service-card::after {
  height: 4px;
  left: 22px;
  right: auto;
  width: 44px;
  transform: skewX(-18deg);
}

/* ---------- Podstránky služieb a systémov ---------- */
.detail-hero__shade {
  background: linear-gradient(90deg, rgba(22, 32, 27, 0.94), rgba(22, 32, 27, 0.7) 52%, rgba(22, 32, 27, 0.25));
}
.detail-hero .eyebrow { color: #cfe6d9; }
.breadcrumbs { font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.04em; }

.detail-benefits {
  background: var(--paper);
  border-left: 0;
  border-radius: var(--radius);
  border-top: 4px solid var(--brand);
}
.detail-faq { border-radius: 12px; }
.detail-faq details { border-color: var(--line); border-radius: var(--radius); }

/* ---------- Formuláre ---------- */
input, textarea, select { border-radius: var(--radius); background: var(--white); }
input:focus, textarea:focus, select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 125, 91, 0.16);
}

/* ---------- Nová hlavička domovskej stránky (hero.html) ---------- */
.hero.hero--split {
  align-items: stretch;
  /* pozadie: mriežka ako na výkrese, zelená žiara za vizualizáciou, žltý odlesk „slnka“ vpravo hore */
  background:
    radial-gradient(55% 65% at 76% 50%, rgba(95, 211, 154, 0.16), transparent 62%),
    radial-gradient(38% 46% at 100% 0%, rgba(242, 183, 5, 0.16), transparent 62%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(160deg, #22332a 0%, var(--brand-deep) 45%, #141d18 100%);
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(760px, 92svh);
  padding: 0;
}
.hero--split .hero__content {
  align-self: center;
  display: grid;
  gap: 22px;
  margin: 0;
  max-width: none;
  padding: 140px clamp(24px, 4vw, 64px) 128px max(32px, calc((100vw - var(--max)) / 2));
  width: auto;
}
.hero--split .hero__eyebrow {
  color: #cfe6d9;
  font-size: 0.76rem;
  margin: 0;
}
.hero--split h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1;
  max-width: 12ch;
}
.hero--split .hero__lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  margin: 0;
  max-width: 52ch;
}
.hero--split .hero__actions { margin-top: 6px; }
.hero__facts {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  list-style: none;
  margin: 12px 0 0;
  padding: 22px 0 0;
}
.hero__facts li { display: grid; gap: 2px; }
.hero__facts strong {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-stretch: 108%;
  font-weight: 800;
}
.hero__facts span { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; }

/* vizualizácia toku energie namiesto fotky */
.hero--split .hero__visual {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 0;
  padding: 120px max(32px, calc((100vw - var(--max)) / 2)) 110px clamp(12px, 2vw, 32px);
}
.energy-app {
  backdrop-filter: blur(10px);
  background: rgba(14, 22, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 14px;
  margin: 0;
  max-width: 560px;
  padding: 18px 18px 14px;
  width: 100%;
}
.energy-app__bar {
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  font: 500 0.72rem var(--font-label);
  justify-content: space-between;
  letter-spacing: 0.06em;
}
.energy-app__live { align-items: center; color: #cfe6d9; display: flex; gap: 8px; text-transform: uppercase; letter-spacing: 0.1em; }
.energy-app__live::before {
  animation: enetz-live 2s infinite;
  background: #5fd39a;
  border-radius: 50%;
  content: "";
  height: 8px;
  width: 8px;
}
@keyframes enetz-live { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 154, 0.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(95, 211, 154, 0); } }

.energy-app__flow { display: block; height: auto; width: 100%; }
.energy-app .wire { fill: none; stroke: rgba(255, 255, 255, 0.12); stroke-width: 3; stroke-linecap: round; }
.energy-app .pulse { animation: enetz-flow 1.3s linear infinite; fill: none; stroke-dasharray: 4 12; stroke-linecap: round; stroke-width: 3; }
.energy-app .pulse--sun { stroke: var(--accent); }
.energy-app .pulse--green { stroke: #5fd39a; }
@keyframes enetz-flow { to { stroke-dashoffset: -32; } }
.energy-app .node rect:first-child { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.14); }
.energy-app .node--home rect:first-child { fill: var(--brand); stroke: #6f9a83; }
.energy-app .node__icon { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.energy-app .node--home .node__icon { stroke: var(--accent); }
.energy-app .node__label { fill: rgba(255, 255, 255, 0.58); font: 500 10.5px var(--font-label); letter-spacing: 0.08em; }
.energy-app .node--home .node__label { fill: #d5e8dd; }
.energy-app .node__value { fill: var(--white); font: 800 26px var(--font-display); font-stretch: 108%; }
.energy-app .node__unit { fill: rgba(255, 255, 255, 0.6); font: 500 12px var(--font-label); }
.energy-app .node__track { fill: rgba(255, 255, 255, 0.12); }
.energy-app .node__fill { fill: #5fd39a; }

.energy-app__stats { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.energy-app__stats div {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
}
.energy-app__stats span { color: rgba(255, 255, 255, 0.58); font: 500 0.68rem var(--font-label); letter-spacing: 0.04em; text-transform: uppercase; }
.energy-app__stats b { color: var(--white); font: 800 1.05rem var(--font-display); font-variant-numeric: tabular-nums; }
.energy-app__note { color: rgba(255, 255, 255, 0.42); font: 400 0.68rem var(--font-label); }

/* živá simulácia (enetz-energy-flow.js) */
.energy-app__clock { color: var(--white); font-variant-numeric: tabular-nums; font-weight: 600; }
.energy-app__day { display: block; height: 14px; overflow: visible; width: 100%; }
.energy-app__day line { stroke: rgba(255, 255, 255, 0.12); stroke-dasharray: 2 4; stroke-width: 2; }
.energy-app__day circle { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(242, 183, 5, 0.8)); transition: fill 0.6s ease; }
.energy-app.is-night .energy-app__day circle { fill: #cfe6d9; filter: drop-shadow(0 0 5px rgba(207, 230, 217, 0.6)); }
.energy-app .pulse { transition: opacity 0.4s ease, stroke-width 0.4s ease; }
.energy-app .pulse--grid { stroke: #9fc4b5; }
.energy-app .node__sub { fill: rgba(255, 255, 255, 0.62); font: 500 10px var(--font-label); }
.energy-app .node__fill { transition: width 0.4s ease; }
.energy-app .node--pv rect:first-child { transition: fill 0.6s ease, stroke 0.6s ease; }
.energy-app:not(.is-night) .node--pv rect:first-child { fill: rgba(242, 183, 5, 0.08); stroke: rgba(242, 183, 5, 0.35); }
.energy-app.is-night .node--pv { opacity: 0.55; }
.energy-app__halo { animation: enetz-halo 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes enetz-halo { 0%, 100% { opacity: 0.55; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .energy-app .pulse, .energy-app__halo, .energy-app__live::before { animation: none; }
}

@media (max-width: 900px) {
  .hero.hero--split { grid-template-columns: 1fr; min-height: 0; }
  .hero--split .hero__content { padding: 104px 20px 8px; }
  .hero--split .hero__visual { padding: 16px 16px 80px; }
}
@media (max-width: 420px) {
  .energy-app { padding: 12px 10px 10px; border-radius: 16px; }
  .energy-app__stats { grid-template-columns: 1fr 1fr; }
  .energy-app__stats div:last-child { display: none; }
}

/* ---------- Služby – moduly (sluzby.html) ---------- */
.services-rail { background: var(--white); }
.services-rail .section__head { margin-bottom: 36px; }
.services-rail .section__head p:not(.eyebrow) { max-width: 62ch; }
.rail {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: var(--max);
}
.module {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px;
}
.module__tag {
  align-items: center;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  display: flex;
  font: 600 0.7rem/1 var(--font-label);
  justify-content: space-between;
  letter-spacing: 0.1em;
  padding-bottom: 14px;
  text-transform: uppercase;
}
.module__code { background: var(--ink); border-radius: 4px; color: var(--white); padding: 5px 7px; }
.module__icon {
  align-items: center;
  background: var(--green-soft);
  border-radius: 10px;
  color: var(--green);
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}
.module__icon svg { height: 24px; width: 24px; }
.module h3 { font-size: 1.3rem; margin: 0; }
.module__links { display: grid; gap: 8px; }
.module__links a {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 3px;
  padding: 12px 36px 12px 14px;
  position: relative;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.module__links a::after {
  color: var(--green);
  content: "→";
  font-weight: 800;
  position: absolute;
  right: 14px;
  top: 12px;
  transition: transform 0.18s ease;
}
.module__links a:hover,
.module__links a:focus-visible {
  border-color: rgba(46, 125, 91, 0.5);
  box-shadow: 0 10px 22px rgba(24, 34, 29, 0.08);
  transform: translateY(-2px);
}
.module__links a:hover::after { transform: translateX(3px); }
.module__links strong { font-size: 0.95rem; line-height: 1.25; }
.module__links span { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }

.module--featured { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--white); }
.module--featured .module__tag { border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.66); }
.module--featured .module__code { background: var(--accent); color: #1d1600; }
.module--featured .module__icon { background: rgba(255, 255, 255, 0.08); color: var(--accent); }
.module--featured .module__links a { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.module--featured .module__links a::after { color: var(--accent); }
.module--featured .module__links span { color: rgba(255, 255, 255, 0.7); }

@media (max-width: 1080px) { .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .rail { grid-template-columns: 1fr; } }

/* ---------- Pätička s logom ---------- */
.footer-brand {
  aspect-ratio: 1102 / 343;
  background-color: #e6efe9;
  display: block;
  height: 40px;
  margin: 0 0 16px;
  -webkit-mask: url("/uploads/imported/enetz-logo-full.png") left center / contain no-repeat;
          mask: url("/uploads/imported/enetz-logo-full.png") left center / contain no-repeat;
}

/* Dlhé slovenské slová (elektroinštaláciou…) sa na mobile nesmú vyliať z boxu */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 480px) {
  h1, h2, h3, .section h2, .detail-section h2, .detail-hero h1 { font-stretch: 100%; }
  .detail-section h2, .detail-benefits h2, .detail-faq h2 { font-size: 1.6rem; }
}

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