:root {
  --td-blue: #0071bc;
  --td-blue-dark: #075d98;
  --td-cyan: #0ea5e9;
  --td-ink: #111827;
  --td-slate: #5f6f82;
  --td-line: #dfe6ee;
  --td-soft: #f6f8fb;
  --td-white: #ffffff;
  --td-radius: 20px;
  --td-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #eef1f4;
  color: var(--td-ink);
  font-family: "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

li {
  list-style-type: none;
}

img {
  max-width: 100%;
}

/* ===== Hlavní rám stránky ===== */
.pozadiStranky {
  padding: 0;
  overflow: hidden;
  background: var(--td-white);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.20);
}

.home-main {
  background: #fff;
}

/* ===== Navigace ===== */
.navbar {
  min-height: 92px;
  padding: 6px 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
}

.navbar-brand {
  display: flex;
  align-items: center;
}

.logo {
  width: 74px;
  height: 60px;
  object-fit: contain;
}

.collapse {
  justify-content: flex-end;
}

.col-auto {
  margin-right: 7px;
}

.navbar-toggler {
  margin-left: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.toggler-icon {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #d9dde2;
  transition: all 0.3s ease;
}

.navbar-toggler:not(.collapsed) .top-bar {
  transform: translateY(8px) rotate(45deg);
}

.navbar-toggler:not(.collapsed) .middle-bar {
  opacity: 0;
}

.navbar-toggler:not(.collapsed) .bottom-bar {
  transform: translateY(-8px) rotate(-45deg);
}

.navbar-nav a {
  position: relative;
  line-height: 30px;
}

.nav-link {
  padding: 10px 12px !important;
  border: 0;
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none !important;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.015em;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--td-blue), var(--td-cyan));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none !important;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: #fff !important;
}

.nav-link img {
  margin-right: 4px;
  vertical-align: middle;
}

.dropdown-menu {
  overflow: hidden;
  border: 1px solid #e7ebef;
  border-radius: 12px;
  box-shadow: 0 15px 36px rgba(15, 23, 42, 0.16);
}

.dropdown-item {
  padding: 9px 15px;
}

.header-social-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 0;
  padding-left: 0;
}

.header-social-icons li {
  margin-right: 7px;
}

.header-social-icons br {
  display: none;
}

.social {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.social:hover {
  transform: translateY(-2px) scale(1.06);
  opacity: 0.9;
}

/* ===== Hero ===== */
.home-hero {
  background: #fff;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 68px 64px 58px;
  background:
    radial-gradient(circle at 86% 10%, rgba(14, 165, 233, 0.12), transparent 28%),
    radial-gradient(circle at 10% 0%, rgba(0, 113, 188, 0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border-bottom: 1px solid var(--td-line);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(0, 113, 188, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-kicker,
.section-heading > span,
.contact-teaser__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--td-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-kicker::before,
.section-heading > span::before,
.contact-teaser__eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--td-blue), var(--td-cyan));
}

.hero-panel h1 {
  max-width: 1000px;
  margin: 14px 0 30px;
  color: var(--td-ink);
  font-size: clamp(36px, 4.6vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-width: 1000px;
}

.hero-summary-grid p {
  display: flex;
  gap: 11px;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-left: 3px solid rgba(0, 113, 188, 0.42);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
  color: #445468;
  font-size: 15px;
  line-height: 1.58;
}

.hero-summary-grid i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--td-blue);
  font-size: 15px;
}

.hero-reference-note {
  margin: 22px 0 0;
  color: #536276;
  font-weight: 700;
}

/* ===== Úvodní trojice služeb ===== */
.services-overview {
  padding: 48px 54px 56px;
  background: #fff;
}

.brand-animation-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 34px;
}

.gif {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 15px 34px rgba(15, 23, 42, 0.12);
}

.service-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}

.service-highlight-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--td-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-highlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 188, 0.28);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.service-highlight-card i {
  display: grid;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(0, 113, 188, 0.12), rgba(14, 165, 233, 0.14));
  color: var(--td-blue);
  font-size: 20px;
}

.service-highlight-card strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

/* ===== Sekce ===== */
.home-section {
  padding: 62px 54px;
  border-top: 1px solid #edf1f4;
}

.section-soft {
  background: var(--td-soft);
}

.section-heading {
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading > span {
  justify-content: center;
}

.section-heading h2 {
  margin: 10px 0 0;
  color: var(--td-ink);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* ===== Video ===== */
.video-section {
  background: #fff;
}

.video-stack {
  max-width: 900px;
  margin: 0 auto;
}

.video-stack > .ratio {
  overflow: hidden;
  margin-bottom: 30px;
  border: 1px solid #dce3ea;
  border-radius: 20px;
  background: #111827;
  box-shadow: var(--td-shadow);
}

.video-stack iframe {
  display: block;
}

/* ===== Portfolio obrázky ===== */
.portfolio-gallery {
  display: grid;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.portfolio-item {
  text-align: center;
}

.obrazek {
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  margin: 0 auto;
  border: 1px solid #e1e7ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.obrazek:hover {
  transform: translateY(-3px);
  box-shadow: 0 21px 46px rgba(15, 23, 42, 0.13);
}

.portfolio-note {
  max-width: 620px;
  margin: 18px auto 0;
  color: var(--td-slate);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

/* ===== Tlačítka ===== */
.btn {
  border-radius: 12px;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--td-blue), var(--td-cyan));
  box-shadow: 0 12px 28px rgba(0, 113, 188, 0.25);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, var(--td-blue-dark), #0284c7);
  box-shadow: 0 16px 34px rgba(0, 113, 188, 0.32);
}

/* ===== Survivor / Tom Design Games CTA ===== */
.survivor-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 8px 0 30px;
  padding: 28px 30px;
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 20%, rgba(14, 165, 233, 0.15), transparent 34%),
    linear-gradient(135deg, #f4fbff 0%, #e9f8ff 52%, #eef7ff 100%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
}

.survivor-cta::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -70px;
  top: -85px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.08);
  pointer-events: none;
}

.survivor-cta__content {
  position: relative;
  z-index: 1;
  max-width: 610px;
}

.survivor-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.survivor-cta h4 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
}

.survivor-cta p {
  margin: 0;
  color: #52637a;
  font-size: 16px;
  line-height: 1.55;
}

.survivor-cta__button,
.contact-teaser__button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.survivor-cta__button span,
.contact-teaser__button span {
  font-size: 21px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.survivor-cta__button:hover,
.survivor-cta__button:focus,
.contact-teaser__button:hover,
.contact-teaser__button:focus {
  color: #fff !important;
  text-decoration: none !important;
  transform: translateY(-2px);
  box-shadow: 0 17px 36px rgba(37, 99, 235, 0.36);
  filter: saturate(1.08);
}

.survivor-cta__button:hover span,
.survivor-cta__button:focus span,
.contact-teaser__button:hover span,
.contact-teaser__button:focus span {
  transform: translateX(4px);
}

/* ===== Kontaktní CTA ===== */
.contact-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0;
  padding: 44px 54px;
  border-top: 1px solid rgba(0, 113, 188, 0.18);
  background:
    radial-gradient(circle at 5% 50%, rgba(14, 165, 233, 0.13), transparent 26%),
    linear-gradient(135deg, #f7fbff, #edf7fc);
}

.contact-teaser h2 {
  max-width: 1000px;
  margin: 9px 0 0;
  color: var(--td-ink);
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

/* ===== Footer ===== */
.spodnipanel {
  padding: 34px 0 22px;
  background: #050505;
  color: #8f969e;
}

.spodnipanel .container-sm {
  height: auto;
}

.spodnipanel strong {
  color: #c6cbd1;
}

.link {
  color: #fff;
  text-decoration: none;
}

.link:hover,
.link:focus {
  color: #b9dfff;
  text-decoration: none;
}

.sipka {
  margin: 0 18px 8px 18px;
  opacity: 0.78;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sipka:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* ===== AOS bez přehnaného pohybu ===== */
[data-aos] {
  will-change: transform, opacity;
}

/* ===== Mobil ===== */
@media (min-width: 576px) {
  .logo {
    width: 110px;
    height: 85px;
  }
}

@media (max-width: 991.98px) {
  .navbar {
    min-height: 76px;
  }

  .navbar-collapse {
    padding: 12px 0 8px;
  }

  .header-social-icons {
    justify-content: center;
    padding-top: 8px;
  }

  .hero-panel {
    padding: 52px 36px 46px;
  }

  .home-section,
  .services-overview {
    padding-right: 34px;
    padding-left: 34px;
  }
}

@media (max-width: 767.98px) {
  .hero-panel {
    padding: 42px 22px 38px;
  }

  .hero-panel h1 {
    margin-bottom: 24px;
  }

  .hero-summary-grid p {
    padding: 13px 14px;
    font-size: 14px;
  }

  .services-overview {
    padding: 38px 20px 44px;
  }

  .service-highlight-grid {
    grid-template-columns: 1fr;
  }

  .gif {
    width: 155px;
    height: 155px;
    border-radius: 24px;
  }

  .home-section {
    padding: 46px 20px;
  }

  .section-heading {
    margin-bottom: 28px;
  }

  .video-stack > .ratio {
    margin-bottom: 22px;
    border-radius: 14px;
  }

  .obrazek {
    border-radius: 14px;
  }

  .survivor-cta,
  .contact-teaser {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .contact-teaser h2 {
	font-size: 22px;
  }

  .survivor-cta {
    padding: 24px 22px;
  }

  .survivor-cta h4 {
    font-size: 22px;
  }

  .survivor-cta__button,
  .contact-teaser__button {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .contact-teaser {
    padding: 36px 22px;
  }
}
