/* ═══════════════════════════════════════════════════════════
   MINARIKOSS — MOBIL (≤ 768 px). Rovnaká zásada ako v Prominende:
   desktop sa nemení, všetko je v @media. Keby čokoľvek, stačí odobrať link.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  html, body { overflow-x: hidden; -webkit-text-size-adjust: 100%; }
  :root { --nav-h: 56px; }

  /* ═══ MENU — hamburger vľavo, prepínač farieb vpravo, logo je v úvode ═══ */
  .nav { padding: 0 16px; }
  .nav-logo { display: none; }
  .nav-right { width: 100%; flex-direction: row-reverse; justify-content: space-between; gap: 8px; }
  /* Logo vľavo nad nápisom MICHAL MINÁRIK — stav z verzie „hamburger vľavo, logo v úvode" */
  /* Box loga je IDENTICKÝ s finálnou verziou (44 px + 18 px) — vnútri je len menšie logo (30 px)
     vycentrované na šírku nápisu MICHAL MINÁRIK (šírku nastavuje site.js). Nič sa neposúva. */
  .hero-brandblock { display: contents; }
  /* Hore logo (30 px, vycentrované nad menom, box 44 px), dole ikony sociek. Boxy ostávajú rovnaké. */
  .hero-logo { display: flex; align-items: center; justify-content: flex-start; height: 44px; margin-bottom: 18px; }
  .hero-logo .hero-logo-mark { display: flex; }
  .hero-logo .hero-logo-mark img { height: 30px; width: auto; transform: translateY(12px); }   /* medzera k menu 25 → 13 px, box ostáva */
  .hero-logo .socials { display: none; }
  .hero-foot-logo { display: none; }
  .theme-toggle { height: 34px; padding: 0 8px; }
  .theme-toggle .dot { width: 9px; height: 9px; }
  .nav-burger { width: 36px; height: 36px; }
  .nav-links { top: var(--nav-h); padding: 6px 0 14px; box-shadow: 0 20px 40px rgba(0,0,0,0.5); border-bottom: 1px solid var(--divider); }
  .nav-links a { padding: 15px 22px; font-size: 12.5px; letter-spacing: 0.22em; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: none; }

  /* ═══ ÚVOD ═══════════════════════════════════════════════ */
  .hero { min-height: 100svh; padding: 78px 0 26px; justify-content: center; }
  .hero-bg.has-mobile { display: none; }      /* desktopová fotka preč, keď existuje mobilná */
  /* Stmavenie fotky na mobile: vľavo 70 % → vpravo 10 %; hore 35 % → stred 0 % → dole 92 % */
  .hero-bg::after {
    background: linear-gradient(90deg, rgba(var(--bg-rgb),0.82) 0%, rgba(var(--bg-rgb),0.55) 40%, rgba(var(--bg-rgb),0.18) 75%, rgba(var(--bg-rgb),0.30) 100%),
                linear-gradient(180deg, rgba(var(--bg-rgb),0.45) 0%, rgba(var(--bg-rgb),0) 26%, rgba(var(--bg-rgb),0) 62%, rgba(var(--bg-rgb),0.94) 100%);
  }
  .hero-bg-mobile { display: block !important; }
  .hero-grid { gap: 26px; }
  .hero-kicker { margin-bottom: 14px; font-size: 9.5px; letter-spacing: 0.24em; }
  .hero-title { font-size: clamp(22px, 6.4vw, 26px); line-height: 1.1; margin-bottom: 12px; }
  .hero-sub { font-size: 11.5px; line-height: 1.5; margin-bottom: 16px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 0 0 auto; justify-content: center; padding: 12px 22px; font-size: 11.5px; letter-spacing: 0.06em; }
  /* Hore len Portfólio (obrysové, malé ako predtým); Spolupráca + Premium sú pod štatistikami */
  .hero-btn-contact, .hero-btn-premium { display: none !important; }
  .hero-btn-portfolio { background: transparent !important; color: var(--text) !important; border-color: rgba(255,255,255,0.28) !important; }
  .hero-mobile-actions { display: flex; gap: 10px; padding: 0 0 18px; margin-top: -6px; border-bottom: 1px solid var(--line); }
  .hero-mobile-actions .btn { flex: 1 1 0; justify-content: center; padding: 12px 10px; font-size: 11.5px; letter-spacing: 0.06em; }
  .hero-stats { flex-direction: row; justify-content: center; gap: 8px; text-align: center; align-items: flex-start; padding: 4px 0 18px; border-bottom: 1px solid var(--line); }
  .hero-stat { flex: 1 1 0; }
  .hero-stat-value { font-size: 28px; }
  .hero-stat-label { font-size: 11px; margin-top: 4px; line-height: 1.3; }
  .hero-tagline {
    display: block; text-align: center; padding: 0 0 18px; margin-top: -10px; border-bottom: 1px solid var(--line);
    font-family: var(--head); font-weight: 600; font-size: 17px; line-height: 1.35; letter-spacing: -0.01em; color: var(--text);
  }
  .hero-tagline em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.18em; color: var(--accent-2); }
  .hero-foot { margin-top: 20px; gap: 18px; justify-content: center; }
  .hero-contacts { display: none; }
  .hero-foot .socials { width: 100%; justify-content: center; }
  .social { width: 42px; height: 42px; }

  /* ═══ PORTFÓLIO — Netflix hero ako v Ateliéri ═════════════ */
  .netflix-hero { height: auto; min-height: 66vh; min-height: 66svh; }
  .netflix-hero-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(5,5,5,0.10) 38%, rgba(5,5,5,0.52) 68%, rgba(5,5,5,0.92) 100%) !important;   /* o 10 % svetlejšie v hornej a strednej časti */
  }
  .netflix-hero-content { max-width: 100%; padding: 0 20px 26px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
  .netflix-hero-badge { font-size: 10.5px; letter-spacing: 0.25em; margin-bottom: 10px; }
  .netflix-hero-badge-orig { font-size: 10px; letter-spacing: 0.25em; }
  .netflix-hero-title { font-size: clamp(24px, 7.4vw, 34px); line-height: 1.04; margin-bottom: 8px; }
  .netflix-hero-meta { display: block; white-space: normal; font-size: 11.5px; line-height: 1.5; margin-bottom: 9px; }
  .netflix-hero-meta span { white-space: nowrap; }
  .netflix-hero-desc {
    font-size: 12.5px; line-height: 1.5; margin: 0 0 14px; max-width: 300px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .netflix-hero-actions { width: 100%; gap: 9px; }
  .netflix-hero-actions .netflix-btn { flex: 0 0 auto; padding: 10px 28px; font-size: 12.5px; line-height: 1.15; gap: 7px; }
  .netflix-hero-actions .netflix-btn svg { width: 14px; height: 14px; }
  .netflix-hero-switcher { display: none !important; }   /* na mobile bez ručného prepínania, len automatická rotácia */
  /* 9:16 hero: portrét ako pozadie na celú výšku, žiadne rozmazanie */
  .netflix-hero.is-portrait { min-height: 78vh; min-height: 78svh; }
  .netflix-hero.is-portrait .netflix-hero-bg { filter: saturate(1.08); transform: none; background-position: center top; }
  .netflix-hero.is-portrait .netflix-hero-content { max-width: 100%; }
  .nfx-hero-second { margin-top: 8px; }

  /* Riadky a dlaždice */
  .netflix-row { padding: 18px 20px 0; }
  .netflix-row-title { font-size: 17px; margin-bottom: 10px; }
  .netflix-row-scroll-wrap { margin: 0 -10px; }
  .netflix-row-track { padding: 8px 10px 22px; margin: 0; gap: 8px; scroll-snap-type: x proximity; }
  .netflix-tile { width: 210px; scroll-snap-align: start; }
  .netflix-tile-portrait { width: 136px; }
  .netflix-tile-info { padding: 8px 2px 2px; }
  .netflix-tile-title { font-size: 13px; }
  .netflix-tile-sub { font-size: 11px; }
  .netflix-landscape-poster-title { font-size: calc(23px * var(--poster-font-mult, 1)); word-break: normal; overflow-wrap: normal; bottom: 10px; }
  .netflix-reels-poster-title { font-size: calc(22px * var(--poster-font-mult, 1)); word-break: normal; overflow-wrap: normal; }
  .netflix-reels-poster-content { padding: 12px 8px 14px; }
  .netflix-reels-poster-brand { font-size: 8px; margin-bottom: 6px; }
  .netflix-tile-play svg { width: 46px; height: 46px; padding: 9px; }

  /* Prehrávač */
  .imax-trailer-lightbox { padding: 12px; }
  .imax-trailer-stage { max-height: calc(100vh - 24px); }
  .imax-trailer-stage.is-portrait { max-width: min(100%, calc((100vh - 90px) * 9 / 16)); }
  .imax-trailer-title { top: -30px; font-size: 14px; }
  .imax-trailer-close { top: 12px; right: 12px; width: 38px; height: 38px; }

  /* ═══ SEKCIE ═════════════════════════════════════════════ */
  .section { padding: 56px 0; }
  .section-about { padding-top: 56px; }
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: clamp(27px, 7.6vw, 34px); line-height: 1.14; margin: 12px 0 10px; }
  .section-lead { font-size: 15px; }
  .kicker { font-size: 10.5px; letter-spacing: 0.26em; }

  /* O mne */
  .about-grid { gap: 28px; }
  .about-photo { max-width: 100%; aspect-ratio: 1 / 1; }
  .about-photo-ph img { width: 90px; }
  .about-text .section-title { margin-bottom: 18px; }
  .about-text p { font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
  .about-text p:first-of-type { font-size: 15px; }
  .about-facts { margin-top: 24px; }
  .about-facts li { padding: 11px 0; font-size: 14px; }

  /* Kontakt */
  .contact-grid { gap: 30px; }
  .contact-side p { font-size: 15px; margin-bottom: 20px; }
  .contact-lines { gap: 12px; margin-bottom: 22px; }
  .contact-line { font-size: 15px; }
  .form input, .form textarea { padding: 13px 14px; font-size: 15px; }
  .form textarea { min-height: 120px; }
  .form .btn { width: 100%; justify-content: center; }

  /* Karty (Na stiahnutie, Premium) */
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 22px 20px; }
  .card h3 { font-size: 19px; }
  .card p { font-size: 14px; }
  .card .btn { width: 100%; justify-content: center; }
  .card .btn-static { width: auto; }
  .card-price { font-size: 24px; }
  .dl-modal { padding: 16px; }
  .dl-modal-panel { padding: 26px 22px 24px; }
  .dl-modal-panel h3 { font-size: 22px; }
  .dl-modal-panel .btn { width: 100%; justify-content: center; }

  .steps { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; padding-top: 26px; }
  .step { max-width: none; }
  .step-num { font-size: 26px; min-width: 24px; }

  .hire { padding: 56px 0; }
  .hire p { font-size: 15px; margin-bottom: 22px; }

  /* Pätička */
  .footer { padding: 30px 0 90px; }
  .footer-grid { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
  .footer-logo, .footer-grid > .socials { justify-self: auto; }
  .footer-copy { font-size: 12px; }

  /* Plávajúce tlačidlo správy */
  .msg-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .msg-fab-label { display: none; }
  .draft-badge { bottom: 16px; left: 12px; font-size: 10px; padding: 7px 10px; }
}

/* Veľmi úzke telefóny */
@media (max-width: 380px) {
  .hero-title { font-size: 23px; }
  .hero-stat-value { font-size: 24px; }
  .netflix-tile { width: 190px; }
  .netflix-tile-portrait { width: 124px; }
}
