:root {
  --pc-green: #264E44;
  --pc-green-deep: #1F3F37;
  --pc-green-soft: #D9E8E3;
  --paper: #F7F5F1;
  --paper-alt: #EFECE5;
  --white: #FFFFFF;
  --ink: #1A2420;
  --ink-mid: #3D4845;
  --ink-muted: #475149;
  --card-mint: #D9E8E3;
  --card-blue: #DDE3EB;
  --card-sand: #EDE4D2;
  --card-peach: #EED9D2;
  --card-lavender: #DFDCE8;
  --line: #D4CFBF;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter Tight", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--pc-green);
  outline-offset: 2px;
  border-radius: 2px;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 500;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 48px; }
@media (max-width: 1024px) { .wrap { padding: 0 32px; } }
@media (max-width: 767px)  { .wrap { padding: 0 20px; } }

.grid12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
@media (max-width: 767px) { .grid12 { gap: 16px; } }

section { padding: 60px 0; }
@media (max-width: 1024px) { section { padding: 40px 0; } }
@media (max-width: 767px)  { section { padding: 32px 0; } }

:target, section[id], main[id] { scroll-margin-top: 88px; }

.section-label {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 18px;
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 60px 0;
}
.section-label.hero-meta { margin-bottom: 0; }
.section-label::before {
  content: "";
  display: inline-block;
  width: 36px; height: 1px;
  background: currentColor;
}

.section-title {
  font-family: "Inter Tight", system-ui, sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--ink);
  margin: 24px 0 0 0;
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  color: var(--pc-green);
  font-weight: 400;
}

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 72px;
  background: rgba(247, 245, 241, 0.85);
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-text {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
  padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--pc-green);
  transition: right 0.3s ease;
}
.nav-links a:hover { color: var(--pc-green); }
.nav-links a:hover::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.lang {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  display: inline-flex; gap: 6px;
}
.lang button {
  background: transparent; border: 0; padding: 0; margin: 0;
  font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer;
}
.lang .active { color: var(--ink); }
.lang .sep { color: var(--line); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Inter Tight", sans-serif;
  font-size: 14px; font-weight: 500;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  line-height: 1;
  letter-spacing: -0.005em;
}
.btn.large { padding: 16px 28px; font-size: 15px; }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--pc-green); color: var(--white); }
.btn-primary:hover { background: var(--pc-green-deep); transform: translateY(-1px); }

.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); transform: translateY(-1px); }

.btn-on-green { background: var(--white); color: var(--pc-green); }
.btn-on-green:hover { background: var(--pc-green-soft); color: var(--pc-green-deep); transform: translateY(-1px); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ink);
}
.hamburger span { display: block; width: 20px; height: 1.5px; background: currentColor; position: relative; }
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: currentColor;
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

/* Hero */
.hero {
  background: var(--pc-green);
  color: var(--white);
  padding: 140px 0 120px;
  min-height: 85vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero .wrap { position: relative; z-index: 2; width: 100%; }
.hero-deco {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 70%;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}
.hero-inner { grid-column: 1 / -1; }
@media (max-width: 1024px) { .hero-inner { grid-column: 1 / -1; } }

.hero-meta { color: var(--pc-green-soft); font-size: 20px; letter-spacing: 0.2em; }

.hero-title {
  font-family: "Inter Tight", sans-serif;
  font-weight: 300;
  font-size: clamp(52px, 7.2vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--white);
  margin: 32px 0 0 0;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  font-weight: 400;
  color: var(--pc-green-soft);
}

.hero-lede {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--pc-green-soft);
  max-width: 760px;
  margin: 40px 0 0 0;
  font-weight: 300;
  letter-spacing: -0.015em;
}

.hero-actions { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }

/* About */
.about-grid { align-items: start; }
.about-head { grid-column: 1 / span 5; }
.about-body { grid-column: 7 / span 6; max-width: 720px; }
.about-body p {
  font-size: 17px; line-height: 1.7; color: var(--ink-mid); margin: 0 0 20px 0;
}
.about-body p:last-child { margin-bottom: 0; }
@media (max-width: 1024px) {
  .about-head, .about-body { grid-column: 1 / -1; }
  .about-body { margin-top: 32px; }
}

/* Expertises */
.expertises { background: var(--paper-alt); }
.exp-head { grid-column: 1 / -1; }
@media (max-width: 1024px) { .exp-head { grid-column: 1 / -1; } }

.exp-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.exp-card {
  border-radius: 8px;
  padding: 48px 44px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 56px;
  align-items: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  grid-column: 1 / span 12;
}
.exp-card .head-col { grid-column: 1; display: flex; flex-direction: column; gap: 20px; }
.exp-card .head-col + .subs { grid-column: 2; }
.exp-card .head { display: flex; align-items: flex-start; gap: 16px; }
.exp-card .icon { width: 40px; height: 40px; color: var(--pc-green-deep); flex: none; }
.exp-card h3 {
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
}
.exp-card .desc {
  color: var(--ink-mid);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
  max-width: 60ch;
}

.subs {
  list-style: none; padding: 0; margin: 16px 0 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(31,63,55,0.18);
}
.sub {
  position: relative;
  padding: 22px 24px 24px 24px;
  border-bottom: 1px solid rgba(31,63,55,0.18);
  cursor: default;
  transition: background 0.25s ease;
}
.sub:not(:nth-child(3n)):not(:last-child) { border-right: 1px solid rgba(31,63,55,0.18); }
.sub:nth-last-child(-n+3) { border-bottom: 0; }
.sub:hover { background: rgba(31,63,55,0.04); }
.sub:hover .t { color: var(--pc-green-deep); }
.sub .sub-head { display: block; margin-bottom: 10px; }
.sub .t {
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.25;
  display: block;
}
.sub .d {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-mid);
  display: block;
  max-width: 38ch;
}

.card-proj { background: var(--card-mint); }
.card-kreat { background: var(--card-blue); }
.card-web { background: var(--card-sand); }
.card-vzdel { background: var(--card-peach); }
.card-ai { background: var(--card-lavender); }

@media (max-width: 1024px) {
  .exp-card { grid-template-columns: 1fr; gap: 28px; padding: 36px 28px; }
  .exp-card .head-col, .exp-card .head-col + .subs { grid-column: 1; }
  .subs { grid-template-columns: repeat(2, 1fr) !important; }
  .sub { border-right: 0 !important; }
  .sub:not(:nth-child(2n)):not(:last-child) { border-right: 1px solid rgba(31,63,55,0.18) !important; }
  .sub:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 600px) {
  .subs { grid-template-columns: 1fr !important; }
  .sub, .sub:not(:nth-child(2n)):not(:last-child) { border-right: 0 !important; }
  .sub { border-bottom: 1px solid rgba(31,63,55,0.18) !important; }
  .sub:last-child { border-bottom: 0 !important; }
  .exp-card { padding: 32px 24px; }
  .exp-card h3 { font-size: 28px !important; }
}

/* Experts */
.experts .exp-people {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}
.person {
  grid-column: span 4;
  background: var(--white);
  border-radius: 6px;
  padding: 24px 24px 28px;
  display: flex; flex-direction: column;
}
@media (max-width: 1024px) { .person { grid-column: span 6; } }
@media (max-width: 600px)  { .person { grid-column: 1 / -1; } }

.person-photo {
  aspect-ratio: 4 / 5;
  background: var(--paper-alt);
  border-radius: 4px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.person-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: saturate(0.95);
  transition: transform 0.4s ease, filter 0.4s ease;
}
.person:nth-child(1) .person-photo img { object-position: center 35%; }
.person:nth-child(2) .person-photo img { object-position: center 30%; }
.person:nth-child(3) .person-photo img { object-position: center 40%; transform: scale(1.15); transform-origin: center 40%; }
.person:nth-child(4) .person-photo img { object-position: center 35%; }
.person:nth-child(5) .person-photo img { object-position: center 30%; }
.person:hover .person-photo img { filter: saturate(1); }
.person-photo .initials {
  position: absolute; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  font-family: "Inter Tight", sans-serif;
  font-weight: 300; font-size: 72px; letter-spacing: -0.05em;
  color: var(--pc-green); opacity: 0.4;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(31,63,55,0.04) 10px 11px);
}
.person-photo .initials.show { display: flex; }
.person .spec {
  color: var(--pc-green-deep);
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.3;
  text-transform: none;
  display: block;
  margin-bottom: 16px;
}
.person .name {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0 0 10px 0;
  color: var(--ink);
}
.person .role {
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.5;
  margin: 0;
  font-weight: 400;
}
.person .linkedin {
  margin-top: auto;
  padding-top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--pc-green);
  font-size: 12px; letter-spacing: 0.04em;
}
.person .linkedin:hover { color: var(--pc-green-deep); }
.person .linkedin svg { width: 16px; height: 16px; }

.experts-cta {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.experts-cta p {
  font-family: "Inter Tight", sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 72ch;
  margin: 0;
}

/* Contact */
.contact { background: var(--paper-alt); }
.contact-grid { gap: 24px; align-items: start; }
.contact-left { grid-column: 7 / span 6; grid-row: 1; }
.contact-right { grid-column: 1 / span 5; grid-row: 1; }
@media (max-width: 1024px) {
  .contact-left, .contact-right { grid-column: 1 / -1; grid-row: auto; align-self: stretch; }
  .contact-right { order: 1; margin-top: 0; }
  .contact-left { order: 2; margin-top: 48px; }
}
.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .k {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-mid);
  padding-top: 4px;
}
.contact-list .v { color: var(--ink); font-size: 16px; line-height: 1.5; }
.contact-list a.v { transition: color 0.2s ease; }
.contact-list a.v:hover { color: var(--pc-green-deep); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 28px; max-width: 320px; }
.field { position: relative; display: flex; flex-direction: column; }
.field label {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-mid);
  margin-bottom: 10px;
}
.field input, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--ink);
  padding: 10px 0 12px; outline: none; resize: vertical;
  transition: border-color 0.2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-muted); opacity: 0.55; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--pc-green); border-bottom-width: 2px; padding-bottom: 11px; }
.field.invalid input, .field.invalid textarea { border-bottom-color: #c2410c; }
.err-msg { display: none; margin-top: 8px; font-size: 13px; color: #c2410c; }
.field.invalid .err-msg { display: block; }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 8px; }

/* Documents */
.documents { background: var(--paper); border-top: 1px solid var(--line); }
.documents .doc-head { grid-column: 1 / -1; }
.doc-list { grid-column: 1 / -1; list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.doc-row {
  display: flex; align-items: center; gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: padding-left 0.2s ease, color 0.2s ease;
}
.doc-row:first-child { border-top: 1px solid var(--line); }
.doc-row:hover { padding-left: 12px; color: var(--pc-green); }
.doc-icon { flex: none; width: 22px; height: 22px; color: var(--ink-muted); transition: color 0.2s ease; }
.doc-row:hover .doc-icon { color: var(--pc-green); }
.doc-main { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; }
.doc-title { font-family: "Inter Tight", sans-serif; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.doc-meta { font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); }
.doc-action { flex: none; display: inline-flex; align-items: center; gap: 8px; font-family: "JetBrains Mono", monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-muted); transition: color 0.2s ease; }
.doc-row:hover .doc-action { color: var(--pc-green); }
.doc-action svg { width: 14px; height: 14px; }
@media (max-width: 600px) {
  .doc-action span { display: none; }
}

/* Footer */
footer[role="contentinfo"] {
  background: var(--ink); color: var(--white);
  padding: 72px 0 40px;
}
footer .wrap .inner { display: flex; flex-direction: column; gap: 32px; }
.footer-top { display: flex; flex-direction: column; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand .logo { color: var(--white); }
.footer-brand .logo-text { color: var(--white); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.footer-contact {
  list-style: none; padding: 0; margin: 8px 0 0 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px; max-width: 680px;
}
.footer-contact li { display: flex; flex-direction: column; gap: 8px; }
.footer-contact .fc-k {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(217,232,227,0.55);
}
.footer-contact .fc-v {
  color: var(--pc-green-soft); font-size: 14px; line-height: 1.5;
  font-family: "Inter Tight", sans-serif;
}
.footer-contact a.fc-v { border-bottom: 1px solid rgba(217,232,227,0.3); align-self: flex-start; }
.footer-contact a.fc-v:hover { color: var(--white); border-color: var(--white); }
@media (max-width: 600px) {
  .footer-contact { grid-template-columns: 1fr; gap: 20px; }
}
.footer-bottom {
  border-top: 1px solid rgba(217,232,227,0.15);
  padding-top: 24px; display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--pc-green-soft);
  font-family: "JetBrains Mono", monospace; letter-spacing: 0.06em;
}
.footer-bottom a { color: var(--white); border-bottom: 1px solid rgba(255,255,255,0.3); }
.footer-bottom a:hover { border-color: var(--white); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--paper); padding: 24px;
  display: flex; flex-direction: column; gap: 32px;
  transform: translateY(-100%); transition: transform 0.32s ease;
  visibility: hidden;
}
.mobile-menu.open { transform: translateY(0); visibility: visible; }
.mobile-menu .m-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .m-close {
  background: none; border: 0; font-size: 32px; line-height: 1;
  color: var(--ink); cursor: pointer; padding: 8px; width: 44px; height: 44px;
}
.mobile-menu .m-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mobile-menu .m-links a {
  display: block; padding: 16px 0; font-family: "Inter Tight", sans-serif;
  font-size: 28px; font-weight: 400; letter-spacing: -0.02em;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-menu .m-cta { margin-top: auto; padding-bottom: 24px; }
.mobile-menu .m-cta .btn { width: 100%; justify-content: center; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 600px) {
  .hero { padding: 100px 0 80px; min-height: 70vh; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .footer-bottom { flex-direction: column; }
}
