/* ==========================================================================
   NoroNetwork – shared styles (all pages)
   Source of truth: Figma "Faktury" → Desktop - 11 (node 87:2), 1440px frame
   1. Fonts   2. Tokens   3. Base   4. Layout   5. Header   6. Buttons
   7. Section heads   8. Cards & plans   9. FAQ   10. Forms   11. Footer
   ========================================================================== */

/* 1. Fonts – Poppins, self-hosted (latin + latin-ext for Slovak) ----------- */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/poppins-latin-400-normal.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: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/poppins-latin-ext-400-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/poppins-latin-400-italic.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: 'Poppins'; font-style: italic; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/poppins-latin-ext-400-italic.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/poppins-latin-500-normal.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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/poppins-latin-ext-500-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/poppins-latin-700-normal.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: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/poppins-latin-ext-700-normal.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* 2. Tokens --------------------------------------------------------------- */
:root {
  --c-bg: #070608;
  --c-mint: #BEF3DF;
  --c-mint-hover: #D6F9EC;
  --c-white: #FFFFFF;
  --c-input: #262626;
  --c-placeholder: #8C8C8C;
  --c-mint-line: rgba(190, 243, 223, 0.5);  /* 0.5px mint line in Figma */
  --g-card-border: linear-gradient(to bottom left, #4A5551, #0F0E12);
  --g-divider: linear-gradient(90deg, #1F2123, #424C49);

  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1264px;          /* 88px side margins at 1440 */
  --gutter: 24px;
  --radius-pill: 33.5px;
  --radius-card: 20px;
  --radius-plan: 11px;
  --radius-panel: 24px;

  /* Type scale – exact Figma sizes at 1440px, fluid below */
  --fs-h1: clamp(2.75rem, 2.0019rem + 3.1925vw, 4.875rem);        /* 78px */
  --fs-h2: clamp(2rem, 1.6259rem + 1.5962vw, 3.0625rem);         /* 49px */
  --fs-banner: clamp(1.875rem, 1.2369rem + 2.723vw, 3.6875rem);  /* 59px */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --fs-price: clamp(3.5rem, 3.17rem + 1.4085vw, 4.4375rem);      /* 71px */
}

/* 3. Base ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--c-bg);
  color: var(--c-white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.83;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 700; }
button, input, textarea { font: inherit; color: inherit; }
/* Inline links in running text move to the next line whole instead of breaking mid-phrase (all are short, max ~40 chars) */
:where(p, li, td, dd) a:not(.btn) { white-space: nowrap; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--c-mint); outline-offset: 3px; }

.text-mint { color: var(--c-mint); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--c-mint); color: var(--c-bg); font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* Desktop-only manual line breaks from the design */
@media (max-width: 1279px) { .br-lg { display: none; } }

/* Hero background: Figma "dark mode 1" – 1984×1108 at x=-34, image opacity 32% */
.page-bg {
  position: absolute;
  top: 0; left: -34px; right: 0;
  height: 1108px;
  background: url(/assets/img/hero-bg.jpg) 0 0 / cover no-repeat;
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}
.site-header, main, .site-footer { position: relative; z-index: 1; }
.site-header { z-index: 10; }   /* mobile menu panel must sit above the page */

/* 4. Layout --------------------------------------------------------------- */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* 5. Header --------------------------------------------------------------- */
.topbar { border-bottom: 1px solid var(--c-mint-line); }
.topbar__inner { display: flex; justify-content: flex-end; height: 74px; align-items: center; }
.topbar__links { display: flex; margin-right: 4px; font-size: 14px; font-weight: 500; }
.topbar__links li + li { margin-left: 38px; }          /* Figma: 38px, then 30px */
.topbar__links li:nth-child(3) { margin-left: 30px; }
.topbar__links a:hover { color: var(--c-mint); }

.navbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 42px;
}
.navbar__logo { flex: none; }
.navbar__nav { display: flex; align-items: flex-start; }
.navbar__links { display: flex; gap: clamp(20px, 2.4vw, 36px); padding-top: 15px; font-size: 14px; font-weight: 500; }
.navbar__links a { white-space: nowrap; transition: color .2s var(--ease); }
.navbar__links a:hover, .navbar__links a[aria-current="page"] { color: var(--c-mint); }
.navbar__cta { margin-left: 45px; margin-top: 1px; }
.navbar__toggle { display: none; }

@media (max-width: 991px) {
  .topbar__inner { height: 52px; justify-content: center; }
  .topbar__links { margin-right: 0; font-size: 13px; }
  .topbar__links li + li, .topbar__links li:nth-child(3) { margin-left: 24px; }
  .navbar { position: relative; align-items: center; padding-top: 24px; }
  .navbar__logo img { width: 136px; height: auto; }
  .navbar__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; padding: 0;
    border: 1px solid var(--c-mint); border-radius: 50%;
    background: transparent; cursor: pointer;
  }
  .navbar__toggle-bar,
  .navbar__toggle-bar::before,
  .navbar__toggle-bar::after {
    display: block; width: 18px; height: 2px; border-radius: 1px;
    background: var(--c-mint); transition: transform .2s ease, opacity .2s ease;
  }
  .navbar__toggle-bar { position: relative; }
  .navbar__toggle-bar::before, .navbar__toggle-bar::after { content: ''; position: absolute; left: 0; }
  .navbar__toggle-bar::before { top: -6px; }
  .navbar__toggle-bar::after { top: 6px; }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar { background: transparent; }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .navbar__toggle[aria-expanded="true"] .navbar__toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

  .navbar__nav {
    display: none;
    position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 20;
    flex-direction: column; align-items: stretch; gap: 20px;
    padding: 24px;
    background: var(--c-bg);
    border: 1px solid #4A5551; border-radius: var(--radius-card);
  }
  .navbar__nav.is-open { display: flex; }
  .navbar__links { flex-direction: column; gap: 4px; padding-top: 0; font-size: 18px; }
  .navbar__links a { display: block; padding: 8px 0; }
  .navbar__cta { margin: 0; align-self: flex-start; }
}

/* 6. Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 37.5px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: 18px; font-weight: 700; line-height: 1.22; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--c-mint); color: var(--c-bg); }
.btn--primary:hover { background: var(--c-mint-hover); }
.btn--outline { padding: 0 32px; border-color: var(--c-mint); color: var(--c-mint); background: transparent; }
.btn--outline:hover { background: var(--c-mint); color: var(--c-bg); }
.btn--dark { background: var(--c-bg); color: var(--c-mint); }
.btn--dark:hover { background: #1a1820; }
.btn--sm { height: 53px; padding: 0 30.5px; font-size: 16px; }

/* 7. Section heads -------------------------------------------------------- */
.eyebrow {
  color: var(--c-mint);
  font-size: 14px; font-weight: 500; line-height: 1.83;
  letter-spacing: 0.53em;            /* 7.42px */
  text-transform: uppercase;
}
.section-title {
  margin-top: 29.4px;                /* label → title = 55px between tops */
  font-size: var(--fs-h2); font-weight: 700; line-height: 1.22;
}
.section-head--center { text-align: center; }
/* letter-spacing adds trailing space – compensate so centered labels stay centered */
.section-head--center .eyebrow { margin-right: -0.53em; }

/* 8. Cards & plans -------------------------------------------------------- */
/* Gradient 1px border on transparent/translucent cards */
.g-border { position: relative; }
.g-border::before {
  content: '';
  position: absolute; inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--g-card-border);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

/* Plan card (pricing) */
.plan {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 382px;
  padding-top: 49px;
  border-radius: var(--radius-plan);
  color: var(--c-mint);
  text-align: center;
}
.plan__family {
  font-size: 12px; line-height: 1.22;
  letter-spacing: 0.38em;  /* 4.56px */
  margin-right: -0.38em;
  text-transform: uppercase;
}
.plan__name {
  margin-top: 8.4px;
  font-size: 20px; font-weight: 400; line-height: 1.22;
  letter-spacing: 0.38em;  /* 7.6px */
  margin-right: -0.38em;
  text-transform: uppercase;
}
.plan__price { display: flex; flex-direction: column; align-items: center; margin-top: 35.6px; }
.plan__amount { font-size: var(--fs-price); font-weight: 700; line-height: 1.22; }
.plan__period { font-size: 12px; line-height: 1.22; }
.plan__features {
  align-self: stretch;
  margin-top: 43.4px;                /* divider y=4010 */
  padding: 30px 0 0 18px;            /* first item y=4040; text centre sits right of the card centre */
  border-top: 1px solid;
  border-image: var(--g-divider) 1;
  font-size: 16px; line-height: 45px; /* Figma rounds 2.8 × 16 to 45 */
}
/* Text is centred, the check icon hangs to its left (as in Figma) */
.plan__features li { position: relative; width: max-content; max-width: 100%; margin-inline: auto; }
.plan__features li::before {
  content: '';
  position: absolute; right: calc(100% + 21px); top: 13.5px;
  width: 19px; height: 18px;
  background: url(/assets/img/icons/check-19.svg) center / 19px 18px no-repeat;
}
/* Button straddles the bottom edge; gaps differ per card in Figma */
.plan__btn { margin-top: 25px; margin-bottom: -26px; position: relative; }

.plan--featured { width: 383px; background: var(--c-mint); color: var(--c-bg); }
.plan--featured .plan__period { color: #000; }
.plan--featured .plan__features li::before { background-image: url(/assets/img/icons/check-19-inverse.svg); }
.plan--featured .plan__btn { border-color: #000; margin-top: 29px; margin-bottom: -21px; }
.plan--featured .plan__features { margin-top: 44.4px; padding-left: 38px; }



/* 9. FAQ ------------------------------------------------------------------ */
.faq__list { max-width: 1017px; margin-inline: auto; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--c-mint-line); }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child:not([open]) { padding-bottom: 28px; }
.faq-item[open] { padding-bottom: 31px; }
.faq-item__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  color: var(--c-mint);
  font-size: 20px; font-weight: 700; line-height: 2;
  cursor: pointer;
  list-style: none;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '+';
  flex: none;
  width: 29px;
  font-size: 29px; font-weight: 700; line-height: 1.22; text-align: left;   /* glyph starts at x=1199 */
}
.faq-item__q::after { align-self: flex-start; position: relative; top: 4px; transition: transform .3s var(--ease); }
.faq-item[open] .faq-item__q::after { content: '\2212'; top: 4px; }
.faq-item__a { max-width: 812px; margin-top: 9px; font-size: 16px; line-height: 2; }

/* 10. Forms --------------------------------------------------------------- */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.field__input {
  display: block; width: 100%; height: 61px;
  padding: 0 20px;
  border: 0; border-radius: 8px;
  background: var(--c-input);
  color: var(--c-white);
  font-size: 16px; line-height: 1.5;
}
.field__input::placeholder { color: var(--c-placeholder); opacity: 1; }
.field__input--area { height: 236px; padding-top: 16px; padding-bottom: 16px; resize: vertical; }
.field__input:focus-visible { outline: 2px solid var(--c-mint); outline-offset: 0; }
.field__input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #F54137; }
.contact-form__submit { align-self: flex-start; margin-top: 11px; padding: 0 34px; }
.contact-form__status:empty { display: none; }
.contact-form__status { font-size: 14px; }

/* 11. Footer -------------------------------------------------------------- */
.site-footer {
  margin-top: 101px;
  padding: 120px 0 32px;
  background: linear-gradient(180deg, #070608 0, #2F233A 371px) top / 100% 100% no-repeat;
  font-size: 14px;
}
.site-footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid var(--c-mint-line);
}
.site-footer__brand p { max-width: 320px; margin-top: 20px; color: rgba(255, 255, 255, 0.7); line-height: 1.7; }
.site-footer__discord {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; white-space: nowrap;
  color: #fff; font-size: 14px; font-weight: 700;
}
.site-footer__discord u { text-underline-offset: 3px; }
.site-footer__discord svg { flex: none; }
.site-footer__discord:hover u { color: var(--c-mint); }
.site-footer__title { color: var(--c-mint); font-size: 12px; font-weight: 500; letter-spacing: 0.38em; text-transform: uppercase; }
.site-footer__col ul { display: grid; gap: 6px; margin-top: 16px; }
.site-footer__col a { color: rgba(255, 255, 255, 0.8); transition: color .2s var(--ease); }
.site-footer__col a:hover { color: var(--c-mint); }
.site-footer__copy { padding-top: 24px; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 991px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 479px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* 12. Subpages ------------------------------------------------------------ */
/* Page hero: eyebrow + big title + lead, used at the top of every subpage */
.page-hero { padding-top: 96px; }
.page-hero__title { margin-top: 24px; font-size: var(--fs-h1); font-weight: 700; line-height: 1.15; }
.page-hero__lead { max-width: 640px; margin-top: 22px; font-size: 19px; font-weight: 500; line-height: 1.83; }
.page-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
@media (max-width: 991px) { .page-hero { padding-top: 64px; } .page-hero__lead { font-size: 17px; } }

.section { scroll-margin-top: 24px; }
.section--sub { padding-top: 140px; }
@media (max-width: 991px) { .section--sub { padding-top: 96px; } }

/* Translucent card with the gradient border (pair with .g-border) */
.card { padding: 40px; border-radius: var(--radius-card); background: linear-gradient(126deg, rgba(73, 73, 73, 0.2) 12%, rgba(0, 0, 0, 0.2) 95%); }
.card__title { color: var(--c-mint); font-size: 22px; font-weight: 700; line-height: 1.3; }
.card__text { margin-top: 10px; color: rgba(255, 255, 255, 0.82); line-height: 1.75; }

/* Comparison table */
.spec-table-wrap { overflow-x: auto; border-radius: var(--radius-card); }
.spec-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 16px 20px; text-align: center; border-bottom: 1px solid rgba(190, 243, 223, 0.15); }
.spec-table th:first-child, .spec-table td:first-child { text-align: left; color: rgba(255, 255, 255, 0.75); }
.spec-table thead th { color: var(--c-mint); font-size: 13px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; }
.spec-table tbody tr:hover { background: rgba(190, 243, 223, 0.04); }
.spec-table .is-featured { background: rgba(190, 243, 223, 0.06); }
/* Phones: no sideways scroll – row label on its own line, the three values below it */
@media (max-width: 600px) {
  .spec-table, .spec-table thead, .spec-table tbody { display: block; min-width: 0; }
  .spec-table tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid rgba(190, 243, 223, 0.15); }
  .spec-table th, .spec-table td { padding: 10px 6px; border-bottom: 0; overflow-wrap: anywhere; }
  .spec-table tr > :first-child { grid-column: 1 / -1; padding: 14px 6px 0; }
  .spec-table thead tr > :first-child, .spec-table tr > :first-child:empty { display: none; }
  .spec-table thead th { padding-top: 14px; font-size: 11px; letter-spacing: 0.12em; }
}

/* Long-form text (legal pages) */
.prose { max-width: 780px; color: rgba(255, 255, 255, 0.85); line-height: 1.8; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; color: var(--c-mint); font-size: 24px; line-height: 1.3; }
.prose h3 { margin-top: 1.8em; color: var(--c-white); font-size: 18px; line-height: 1.4; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--c-mint); text-decoration: underline; text-underline-offset: 3px; }


/* CONTACT ---------------------------------------------------------------- */
.contact { padding-top: 150px; }                      /* photo y=6114 */
.contact__grid {
  display: grid;
  grid-template-columns: 519px 483px;
  column-gap: 138px;
  padding-left: 45px;                                 /* photo x=133 */
}
.contact__media img { width: 519px; border-radius: var(--radius-panel); }
.contact__body { padding-top: 60px; }
.contact-form { margin-top: 47.2px; }                 /* first input y=6336 */

@media (max-width: 1279px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; padding-left: 0; }
  .contact__media img { width: 100%; }
}
@media (max-width: 991px) {
  .contact { padding-top: 120px; }
  .contact__grid { grid-template-columns: 1fr; row-gap: 48px; }
  .contact__media { order: 2; }
  .contact__media img { max-width: 420px; margin-inline: auto; }
  .contact__body { padding-top: 0; }
  .contact-form { margin-top: 32px; }
}

/* Proxmox Backup teaser */
.backup-teaser { padding-top: 120px; }
