/* nibeco.cz – statická verze původního webu (rozměry a barvy převzaté 1:1) */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  background: #fff;
  color: #666;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  margin: 0;
  padding-bottom: 10px;
  font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
}

p { margin: 0; }

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }

/* ---------- kostra ---------- */

.row {
  position: relative;
  width: 80%;
  margin: 0 auto;
}

/* ---------- úvod s videem ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 8vw;
  background: #fff;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.hero__row {
  display: grid;
  grid-template-columns: 20.8333% 73.6111%;
  column-gap: 5.5556%;
  padding: 27px 0 95px;
}

.hero__logo img { width: 100%; }

.hero h1 {
  margin-bottom: 34px;
  color: #333;
  font-size: min(90px, 7vw); /* dlouhé „STROJÍRENSTVÍ“ se jinak mezi 981–1280 px nevejde do sloupce */
  line-height: 1.1em;
}

/* ---------- o nás (černá sekce) ---------- */

.intro {
  padding: 54px 0;
  background: #000;
}

.intro__text { padding: 27px 0; }

.intro__lead {
  margin-bottom: 2.75%;
  color: #e09900;
  font-size: 52px;
  line-height: 1.2em;
}

.intro__about {
  color: #fff;
  font-family: 'Inter', Helvetica, Arial, Lucida, sans-serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2em;
  padding-bottom: 10px;
}

.intro__visual { padding: 27px 0; }

.visual {
  position: relative;
  margin-bottom: 2.75%;
}

.visual__photo {
  width: 60%;
  margin: 0 auto;
  padding: 6% 0;
}
.visual__photo img {
  width: 100%;
  border-radius: 50%;
}

.visual__shape-sm,
.visual__shape-lg,
.visual__logo { position: absolute; }

.visual__shape-sm {
  top: 0;
  left: 0;
  width: 10%;
  opacity: .5;
  transform: translateX(100%);
}

.visual__shape-lg {
  bottom: 0;
  left: 0;
  width: 20%;
}

.visual__logo {
  top: 0;
  right: 0;
  width: 12%;
  opacity: .66;
  border-radius: 1vw;
  overflow: hidden;
}

.visual__shape-sm,
.visual__shape-lg,
.visual__logo { max-width: none; }

/* ---------- služby ---------- */

.services {
  position: relative;
  padding: 0 0 54px;
  background: #fff;
}

.services::before,
.services::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  background-repeat: no-repeat;
}
.services::before {
  top: 0;
  height: 50px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSI1MHB4IiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMDAwMCI+PHBhdGggZD0iTTE1NiAzNS41MWw5NS40NiAzNC44NCAxMjAuMDQuMjQgNzEuNSAzMy4zNSA5MC4wOS0zLjkxTDY0MCAxMzcuNjVsMTAyLjM5LTM3LjE3IDg1LjU1IDEwLjY1IDg4LjExLTcuMTlMOTkyIDY1LjI4bDczLjIxIDUuMzEgNjYuNzktMjIuMSA3Ny0uNDJMMTI4MCAwSDBsNjQuOCAzOC42OSA5MS4yLTMuMTh6Ii8+PC9nPjwvc3ZnPg==");
  background-size: 100% 50px;
}
.services::after {
  bottom: 0;
  height: 60px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSI2MHB4IiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iIzAwMDAwMCI+PHBhdGggZD0iTTAgMGw2NC44IDM4LjY5IDkxLjItMy4xOCA5NS40NSAzNC44NCAxMjAuMDQuMjQgNzEuNSAzMy4zNSA5MC4wOC0zLjkxIDEwNi45MSAzNy42MiAxMDIuMzgtMzcuMTcgODUuNTUgMTAuNjUgODguMTEtNy4xOSA3NS45NS0zOC42NiA3My4yMSA1LjMxIDY2Ljc4LTIyLjEgNzctLjQyIDcxLTQ4LjA3djE0MEgwVjB6Ii8+PC9nPjwvc3ZnPg==");
  background-size: 100% 60px;
}

.services__row {
  display: grid;
  grid-template-columns: 20.8333% 20.8333% 47.2222%;
  column-gap: 5.5556%;
  align-items: start;
  padding: 106px 0 27px;
}

.service h3 {
  color: #e09900;
  font-size: 20px;
  line-height: 1.4em;
}

.service p {
  margin-bottom: 32px;
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  line-height: 1.6em;
}
.services__col .service:last-child p { margin-bottom: 0; }
.service strong { font-weight: 700; }

.services__photo img {
  width: 100%;
  border-radius: 30px;
}

/* ---------- kontakt (patička) ---------- */

.contact {
  overflow: hidden;
  padding-top: 2px;
  background: #000;
}

.contact__row {
  display: grid;
  grid-template-columns: 73.6111% 20.8333%;
  column-gap: 5.5556%;
  align-items: start;
}

.contact__text { padding: 32px 0; }

.contact__cta {
  margin-bottom: 51px;
  color: #f90;
}

.contact__info {
  color: #fff;
  font-size: 15px;
}
.contact__info p + p { margin-top: 15px; }
.contact__web { color: #2ea3f2; }

.contact__logo { padding-top: 33px; }
.contact__logo img { width: 100%; }

/* ---------- přepínač jazyků ---------- */

.lang {
  position: fixed;
  right: 10%;
  bottom: 0;
  z-index: 100;
  min-width: 117px;
  padding: 11px 1px;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .12);
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
}

.lang__item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 15px;
  border: 0;
  background: none;
  color: #143852;
  font: inherit;
  cursor: pointer;
}
.lang__item:hover { color: #000; text-decoration: none; }
.lang__item img { width: 18px; height: 13.5px; }

.lang__other { display: none; }
.lang:hover .lang__other,
.lang:focus-within .lang__other { display: block; }

/* ---------- 404 ---------- */

.notfound {
  min-height: 100vh;
  padding: 15vh 0;
  background: #000;
  color: #fff;
}
.notfound h1 { color: #e09900; font-size: 52px; line-height: 1.2em; }
.notfound p { margin: 20px 0 40px; font-size: 18px; }
.notfound a { color: #2ea3f2; font-weight: 700; }
.notfound img { width: 240px; }

/* ---------- tablet a mobil ---------- */

@media (max-width: 980px) {
  .hero { padding-top: 30px; }
  .hero__row {
    display: block;
    padding: 30px 0 95px;
  }
  .hero__logo { margin-bottom: 30px; }
  .hero h1 { font-size: 40px; }

  .intro { padding: 50px 0; }
  .intro__text,
  .intro__visual { padding: 30px 0; }
  .intro__lead { margin-bottom: 30px; font-size: 32px; }
  .intro__about { font-size: 32px; }
  .visual { margin-bottom: 30px; }

  .services { padding-bottom: 50px; }
  .services__row {
    display: block;
    padding: 106px 0 30px;
  }
  .services__col { margin-bottom: 30px; }
  .service h3 { font-size: 16px; }
  .service p { margin-bottom: 30px; }

  .contact__row { display: block; }
  .contact__text { padding: 30px 0 0; }
  .contact__cta { margin-bottom: 50px; }
  .contact__logo { padding: 60px 0 0; }
}

@media (max-width: 767px) {
  .hero h1 { font-size: 35px; }
  .intro__lead { font-size: 25px; }
  .intro__about { font-size: 20px; }
  .service h3 { font-size: 20px; }
  .notfound h1 { font-size: 32px; }
}
