* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Tahoma, Geneva, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.55;
}

img {
  max-width: 100%;
}

.wrap {
  width: min(1100px, calc(100% - 40px));
  margin: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  display: block;
  width: 170px;
  max-height: 68px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 12px 16px;
  color: #111;
  text-decoration: none;
  border-radius: 4px;
}

.nav a:hover,
.nav a:focus {
  background: #0d31ff;
  color: #fff;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 30px;
  cursor: pointer;
}

/* Hero banner: vzdy presne na sirku stranky, nikdy nevytvori horizontalni scroll. */
.hero {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.hero img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.section {
  padding: 70px 0;
}

.section.alt,
.form-section {
  background: #f4f7f8;
}

h1,
h2 {
  text-align: center;
  margin: 0 0 28px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
}

.lead,
.center {
  text-align: center;
}

.lead {
  max-width: 1000px;
  margin: 0 auto 36px;
}

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

.photo-grid img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 3px;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 46px;
  margin: 0 auto 40px;
}

.services div {
  position: relative;
  min-width: 0;
  padding-left: 28px;
}

.services div::before {
  content: "›";
  position: absolute;
  left: 2px;
  top: -5px;
  font-size: 28px;
  font-weight: bold;
  color: #0d31ff;
}

.why {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.why img {
  width: 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .7fr 1.2fr 1.4fr 1fr;
  gap: 26px;
  align-items: center;
  margin-top: 36px;
  text-align: center;
}

.contact-grid > * {
  min-width: 0;
}

.contact-grid a {
  color: inherit;
  overflow-wrap: anywhere;
}

.contact-icon-large {
  width: 100px;
}

.inline-icon {
  width: 14px;
  vertical-align: middle;
}

.inline-icon.mail {
  width: 18px;
}

.form-wrap {
  max-width: 760px;
}

.form-wrap form {
  display: grid;
  gap: 18px;
}

.form-wrap label {
  display: grid;
  gap: 7px;
  font-weight: bold;
}

.form-wrap input,
.form-wrap textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #c7cfd3;
  border-radius: 4px;
  padding: 12px 13px;
  background: #fff;
  font: inherit;
  font-weight: normal;
}

.form-wrap input:focus,
.form-wrap textarea:focus {
  outline: 2px solid #0d31ff;
  outline-offset: 1px;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.form-footer button {
  border: 0;
  border-radius: 4px;
  background: #0d31ff;
  color: #fff;
  padding: 12px 26px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.form-footer button:hover {
  filter: brightness(.9);
}

.privacy-note {
  font-size: 13px;
  color: #596268;
  margin: 0;
}

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

.form-status {
  display: none;
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 4px;
}

.form-status.ok {
  display: block;
  background: #e8f7ed;
  border: 1px solid #9ed0ad;
}

.form-status.error {
  display: block;
  background: #fff0f0;
  border: 1px solid #e1a8a8;
}

footer {
  width: 100%;
  background: #000;
  color: #fff;
  padding: 28px 0;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, 1100px);
  }

  .header-inner {
    min-height: 74px;
  }

  .brand img {
    width: 135px;
  }

  .menu-button {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    text-align: center;
  }

  .section {
    padding: 48px 0;
  }

  .photo-grid,
  .services,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid img {
    height: auto;
    max-height: 340px;
  }

  .services {
    gap: 14px;
  }

  .why {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .why img {
    margin: auto;
  }

  .contact-grid {
    gap: 22px;
  }

  .form-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-footer button {
    width: 100%;
  }
}
