* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "MuseoSansCyrl", sans-serif;
  font-style: normal;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a {
  text-decoration: none;
}

ul {
  padding: 0;
  margin: 0;
}
ul li {
  list-style: none;
}

.container {
  max-width: 1420px;
  width: 100%;
  margin: auto;
}

.button {
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: #ffffff;
  padding: 7px 22px;
  border: none;
  background-color: #CFA55B;
  border-radius: 4px;
  cursor: pointer;
}
.button:hover {
  cursor: pointer;
  background-color: #424242;
  opacity: 0.8;
  color: #CFA55B;
}

.form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.input {
  box-sizing: border-box;
  background-color: #fff;
  border-radius: 4px;
  border: none;
  padding: 0 23px;
  height: 50px;
}

.message {
  background-color: #fff;
  border-radius: 4px;
  padding: 18px 23px;
  border: none;
}

.button {
  min-width: 160px;
  min-height: 50px;
  padding: 18px;
  font-style: normal;
  font-weight: bold;
  font-size: 12px;
  line-height: 15px;
  color: #ffffff;
  background-color: #CFA55B;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.invalid {
  color: #CFA55B;
  margin-bottom: 10px;
  border-bottom: 1px solid #CFA55B;
}

.form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

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

/**
 * 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 */
  -webkit-text-decoration: underline dotted;
          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;
}

.header {
  background: url(../images/header/background.jpg) top center/cover;
  height: 980px;
}
.header-wrapper {
  display: flex;
  justify-content: space-between;
  padding-top: 36px;
  margin-bottom: 90px;
}

.seo-header {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-style: normal;
  color: grey;
  font-size: 14px;
}

.navbar-logo {
  width: 128px;
}
.navbar-social-link img {
  width: 51px;
}
.navbar-social-link-1 {
  margin-left: 17px;
}
.navbar-number {
  display: flex;
  justify-content: center;
  align-items: center;
}

.present__button {
  padding: 15px 50px;
  border: 1px solid #ffffff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  backround-color: #ffffff;
  opacity: 0.8;
  color: #ffffff;
}
.present__button img {
  margin-right: 10px;
}

.offer {
  max-width: 1200px;
}
.offer-h1 {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-style: normal;
  font-size: 70px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 150px;
  max-width: 1000px;
}
.offer-h1 span {
  color: #1789D8;
}

.rectangle {
  position: relative;
  display: flex;
  justify-content: space-between;
  justify-content: space-around;
  align-items: center;
}
.rectangle::before {
  position: absolute;
  content: "";
  background-size: cover;
  background: #ffffff;
  border-radius: 35px;
  right: 0;
  bottom: 0;
  left: 0;
  top: 0;
  opacity: 0.2;
  z-index: 1;
  width: 100%;
}
.rectangle-reyting {
  display: block;
  width: 600px;
  height: 380px;
  z-index: 5;
}
.rectangle-btn {
  background: url(../images/header/button-image.jpg) top center/cover;
  width: 300px;
  height: 95px;
  padding: 20px 20px;
  border: none;
  right: 0;
  text-transform: uppercase;
  border-radius: 15px;
  color: white;
  text-align: center;
  margin-bottom: 20px;
  z-index: 5;
}
.rectangle-btn:hover {
  box-shadow: inset 0 0 0 3px #3a7999;
  cursor: pointer;
}

.btn-wrapper {
  display: flex;
  flex-direction: column;
  padding-top: 30px;
  padding-right: 30px;
}

.subtext {
  display: block;
  color: white;
  text-align: center;
}

h2 {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-style: normal;
  font-size: 70px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
  padding: 0;
}

.wrapper-cities {
  width: 100%;
  margin-top: 43px;
  border-radius: 40px;
  background: #ffffff;
  box-shadow: 0px 13px 40px rgba(0, 0, 0, 0.13);
  padding-bottom: 20px;
  margin-bottom: 30px;
}
.wrapper-h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 30px;
  margin-bottom: 50px;
}
.wrapper-h2 img {
  margin-right: 20px;
}

.cities-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0px 20px;
}
.cities-title {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 700;
  font-size: 70px;
  line-height: 70px;
  text-align: center;
  text-transform: uppercase;
  color: #383838;
}

.city-card {
  display: flex;
  flex-direction: column;
  padding: 24px 10px;
  width: 196px;
  margin-bottom: 10px;
}
.city-card:hover {
  border: 2px solid #1789D8;
  border-radius: 20px;
  transform: scale(1.1);
  margin-bottom: 10px;
  box-shadow: 0 0 3px #1789D8;
}
.city-card-link-watsap {
  text-decoration: none;
  text-align: center;
  color: #333333;
}
.city-card h4, .city-card span {
  text-align: center;
}
.city-card h4 {
  margin: 0;
  padding: 16px 0px;
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 700;
  font-size: 30px;
  /* identical to box height */
  text-align: center;
  text-transform: uppercase;
  color: #383838;
}
.city-card span {
  font-weight: 300;
  font-size: 16px;
  line-height: 22px;
}
.city-image {
  width: 200px;
  height: 150px;
  border-radius: 10px;
  -o-object-fit: cover;
     object-fit: cover;
}

.residence {
  background: linear-gradient(102.37deg, #2B2B2B 0.75%, #303030 44.61%, #000000 94.12%);
}
.residence-img {
  width: 50%;
}
.residence-wrapper {
  display: flex;
}
.residence-text {
  width: 50%;
  padding-top: 90px;
}
.residence-subtitle {
  display: block;
  font-family: "Museo Sans Cyrl";
  font-style: normal;
  font-weight: 300;
  font-size: 45px;
  line-height: 54px;
  color: #FFFFFF;
  margin-bottom: 45px;
}
.residence-title {
  font-family: "Bebas Neue", Arial, sans-serif;
  font-style: normal;
  font-size: 70px;
  line-height: 1.3;
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 30px;
}
.residence-title span {
  color: #DBA69B;
}

.subtext {
  font-family: "Museo Sans Cyrl";
  font-style: normal;
  font-weight: 300;
  font-size: 25px;
  line-height: 30px;
  color: #FFFFFF;
}
.subtext-img {
  margin-right: 20px;
}
.subtext-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 66px;
}

.rectangle-btn {
  max-width: 300px;
}

.districts h4 {
  margin: 0;
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 700;
  font-size: 55px;
  line-height: 55px;
  text-transform: uppercase;
  color: #383838;
}
.districts-h2 {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 50px;
}
.districts-title {
  max-width: 900px;
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 700;
  font-size: 70px;
  line-height: 70px;
  text-align: center;
  text-transform: uppercase;
  color: #383838;
}
.districts-descr {
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
  margin-bottom: 90px;
  font-family: "Museo Sans Cyrl";
  font-style: normal;
  font-weight: 300;
  font-size: 25px;
  line-height: 30px;
  color: #4B4B4B;
}
.districts-card {
  display: flex;
  margin-bottom: 90px;
}
.districts-image {
  width: 384px;
  height: 361px;
  border-radius: 29px;
  -o-object-fit: cover;
     object-fit: cover;
}
.districts-text {
  margin-left: 28px;
}
.districts-subtext {
  display: block;
  font-family: "Museo Sans Cyrl";
  font-style: normal;
  font-weight: 300;
  font-size: 22px;
  line-height: 30px;
  color: #4B4B4B;
  text-align: justify;
}

.footer {
  background-color: #000000;
  color: #ffffff;
  padding-top: 30px;
  padding-bottom: 46px;
}
.footer-wrapper {
  display: flex;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  flex-direction: column;
}
.footer-logo-img {
  margin-bottom: 25px;
}
.footer-social-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-social-link {
  margin-right: 10px;
}
.footer-icon {
  margin-right: 7px;
}
.footer-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.footer-address, .footer-working, .footer-mail {
  font-family: "BebasNeue", Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #707070;
}
.footer-text {
  font-family: "Museo Sans Cyrl";
  font-style: normal;
  font-weight: 300;
  color: #ffffff;
  font-size: 18px;
}
.footer-text a {
  color: #ffffff;
}

.menu-list-ul {
  font-weight: 300;
  font-size: 20px;
  line-height: 159%;
}
.menu-list-link {
  text-decoration: none;
  color: #BDBDBD;
}

.modal__overlay {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(99, 107, 111, 0.472);
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s;
}
.modal__overlay--visible {
  visibility: visible;
  opacity: 1;
}
.modal__dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  max-width: 478px;
  padding: 33px 88px;
  background-color: #32302d;
  transform: translate(-50%, -50%);
  color: #ffffff;
  border-radius: 8px;
  z-index: 101;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s;
}
.modal__dialog--visible {
  visibility: visible;
  opacity: 1;
}
.modal__close {
  position: absolute;
  right: 18px;
  top: 17px;
  text-decoration: none;
  cursor: pointer;
}
.modal__title {
  font-style: normal;
  font-weight: bold;
  font-size: 18px;
  line-height: 23px;
  margin-bottom: 15px;
  text-transform: uppercase;
  text-align: center;
}
.modal__input {
  width: 100%;
  margin-top: 15px;
}
.modal__message {
  width: 100%;
  min-height: 123px;
  margin-top: 15px;
}
.modal__button {
  width: 45%;
  margin-top: 15px;
}
.modal__info {
  font-style: normal;
  font-weight: bold;
  font-size: 12px;
  line-height: 15px;
  color: #E0E0E0;
}
.modal__form-button-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.modal__message-link {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 45%;
  margin-top: 10px;
  margin-left: 25px;
}
.modal__message-link-text {
  width: 100%;
  font-size: 12px;
  text-align: center;
  margin-bottom: 10px;
}
.modal__social-link {
  margin-right: 10px;
}

.checkbox {
  padding-top: 20px;
}
.checkbox span {
  font-style: normal;
  font-weight: bold;
  font-size: 12px;
  line-height: 15px;
  color: #E0E0E0;
}

@media (max-width: 1478px) {
  .container {
    max-width: 90%;
  }
  .city-card {
    align-items: center;
    width: 33%;
  }
}
@media (max-width: 1220px) {
  .residence-text {
    width: 40%;
  }
  .residence-img {
    width: 60%;
  }
  .residence-title {
    font-size: 50px;
  }
  .residence-subtitle {
    font-size: 30px;
  }
  .subtext-wrapper {
    margin-bottom: 30px;
  }
  .districts-subtext {
    font-size: 22px;
    line-height: 26px;
  }
}
@media (max-width: 992px) {
  .offer-h1 {
    margin-bottom: 0px;
  }
  .rectangle {
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
  }
  .rectangle-btn {
    width: 250px;
    height: 80px;
  }
  .btn-wrapper {
    padding-right: 0;
  }
  .residence-text {
    width: 50%;
    padding-top: 20px;
  }
  .residence-subtitle {
    font-size: 20px;
  }
  .districts h4 {
    font-size: 45px;
  }
  .districts-subtext {
    font-size: 18px;
    line-height: 22px;
  }
  .districts-image {
    width: 354px;
    height: 331px;
  }
}
@media (max-width: 768px) {
  .navbar-number {
    display: none;
  }
  .offer-h1 {
    font-size: 60px;
  }
  .cities-title {
    font-size: 50px;
  }
  .districts-descr {
    max-width: 550px;
    font-size: 22px;
    line-height: 26px;
  }
  .districts-title {
    font-size: 55px;
    line-height: 55px;
  }
  .districts-card {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .districts h4 {
    text-align: center;
    margin-bottom: 20px;
  }
  .districts-image {
    margin-bottom: 30px;
    width: 384px;
    height: 361px;
  }
}
@media (max-width: 624px) {
  .container {
    max-width: 85%;
    text-align: center;
  }
  .header {
    height: 700px;
    margin-bottom: 70px;
  }
  .seo-header {
    font-size: 10px;
  }
  .navbar-number {
    display: none;
  }
  .offer-h1 {
    font-size: 30px;
    margin-bottom: 60px;
  }
  .header-wrapper {
    margin-bottom: 40px;
  }
  .navbar-logo {
    width: 80px;
  }
  .rectangle {
    flex-direction: column;
  }
  .rectangle-reyting {
    width: 100%;
    height: 100%;
  }
  .navbar-social-link-1 {
    margin-left: 10px;
  }
  .navbar-social-link img {
    width: 35px;
  }
  .wrapper-h2 {
    margin-bottom: 20px;
  }
  .wrapper-h2 img {
    display: none;
  }
  .wrapper-cities {
    margin-top: 0px;
  }
  h2 {
    font-size: 30px;
    font-weight: 700;
  }
  .cities-list {
    justify-content: center;
  }
  .city-card {
    width: 100%;
  }
  .residence-text {
    padding-top: 15px;
    width: 100%;
  }
  .residence-subtitle {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .residence-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .residence-wrapper {
    flex-direction: column;
  }
  .residence-img {
    margin: 0 auto;
    order: 2;
  }
  .subtext {
    font-size: 20px;
  }
  .subtext-wrapper {
    margin-bottom: 30px;
    justify-content: center;
  }
  .subtext-wrapper img {
    width: 10%;
  }
  .districts-title {
    font-size: 35px;
    line-height: 35px;
  }
  .districts-descr {
    font-size: 20px;
    line-height: 22px;
    margin-bottom: 30px;
  }
  .districts-h2 img {
    display: none;
  }
  .footer-wrapper {
    display: flex;
    flex-direction: column;
    width: 70%;
    margin: auto;
    padding-top: 40px;
  }
}
@media (max-width: 480px) {
  .header {
    height: 570px;
  }
  .rectangle-reyting {
    height: 100%;
  }
  .rectangle ::before {
    width: 100%;
  }
  .rectangle-btn {
    margin-bottom: 5px;
  }
  .cities-title {
    font-size: 30px;
  }
  .btn-wrapper {
    padding-top: 5px;
  }
  .subtext {
    color: grey;
    font-size: 15px;
  }
  .districts-image {
    width: 300px;
    height: 260px;
  }
  .districts-text {
    margin-left: 0;
  }
  .districts-card {
    margin-bottom: 30px;
  }
  .districts h4 {
    font-size: 30px;
    line-height: 32px;
  }
}