/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

.body {
  font-family: 'Roboto', sans-serif;
}
a, a:visited, a:hover, a:active {
  color: inherit;
}

.container-intro {
  display: flex;
  /*width: 100%;*/
  height: 100vh;
  min-height: 900px;
  background-color: #24282D;
}

.container-intro__block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  width: 100%;
  padding: 55px 95px;
  box-sizing: border-box;
}
.text {
  color: white;
}

.top-line-intro {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: white;
}

.top-line-intro__socials {
  margin-left: auto;
}
.top-line-intro__picture {
  display: flex;
  justify-content: center;
  align-items: center;
}
.top-line-intro__title {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.top-line-intro__picture__img {
  z-index: 2;
}
.top-line-intro__picture__bg {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 40px;
  background-color: white;
}
.top-line-intro__text {
  margin-left: 15px;
  font-weight: 700;
  font-size: 32px;
  line-height: 33px;
  font-family: 'Roboto', sans-serif;
}
.top-line-intro__socials {
  display: flex;
  flex-direction: row;
}
.top-line-intro__links {
  margin-left: 31px;
}

.text-intro {
  display: flex;
  justify-content: center;
  align-items: center;

}
.text-intro__sign {
  color: white;
  position: absolute;
}

.text-intro__sign:first-child {
  top: 15%;
  left: 70%;
  font-size: 82px;
  font-weight: 700;
}

.text-intro__sign:last-child {
  top: 45%;
  left: 30%;
  font-size: 32px;
  font-weight: 100;
}

.text-intro__content {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 72px;
  line-height: 145.69%;
  /* or 105px */

  text-align: center;

  color: #FFFFFF;
}

.carousel-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 38%;
  width: 100%;
  color: #cccccc;
}
.main-carousel {
  width: 100%;
  /*height: 100%;*/
  /*height: inherit;*/
  height: 100%;
}
.carousel-intro__title, .carousel-intro__nav {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 200;
  font-size: 24px;
}
.carousel-intro__header {
  display: flex;
  flex-direction: row;
  margin-bottom: 6px;
}
.carousel-intro__nav {
  display: flex;
  flex-direction: row;
  margin-left: auto;
}
.reverse-arrow {
  transform: rotate(180deg);
}
#button-next {
  margin-left: 12px;
}
/*.carousel-cell img {
  width: 100%;
  overflow: hidden;
  object-fit: cover;
}*/

.flickity-viewport {
  transition: height 0.2s;
}

.carousel-img {
  object-fit: cover;
}

.flickity-viewport {
  height: 100% !important;
}


.carousel-cell {
  /*display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden*/
  position: absolute;
  bottom: 0;
  height: 100%;
}
.carousel-cell img {
  /*max-width: 100%;
  max-height: 100%;
  width: 100%;
  object-fit: cover;
  min-height: 180px;*/

  width: 100%;
  /*min-height: 180px;*/
  min-height: 100%;
  object-fit: cover;
}

.carousel-intro__title {
  /*display: flex;*/
  display: block;
}

.carousel-intro__title:hover {
  text-decoration: underline;
  cursor: pointer;
}

.carousel-intro__title > a {
  /*margin-right: 8px;*/
  margin-left: 8px;
}
.carousel-intro__link {
  vertical-align: unset;
}



.services {
  margin-top: 260px;
  margin-bottom: 240px;
  /*margin-left: 55px;*/
  /*margin-bottom: 80px;*/
}
.services__img {
  position: absolute;
  left: 55%;
}
.services__title {
  max-width: 1600px;
  margin: auto auto 85px;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  line-height: 145.69%;
  letter-spacing: 0.095em;
  color: #424242;
}
.services__list {
  margin-top: 80px;
}
.services__row--container {
  border: 1px #424242;
  border-bottom-style: solid;
  /*border-style: solid none;*/
}
.services__row--container:nth-last-child(3) {
  border: 1px #424242;
  border-style: solid none;
}
.services__row {
  display: flex;
  justify-content: center;
  margin: auto;
  height: 250px;
  max-width: 1600px;
}
.services__number {
  display: flex;
  align-items: center;
  /*flex-basis: 15%;*/
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  /*font-weight: 700;*/
  font-weight: 400;
  font-size: 100px;
  line-height: 145.69%;
  letter-spacing: 0.095em;
  color: #424242;
}
.services__description-block {
  display: flex;
}
.services__description {
  /*display: flex;*/
  display: block;
  margin: auto auto auto 5%;
  flex-basis: auto;
  align-items: center;
  padding-right: 35%;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 24px;
  line-height: 145.69%;
  color: #424242;
}
.services__label {
  display: flex;
  align-items: center;
  flex-basis: 35%;
  justify-content: end;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 42px;
  line-height: 110.69%;
  text-align: right;
  color: #424242;
}
.services__description_bold, .services__description_light {
  display: inline;
}
.services__description_bold {
  font-weight: 500;
  color: #424242;
}
.services__description_light {
  font-weight: 300;
  color: #424242;
}

.contact {
  display: flex;
  flex-direction: row;
  height: 540px;
  background-color: #24282D;
  /*padding: 0 18%;*/
}
.contact__container {
  display: flex;
  justify-content: center;
  margin: auto;
  width: 100%;
  max-width: 1600px;
  background-color: #24282D;

}
.contact__headline {
  display: flex;
  align-items: center;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 64px;
  line-height: 131.19%;
  letter-spacing: 0.015em;
  color: #FFFFFF;
}
.contact__mail {
  display: flex;
  align-items: center;
  margin-left: auto;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 44px;
  line-height: 145.69%;
  text-decoration: underline;
  color: #FFFFFF!important;
}

* { box-sizing: border-box; }




@media screen and (min-height: 1100px){
  .carousel-intro {
    height: 34%;
  }
}

@media screen and (max-width: 1920px) {
  .container-intro__block {
    padding: 45px;
  }
  .services__description {
    line-height: 128%;
  }
  .services__row, .services__title {
    max-width: 1400px;
  }
  .services__img {
    /*left: 57%;*/
    width: 390px;
  }
  .contact__container {
    max-width: 1400px;
  }
}

@media screen and (max-width: 1634px) {
  .text-intro__sign:last-child {
    left: 22%;
  }
  .services__title {
    margin: 85px 8%;
  }
  .services__row {
   margin: 0 8%;
  }
  .services__img {
    /*left: 57%;*/
    width: 330px;
    margin-top: 65px;
  }
  .contact__container {
    margin-left: 65px;
    margin-right: 65px;
  }
  .contact__mail {
    font-size: 38px;
  }

}

@media screen and (max-width: 1449px) {
  .services__description {
    line-height: 127%;
    font-size: 22px;
  }
  .services__img {
    left: 54%;
    width: 300px;
  }
  .contact {
    height: 480px;
  }
}

@media screen and (max-width: 1201px) {
  .container-intro__block {
    padding: 35px;
  }
  .services {
    margin-top: 180px;
    margin-bottom: 160px;
  }
  .services__description {
    line-height: 120%;
    font-size: 22px;
  }
  .services__img {
    display: none;
  }
  .services__description {
    line-height: 135%;
    padding-right: 18%;
  }
  .contact__mail {
    font-size: 36px;
  }
}

@media screen and (max-width: 1025px) {
  .container-intro__block {
    padding: 30px;
  }
  .text-intro__sign {
    display: none;
  }
  .top-line-intro__text {
    font-size: 26px;
  }
  .top-line-intro__picture__bg {
    width: 50px;
    height: 50px;
  }
  .top-line-intro__picture__img {
    height: 36px;
  }
  .top-line-intro__links img {
    height: 30px;
  }
  .top-line-intro__links {
    margin-left: 27px;
  }
  .text-intro__content {
    font-size: 62px;
  }
  .carousel-intro {
    height: 34%;
  }
  .services__description {
    line-height: 145%;
    font-size: 21px;
  }
  .services__label {
    font-size: 36px;
  }
  .services__row {
    margin: 0 45px;
  }
}

@media screen and (max-width: 976px) {
  .contact__container {
    margin-left: 45px;
    margin-right: 45px;
  }
  .contact__mail {
    font-size: 34px;
  }
  .contact__headline {
    font-size: 58px;
  }
}

@media screen and (max-width: 769px) {
  .container-intro__block {
    padding: 20px;
  }
  .text-intro__content {
    font-size: 54px;
  }
  .carousel-intro {
    height: 30%;
  }
  .container-intro {
    min-height: 700px;
  }
  .services__row {
    height: 300px;
  }
  .services__description {
    line-height: 139%;
    font-size: 19px;
    padding-right: 12%;
  }
  .services__description-block {
    flex-direction: column-reverse;
    justify-content: center;
  }
  .services__label {
    flex-basis: content;
    text-align: left;
    justify-content: flex-start;
    align-items: end;
    margin-left: 5%;
  }
  .services__description {
    margin: 15px 0 0 5%;
  }
  .services__number {
    font-size: 86px;
  }
  .contact__container {
    flex-direction: column;
  }
  .contact__headline {
    margin-bottom: 75px;
  }
  .contact__mail {
    font-size: 40px;
  }
  .services__number {
    display: none;
  }
}

@media screen and (max-width: 647px) {
  .services {
    margin-top: 140px;
    margin-bottom: 120px;
  }
  .services__description {
    padding-right: 0;
  }
  .services__row {
    /*min-height: 380px;*/
    /*min-height: unset;*/
    min-height: 420px;
  }
  .services__title {
    font-size: 36px;
  }
  .services__description {
    margin: 22px 0 0 5%;
  }
  .contact__container {
    margin-left: 25px;
    margin-right: 25px;
  }
  .contact__headline {
    margin-bottom: 55px;
    font-size: 52px;
  }
  .contact__mail {
    font-size: 36px;
  }
}

@media screen and (max-width: 480px) {
  .container-intro__block {
    padding: 15px;
  }
  .text-intro__content {
    font-size: 44px;
  }
  .carousel-intro {
    height: 24%;
  }
  .contact {
    height: 420px;
  }
  .contact__container {
    margin-left: 20px;
    margin-right: 0;
  }
  .contact__headline {
    font-size: 46px;
  }
  .contact__mail {
    font-size: 28px;
  }
}

@media screen and (max-width: 320px) {
  .container-intro__block {
    padding: 10px;
  }
  .text-intro__content {
    font-size: 42px;
  }
}










/* ==========================================================================
Helper classes
========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

