:root {
  --main-font: 'Roboto';
  --main-color: #000;
  --accent-color: #630000;
  --bg-color: #E6E6E6;
  --accent-font: 'Source-Serif';
  --btn-bg: #C40000;
  --second-color: #fff;
  --border-color: #e1e5e9;
}

@font-face {
  font-family: 'Roboto';
  src: url(../fonts/Roboto.ttf) format("truetype");
}
@font-face {
  font-family:'Source-Serif';
  src: url(../fonts/SourceSerifPro-SemiBold.ttf) format("truetype");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--main-font);
  color: var(--main-color);
}
.main__btn {
  font-size: 22px;
  background: var(--btn-bg);
  outline: none;
  border: none;
  border-radius: 20px;
  padding: 17px 30px;
  color: var(--second-color);
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}
.main__btn:hover {
  background: var(--accent-color);
}
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  width: 100%;
  padding: 0 20px;
}
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100px;
}
.header__logo img {
  width: 200px;
  cursor: pointer;
}
.header__role-switcher {
  height: 50px;
  width: 360px;
  background: var(--bg-color);
  border-radius: 10px;
}
.header__burger{
  display: none;
}
.header__actions {
  display: flex;
  width: 500px;
  justify-content: space-between;
  align-items: center;
}
.header__address-mobile {
  display: none;
}
.role-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  gap: 10px;
}
.role-switcher span {
  font-size: 24px;
}
.role-switcher__button {
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  border: none;
  background: none;
  flex: 1;
  text-align: center;
  color: var(--main-color);
}
.role-switcher__button_active {
  color: var(--accent-color);
  font-weight: 500;
}
.actions {
  font-size: 24px;
}
.actions__address {
  display: flex;
  align-items: center;
  gap: 5px;
  transition: .3s ease;
}
.actions__address p:hover{
  cursor: pointer;
  color: var(--accent-color);
}
.actions__resume {
  background: var(--bg-color);
  padding: 12px 20px;
  border-radius: 10px;
  color: var(--accent-color);
  cursor: pointer;
  white-space: nowrap;
  transition: .3s  ease;
}
.actions__resume:hover{
  border: 1px solid var(--accent-color);
  background: transparent;
}
.actions__auth {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: .3s ease;
}
.actions__auth span:hover{
  color: var(--accent-color);
}
@media (max-width: 1200px) {
  .header__role-switcher {
    margin-right: 15px;
  }
  .role-switcher__button {
    font-size: 20px;
  }
  .actions__address {
    font-size: 20px;
  }
  .actions__resume {
    font-size: 20px;
  }
  .actions__auth {
    font-size: 20px;
  }
  .header__logo {
    margin-right: 15px;
  }
}
@media (max-width: 1024px) {
  .container {
    flex-wrap: wrap;
    padding: 15px 20px;
  }
  .header {
    min-height: 80px;
    height: auto;
  }
  .header__logo {
    order: 1;
    margin-right: auto;
  }
  .header__logo img {
    width: 130px;
  }
  .header__actions {
    order: 2;
    width: auto;
    margin-left: auto;
    gap: 20px;
  }
  .header__role-switcher {
    order: 3;
    width: 100%;
    margin: 15px 0px;
    height: 45px;
  }
  .role-switcher span {
    font-size: 20px;
  }
  .role-switcher__button {
    font-size: 20px;
    padding: 8px;
  }
  .actions {
    font-size: 20px;
  }
  .actions__resume {
    padding: 10px 15px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 10px 15px;
    gap: 10px;
  }
  .header {
    height: 60px;
  }
  .header__logo {
    order: 1;
    margin-right: 0;
  }
  .header__logo img {
    width: 120px;
  }
  .header__role-switcher {
    display: none;
  }
  .header__actions {
    display: none;
  }
  .header__address-mobile {
    order: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    margin-right: 20px;
    font-size: 18px;
  }
  .header__burger {
    display: flex;
    order: 3;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
  }
  .header__burger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--main-color);
    border-radius: 3px;
    transition: all 0.3s ease;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 10px;
  }
  .header__logo img {
    width: 100px;
  }
  .header__address-mobile {
    font-size: 16px;
    margin-right: 15px;
  }
  .header__address-mobile svg {
    width: 24px;
    height: 24px;
  }
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--second-color);
  z-index: 999;
  padding: 80px 20px 20px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-menu--open {
  transform: translateX(0);
}
.mobile-menu__content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.mobile-menu .role-switcher {
  width: 100%;
  max-width: none;
  height: 50px;
  display: flex;
}
.mobile-menu .actions {
  flex-direction: column;
  width: 100%;
  max-width: none;
  gap: 20px;
  display: flex;
}
@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }
}
.burger-open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.burger-open span:nth-child(2) {
  opacity: 0;
}
.burger-open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.banner {
  min-height: 70vh;
  max-height: 700px;
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-bottom: 50px;
}
.banner__img {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner__container {
  justify-content: center;
  align-items: start;
  flex-direction: column;
  position: relative;
  z-index: 2;
  padding: 40px 20px;
}
.banner__title {
  font-family: var(--accent-font);
  color: var(--second-color);
  max-width: 832px;
  width: 100%;
  font-size: 50px;
  margin-bottom: 45px;
}
.banner__title span {
  display: inline-block;
  text-align: right;
  width: 100%;
}
.banner__search {
  max-width: 800px;
  width: 100%;
}
.search__form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 700px;
  width: 100%;
  margin-bottom: 30px;
  gap: 15px;
}
.search__form label {
  display: inline-block;
  max-width: 500px;
  width: 100%;
  height: 60px;
  position: relative;
  box-sizing: border-box;
}
.search__input {
  width: 100%;
  height: 100%;
  font-size: 22px;
  color: #4e4e4e;
  border-radius: 20px;
  outline: none;
  border: none;
  padding-left: 60px;
  box-sizing: border-box;
}
.search__search-icon {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding-left: 10px;
  width: 40px;
  height: 40px;
}
.search__cross-icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  margin-right: 10px;
  cursor: pointer;
  width: 30px;
  height: 30px;
}

.search__address-icon {
    position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  margin-left: 10px;
  cursor: pointer;
  width: 30px;
  height: 30px;
}
.search__advanced {
  color: var(--second-color);
  text-decoration: underline;
  font-size: 18px;
  cursor: pointer;
  margin-bottom: 140px;
}
.search__fill-resume {
  text-decoration: none;
  font-size: 22px;
  padding: 17px 62px;
}
@media (max-width: 1024px) {
  .banner {
    min-height: 60vh;
    max-height: 600px;
  }
  .banner__title {
    font-size: 42px;
    margin-bottom: 35px;
  }
}
@media (max-width: 767px) {
  .banner {
    min-height: 50vh;
    max-height: none;
    height: auto;
    padding: 20px 0;
  }
  .banner__title {
    font-size: 32px;
    margin-bottom: 25px;
    line-height: 1.3;
  }
  .banner__title span {
    text-align: center;
  }
  .banner__container {
    align-items: center;
    text-align: center;
  }
  .search__form {
    flex-direction: column;
    gap: 20px;
  }
  .search__advanced {
    margin-bottom: 80px;
  }
  .search__fill-resume {
    padding: 15px 40px;
    font-size: 20px;
  }
  .search__container {
    padding: 30px 15px;
  }
  .search__form {
    margin-bottom: 20px;
  }
  .search label {
    height: 50px;
    max-width: none;
  }
  .search__input {
    font-size: 18px;
    padding-left: 50px;
    border-radius: 15px;
  }
  .search__search-icon {
    width: 35px;
    height: 35px;
    padding-left: 8px;
  }
  .search__cross-icon {
    width: 25px;
    height: 25px;
    margin-right: 8px;
  }
  .search__advanced {
    font-size: 16px;
    margin-bottom: 50px;
  }
  .search__fill-resume {
    font-size: 18px;
    padding: 14px 30px;
    border-radius: 15px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }
}
@media (max-width: 480px) {
  .banner {
    min-height: 450px;
  }
  .banner__title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .banner__container {
    padding: 20px 10px;
  }
  .search__form {
    gap: 15px;
  }
  .search__input {
    font-size: 16px;
    padding-left: 45px;
  }
  .search__search-icon {
    width: 30px;
    height: 30px;
  }
  .search__cross-icon {
    width: 15px;
    height: 15px;
  }
  .search__advanced {
    font-size: 14px;
    margin-bottom: 40px;
  }
  .search__fill-resume {
    font-size: 16px;
    padding: 12px 25px;
  }
  .search__btn {
    font-size: 16px;
  }
}
@media (min-width: 1440px) {
  .banner {
    min-height: 80vh;
    max-height: 900px;
  }
  .banner__title {
    font-size: 60px;
  }
}
@media (min-height: 1000px) and (min-width: 1200px) {
  .banner {
    min-height: 60vh;
  }
}
@media (max-width: 767px) and (orientation: landscape) {
  .banner {
    min-height: 80vh;
  }
  .banner__title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .banner .search__advanced {
    margin-bottom: 30px;
  }
}

/* Футер */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: #f5f5f5;
  padding: 40px 20px;
}

.footer__logo {
    width: 150px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 25px;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}
.footer__col h4 {
  font-size: 18px;
  margin-bottom: 15px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: #000;
  text-decoration: none;
}
.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.footer__socials img {
  width: 40px;
  height: 40px;
}

@media (max-width: 768px) {
    .footer__container {
        flex-wrap: wrap;
        justify-content: center;
  }
}

@media (max-width: 380px) {
    .footer__container {
        flex-direction: column;
  }
}