/* Elements */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir", serif;
  color: #40485a;
}

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

h1 {
  font-size: 55px;
  font-weight: bold;
  text-align: center;
  line-height: 1.24;
  margin: 0 0 22px;
}

h2 {
  font-size: 50px;
  font-weight: bold;
  text-align: left;
  line-height: 1.24;
  margin: 0 0 22px;
}

h3 {
  font-size: 35px;
  font-weight: bold;
  text-align: left;
  line-height: 1.24;
  margin: 0 0 22px;
}

h4 {
  width: 75px;
  height: 14px;
  line-height: 1.24;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 2.5px;
}

p {
  font-size: 22px;
  line-height: 1.47;
  text-align: left;
}

ul {
  font-size: 22px;
  line-height: 1.47;
  text-align: left;
  margin: 0;
}

/* Header */

.header {
  background-color: #40485a;
  width: 100%;
  height: 100px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  line-height: 1.24;
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}

.header-logo {
  height: 100px;
  width: 250px;
}

.menu {
  color: #ffffff;
  display: flex;
  flex-direction: row;
}
.menu-item {
  margin: 0 25px;
  padding: 0 1px 2px 4px;
}
.menu-item.funny-little-bar {
  border-bottom: 4px solid #6be3d8;
}

.button {
  color: #6be3d8;
  border-radius: 2px;
  border: solid 2px #6be3d8;
  padding: 12px 25px 10px;
  margin: 0 50px 0 50px;
}

/* Body */

.row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  min-height: 720px;
  width: 100%;
}

.row.vertical {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 0 10%;
}

.row > div {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.row.vertical > div {
  width: 100%;
  max-width: 800px;
}

.text {
  padding: 100px 100px;
}

.row.vertical .text {
  padding: 100px 100px 0;
}

.cartoon {
  overflow: hidden;
}

.row.vertical .cartoon {
  overflow: visible;
}

.cartoon img {
  display: block;
  width: 100%;
  transform: scale(1.2);
}

.row.vertical h2 {
  text-align: center;
}

#one .text {
  background-color: #6be3d8;
  align-items: center;
}
#one .cartoon {
  background-color: rgba(189, 218, 231, 0.25);
}
#one p {
  text-align: center;
}
#two img {
  margin-left: 5%;
}
#three {
  background-color: #dbe7fd;
}
#three img {
  margin-left: -5%;
}
#four img {
  margin-left: -3%;
}
#five {
  background-color: #fed7c8;
}
#five img {
  margin-left: -4%;
}
#six img {
  margin-left: -3%;
}
#eight img {
  margin-left: -2%;
}
#seven {
  background-color: rgba(189, 218, 231, 0.48);
}
#seven .text {
  font-size: 70px;
}
#nine {
  background-color: #dbe7fd;
}

.clients {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.clients > p {
  margin: 0;
}
.logos {
  align-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin: 25px 0 60px;
}
.logos > * {
  height: 36px;
  margin: 5px 25px;
}
#vetzpetz {
  margin-bottom: 20px;
  margin-right: 35px;
}
#parade {
  height: 25px;
}
#tr8 {
  height: 86px;
}
#ethereal {
  height: 54px;
}

/* Footer */

.footer {
  background-color: #dbe7fd;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  padding: 60px 60px 60px;
  font-family: "Avenir", serif;
  color: #40485a;
}

.info {
  background-color: #dbe7fd;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 15px;
}

.info p {
  opacity: 0.53;
  font-size: 14px;
  margin: 0;
}

.monogram img {
  height: 72px;
}

.monogram p {
  margin: 0 0 0 20px;
  width: 233px;
  height: 29px;
  font-family: MaisonNeue;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  color: #40485a;
}

.column p {
  font-size: 18px;
  line-height: 1.44;
  color: #40485a;
  opacity: 0.53;
  margin: 0 0 10px;
}

.navigation {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: flex-start;
}

.column {
  width: 200px;
}

.pics > div {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

#contacts-row {
  min-height: inherit;
  align-items: center;
}

.contacts {
  margin: 60px 0;
  align-self: stretch;
  display: flex;
  flex-direction: row;
  justify-content: center;
  font-size: 60px;
}

.contacts > * {
  margin: 18px 36px;
}

#ten {
  background-color: #ffffff;
}
#HOT {
  background-color: #dbe7fd;
}

@media only screen and (min-width: 320px) and (max-width: 767px) {
  h1 {
    font-size: 48px;
    line-height: 1.15;
  }

  h2 {
    font-size: 44px;
    line-height: 1.15;
  }

  p,
  ul {
    font-size: 18px;
    line-height: 1.68;
  }

  .header {
    height: 80px;
  }
  .header-logo {
    height: 80px;
    width: 200px;
  }
  .menu {
    display: none;
  }
  .button {
    display: none;
  }

  .footer {
    flex-direction: column;
    padding: 60px 30px 60px;
  }
  .monogram {
    margin-left: 0;
    margin-bottom: 36px;
  }
  .navigation {
    flex-direction: column;
    margin-left: 20px;
  }

  .row,
  .row.vertical {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    min-height: auto;
    overflow-x: hidden;
    padding: 0;
  }

  .row > div,
  .row.vertical > div {
    width: auto;
    height: auto;
  }

  .cartoon {
    padding: 10% 0;
  }

  .text {
    padding: 60px 30px 0 !important;
  }

  #one .text {
    background-color: rgba(189, 218, 231, 0.25);
  }

  #three {
    flex-direction: column-reverse;
  }

  #five {
    flex-direction: column-reverse;
  }

  #eight {
    flex-direction: column-reverse;
  }

  #seven .text {
    margin-top: 0;
    margin-bottom: 0;
  }

  .clients {
    margin-top: 36px;
  }

  .contacts {
    flex-direction: column;
    align-items: center;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
  .text {
    padding: 60px 50px;
  }

  .footer {
    flex-direction: column;
  }

  .navigation {
    margin-top: 60px;
    margin-left: 20px;
  }
}

/* Fix iPad rotation issue */
@media only screen and (width: 768px) and (device-width: 768px) and (device-height: 1024px) and (orientation: landscape) {
  body {
    -webkit-transform: scale(0.75);
    -webkit-transform-origin: top right;
    position: absolute;
    right: 0;
    top: 0;
    width: 1024px;
  }
}
