/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0 0;
  padding: 0 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type=button],
[type=reset],
[type=submit] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type=search] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}

body {
  font-family: "Roboto", sans-serif;
}

html {
  scroll-behavior: smooth;
  background-image: url("../images/bg.webp");
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.nav {
  width: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  background-color: white;
  z-index: 20;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(219, 212, 212);
}
.nav__closebtn {
  display: none;
}
.nav__btn {
  display: none;
  text-decoration: none;
  color: #555;
  font-size: 25px;
  font-weight: 800;
}

.icon {
  margin-left: 60px;
}
.icon__image {
  width: 110%;
}

.links {
  margin-right: 60px;
}
.links__item-active {
  color: #ffc300 !important;
}
.links__item {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  color: #555;
  font-size: 14px;
  margin-left: 15px;
  transition: all 0.4s;
}
.links__item:hover {
  color: #ffc300;
}

.header {
  width: 100%;
  height: 70vh;
  background-image: url("../images/header.webp");
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;
  color: white;
  display: flex;
  flex-flow: column nowrap;
  position: relative;
  top: 78px;
  font-family: "Oswald", sans-serif;
}
.header__overlay {
  background: rgba(10, 10, 10, 0.397);
  background-size: 100% 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 90px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  letter-spacing: 2px;
  text-shadow: 10px 10px 15px #666666, -5px -5px 15px rgb(221, 207, 207);
}
.header__title {
  font-size: 320%;
  line-height: 1.5;
  text-transform: uppercase;
  margin: 0;
}
.header__subtitle {
  font-size: 220%;
  margin-top: 20px;
}

#servises {
  border-bottom: 1px solid #eaeaea;
  padding: 60px 0;
  margin-top: 78px;
  background-color: white;
}

.container {
  max-width: 80%;
  margin: 0 auto;
}

.servises {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  font-family: "Oswald", sans-serif;
}

.title {
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  color: #333;
  font-size: 33px;
  font-weight: 700;
}

.servises-card {
  max-width: 30%;
  min-width: 300px;
  margin-bottom: 15px;
  margin-top: 15px;
}
.servises-card__img {
  width: 100%;
  height: 220px;
}
.servises-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #303133;
  text-transform: uppercase;
}
.servises-card__link {
  text-decoration: none;
  background-color: #ffc300;
  text-transform: uppercase;
  color: white;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 15px 15px;
  border-radius: 3px;
  display: inline-block;
}

#departments {
  background-color: #f7f7f7;
  min-height: 70vh;
}

.departments {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  font-family: "Oswald", sans-serif;
  padding-top: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #eaeaea;
}

.departments-card {
  max-width: 42%;
  min-width: 450px;
  margin-top: 30px;
  transition: all 0.5s;
}
.departments-card__img {
  width: 100%;
  height: 300px;
}
.departments-card__title {
  font-size: 20px;
  font-weight: 600;
  color: #303133;
  text-transform: uppercase;
}
.departments-card__link {
  text-decoration: none;
  background-color: #ffc300;
  text-transform: uppercase;
  color: white;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 15px 15px;
  border-radius: 3px;
  display: inline-block;
}

.projects {
  font-family: "Oswald", sans-serif;
  padding-top: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #eaeaea;
}

.projects-list {
  font-size: 24px;
  line-height: 1.8;
  margin-top: 50px;
}

.contacts-container {
  background-color: white;
  background-image: url("../images/contactimg.webp");
  background-repeat: no-repeat;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  font-family: "Oswald", sans-serif;
  padding-top: 80px;
  padding-bottom: 60px;
  border-bottom: 1px solid #eaeaea;
  position: relative;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  margin-left: 30%;
}
.contacts-info__item {
  font-size: 20px;
  font-weight: 700;
  line-height: 2;
}
.contacts-info__link {
  text-decoration: none;
  color: #333;
}

.send-message {
  max-width: 35%;
}
.send-message__form {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
}
.send-message__item {
  width: 40%;
  padding: 10px 20px;
  border: 1px solid black;
}
.send-message__text {
  width: 100%;
  padding-top: 10px;
  padding-left: 20px;
  margin-top: 20px;
}
.send-message__btn {
  margin-top: 20px;
  background-color: #ffc300;
  text-transform: uppercase;
  color: white;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 15px 15px;
  border-radius: 3px;
  border: none;
  transition: all 0.5s;
}
.send-message__btn:hover {
  cursor: pointer;
  background-color: #f8d04d;
}

.invalid {
  box-shadow: 2px 2px 10px red;
}

.form-message {
  position: absolute;
  background-color: red;
  border-radius: 25px;
  text-align: center;
  margin: 0 auto;
  padding: 20px 30px;
  font-size: 20px;
  width: 20%;
  opacity: 0;
  transition: all 0.5s;
}

.hidden-elem, .hidden-servises-elem {
  padding: 80px 0;
  font-family: "Oswald", sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  display: none;
  opacity: 0;
  transition: all 0.5s;
}
.hidden-elem__title, .hidden-servises-elem__title {
  font-size: 250%;
  font-weight: 700;
}
.hidden-elem__subtitle, .hidden-servises-elem__subtitle {
  margin-top: 10px;
  font-size: 130%;
}
.hidden-elem__list, .hidden-servises-elem__list {
  font-size: 150%;
  align-self: start;
}
.hidden-elem__link, .hidden-elem__servises-link, .hidden-servises-elem__link, .hidden-servises-elem__servises-link {
  text-decoration: none;
  background-color: #ffc300;
  text-transform: uppercase;
  color: white;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 15px 15px;
  border-radius: 3px;
  display: inline-block;
  align-self: end;
}

@media only screen and (max-width: 1210px) {
  html {
    overflow-x: hidden;
  }
  .header__title {
    font-size: 4vw;
  }
  .header__subtitle {
    font-size: 3vw;
  }
  .contacts-container {
    flex-flow: column nowrap;
    align-items: center;
  }
  .send-message {
    max-width: 50%;
  }
  .send-message__item {
    margin-top: 25px;
  }
  .contacts-info {
    margin: 0;
  }
}
@media only screen and (max-width: 1125px) {
  .departments-card {
    max-width: 30%;
    min-width: 300px;
  }
}
@media only screen and (max-width: 860px) {
  .links {
    height: 100%;
    width: 0;
    display: flex;
    flex-flow: column nowrap;
    justify-content: space-evenly;
    align-items: center;
    position: fixed;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
    margin-right: 0;
  }
  .links__item {
    color: antiquewhite;
    font-size: 20px;
    letter-spacing: 2px;
  }
  .nav__btn {
    display: block;
    margin-right: 60px;
  }
  .nav__closebtn {
    display: none;
    position: absolute;
    top: 9%;
    right: 10%;
    color: antiquewhite;
    z-index: 3;
    text-decoration: none;
    font-size: 45px;
  }
  .responsive {
    width: 100%;
  }
  .btn-none {
    display: none;
  }
  .btn-block {
    display: block;
  }
  .contacts-container {
    background-image: none;
  }
  .send-message__item {
    width: 100%;
  }
}
@media only screen and (max-width: 752px) {
  .servises, .departments {
    flex-flow: column nowrap;
    align-items: center;
  }
  .title, .hidden-elem__title {
    font-size: 4vw;
  }
  .projects-list, .hidden-elem__list, .hidden-elem__subtitle {
    font-size: 3vw;
  }
  .departments-card, .servises-card {
    width: 80vw;
    min-width: 80vw;
  }
  .servises-card__img, .departments-card__img {
    width: 100%;
    height: 100%;
  }
  .servises-card__title, .departments-card__title, .contacts-info__item {
    font-size: 3vw;
  }
  .departments-card__link, .servises-card__link, .send-message__btn, .hidden-elem__servises-link {
    font-size: 2vw;
  }
}