@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --red:      #e63946;
  --red-dark: #c1121f;
  --red-glow: rgba(230, 57, 70, 0.25);
  --dark:     #0d1117;
  --dark2:    #161b27;
  --dark3:    #1c2333;
  --surface:  #f5f7fa;
  --surface2: #eef0f4;
  --border:   #e2e6ec;
  --text:     #1a1f2e;
  --muted:    #64748b;
  --white:    #ffffff;
  --nav-h:    70px;
  --radius:   12px;
  --shadow-hover: 0 10px 40px rgba(0,0,0,.13);
}

body {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 36px;
}

.section-header { margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 10px;
}
.section-accent {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: .92rem;
  padding: 13px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--red-glow);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost-light {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 2px solid rgba(255,255,255,.2);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}

nav#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 999;
  height: var(--nav-h);
  background: rgba(13, 17, 23, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.nav-inner {
  height: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.nav-logo span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: block;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 7px;
  transition: all .18s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.09); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-social { display: flex; gap: 6px; }
.nav-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 1rem;
  transition: all .18s;
}
.nav-social a:hover { background: var(--red); color: var(--white); }

.nav-cta { font-size: .85rem; padding: 9px 20px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  background: transparent;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-glow1 {
  position: absolute;
  width: 680px; height: 680px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,57,70,.15) 0%, transparent 70%);
  right: 0; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.hero-glow2 {
  position: absolute;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.08) 0%, transparent 70%);
  left: -60px; bottom: 5%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,57,70,.12);
  border: 1px solid rgba(230,57,70,.3);
  color: #ff9aa2;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }

.hero-text h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.07;
  letter-spacing: -.04em;
  margin-bottom: 18px;
}
.hero-text h1 .name-red { color: var(--red); }

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
}
.hero-tagline {
  font-size: 1.2rem;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 42px;
}

.accent-red { color: #E63946; }

.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-lbl {
  font-size: .74rem;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-ring {
  position: absolute;
  width: 430px; height: 430px;
  border-radius: 50%;
  border: 1px solid rgba(230,57,70,.15);
  animation: spinRing 30s linear infinite;
}
.hero-ring2 {
  position: absolute;
  width: 350px; height: 350px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,.05);
}
@keyframes spinRing { to { transform: rotate(360deg); } }

.hero-img-frame {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.55), 0 0 0 2px rgba(255,255,255,.06);
}
.hero-img-frame img { display: block; width: 340px; }

#o-mne { padding: 100px 0; background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: center;
}

.about-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 34px;
}

.about-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all .22s;
}
.stat-card:hover {
  border-color: var(--red);
  box-shadow: 0 6px 28px var(--red-glow);
  transform: translateY(-3px);
}
.stat-num { font-size: 2rem; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 6px; }
.stat-lbl { font-size: .79rem; color: var(--muted); font-weight: 600; }

#sluzby { padding: 100px 0; background: var(--surface); }

.services-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 16px 24px;
  text-align: center;
  transition: all .22s;
  cursor: default;
}
.service-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.svc-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}
.si-r { background: rgba(230,57,70,.1); }
.si-b { background: rgba(59,130,246,.1); }
.si-g { background: rgba(16,185,129,.1); }
.si-p { background: rgba(139,92,246,.1); }
.si-o { background: rgba(245,158,11,.1); }

.service-card h3 { font-size: .83rem; font-weight: 700; color: var(--text); line-height: 1.35; }

#dovednosti { padding: 100px 0; background: var(--white); }

.skills-wrap { display: flex; flex-wrap: wrap; gap: 11px; }
.skill-tag {
  padding: 9px 20px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--surface);
  font-size: .87rem;
  font-weight: 700;
  color: var(--text);
  cursor: default;
  transition: all .18s;
}
.skill-tag:hover { border-color: var(--red); color: var(--red); background: rgba(230,57,70,.05); }
.skill-tag.hl { background: var(--dark); border-color: var(--dark); color: var(--white); }
.skill-tag.hl:hover { background: var(--red); border-color: var(--red); }

#projekty { padding: 100px 0; background: var(--surface); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.proj-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s;
}
.proj-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }

.proj-card img { width: 100%; height: 210px; object-fit: cover; display: block; }

.proj-body { padding: 22px; }
.proj-body h3 { font-size: .98rem; font-weight: 800; margin-bottom: 8px; }
.proj-body p { font-size: .84rem; color: var(--muted); line-height: 1.65; margin-bottom: 18px; }

.proj-links { display: flex; gap: 10px; flex-wrap: wrap; }
.proj-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--red);
  text-decoration: none;
  padding: 5px 13px;
  border-radius: 6px;
  background: rgba(230,57,70,.08);
  transition: all .18s;
}
.proj-link:hover { background: var(--red); color: var(--white); }

#kontakt { padding: 100px 0; background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: start;
}

.cf-form { display: flex; flex-direction: column; gap: 14px; }

.cf-form input,
.cf-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .18s, background .18s;
}
.cf-form input:focus,
.cf-form textarea:focus { border-color: var(--red); background: var(--white); }
.cf-form input::placeholder, .cf-form textarea::placeholder { color: #aab0bd; }
.cf-form textarea { resize: vertical; min-height: 140px; }

.cf-form button[type="submit"] { align-self: flex-start; padding: 14px 36px; font-size: 1rem; }

.hp-trap { display: none !important; visibility: hidden; }

.antispam-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  flex-wrap: wrap;
}
.antispam-row label, .antispam-label { font-size: .87rem; font-weight: 700; color: var(--muted); }
.antispam-q { font-weight: 800; color: var(--red); font-size: 1rem; }
.antispam-row input {
  width: 72px;
  padding: 8px 10px;
  text-align: center;
  font-size: .95rem;
  font-family: inherit;
  border: 2px solid var(--border);
  border-radius: 7px;
  outline: none;
  color: var(--text);
  background: var(--white);
  transition: border-color .18s;
}
.antispam-row input:focus { border-color: var(--red); }

.form-msg {
  display: none;
  padding: 13px 18px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
}
.form-msg.ok { display: block; background: rgba(16,185,129,.1); border: 1.5px solid rgba(16,185,129,.3); color: #065f46; }
.form-msg.err { display: block; background: rgba(230,57,70,.09); border: 1.5px solid rgba(230,57,70,.3); color: var(--red-dark); }

.contact-info h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.contact-info p { font-size: .9rem; color: var(--muted); line-height: 1.75; margin-bottom: 30px; }

.social-grid { display: flex; flex-wrap: wrap; gap: 11px; }
.soc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 700;
  transition: all .2s;
  border: 2px solid transparent;
}
.soc-btn:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.14); }
.soc-yt   { background: #ff0000; color: var(--white); }
.soc-ig   { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: var(--white); }
.soc-li   { background: #0077b5; color: var(--white); }
.soc-fb   { background: #1877f2; color: var(--white); }
.soc-mail { background: var(--dark3); color: var(--white); border-color: var(--border); }

#footer-cta {
  background: var(--dark);
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
#footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(230,57,70,.18), transparent 70%);
  pointer-events: none;
}
.footer-cta-inner { position: relative; z-index: 1; }
.footer-cta-inner p {
  font-size: clamp(.95rem, 2.5vw, 1.3rem);
  font-weight: 700;
  color: rgba(255,255,255,.8);
  margin-bottom: 26px;
}
.footer-cta-inner .btn { font-size: 1rem; padding: 14px 40px; }

#footer-copy {
  background: #080c11;
  padding: 14px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);
}
#footer-copy p {
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}
#footer-copy a {
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .18s;
}
#footer-copy a:hover { color: var(--red); }

.mob-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(13,17,23,.98);
  z-index: 998;
  flex-direction: column;
  padding: 28px 36px;
  gap: 6px;
  overflow-y: auto;
}
.mob-menu.open { display: flex; }
.mob-menu a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: color .15s;
}
.mob-menu a:hover { color: var(--red); }
.mob-cta-wrap { margin-top: 20px; }

@media (max-width: 1060px) {
  .services-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-links, .nav-social, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; padding: 60px 0; }
  .hero-btns { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-ring, .hero-ring2 { display: none; }
  .hero-img-frame img { width: 240px; }

  .about-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }

  .services-row { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .services-row { grid-template-columns: 1fr 1fr; }
}
.form-success { padding: 32px 24px; text-align: center; font-size: 1.1rem; font-weight: 600; color: var(--red); }
