/* Marely — vlastné štýly pre self-hostovanú verziu.
   Drží sa palety z Webflow: čierna / biela / #ff2526. */

.marely-notice {
  max-width: 26rem;
  margin: 1.5rem 0;
  padding: 1.5rem;
  border: 1px solid #ff2526;
  border-radius: 12px;
  background: rgba(255, 37, 38, 0.06);
  color: #fff;
  font-family: Montserrat, sans-serif;
}

.marely-notice__title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ff2526;
}

.marely-notice__text {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}

.marely-notice__btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 1px solid #ff2526;
  border-radius: 999px;
  color: #ff2526;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.marely-notice__btn:hover {
  background: #ff2526;
  color: #fff;
}

/* Nadpis len pre čítačky obrazovky / vyhľadávače (vizuálne skrytý, nie display:none). */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Ďakovná stránka /dakujeme ---------- */
/* .section-9 má vo Webflow pevnú výšku 600px — tu potrebujeme, aby rástla s obsahom. */
.section-9.dakujeme-section {
  height: auto;
  min-height: 600px;
  padding-left: 24px;
  padding-right: 24px;
}
.dakujeme-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
}
.dakujeme-card {
  max-width: 620px;
  width: 100%;
  text-align: center;
}
.dakujeme-check { margin-bottom: 28px; }
.dakujeme-check svg { display: inline-block; }
.dakujeme-title {
  font-family: 'enra-semi-variable', Montserrat, sans-serif;
  font-size: 64px;
  line-height: 1.05;
  margin: 0 0 18px;
  color: #fff;
}
.dakujeme-lead {
  font-family: Montserrat, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #cfcfcf;
  margin: 0 auto 36px;
  max-width: 46ch;
}
.dakujeme-lead strong { color: #fff; font-weight: 600; }
.dakujeme-small { font-size: 15px; margin-bottom: 20px; }
.dakujeme-steps {
  text-align: left;
  display: grid;
  gap: 14px;
  margin: 0 auto 40px;
  max-width: 460px;
}
.dakujeme-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #cfcfcf;
}
.dakujeme-num {
  flex: 0 0 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid #ff2526;
  color: #ff2526;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dakujeme-btn {
  display: inline-block;
  background: #ff2526;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 34px;
  border-radius: 6px;
  transition: transform .15s ease, background-color .15s ease;
}
.dakujeme-btn:hover { background: #e01f20; transform: translateY(-2px); }
.dakujeme-links {
  margin-top: 34px;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  color: #6e6c66;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.dakujeme-links a { color: #cfcfcf; text-decoration: none; }
.dakujeme-links a:hover { color: #ff2526; }

@media screen and (max-width: 767px) {
  .dakujeme-wrap { padding: 90px 20px 60px; }
  .dakujeme-title { font-size: 44px; }
  .dakujeme-lead { font-size: 16px; }
}

/* ---------- Formulárový slot (HighLevel embed) ---------- */
/* Slot je skrytý, kým ho JS nenaplní — nikde nesmie ostať prázdny rám. */
.marely-form { display: none; }
.marely-form[data-marely-form-state="embed"] { display: block; }
.marely-form[data-marely-form-state="fallback"] { display: flex; }

.marely-form {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  min-height: 520px;
}
.marely-form iframe { min-height: 520px; }

/* Hero má vo Webflow pevnú výšku 700px; s vloženým formulárom musí rásť.
   Triedu pridáva marely-form.js až po úspešnom vložení embedu. */
.hero.hero--has-form { height: auto; min-height: 700px; padding: 110px 0 70px; }
.hero.hero--has-form .div-block-69 { margin-top: 0; }

/* Slot v hero bloku na homepage — kompaktnejší, tmavá karta */
.marely-form--hero {
  max-width: 520px;
  min-height: 460px;
  margin-top: 28px;
  background: #0000008c;
  backdrop-filter: blur(6px);
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  padding: 10px;
}
.marely-form--hero iframe { min-height: 440px; }

/* Záložné CTA, kým nie je vložené HighLevel form ID */
[data-marely-form-state="fallback"] {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
}
[data-marely-form-state="fallback"] iframe { min-height: 0; }
.marely-form__fallback-text {
  font-family: Montserrat, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: #cfcfcf;
  margin: 0;
  text-align: center;
  max-width: 42ch;
}
.marely-form__fallback-btn {
  display: inline-block;
  background: #ff2526;
  color: #fff;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 6px;
  transition: transform .15s ease, background-color .15s ease;
}
.marely-form__fallback-btn:hover { background: #e01f20; transform: translateY(-2px); }

/* ---------- Čistá formulárová podstránka /formular ---------- */
.formular-page {
  min-height: 100vh;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
}
.formular-logo { margin-bottom: 32px; }
.formular-logo img { display: block; height: 46px; width: auto; }
.formular-title {
  font-family: 'enra-semi-variable', Montserrat, sans-serif;
  font-size: 40px;
  line-height: 1.1;
  color: #fff;
  text-align: center;
  margin: 0 0 12px;
}
.formular-sub {
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #a8a6a0;
  text-align: center;
  margin: 0 0 36px;
  max-width: 44ch;
}
.formular-foot {
  margin-top: 40px;
  font-family: Montserrat, sans-serif;
  font-size: 12px;
  line-height: 1.7;
  color: #5f5d58;
  text-align: center;
}
.formular-foot a { color: #8a8880; text-decoration: none; }
.formular-foot a:hover { color: #ff2526; }

@media screen and (max-width: 767px) {
  .formular-title { font-size: 30px; }
  .formular-sub { font-size: 15px; }
  .marely-form--hero { margin-top: 22px; }
}

/* ==========================================================================
   MOBIL — opravy a optimalizácie
   Táto CSS sa načítava po webflow CSS, takže tu prepisujeme jej pravidlá.
   Webflow generuje pre každú dlaždicu portfólia vlastnú modifikačnú triedu
   (._1 až ._158), ktoré majú vyššiu špecificitu než ktorékoľvek pravidlo,
   čo by sme rozumne vedeli napísať — preto tu (a len tu) používame !important.
   ========================================================================== */
@media screen and (max-width: 767px) {

  /* --- 1. Nič nesmie pretiecť šírku obrazovky ---------------------------
     .div-block-94._151.a1 mal napevno 900px a .div-block-94.web 505px,
     čo na mobile spôsobovalo horizontálne posúvanie celej stránky. */
  .div-block-94,
  .div-block-95,
  .div-block-90-d2,
  .icon-container,
  .link-block-4 {
    max-width: calc(100vw - 20px) !important;
  }

  /* --- 2. Portfólio: 2 stĺpce namiesto 157 obrázkov pod sebou ------------
     Pôvodne .div-block-95 prepínalo na flex-flow: column, čo na iPhone
     vyrobilo stránku vysokú 23 000 px. */
  .div-block-95 {
    flex-flow: row wrap !important;
    gap: 10px !important;
    justify-content: center;
    /* align-items: stretch (z Webflow) natiahlo dlaždicu na výšku riadku a
       spolu s aspect-ratio: 1 jej to nafúklo šírku na 600 px -> pretekalo. */
    align-items: flex-start !important;
    /* .div-block-95 je zároveň flex položkou v .section-8; bez pevnej šírky
       by sa po uvoľnení min-width detí zmrštila na obsah. */
    width: 100% !important;
    flex: 0 0 auto !important;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
  }
  .div-block-94 {
    width: calc(50% - 5px) !important;
    /* Časť dlaždíc má min-width: 600px, čo bije aj width aj max-width. */
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1 !important;
    margin: 0 !important;
    background-size: cover;
  }
  /* Široké dlaždice (weby, bannery) nechávame cez celú šírku. */
  .div-block-94.web,
  .div-block-94._151.a1 {
    width: 100% !important;
    min-width: 0 !important;
    aspect-ratio: 4 / 3 !important;
  }

  /* --- 4. Dotykové ciele aspoň ~44 px ------------------------------------ */
  .footer-link-three {
    display: inline-block;
    padding: 11px 0;
    margin-bottom: 0;
  }
  .footer-social-link-three { padding: 4px; }
  .d-114-link-block-wrapper { padding-top: 8px; padding-bottom: 8px; }

  /* Webflow bodky sliderov majú 14x14 px — priveľmi malý cieľ na prst.
     Vizuál nechávame, dotykovú plochu zväčšíme neviditeľným pseudoprvkom. */
  .w-slider-dot {
    position: relative;
    margin-left: 9px;
    margin-right: 9px;
  }
  .w-slider-dot::after {
    content: "";
    position: absolute;
    inset: -13px;
  }

  /* Textové odkazy v riadku (ďakovná a formulárová stránka) */
  .dakujeme-links a,
  .formular-foot a {
    display: inline-block;
    padding: 10px 4px;
  }
  .dakujeme-links { gap: 4px; }

  /* --- 5. Hero: značka bola oproti claimu neúmerne malá ------------------ */
  .div-block-70 { width: 150px !important; height: 44px !important; }
  .div-block-69 { margin-top: -30px; }
}

@media screen and (max-width: 479px) {
  .heading { font-size: 30px; line-height: 37px; }
  /* Bočné čierne gradienty ukrajovali na úzkej obrazovke priveľa miesta. */
  .div-block-81 { width: 40px; }
  /* Formulárová podstránka */
  .formular-foot { font-size: 13px; }
  .formular-title { font-size: 28px; }
  .marely-form--hero { max-width: 100%; }
}
