:root {
  --navy: #0c2437;
  --navy-2: #12364f;
  --green: #9EC105;
  --green-dark: #7f9c04;
  --ink: #14212b;
  --muted: #60717d;
  --line: #dce6ea;
  --paper: #f7faf9;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(12, 36, 55, 0.16);
  --header-offset: 112px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: rgba(12, 36, 55, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding: 6px 10px;
  background: var(--white);
  border-radius: 8px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
}

.nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 600;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--white);
}

.nav .nav-gallery-link {
  display: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  max-width: 100%;
}

.intro > *,
.benefits > *,
.portfolio > *,
.contact > *,
.service-card,
.reference-card,
.gallery-item,
.steps article {
  min-width: 0;
}

h1,
h2,
h3,
p,
.nav a,
.btn {
  overflow-wrap: anywhere;
}

.header-cta,
.btn-primary {
  color: var(--white);
  background: var(--green);
}

.header-cta:hover,
.btn-primary:hover {
  background: var(--green-dark);
}

.btn-secondary {
  color: var(--navy);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(12, 36, 55, 0.12);
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

#sluzby,
#vyhody,
#postup,
#kontakt {
  scroll-margin-top: var(--header-offset);
}

.hero {
  scroll-margin-top: 0;
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 36, 55, 0.82) 0%, rgba(12, 36, 55, 0.52) 44%, rgba(12, 36, 55, 0.10) 100%),
    linear-gradient(0deg, rgba(12, 36, 55, 0.52), rgba(12, 36, 55, 0.04));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 36px));
  margin: 0 auto;
  padding: 148px 0 76px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(29px, 4.2vw, 55px);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 span {
  white-space: nowrap;
}

h2 {
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-facts span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.intro {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.intro > p {
  margin-top: 35px;
}

.intro h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
}

.intro p:last-child,
.benefit-copy p,
.portfolio-copy p,
.contact-panel p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-card {
  overflow: hidden;
  min-height: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(12, 36, 55, 0.08);
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card div {
  padding: 24px;
}

.service-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-weight: 800;
}

.benefits {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 48px;
  align-items: start;
}

.benefit-copy {
  position: sticky;
  top: 110px;
}

.benefit-copy h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.benefit-list article,
.steps article {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benefit-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 19px;
}

.benefit-list p,
.steps p,
.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.about-text {
  display: grid;
  gap: 18px;
  margin-top: 35px;
  padding: 30px;
  color: var(--muted);
  font-size: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(12, 36, 55, 0.08);
}

.about-text p {
  margin-bottom: 0;
}

.process {
  width: 100%;
  max-width: none;
  padding: 92px clamp(18px, 4vw, 56px);
  background: var(--navy);
}

.process .section-heading {
  width: min(1180px, 100%);
  margin-inline: auto;
}

.process h2 {
  color: var(--white);
  max-width: 780px;
  overflow-wrap: anywhere;
}

.steps {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.steps article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.13);
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 20px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-weight: 800;
}

.steps h3 {
  color: var(--white);
}

.steps p {
  color: rgba(255, 255, 255, 0.72);
}

.portfolio {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 48px;
  align-items: center;
}

.portfolio-strip {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 14px;
}

.portfolio-strip img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portfolio-strip img:first-child {
  grid-row: span 2;
}

.references {
  background: #eaf2ed;
}

.references-inner {
  padding-top: 88px;
}

.references .section-heading {
  max-width: 820px;
}

.references .section-heading p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.reference-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 18px;
}

.reference-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  display: grid;
  align-items: end;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(12, 36, 55, 0.14);
}

.reference-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(58%, 230px);
  background: linear-gradient(180deg, rgba(12, 36, 55, 0), rgba(12, 36, 55, 0.88));
}

.reference-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.reference-card:hover img {
  transform: scale(1.04);
}

.reference-card div {
  position: relative;
  z-index: 1;
  padding: 24px;
}

.reference-card span {
  display: inline-block;
  margin-bottom: 9px;
  color: #d8f36d;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.reference-card h3 {
  margin: 0;
  color: var(--white);
}

.reference-card p {
  max-width: 520px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.reference-large {
  grid-row: span 2;
  min-height: 638px;
}
.reference-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.gallery-page {
  padding-top: var(--header-offset);
}

.gallery-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.gallery-hero .section {
  padding-top: 84px;
  padding-bottom: 56px;
}

.gallery-hero h1 {
  max-width: none;
  font-size: clamp(28px, 3.5vw, 46px);
  white-space: nowrap;
}

.gallery-hero p:not(.section-label) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.gallery-section {
  padding-top: 56px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-item {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(12, 36, 55, 0.08);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 280ms ease;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
  transform: scale(1.04);
}

.gallery-item span {
  display: block;
  padding: 14px 16px 16px;
  color: var(--navy);
  font-weight: 800;
}
body.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 96px 48px;
  background: rgba(7, 23, 35, 0.92);
}

.gallery-lightbox.is-open {
  display: flex;
}

.lightbox-content {
  width: min(1040px, 100%);
  margin: 0;
  color: var(--white);
}

.lightbox-controls {
  display: contents;
}

.lightbox-image {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.lightbox-caption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  text-align: center;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-size: 36px;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-arrow:hover,
.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible {
  background: var(--green);
  outline: none;
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}
.contact {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 34px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 92px;
  padding: 42px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact h2 {
  color: var(--white);
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-details {
  display: grid;
  gap: 3px;
  margin: 24px 0;
  color: rgba(255, 255, 255, 0.84);
  font-style: normal;
}

.contact-details strong {
  color: var(--white);
  font-size: 21px;
}

.contact-details a {
  color: var(--white);
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border-radius: 8px;
}

.form-status {
  margin: 0;
  padding: 12px 14px;
  color: #245300;
  background: #edf8d6;
  border: 1px solid #b9d878;
  border-radius: 6px;
  font-weight: 700;
}

.form-status.is-error {
  color: #7b1d1d;
  background: #fff0f0;
  border-color: #e8aaaa;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(158, 193, 5, 0.22);
  border-color: var(--green);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.7);
  background: #071723;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 700;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-page {
    padding-top: 5px;
  }


  .site-header {
    position: sticky;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
    order: 2;
    margin-left: auto;
  }

  .header-cta {
    order: 1;
  }

  .nav {
    order: 3;
    width: 100%;
    max-height: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: max-height 220ms ease, padding 220ms ease, opacity 160ms ease, visibility 0s linear 220ms;
  }

  .site-header.menu-open .nav {
    max-height: 240px;
    padding: 8px 0 2px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav a {
    padding: 9px 10px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
  }

  .nav .nav-gallery-link {
    display: block;
  }

  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(255, 255, 255, 0.16);
  }

  .hero {
    min-height: calc(100vh - var(--header-offset));
    min-height: calc(100svh - var(--header-offset));
    min-height: calc(100dvh - var(--header-offset));
  }

  .hero-content {
    padding-top: 96px;
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }

  .intro,
  .benefits,
  .portfolio,
.contact {
    grid-template-columns: 1fr;
  }

  .intro > p {
    margin-top: 0;
  }

  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reference-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 330px;
  }

  .benefit-copy {
    position: static;
  }

  .about-text {
    margin-top: 0;
  }

  .service-grid,
  .steps,
  .benefit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .gallery-hero h1 {
    font-size: clamp(25px, 8vw, 34px);
    white-space: normal;
  }

  .gallery-lightbox {
    flex-direction: column;
    padding: 64px 16px 32px;
  }

  .lightbox-arrow {
    position: static;
    width: 42px;
    height: 42px;
    font-size: 30px;
  }

  .lightbox-controls {
    display: flex;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 16px;
  }

  .lightbox-prev,
  .lightbox-next {
    right: auto;
    left: auto;
  }


  .reference-actions .btn {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }


  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand {
    padding: 5px 8px;
  }

  .brand-logo {
    height: 38px;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    font-size: 14px;
  }

  .header-cta {
    min-height: 40px;
    padding: 9px 14px;
  }

  h1 {
    font-size: 27px;
  }

  .section {
    padding: 64px 0;
  }

  .process {
    padding-inline: 18px;
  }

  .process .section-heading {
    max-width: 100%;
  }

  .process h2 {
    max-width: 11ch;
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.12;
  }

  .service-grid,
  .steps,
  .benefit-list,
  .reference-grid,
  .portfolio-strip {
    grid-template-columns: 1fr;
  }

  .reference-card,
  .reference-large {
    grid-column: auto;
    grid-row: auto;
    min-height: 330px;
  }

  .portfolio-strip img:first-child {
    grid-row: auto;
  }
.contact {
    width: min(100% - 28px, 1180px);
    padding: 24px;
  }

  .hero-actions .btn,
  .contact-actions .btn,
  .contact-form .btn {
    width: 100%;
  }
}

@media (max-width: 900px) and (max-height: 740px) {
  .hero-content {
    padding-top: 40px;
    padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  }

  .hero-text {
    margin-bottom: 20px;
    font-size: 17px;
  }

  .hero-facts {
    gap: 6px;
    margin-top: 20px;
  }

  .hero-facts span {
    padding: 6px 10px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .hero-content {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: clamp(23px, 7.2vw, 27px);
  }

  .hero h1 span {
    white-space: normal;
  }
}

@media (max-width: 360px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) 10px max(12px, env(safe-area-inset-left, 0px));
  }

  .brand {
    min-width: 0;
    width: fit-content;
    max-width: 122px;
    padding: 4px 7px;
  }

  .brand-logo {
    width: 100%;
    height: auto;
    max-height: 34px;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .header-cta {
    display: none;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .nav a {
    min-width: 0;
    padding: 8px 5px;
    font-size: 13px;
  }

  .section,
  .hero-content {
    width: calc(100% - 24px);
  }

  .process {
    padding-inline: 12px;
  }

  .contact {
    width: calc(100% - 20px);
    padding: 18px;
  }

  .contact-form {
    padding: 16px;
  }

  .hero-facts span {
    padding-inline: 8px;
    font-size: 13px;
  }
}

@media (max-width: 290px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .site-header.menu-open .nav {
    max-height: 320px;
  }
}
