/* =========================================================
   APLYS s.r.o. – statický web
   ========================================================= */

/* ---------- Fonty (self-hosted, bez Google Fonts) ---------- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin-ext-wght-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: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin-wght-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: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-ext-wght-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: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin-wght-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: "Oxanium";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/oxanium-latin-ext-wght-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: "Oxanium";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/oxanium-latin-wght-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;
}

/* ---------- Proměnné ---------- */
:root {
  --bg: #0e031c;
  --bg-deep: #0b0337;
  --violet-1: #1c0637;
  --violet-2: #27043d;
  --pink: #f02363;
  --pink-soft: #fc6fe2;
  --cyan: #02d9dd;
  --teal: #5acecc;
  --card: #efe3ea;
  --text: rgba(255, 255, 255, 0.9);
  --text-muted: rgba(255, 255, 255, 0.68);
  --grey: #8c8c8c;
  --grey-light: #d6d6d6;
  --footer-muted: #b2aeb6;

  --font: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-tech: "Oxanium", var(--font);
  --font-grotesk: "Space Grotesk", var(--font);

  --container: 1296px;
  --header-h: 84px;
}

/* ---------- Základ ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--pink); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--pink-soft); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; color: var(--text); }
p { margin: 0; }

.container {
  width: 80%;
  max-width: var(--container);
  margin-inline: auto;
}
@media (max-width: 767px) { .container { width: 90%; } }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 16px; background: var(--pink); color: #fff; border-radius: 4px;
}
.skip-link:focus { top: 16px; color: #fff; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Tlačítko ---------- */
.btn {
  display: inline-block;
  padding: 7px 25px;
  font-family: var(--font-tech);
  font-size: 16px;
  line-height: 1.4;
  color: var(--pink);
  border: 1px solid var(--pink);
  border-radius: 3px;
  transition: box-shadow .3s ease, color .2s ease;
}
.btn:hover { color: var(--pink-soft); box-shadow: -5px -5px 0 0 rgba(240, 35, 99, .35); }

/* ---------- Hlavička ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(100deg, #1f0639 0%, #25043d 35%, #19043a 70%, #0e0337 100%);
  border-bottom: 1px solid rgba(252, 111, 226, .08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.site-logo img { width: 190px; height: auto; }

.main-nav ul {
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
  list-style: none;
}
.main-nav a {
  position: relative;
  display: block;
  padding: 30px 14px;
  font-family: var(--font-tech);
  font-size: 16px;
  color: #fff;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 0;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--pink-soft); }

.main-nav li.nav-contact { display: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  color: var(--pink-soft);
  cursor: pointer;
}
.nav-toggle svg { width: 100%; height: 100%; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .site-logo img { width: 160px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--violet-1);
    border-top: 3px solid var(--pink-soft);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
    display: none;
  }
  .nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 5%; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .main-nav a::after { display: none; }
  .main-nav li.nav-contact { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 198px 0 100px;
  background-color: #1a1024;
  background-image:
    linear-gradient(180deg, rgba(10, 1, 1, .57) 0%, rgba(14, 8, 28, .76) 100%),
    url("../img/header_bg.webp");
  background-size: cover;
  background-position: center;
}
.hero-content { max-width: 50%; }
.hero h1 {
  margin-bottom: 26px;
  font-size: 64px;
  line-height: 68px;
  font-weight: 500;
  color: var(--text);
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--teal); }
.hero-lead {
  max-width: 530px;
  margin-bottom: 38px;
  font-size: 27px;
  line-height: 1.3;
  color: var(--text-muted);
}
@media (max-width: 980px) {
  .hero { padding: 140px 0 80px; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: 52px; line-height: 62px; margin-bottom: 30px; }
  .hero-lead { font-size: 20px; margin-bottom: 30px; }
}
@media (max-width: 767px) {
  .hero { padding: 96px 0 56px; }
  .hero h1 { font-size: 40px; line-height: 50px; margin-bottom: 20px; }
  .hero-lead { font-size: 17px; margin-bottom: 20px; }
}

/* ---------- Sekce ---------- */
.section { padding: 120px 0; background: var(--bg); }
.section-title {
  margin-bottom: 15px;
  font-size: 36px;
  line-height: 40px;
  color: var(--text);
  text-align: center;
}
.section-head { margin-bottom: 58px; text-align: center; }
.section-head p { font-size: 16px; line-height: 24px; color: var(--text-muted); }
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .section-title { font-size: 32px; padding-bottom: 0; }
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 767px) {
  .section { padding: 48px 0; }
  .section-title { font-size: 26px; line-height: 36px; }
  .section-head { margin-bottom: 30px; }
  .section-head p { font-size: 14px; }
}

/* ---------- Logo pás (nekonečný posun) ---------- */
.logos {
  position: relative;
  max-width: 1165px;
  margin-inline: auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 72px;
  width: max-content;
  margin: 0; padding: 0;
  list-style: none;
  animation: logos-scroll 40s linear infinite;
}
.logos:hover .logos-track { animation-play-state: paused; }
.logos-track li { flex: 0 0 auto; }
.logos-track img {
  height: 64px;
  width: auto;
  filter: brightness(84%) invert(50%);
  transition: filter .3s ease;
}
.logos-track img:hover { filter: brightness(100%) invert(50%); }
@keyframes logos-scroll {
  to { transform: translateX(calc(-50% - 36px)); }
}
@media (max-width: 767px) {
  .logos-track { gap: 44px; }
  .logos-track img { height: 44px; }
  @keyframes logos-scroll { to { transform: translateX(calc(-50% - 22px)); } }
}
@media (prefers-reduced-motion: reduce) {
  .logos { -webkit-mask-image: none; mask-image: none; }
  .logos-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 56px;
  }
  .logos-track li[aria-hidden="true"] { display: none; }
}

/* ---------- Proč inovovat ---------- */
.why {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 60px;
  background: linear-gradient(180deg, var(--violet-1) 0%, var(--violet-2) 29%, var(--bg-deep) 100%);
  border: 1px solid var(--cyan);
  border-radius: 10px;
}
.why-intro h2 {
  margin-bottom: 8px;
  font-size: 36px;
  line-height: 40px;
  color: rgba(255, 255, 255, .88);
}
.why-intro p { font-size: 16px; line-height: 24px; color: var(--text-muted); }

.card {
  padding: 25px;
  background: var(--card);
  border-radius: 0 10px 10px 10px;
  color: #666;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 70px; height: 70px;
  margin-bottom: 20px;
  background: #fff;
  border-radius: 50%;
  color: var(--pink);
}
.card-icon svg { width: 30px; height: 30px; }
.card h3 { font-size: 18px; line-height: 1.3; font-weight: 500; color: #333; }
.card .card-sub {
  margin: 15px 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 300;
  color: #444;
}
.card p:last-child { font-size: 14px; line-height: 1.7; }

@media (max-width: 980px) {
  .why { grid-template-columns: repeat(2, 1fr); padding: 50px; gap: 24px; }
  .why-intro { grid-column: 1 / -1; }
  .why-intro h2 { font-size: 32px; }
}
@media (max-width: 767px) {
  .why { grid-template-columns: 1fr; padding: 40px 25px; gap: 20px; }
  .why-intro h2 { font-size: 28px; line-height: 38px; }
  .why-intro p { font-size: 14px; }
}

/* ---------- Reference ---------- */
.references { padding: 148px 0 146px; }
.references .section-sub {
  margin-bottom: 20px;
  font-size: 23px;
  font-weight: 300;
  color: var(--cyan);
  text-align: center;
}
.ref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  margin-top: 40px;
}
.ref h3 { font-size: 18px; line-height: 1.4; font-weight: 700; color: var(--pink); }
.ref .ref-sub { margin-bottom: 15px; font-weight: 300; color: var(--grey-light); }
.ref p:not(.ref-sub) { font-weight: 300; line-height: 1.7; color: var(--grey); }
.ref img {
  width: 100%;
  margin-top: 20px;
  border: 1px solid var(--grey);
  border-radius: 5px;
}
@media (max-width: 980px) {
  .references { padding: 80px 0 40px; }
  .ref-grid { gap: 40px; }
}
@media (max-width: 767px) {
  .references { padding: 48px 0 24px; }
  .references .section-sub { font-size: 19px; }
  .ref-grid { grid-template-columns: 1fr; margin-top: 24px; }
}

/* ---------- CTA pruh ---------- */
.cta-section { padding: 120px 0 146px; }
.cta {
  padding: 30px 60px;
  background: linear-gradient(160deg, #450f88 0%, #3d0661 45%, #2a0659 70%, #13064e 100%);
  border: 1px solid rgba(160, 60, 220, .35);
  border-radius: 10px;
  text-align: center;
}
.cta h2 { font-size: 36px; line-height: 40px; color: #fff; }
.cta p { margin-top: 12px; font-size: 18px; color: var(--text-muted); }
.cta p a { color: #fff; border-bottom: 1px solid var(--pink-soft); }
.cta p a:hover { color: var(--pink-soft); }
@media (max-width: 980px) {
  .cta-section { padding: 80px 0; }
  .cta { padding: 40px; }
  .cta h2 { font-size: 32px; }
}
@media (max-width: 767px) {
  .cta-section { padding: 40px 0 48px; }
  .cta { padding: 24px 16px; }
  .cta h2 { font-size: 26px; line-height: 34px; }
  .cta p { font-size: 16px; }
}

/* ---------- Patička ---------- */
.site-footer {
  padding: 60px 0;
  background-color: #170431;
  background-image: url("../img/footer-bg.webp");
  background-size: cover;
  background-position: center;
}
.footer-inner { width: 68vw; max-width: 1296px; margin-inline: auto; }
.footer-logo img { width: 200px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 24px;
  padding: 45px 0 30px;
}
.footer-address { font-size: 24px; line-height: 1.4; color: #fff; font-style: normal; }
.footer-address p + p { margin-top: 1em; }
.footer-mail {
  margin: 0;
  padding-left: 20px;
  border-left: 5px solid var(--pink);
  font-size: 28px;
}
.footer-mail a { color: var(--pink); }
.footer-mail a:hover { color: #fff; }
.footer-legal ul { margin: 0; padding: 0; list-style: none; }
.footer-legal a { display: inline-block; padding: 3px 0; font-size: 20px; color: var(--pink); }
.footer-legal a:hover,
.footer-legal a[aria-current="page"] { color: #fff; }
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid rgba(252, 111, 226, .1);
  font-family: var(--font-grotesk);
  font-size: 16px;
  line-height: 20px;
  color: var(--footer-muted);
}
@media (max-width: 980px) {
  .site-footer { padding: 50px 0; }
  .footer-inner { width: 80%; }
  .footer-cols { grid-template-columns: 1fr; align-items: start; padding-top: 40px; }
  .footer-address { font-size: 20px; }
  .footer-mail { font-size: 24px; }
  .footer-bottom { font-size: 15px; text-align: center; }
}
@media (max-width: 767px) {
  .site-footer { padding: 40px 0; }
  .footer-inner { width: 90%; }
  .footer-cols { padding-top: 30px; }
  .footer-address { font-size: 18px; }
  .footer-mail { font-size: 22px; }
  .footer-legal a { font-size: 17px; }
  .footer-bottom { font-size: 14px; }
}

/* ---------- Textové (právní) stránky ---------- */
.page { padding: 80px 0 120px; }
.page h1 { margin-bottom: 32px; font-size: 40px; line-height: 1.2; color: #eee; }
.page h2 { margin: 40px 0 16px; font-size: 26px; line-height: 1.3; color: #eee; }
.page h3 { margin: 24px 0 8px; font-size: 19px; color: #eee; }
.page p,
.page li { font-size: 17px; line-height: 1.7; color: #ddd; }
.page p + p { margin-top: 1em; }
.page ul { margin: 1em 0; padding-left: 1.4em; }
.page li::marker { color: var(--pink); }
.page .prose { max-width: 820px; }
.page-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.page-split img { border-radius: 8px; }
@media (max-width: 767px) {
  .page { padding: 48px 0 72px; }
  .page h1 { font-size: 30px; }
  .page h2 { font-size: 22px; }
  .page p, .page li { font-size: 16px; }
  .page-split { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Animace při scrollu ---------- */
.js .reveal {
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal[data-reveal="left"] { transform: translateX(-40px); }
.js .reveal[data-reveal="top"] { transform: translateY(-30px); }
.js .reveal[data-reveal="bottom"] { transform: translateY(40px); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
