/*! normalize-scss | MIT/GPLv2 License | bit.ly/normalize-scss */
/* Document
       ========================================================================== */
/**
     * 1. Correct the line height in all browsers.
     * 2. Prevent adjustments of font size after orientation changes in
     *    IE on Windows Phone and in iOS.
     */
html {
  line-height: 1.15;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

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

/**
     * Add the correct display in IE 9-.
     */
article,
aside,
footer,
header,
nav,
section {
  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
       ========================================================================== */
/**
     * Add the correct display in IE 9-.
     */
figcaption,
figure {
  display: block;
}

/**
     * Add the correct margin in IE 8.
     */
figure {
  margin: 1em 40px;
}

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

/**
     * Add the correct display in IE.
     */
main {
  display: block;
}

/**
     * 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 */
}

/* Links
       ========================================================================== */
/**
     * 1. Remove the gray background on active links in IE 10.
     * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
     */
a {
  background-color: transparent;
  /* 1 */
  -webkit-text-decoration-skip: objects;
  /* 2 */
}

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

/**
     * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
     */
b,
strong {
  font-weight: inherit;
}

/**
     * 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 style in Android 4.3-.
     */
dfn {
  font-style: italic;
}

/**
     * Add the correct background and color in IE 9-.
     */
mark {
  background-color: #ff0;
  color: #000;
}

/**
     * 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
       ========================================================================== */
/**
     * Add the correct display in IE 9-.
     */
audio,
video {
  display: inline-block;
}

/**
     * Add the correct display in iOS 4-7.
     */
audio:not([controls]) {
  display: none;
  height: 0;
}

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

/**
     * Hide the overflow in IE.
     */
svg:not(:root) {
  overflow: hidden;
}

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

/**
     * Show the overflow in IE.
     */
button {
  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;
}

/**
     * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
     *    controls in Android 4.
     * 2. Correct the inability to style clickable types in iOS and Safari.
     */
button,
html [type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
  /* 2 */
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  /**
       * Remove the inner border and padding in Firefox.
       */
  /**
       * Restore the focus styles unset by the previous rule.
       */
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
     * Show the overflow in Edge.
     */
input {
  overflow: visible;
}

/**
     * 1. Add the correct box sizing in IE 10-.
     * 2. Remove the padding in IE 10-.
     */
[type="checkbox"],
[type="radio"] {
  -webkit-box-sizing: border-box;
          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 and cancel buttons in Chrome and Safari on macOS.
       */
}

[type="search"]::-webkit-search-cancel-button, [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 */
}

/**
     * 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 {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* 1 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  color: inherit;
  /* 2 */
  white-space: normal;
  /* 1 */
}

/**
     * 1. Add the correct display in IE 9-.
     * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
     */
progress {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */
}

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

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

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

/*
     * Add the correct display in IE 9-.
     */
menu {
  display: block;
}

/* Scripting
       ========================================================================== */
/**
     * Add the correct display in IE 9-.
     */
canvas {
  display: inline-block;
}

/**
     * Add the correct display in IE.
     */
template {
  display: none;
}

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

body {
  color: #8e8e8e;
  background-color: #e5eaed;
  font-family: Raleway, sans-serif;
  font-weight: 400;
}

.flex {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.flex-justify-items {
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.flex-align-items {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.flex-wrap {
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}

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

hr {
  height: 2px;
  width: 50px;
  border: 0;
  background-color: #dabc74;
}

input, button {
  font-family: Raleway, sans-serif;
  color: #8e8e8e;
}

input {
  margin-right: 5px;
}

header {
  z-index: 99;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 75vh;
  padding: 20px;
  background-image: url(../../assets/images/rio.jpg);
  background-position: 50% 50%;
  background-size: cover;
}

.header-content__container {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  padding: 20% 0;
}

.header-content__accent {
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 0.95em;
  font-weight: 400;
}

.header-content__accent:before {
  padding: 0 10px 0 0;
  content: url("../../assets/images/line.png");
}

.header-content__accent:after {
  padding: 0 0 0 10px;
  content: url("../../assets/images/line.png");
}

.header-content__title {
  padding: 2vw;
  letter-spacing: 0.03em;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 4.0625em;
  font-weight: 400;
}

.header-menu {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.header-navbar__list {
  z-index: 1;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
}

.header-navbar__item {
  margin: 1vw 3vw;
  -ms-flex-item-align: center;
      align-self: center;
}

.header-navbar__link {
  -webkit-transition: color 0.5s;
  -o-transition: color 0.5s;
  transition: color 0.5s;
  text-decoration: none;
  color: #fff;
  font-family: Raleway, sans-serif;
  font-size: 1em;
}

.header-navbar__link__accent {
  padding: 10px 30px;
  border: 0;
  background-color: #878586;
}

.header-navbar__link:hover {
  color: #44596e;
}

.border {
  width: 1px;
  content: "|";
  background-color: #fff;
}

main {
  z-index: 1;
  margin: -80px auto 0;
}

.main-container {
  z-index: 1;
  max-width: 992px;
  margin: -40px auto 0;
  padding: 20px 20px 0;
  background-color: #fff;
}

.booking-form {
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  padding: 0 0 20px 0;
  background: #fff;
}

.booking-form__item {
  margin-bottom: 15px;
}

.booking-form__btn {
  margin-top: 24px;
  padding: 9px 60px;
  color: #fff;
  border: 0;
  background-color: #6ba3a2;
}

.booking-item__input--short input {
  width: 50px;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid #e5e5e5;
}

.booking-item__input--long input,
.booking-item__input .booking-form__btn {
  width: 30vw;
  max-width: 250px;
  margin-top: 5px;
  padding: 5px 10px;
  border: 1px solid #e5e5e5;
}

.main-content__container {
  margin: 40px auto 0;
}

.main-content__title h2 {
  text-align: center;
  font-weight: 400;
}

.main-content__description p {
  padding: 1vw 5vw;
  text-align: center;
  line-height: 1.5em;
}

.card {
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
  -webkit-box-pack: stretch;
      -ms-flex-pack: stretch;
          justify-content: stretch;
  margin-right: -20px;
  margin-left: -20px;
}

.card__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-flex: 30%;
      -ms-flex: 30% 0;
          flex: 30% 0;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column wrap;
          flex-flow: column wrap;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  max-height: 270px;
  background-color: #6ba3a2;
}

.card__title h3 {
  text-align: center;
  color: #fff;
  font-weight: 400;
}

.card__title hr {
  width: 50px;
  height: 2px;
  border: 0;
  background-color: #dabc74;
}

.card__description {
  -webkit-box-flex: 1;
      -ms-flex: 1 25%;
          flex: 1 25%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-flow: column wrap;
          flex-flow: column wrap;
  height: 270px;
  margin: 0 5.5vw;
  background-color: #fff;
}

.card__description p {
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1.5em;
}

.card__description-link {
  margin-top: 20px;
  text-decoration: none;
  text-transform: uppercase;
  color: #6ba3a2;
}

.card__image {
  position: relative;
  width: auto;
  max-height: 270px;
  margin-top: 0;
}

.card__image img {
  overflow: hidden;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.image-small {
  position: relative;
  -webkit-box-flex: 30%;
      -ms-flex: 30% 0;
          flex: 30% 0;
  max-height: 270px;
}

.image-big {
  -webkit-box-flex: 1;
      -ms-flex: 1 60%;
          flex: 1 60%;
}

.container-card-bottom {
  max-width: 992px;
  margin: 30px auto 0;
  padding: 0 20px 0;
}

.container-description-bottom {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1em;
  background-color: #fff;
}

.container-description-bottom p {
  text-align: center;
}

.bottom-card__description {
  font-size: 0.9em;
  font-weight: 400;
  line-height: 1.5em;
}

.bottom-card__link {
  margin-top: 20px;
  text-decoration: none;
  text-transform: uppercase;
  color: #6ba3a2;
}

footer {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  max-width: 992px;
  margin: 0 auto;
  padding: 20px 0;
}

.contacts {
  width: 30%;
  padding: 20px 15px 0;
}

.contacts__description {
  padding-top: 20px;
}

.contacts__link {
  margin-top: 20px;
  text-decoration: none;
  color: #6ba3a2;
}

.social-icon {
  width: 30px;
  height: 30px;
}

.subscribe-item {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.subscribe-item input {
  padding: 5px 15px 5px 10px;
  -webkit-box-pack: stretch;
      -ms-flex-pack: stretch;
          justify-content: stretch;
  border: 1px solid #8e8e8e;
  width: 89%;
}

.subscribe-item input::-webkit-input-placeholder {
  color: #8e8e8e;
  font-size: 0.8em;
}

.subscribe-item input::-moz-placeholder {
  color: #8e8e8e;
  font-size: 0.8em;
}

.subscribe-item input:-ms-input-placeholder {
  color: #8e8e8e;
  font-size: 0.8em;
}

.subscribe-item input::-ms-input-placeholder {
  color: #8e8e8e;
  font-size: 0.8em;
}

.subscribe-item input::placeholder {
  color: #8e8e8e;
  font-size: 0.8em;
}

.subscribe-form__btn {
  width: 98%;
  margin-top: 5px;
  padding: 8px 15px 8px 10px;
  -webkit-box-pack: stretch;
      -ms-flex-pack: stretch;
          justify-content: stretch;
  color: #fff;
  border: 0;
  background-color: #8e8e8e;
  font-size: 0.8em;
}

@media (max-width: 940px) {
  .booking-form__btn {
    padding: 9px 40px;
  }
}

@media (max-width: 920px) {
  .booking-item__input--short input {
    min-width: 30vw;
  }
  .booking-item__input--long input,
  .booking-item__input .booking-form__btn {
    min-width: 40vw;
  }
}

@media (max-width: 899px) {
  .contacts:first-of-type {
    width: 50%;
  }
  .contacts:nth-of-type(2) {
    width: 30%;
  }
  .contacts:nth-of-type(3) {
    width: 100%;
  }
  .subscribe-item input {
    padding: 5px 1%;
    width: 50%;
  }
  .subscribe-form__btn {
    width: 52%;
    padding: 5px 1%;
  }
}

@media (max-width: 705px) {
  .booking-item__input--short input {
    width: 200px;
    min-width: 140px;
  }
}

@media (max-width: 683px) {
  .booking-item__input--short input {
    width: 180px;
    min-width: 100px;
  }
}

@media (max-width: 678px) {
  .header-content__title {
    font-size: 3em;
  }
  .card__title {
    -webkit-box-flex: 100%;
        -ms-flex: 100% 0;
            flex: 100% 0;
  }
  .card__description {
    -webkit-box-flex: 100%;
        -ms-flex: 100% 0;
            flex: 100% 0;
  }
  .card__image {
    -webkit-box-flex: 100%;
        -ms-flex: 100% 0;
            flex: 100% 0;
  }
}

@media (max-width: 663px) {
  .booking-item__input--short input {
    min-width: 28vw;
  }
}

@media (max-width: 642px) {
  .booking-item__input--short input {
    width: 150px;
    min-width: 80px;
  }
}

@media (max-width: 620px) {
  .booking-item__input--long input,
  .booking-item__input .booking-form__btn {
    min-width: 39vw;
  }
}

@media (max-width: 600px) {
  .header-navbar__link {
    font-size: 0.8em;
  }
}

@media (max-width: 590px) {
  .booking-item__input--short input {
    max-width: 20vw;
  }
}

@media (max-width: 550px) {
  .subscribe-item input {
    width: 58%;
  }
  .subscribe-form__btn {
    width: 60%;
  }
}

@media (max-width: 532px) {
  .header-navbar__item {
    margin: 1vw 2vw;
  }
}

@media (max-width: 530px) {
  .booking-item__input--short input {
    max-width: 18vw;
  }
  .booking-item__input--long input,
  .booking-item__input .booking-form__btn {
    min-width: 37vw;
  }
}

@media (max-width: 445px) {
  .booking-item__input--short input {
    min-width: 15vw;
  }
}

@media (max-width: 430px) {
  .header-navbar__link {
    font-size: 0.7em;
  }
  .booking-item__input--long input,
  .booking-item__input .booking-form__btn {
    min-width: 34vw;
  }
}

@media (max-width: 418px) {
  .booking-item__input--short input {
    max-width: 10vw;
  }
}

@media (max-width: 380px) {
  .booking-form__btn {
    padding: 9px 10vw;
  }
  .booking-item__input--short input {
    max-width: 6vw;
  }
}

@media (max-width: 350px) {
  .header-navbar__link {
    font-size: 0.5em;
  }
  .border {
    display: none;
  }
}

@media (max-width: 320px) {
  .booking-item__input--long input,
  .booking-item__input .booking-form__btn {
    min-width: 28vw;
  }
}

@media (max-width: 305px) {
  .header-navbar__item {
    margin: 1vw 1vw;
  }
}

@media (max-width: 300px) {
  .booking-form__btn {
    padding: 9px 5vw;
  }
  .contacts:first-of-type {
    width: 100%;
  }
  .contacts:nth-of-type(2) {
    width: 100%;
  }
  .contacts:nth-of-type(3) {
    width: 100%;
  }
}

@media (max-width: 288px) {
  .header-content__accent:before {
    display: none;
    padding: 0;
  }
  .header-content__accent:after {
    display: none;
    padding: 0;
  }
}

@media (max-width: 262px) {
  .booking-form__btn {
    padding: 9px 4vw;
  }
  .booking-item__input--short input {
    max-width: 4vw;
  }
  .booking-item__input--long input,
  .booking-item__input .booking-form__btn {
    max-width: 24vw;
  }
}
