/* ===================================
   Design Story — replikace 1:1
   Brand kit:
     primary  #E22F76  (růžová — nadpisy)
     text     #324D9C  (modrá — tlačítka, body text alt)
     secondary#FFFFFF  (bílá — body text na černém)
     accent   #E22F76
     border   #3D3D3D  (oddělovače sekcí)
     bg       #000000  (černé pozadí)
   Fonty: Bebas Neue (nadpisy), Trispace (text)
   Container max: 1140px
   =================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root {
  --color-primary: #E22F76;
  --color-text:    #324D9C;
  --color-white:   #FFFFFF;
  --color-bg:      #000000;
  --color-border:  #3D3D3D;
  --container:     1140px;
}

body {
  margin: 0;
  font-family: 'Trispace', system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-white);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (max-width: 1024px) {
  body { font-size: 15px; }
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color .2s; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-primary); color: #fff; padding: .5rem 1rem;
  z-index: 1000; font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 1.5rem);
}

.text-white { color: var(--color-white); }
.d-block { display: block; }

/* ===================================
   HEADINGS — Bebas Neue, růžové
   =================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', 'Anton', Impact, sans-serif;
  font-weight: 400;
  color: var(--color-primary);
  text-transform: uppercase;
  margin: 0 0 .5em;
  letter-spacing: -.5px;
}

/* H1 hero */
.hero__title {
  font-size: 100px;
  line-height: 95px;
  letter-spacing: -2px;
  margin: 0 0 1.5rem;
}
@media (max-width: 1024px) {
  .hero__title { font-size: 72px; line-height: 1em; }
}
@media (max-width: 600px) {
  .hero__title { font-size: 56px; }
}

/* H2 section heading */
.section-heading {
  font-size: 85px;
  line-height: 80px;
  letter-spacing: -2px;
  text-align: center;
  margin: 0 0 1.5rem;
}
@media (max-width: 1024px) {
  .section-heading { font-size: 70px; line-height: 1em; }
}
@media (max-width: 767px) {
  .section-heading { font-size: 52px; line-height: 1em; letter-spacing: -1px; }
}
@media (max-width: 480px) {
  .section-heading { font-size: 40px; }
}

/* ===================================
   BUTTONS — modrá → růžový hover
   =================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 26px 28px;
  font-family: 'Trispace', sans-serif;
  font-weight: 500;
  font-size: 16px;
  background: var(--color-text);   /* modré */
  color: var(--color-white);
  border-radius: 0;
  text-transform: none;
  transition: background .25s ease;
  flex-direction: row-reverse;     /* ikona vlevo */
}
.btn svg {
  width: 16px; height: 16px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform .25s;
}
.btn:hover, .btn:focus-visible {
  background: var(--color-primary);  /* růžový hover */
  color: var(--color-white);
}
.btn:hover svg { transform: translateY(3px); }

/* ===================================
   HEADER
   =================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.top-bar {
  padding: 35px 0 30px;
  font-size: 15px;
}
.top-bar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}
.top-bar__col--right { justify-self: end; }
.top-bar__logo img {
  width: 225px;
  height: auto;
}
.info-item {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  color: var(--color-white);
  text-align: left;
}
.info-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.info-item__icon svg {
  width: 30px;
  height: 30px;
  fill: var(--color-primary);
}
.info-item__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.2;
}
.info-item__title {
  font-family: 'Trispace', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-white);
}
.info-item__value {
  font-family: 'Trispace', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
}

.divider span {
  display: block;
  height: 1px;
  background: var(--color-border);
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

/* Nav bar */
.nav-bar { padding: 30px 0; }
.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
}

.nav-bar__socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  right: clamp(1rem, 4vw, 1.5rem);
  top: 50%;
  transform: translateY(-50%);
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  padding: 0.5em;
}
.social-link svg { width: 22px; height: 22px; fill: var(--color-primary); transition: fill .2s; }
.social-link:hover svg { fill: var(--color-white); }

/* Main nav */
.main-nav { position: relative; }
.main-nav__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 50px;
  align-items: center;
  justify-content: center;
}
.main-nav__list a {
  font-family: 'Trispace', sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--color-white);
  text-transform: none;
  padding: 8px 4px;
  position: relative;
  transition: color .3s;
}
.main-nav__list a:hover { color: var(--color-primary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
body.menu-open { overflow: hidden; }
.nav-toggle__bar {
  display: block;
  width: 26px; height: 2px;
  background: var(--color-white);
  transition: transform .25s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================
   HERO
   =================================== */
.hero {
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero__lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--color-white);
  max-width: 80%;
  margin: 0 0 1.75rem;
  line-height: 1.6;
}
.hero__media img {
  width: 100%;
  display: block;
}

/* ===================================
   SERVICES
   =================================== */
.services {
  padding: 0 0 40px;
  position: relative;
  overflow: hidden;
}
.services__heading {
  position: relative;
  padding: 80px 0;
  margin-bottom: 60px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.services__heading::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/images/group-2-1.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: min(1400px, 100%) auto;
  pointer-events: none;
}
.services__heading .section-heading { margin-bottom: 0; position: relative; }

.services__grid-wrap {
  position: relative;
}
.services__grid-wrap::before,
.services__grid-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(1700px, 100vw);
  height: 200px;
  background-image: url("assets/images/group-2-2.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
  z-index: 0;
}
.services__grid-wrap::before {
  top: -40px;
  transform: translateX(-50%) scale(-1, -1);
}
.services__grid-wrap::after {
  bottom: -40px;
  transform: translateX(-50%);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}
.service-card {
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  padding: 21px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}
.service-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #000;
}
.service-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.service-card:hover .service-card__media img { transform: scale(1.04); }

.service-card__title {
  font-family: 'Trispace', sans-serif;
  font-size: 17px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-white);
  text-align: center;
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 767px) {
  .service-card__title { font-size: 15px; }
}

.services__cta {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
  text-align: left;
}
.services__cta p {
  margin: 0;
  font-size: 17px;
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.6;
}

/* ===================================
   TECH
   =================================== */
.tech {
  padding: 0 0 40px;
  position: relative;
}
.tech__intro {
  position: relative;
  padding: 80px 0 60px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
  margin-bottom: 0;
}
.tech__intro .section-heading { margin: 0 0 30px; }
.tech__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 30px 0 50px;
}
.tech__arrow svg {
  width: 36px;
  height: 36px;
  fill: var(--color-white);
  opacity: .85;
}
.tech__arrow svg:nth-child(2) { margin-top: -18px; opacity: .55; }
.tech__hero {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;
}
.tech__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-right: 1px solid var(--color-border);
  margin-top: 0;
}
.tech-card {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 50px 40px;
  border-bottom: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}
.tech-card__icon {
  flex-shrink: 0;
  width: 60px; height: 60px;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
}
.tech-card__icon svg { width: 60px; height: 60px; fill: var(--color-white); }
.tech-card__body h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  font-size: 52px;
  text-transform: uppercase;
  line-height: 52px;
  margin: 0 0 15px;
  color: var(--color-primary);
}
@media (max-width: 1024px) {
  .tech-card__body h3 { font-size: 38px; line-height: 1; }
}
.tech-card__body p {
  margin: 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-white);
  line-height: 1.6;
}
.tech-card--media {
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  gap: 0;
}
.tech-card--media img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 240px;
}

/* ===================================
   IDEA
   =================================== */
.idea {
  padding: 90px 0 40px;
  position: relative;
}
.idea__inner {
  text-align: center;
  max-width: 920px;
  margin-inline: auto;
}
.idea__img {
  width: 100%;
  margin-bottom: 30px;
}
.idea__copy { color: var(--color-white); margin-bottom: 30px; }
.idea__copy p { margin: 0 0 15px; font-size: 17px; font-weight: 300; line-height: 1.6; }

/* ===================================
   CONTACT
   =================================== */
.contact {
  padding: 90px 0 60px;
  position: relative;
  border-top: 1px solid var(--color-border);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}
.contact__map {
  min-height: 400px;
  background: #0a0a0a;
}
.contact__map iframe {
  width: 100%; height: 100%;
  min-height: 400px;
  border: 0;
  filter: grayscale(.4) invert(.92) hue-rotate(180deg);
}
.contact__list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  gap: 25px;
}
.contact__list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.contact__icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact__icon svg { width: 50px; height: 50px; fill: var(--color-white); }
.contact__list h4 {
  margin: 0 0 5px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--color-primary);
  font-weight: 400;
  line-height: 1;
}
.contact__list p { margin: 0; color: var(--color-white); font-size: 16px; font-weight: 300; }
.contact__list a:hover { color: var(--color-primary); }
.contact .section-heading { text-align: left; }

/* ===================================
   FOOTER
   =================================== */
.site-footer {
  padding: 30px 0;
  background: #000;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-white);
}
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-footer__logo img { height: 50px; width: auto; }
.site-footer__socials { display: inline-flex; gap: 10px; }

/* ===================================
   REVEAL ON SCROLL
   =================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================================
   RESPONSIVE — TABLET (≤ 1024px)
   =================================== */
@media (max-width: 1024px) {
  .hero { padding: 50px 0 30px; }
  .hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__media { order: -1; }
  .hero__lead { max-width: 100%; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .services__cta { grid-template-columns: 1fr; gap: 20px; }
  .services__cta .btn { justify-self: start; }

  .tech__intro { padding: 60px 0 40px; }
  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .tech-card { padding: 40px 28px; }
  .tech-card__body h3 { font-size: 38px; }

  .contact__inner { grid-template-columns: 1fr; gap: 30px; }
  .contact .section-heading { text-align: center; }
  .contact__map { min-height: 300px; }
  .contact__map iframe { min-height: 300px; }
}

/* ===================================
   RESPONSIVE — MOBILE (≤ 767px)
   =================================== */
@media (max-width: 767px) {
  /* Top bar — kompaktní, jen logo */
  .top-bar { padding: 16px 0 14px !important; }
  .top-bar__inner {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 0;
    justify-items: center;
    align-items: center;
    text-align: center;
  }
  .top-bar .top-bar__col,
  .top-bar .top-bar__col--left,
  .top-bar .top-bar__col--right { display: none !important; }
  .top-bar__logo { display: block; }
  .top-bar__logo img { width: 150px !important; height: auto; }

  /* Nav bar — burger vlevo, sociálky vpravo */
  .nav-bar { padding: 10px 0; }
  .nav-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
  }
  .main-nav {
    display: flex;
    position: static;
  }
  .nav-bar__socials {
    position: static !important;
    transform: none !important;
    right: auto !important;
    top: auto !important;
    gap: 4px;
  }
  .social-link { width: 40px; height: 40px; }
  .social-link svg { width: 20px; height: 20px; }

  .nav-toggle { display: inline-flex !important; }

  /* Mobilní menu — full-width drop-down pod headerem */
  .main-nav__list {
    position: fixed;
    top: var(--header-height, 110px);
    left: 0;
    right: 0;
    width: 100vw;
    background: #0a0a0a;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px 0;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
    z-index: 100;
    max-height: calc(100vh - var(--header-height, 110px));
    overflow-y: auto;
  }
  .main-nav__list.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav__list li {
    list-style: none;
    width: 100%;
    border-bottom: 1px solid #1a1a1a;
  }
  .main-nav__list li:last-child { border-bottom: 0; }
  .main-nav__list a {
    display: block;
    width: 100%;
    padding: 18px clamp(1rem, 4vw, 1.5rem);
    font-size: 17px;
  }
  .main-nav__list a:hover,
  .main-nav__list a:active { background: #161616; color: var(--color-primary); }

  /* Hero */
  .hero { padding: 40px 0 30px; }
  .hero__text { order: 0; }
  .hero__media { order: 1; }
  .hero__lead { font-size: 16px; }
  .btn { padding: 18px 22px; font-size: 15px; width: 100%; justify-content: center; }
  .hero .btn { width: auto; max-width: 100%; }

  /* Services */
  .services { padding: 0 0 30px; }
  .services__heading {
    padding: 50px 0;
    margin-bottom: 30px;
  }
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card { padding: 14px; gap: 10px; }
  .services__cta { padding: 0; gap: 24px; margin-top: 40px; }
  .services__cta p { font-size: 15px; }

  /* Tech */
  .tech { padding: 0 0 20px; }
  .tech__intro { padding: 50px 0 30px; }
  .tech__grid { grid-template-columns: 1fr; }
  .tech-card {
    gap: 18px;
    padding: 32px 20px;
    align-items: flex-start;
  }
  .tech-card__icon { width: 44px; height: 44px; }
  .tech-card__icon svg { width: 44px; height: 44px; }
  .tech-card__body h3 { font-size: 34px; line-height: 1; }
  .tech-card__body p { font-size: 15px; }
  .tech-card--media img { min-height: 200px; }

  /* Idea */
  .idea { padding: 60px 0 30px; }
  .idea__copy p { font-size: 15px; }

  /* Contact */
  .contact { padding: 60px 0 40px; }
  .contact__map,
  .contact__map iframe { min-height: 260px; }
  .contact__list { margin-top: 20px; gap: 22px; }
  .contact__list h4 { font-size: 28px; }
  .contact__list p { font-size: 15px; }
  .contact__icon,
  .contact__icon svg { width: 40px; height: 40px; }

  /* Footer */
  .site-footer__inner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .site-footer { font-size: 12px; }
  .site-footer__logo img { height: 40px; }

  .hero { padding-bottom: 40px; }
  .services, .tech, .idea, .contact { padding-top: 50px; }
}

/* ===================================
   RESPONSIVE — SMALL (≤ 420px)
   =================================== */
@media (max-width: 420px) {
  .top-bar__logo img { width: 130px; }
  .service-card__title { font-size: 13px; }
  .service-card { padding: 10px; }
  .tech-card { padding: 28px 18px; }
  .tech-card__body h3 { font-size: 30px; }
  .contact__list li { gap: 14px; }
}
