/* ============================================================
   CSS VARIABLES & THEME
   ============================================================ */
:root {
  /* Colors */
  --clr-bg:        #0f1117;
  --clr-surface:   #1a1d27;
  --clr-surface-2: #22263a;
  --clr-border:    #2e3248;
  --clr-accent:    #3b82f6;
  --clr-accent-h:  #2563eb;
  --clr-text:      #e8eaf0;
  --clr-text-muted:#8b90a8;
  --clr-white:     #ffffff;

  /* Typography */
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'IBM Plex Sans', system-ui, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;

  --fw-normal:  400;
  --fw-medium:  500;
  --fw-semi:    600;
  --fw-bold:    700;

  /* Spacing scale */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;

  /* Layout */
  --max-w: 1200px;
  --radius: 0.5rem;
  --radius-lg: 1rem;

  /* Transitions */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: 1.6;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--clr-accent);
  color: var(--clr-white);
}
.btn-primary:hover {
  background: var(--clr-accent-h);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text);
  border: 1px solid var(--clr-border);
}
.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.nav__logo {
  font-size: 1.75rem;
  font-weight: var(--fw-bold);
  color: var(--clr-white);
  letter-spacing: -0.02em;
}
.nav__logo span {
  color: var(--clr-accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav__links a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-white);
  transition: color var(--t-fast);
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--clr-white);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: var(--sp-1);
}

.lang-switch button {
  padding: var(--sp-1) var(--sp-3);
  border-radius: calc(var(--radius) - 2px);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--clr-text-muted);
  transition: background var(--t-fast), color var(--t-fast);
}
.lang-switch button.active {
  background: var(--clr-accent);
  color: var(--clr-white);
}
.lang-switch button:hover:not(.active) {
  color: var(--clr-white);
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 180px;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: heroZoom 18s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes heroZoom {
  from { transform: scale(1.00); }
  to   { transform: scale(1.08); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 12, 18, 0.50) 0%,
    rgba(10, 12, 18, 0.65) 60%,
    rgba(10, 12, 18, 0.90) 100%
  );
}

.hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__content {
  position: relative;
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(26, 29, 39, 0.75);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  padding: var(--sp-1) var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-6);
  backdrop-filter: blur(6px);
}

.hero__title {
  font-size: 5rem;
  white-space: nowrap;
  font-weight: var(--fw-bold);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--clr-white);
  margin-bottom: var(--sp-6);
  margin-top: 20px;
}
.hero__title em {
  font-style: normal;
  color: var(--clr-accent);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: var(--clr-white);
  margin-bottom: var(--sp-8);
  max-width: 520px;
  margin-inline: auto;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section {
  padding-block: var(--sp-24);
}

.section__header {
  margin-bottom: var(--sp-12);
}

.section__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-3);
}

.section__title {
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-4xl));
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--clr-white);
  line-height: 1.2;
}

.section__desc {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--clr-text-muted);
  max-width: 560px;
}

/* Hero nav cards */
.hero__nav-cards {
  display: flex;
  gap: var(--sp-12);
  justify-content: center;
  margin-top: var(--sp-24);
}

.hero__nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex: 0 0 auto;
  width: calc(380px * 2 / 3);
  height: 380px;
  background: rgba(180, 185, 200, 0.08);
  border: 1px solid rgba(180, 185, 200, 0.15);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(6px);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.hero__nav-card:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--clr-accent);
  transform: translateY(-3px);
}

.hero__nav-card__icon {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--clr-accent);
}

.hero__nav-card__label {
  font-size: 2rem;
  font-weight: var(--fw-semi);
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   PRODUCT GRID & CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: var(--sp-6);
}

.product-grid--wide {
  grid-template-columns: repeat(2, 1fr);
}

.product-card__img-wrap--wide {
  aspect-ratio: 16 / 9 !important;
}

  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), border-color var(--t-base);
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--clr-accent);
}

.product-card__img-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--clr-surface-2);
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-base);
}
.product-card:hover .product-card__img {
  transform: scale(1.05);
}

.product-card__body {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--sp-2);
}

.product-card__name {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semi);
  color: var(--clr-white);
}

.product-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(var(--fs-sm) * 1.6 * 2);
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--clr-border);
}

.product-card__price {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--clr-accent);
}

.btn--sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-xs);
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SECTION — ZIMA
   ============================================================ */
.section--zima {
  background: #0d1016;
}

/* ============================================================
   SECTION — LETO
   ============================================================ */
.section--leto {
  background: #1e2235;
}

/* ============================================================
   SECTION — OSTATNÉ
   ============================================================ */
.section--ostatne {
  background: #0d1016;
}

/* ============================================================
   SECTION — FAQ
   ============================================================ */
.section--faq {
  background: #0d1016;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--clr-border);
}

.faq__item {
  border-bottom: 1px solid var(--clr-border);
}

.faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--clr-text);
  text-align: left;
  transition: color var(--t-fast);
}

.faq__question:hover {
  color: var(--clr-white);
}

.faq__question[aria-expanded="true"] {
  color: var(--clr-accent);
}

.faq__icon {
  flex-shrink: 0;
  transition: transform var(--t-base);
  color: var(--clr-text-muted);
}

.faq__question[aria-expanded="true"] .faq__icon {
  transform: rotate(180deg);
  color: var(--clr-accent);
}

.faq__answer {
  display: none;
  padding-bottom: var(--sp-6);
}

.faq__answer.open {
  display: block;
}

.faq__answer p {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ============================================================
   SECTION — CENNÍK
   ============================================================ */
.section--cennik {
  background: #1e2235;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.pricing-table thead tr {
  border-bottom: 2px solid var(--clr-border);
}

.pricing-table thead th {
  text-align: left;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-table thead th:last-child {
  text-align: right;
}

.pricing-table tbody tr {
  border-bottom: 1px solid var(--clr-border);
  transition: background var(--t-fast);
}

.pricing-table tbody tr:hover {
  background: var(--clr-surface);
}

.pricing-table tbody td {
  padding: var(--sp-4);
  color: var(--clr-text);
}

.pricing-table tbody td:last-child {
  text-align: right;
  font-weight: var(--fw-semi);
  color: var(--clr-accent);
  white-space: nowrap;
}

/* Group row — sekcia nadpis */
.pricing-table__group td,
.pricing-table__group td:last-child {
  padding: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--clr-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: transparent !important;
  border-bottom: none !important;
  text-align: center !important;
}

.pricing-table__group:hover td {
  background: transparent !important;
}

/* ============================================================
   SECTION — KONTAKT
   ============================================================ */
.section--kontakt {
  background: #1e2235;
}

.contact__wrap {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--sp-12);
  align-items: start;
  margin-top: var(--sp-24);
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact__detail-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.contact__detail-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semi);
  color: var(--clr-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact__detail-item a,
.contact__detail-item span {
  font-size: var(--fs-base);
  color: var(--clr-text);
}

.contact__detail-item a {
  color: var(--clr-accent);
  transition: color var(--t-fast);
}
.contact__detail-item a:hover {
  color: var(--clr-white);
}

.contact__map iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: var(--radius-lg);
}

@media (max-width: 768px) {
  .contact__wrap {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--clr-border);
  padding-block: var(--sp-12);
  background: #0d1016;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-12);
}

.footer__brand p {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  max-width: 280px;
}

.footer__col h4 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semi);
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__col ul a {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  transition: color var(--t-fast);
}
.footer__col ul a:hover {
  color: var(--clr-white);
}

.footer__bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--clr-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--clr-text-muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* NAV */
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    flex-direction: column;
    padding: var(--sp-4);
    gap: var(--sp-3);
  }
  .nav__links.open { display: flex; }
  .nav__hamburger { display: flex; }

  .nav__inner {
    gap: var(--sp-2);
  }

  .nav__right {
    gap: var(--sp-2);
  }

  .lang-switch button {
    padding: var(--sp-1) var(--sp-2);
  }

  /* HERO */
  .hero {
    padding-top: 100px;
    align-items: center;
  }

  .hero__title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    white-space: normal;
    word-break: break-word;
  }

  .hero__subtitle {
    font-size: var(--fs-base);
  }

  .hero__nav-cards {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
    margin-top: var(--sp-8);
  }

  .hero__nav-card {
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 16 / 5;
    flex-direction: row;
    justify-content: center;
    gap: var(--sp-4);
  }

  .hero__nav-card__icon svg {
    width: 36px;
    height: 36px;
  }

  .hero__nav-card__label {
    font-size: 1.25rem;
  }

  /* PRODUCT GRID — 1 stĺpec na mobile */
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid--wide {
    grid-template-columns: 1fr;
  }

  /* PRODUCT CARD — väčší text */
  .product-card__name {
    font-size: var(--fs-lg);
  }

  .product-card__desc {
    -webkit-line-clamp: 3;
    min-height: calc(var(--fs-sm) * 1.6 * 3);
  }

  /* PRICING TABLE */
  .pricing-table {
    font-size: var(--fs-xs);
  }

  .pricing-table tbody td {
    padding: var(--sp-3) var(--sp-2);
  }

  /* CONTACT */
  .contact__wrap {
    grid-template-columns: 1fr;
    margin-top: var(--sp-8);
  }

  /* FOOTER */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }
  .footer__bottom {
    flex-direction: column;
    gap: var(--sp-2);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero__nav-card {
    aspect-ratio: 16 / 4;
  }

  .hero__nav-card__label {
    font-size: 1rem;
  }

  .section {
    padding-block: var(--sp-12);
  }
}