@font-face {
  font-family: 'Roboto';
  src:
    url(':f:roboto_regular_400.woff2') format('woff2'),
    url(':f:roboto_regular_400.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src:
    url(':f:roboto_medium_500.woff2') format('woff2'),
    url(':f:roboto_medium_500.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Material Icons';
  src:
    url(':f:MaterialIcons.woff2') format('woff2'),
    url(':f:MaterialIcons.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:focus {
  outline: 0;
}

img {
  border: none;
  max-width: 100%;
  display: block;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: rgba(0, 0, 0, 0.85);
  transition: var(--transition);
}

:root {
  --primary: #b81c1c;
  --accent: #9b1717;
  --header: #333341;
  --success: #ff0000;
  --danger: #F1462F;
  --warning: #F34134;
  --transition: all 0.25s cubic-bezier(0.39, 0, 0.17, 0.99);
  --primary-hover: #e896a0;
  --default-white: rgba(255, 255, 255, 0.9);
  --white-muted: rgba(255, 255, 255, 0.6);
  --default-dark: rgba(0, 0, 0, 0.85);
  --dark-muted: rgba(0, 0, 0, 0.9);
  --flat-btn: #EBEBEB;
  --flat-btn-hover: #f1eded;
}

/* Base */

.select-item[value=""],
.select-item[value="default"] {
  display: none;
}

option[disabled] {
  display: none;
}

:invalid {
  box-shadow: none;
}

html,
body,
.wrapper {
  height: 100%;
}

body {
  font: 14px/1.6 "Roboto", 'Trebuchet MS', "Arial", sans-serif;
  color: var(--default-dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body.mobile-nav-visible {
  overflow: hidden;
}

section {
  padding: 20px 0;
}

.center {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}
:invalid {
  box-shadow: none;
}
input,
select {
  width: 100%;
  padding: 10px 0;
  font-size: 14px;
  line-height: 20px;
  border-radius: 0;
  border: none;
  background: inherit;
  -webkit-appearance: none;
  color: var(--default-white);
}

input::-ms-input-placeholder {
  color: transparent;
}

input::placeholder {
  color: transparent;
}

/* Btns */

.btn {
  font: 500 14px/20px "Roboto", Arial, Helvetica, sans-serif;
  width: 100%;
  display: block;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  padding: 12px 10px;
  background: var(--primary);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2), 0 0 2px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  border: none;
  cursor: pointer;
  line-height: 1.2;
  transition: var(--transition);
  text-align: center;
}


/* Page title & description */

.page-title {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--primary);
}

.page-subtitle {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--primary);
}

/* Header */

header {
  padding: 10px 0;
  text-align: center;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}

header .logo {
  display: inline-block;
}
header .center {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  position: relative;
}
header .btn {
  width: auto;
  background: transparent;
  box-shadow: none;
}
header .btn:hover {
  background: transparent;
}
/* Main */
main {
  position: relative;
}
.main-container {
  display: flex;
  align-items: flex-end;
  position: relative;
  min-height: 460px;
  overflow: hidden;
  padding: 0;
}
.photo-block {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}
.photo-block img{
  width: 100%;
  object-fit: cover;
}
.photo-block::before{
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
}
.main-block {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 20px;
  background: transparent;
}
.main-slogan-wrapper .slogan-info {
  display: none;
}
.main-slogan {
  font-size: 24px;
  color: var(--default-white);
  font-weight: 400;
  margin-bottom: 10px;
  text-align: center;
}

/* Breadcrumbs */
.breadcrumbs-block {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumbs-item {
  font-size: 14px;
  margin: 2px 0;
  color: var(--dark-muted);
}
.breadcrumbs-item a {
  position: relative;
  padding-right: 12px;
  display: inline-block;
  margin-right: 8px;
}
.breadcrumbs-item:last-child span {
  color: var(--primary);
}
.breadcrumbs-item a:hover {
  text-decoration: underline;
}
.breadcrumbs-item a,
.breadcrumbs-item span {
  color: inherit;
}

.breadcrumbs-item a::after {
  content: "/";
  position: absolute;
  right: 0;
  top: 1px;
  color: var(--dark-muted);
  transition: var(--transition);
}
/* Content section */
.content-section {
  color: var(--dark-muted);
}
.content-section .picture-wrapper {
  margin: 0 auto 10px;
}
.content-section .picture-wrapper img {
  width: 100%;
}
.content-section ul {
  list-style: disc;
  margin-left: 20px;
}
.content-section p,
.content-section ul li {
  margin-bottom: 10px;
}
/* .content-section p + p {
  margin-bottom: 0;
} */


.user-section {
  padding-bottom: 40px;
  background-color: #FBF0F2;
}
.slider .user-content .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0;
  margin-top: auto;
  color: var(--default-dark);
  background: var(--flat-btn);
}
.slider .user-content .btn:hover {
  background: var(--flat-btn-hover);
}
.slider .user-content .btn span:before {
  content: "\e923";
  margin-right: 5px;
  font-family: "Material Icons";
  vertical-align: middle;
  color: var(--dark-muted);
  font-size: 25px;
  line-height: 1;
}

.slider {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.slider-wrapper {
  position: relative;
  z-index: 2;
  flex-grow: 1;
  width: 100%;
  overflow: hidden;
  padding: 5px 0;
}

.slider-view {
  display: flex;
  transition: all 0.4s ease-out;
}
.slider-item{
  display: flex;
  flex-shrink: 0;
  padding: 0 20px;
  user-select: none;
}
.slider-item .user-item {
  padding: 20px;
  background: #fff;
  box-shadow: 0 0 2px rgb(0 0 0 / 10%), 0 2px 2px rgb(0 0 0 / 20%);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
.slider-view img {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  user-select: none;
  pointer-events: none;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
}

.slider-nav {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.slider-arrow {
  position: relative;
  z-index: 9;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin-right: 20px;
  color: var(--dark-muted);
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 1;
  background: var(--flat-btn);
  transition: opacity 0.35s linear 0s;
}
.slider-arrow:hover {
  background: var(--flat-btn-hover);
}
.slider-arrow:before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-top: none;
}

.slider-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.arrow-prev::before {
  margin-right: -4px;
  border-right: none;
  transform: rotate(45deg);
}

.arrow-next::before {
  margin-right: 4px;
  border-left: none;
  transform: rotate(-45deg);
}

.arrow-next {
  margin-right: 0;
}

.slider-pagination {
  display: none;
}

.user-content {
  padding: 20px 0 0;
  text-align: left;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.user-name {
  margin-bottom: 10px;
  font-weight: normal;
  font-size: 16px;
  color: var(--default-dark);
}

.user-text {
  margin-bottom: 22px;
  color: var(--dark-muted);
}

/* Links section */
.links-section {
  text-align: center;
}
.links-block {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0 0;
}
.link-item {
    width: calc(50% - 5px);
    margin-bottom: 10px;
    text-align: center;
}
.link-item a {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-muted);
    width: 100%;
    text-transform: uppercase;
}
.link-item a:hover{
  color: var(--primary);
}

/* Footer */
.footer {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background-color: var(--header);
}

.footer .logo {
    display: block;
    margin: 0 auto;
}
.footer a{
  text-decoration:none;
   color: var(--default-white);
}
.footer-links-block {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px 0;
    text-align: center;
}
.footer-links-block a {
    display: inline-block;
    margin: 5px 10px;
    padding: 4px;
    text-transform: uppercase;
    color: var(--default-white);
}
.footer-links-block a:hover {
  color: var(--primary);
}
.copyright-block {
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* Signin block */
.form-popup-open .signin-block {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  padding: 20px;
  z-index: 10;
}

.form-popup-open .overlay-block {
  opacity: 1;
  visibility: visible;
}

.overlay-block {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: var(--default-white);
  transition: var(--transition);
}

.signin-block {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  z-index: -2;
  padding: 0 20px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  transition: var(--transition);
}

/* Reg form & Login form */

.login-form-block,
.reg-form-block {
  display: none;
  background: var(--header);
  padding: 20px;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  color: var(--white-muted);
  border-radius: 4px;
  box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1), 0px 2px 2px rgba(0, 0, 0, 0.2);
}
.login-form-block .close-form,
.reg-form-block .close-form {
    position: absolute;
    right: 15px;
    top: 14px;
    cursor: pointer;
}
.login-form-block .close-form::before,
.reg-form-block .close-form::before {
  font: 25px/1 "Material Icons";
  content: "\e933";
  display: inline-block;
  vertical-align: top;
  color: var(--white-muted);
  transition: var(--transition);
}

.login-form-block p,
.reg-form-block p {
  color: inherit;
}

[data-form-name="signup"] .reg-form-block {
  display: block;
}

[data-form-name="login"] .login-form-block {
  display: block;
}

.reg-form-title {
  margin-bottom: 30px;
  font-size: 20px;
  color: var(--default-white);
}

.form-item {
  position: relative;
  margin-bottom: 29px;
  margin-top: 15px;
}

.form-field-block .is-active .form-input::before {
  right: 0;
  left: 0;
  background: var(--primary);
}

.form-label-block {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  padding: 10px 0;
  line-height: 20px;
  transition: var(--transition);
}

.is-focused .form-label-block {
  padding: 0;
  font-size: 12px;
  -webkit-transform: translateY(-14px);
  transform: translateY(-14px);
}

.form-label-block label {
  color: #b2b2b2;
}

.form-input,
.form-select {
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.form-input::before,
.form-select::before {
  content: "";
  position: absolute;
  right: 50%;
  bottom: -1px;
  left: 50%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

[data-form-item="password"] input {
  padding-right: 30px;
}

.form-select::after {
  content: "";
  position: absolute;
  top: 48%;
  right: 6px;
  width: 0;
  height: 0;
  margin-left: -4px;
  border: solid transparent;
  border-width: 4px;
  border-color: transparent;
  border-top-color: #7f7f7f;
  transition: var(--transition);
  pointer-events: none;
}

.select-value {
  display: none;
}

.select-dropdown {
  display: none;
}

.select-item {
  font: 13px/2 inherit;
  position: relative;
  display: block;
  padding: 6px 20px;
  cursor: pointer;
  color: #000000;
}

.select-item:hover,
.select-item:focus {
  background: rgba(0, 0, 0, 0.06);
}

.form-error-block {
  margin-top: 3px;
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  color: var(--danger);
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  word-break: break-word;
}

.error-field .form-input::before,
.error-field .form-select::before {
  right: 0;
  left: 0;
  background: var(--danger);
}

.error-field .form-error-block {
  visibility: visible;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

.form-error-block a {
  text-decoration: underline;
  color: var(--danger);
}

.form-success-block {
  margin-top: 3px;
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  font-size: 12px;
  color: var(--success);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  word-break: break-word;
}

.valid-field .form-success-block {
  visibility: visible;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

.valid-field .form-input::before,
.valid-field .form-select::before {
  background: var(--success);
}

.form-success-block a {
  text-decoration: underline;
  color: var(--success);
}

.submit-btn-block {
  margin: 10px auto;
}
.submit-btn {
  background: var(--primary);
}

.form-terms {
  margin: 25px auto 0;
  font-size: 11px;
  text-align: center;
}

.form-terms a {
  color: var(--primary);
}

.form-terms a:hover {
  text-decoration: underline;
}

.password-icon {
  position: absolute;
  top: 8px;
  right: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.password-icon::before {
  font: 25px/1 "Material Icons";
  content: "\e945";
  display: inline-block;
  vertical-align: top;
  color: var(--default-white);
  transition: var(--transition);
}

.password-icon.active::before {
  content: "\e946";
}

/* Login & Recovery */

.recovery-form {
  display: none;
}

.recovery-form.visible {
  display: block;
}

.login-form.hidden {
  display: none;
}

.login-form-title {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--default-white);
}

.login-form-error,
.recovery-form-error,
.recovery-form-success {
  margin-top: 3px;
  -webkit-transform: translateY(20px);
  transform: translateY(20px);
  font-size: 12px;
  color: var(--danger);
  transition: var(--transition);
  visibility: hidden;
  opacity: 0;
}

.error-field .login-form-error,
.error-field .recovery-form-error {
  visibility: visible;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

.login-form-error a,
.recovery-form-error a,
.recovery-form-success a {
  color: var(--danger);
}

.recovery-form-success {
  color: var(--success);
}

.valid-field .recovery-form-success {
  visibility: visible;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  opacity: 1;
}

.recovery-password-btn,
.login-switch-btn {
  display: inline-flex;
  position: relative;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--default-white);
  transition: var(--transition);
}

.recovery-password-btn:hover,
.recovery-password-btn:focus {
  color: var(--primary);
}

.login-switch-btn:hover {
  color: var(--primary);
}

.login-switch-btn::before {
  font: 400 20px/1 "Material Icons";
  content: "\e910";
  display: inline-block;
  vertical-align: top;
  color: currentColor;
  margin-right: 5px;
}

.recovery-form-submit,
.login-form-submit {
  width: 100%;
}



/* MEDIA DEVICES */

@media screen and (max-width: 979px) {
  .slider.center {
    padding: 0;
  }
}

@media screen and (min-width: 980px) {
  .page-title {
    font-size: 34px;
    text-align: center;
    margin-bottom: 40px;
  }
  .page-subtitle {
    font-size: 24px;
    text-align: center;
    padding-top: 10px;
  }
  section {
    padding-top: 40px;
  }
  
  /* Header */
  header .center {
    justify-content: space-between;
  }
  .login-form-block,
  .reg-form-block {
    padding: 60px;
  }
  /* Main */
  main {
    height: 100vh;
    min-height: 670px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
  }
  .main-container {
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    min-height: auto;
    width: 100%;
    max-width: 1180px;
    flex: 1;
  }
  .main-block {
    max-width: 620px;
    padding: 60px;
    border-radius: 6px;
  }
  .main-slogan {
    font-size: 48px;
    line-height: 1.2;
    text-align: center;
  }
  .main-slogan-wrapper .slogan-info {
    display: block;
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--default-white);
  }
  .main-block .btn {
    width: 200px;
    margin: 0 auto;
  }
  .photo-block {
    width: 100%;
  }
  .photo-block img{
    height: 100%;
  }
  .photo-block::before{
    display: none;
  }
  /* Content section */
  .content-section {
    padding: 20px 0 40px;
    font-size: 16px;
     border-radius: 4px;
  }
  .content-section .page-title {
    margin-bottom: 10px;
  }
  /* Links section */
  .links-section {
    padding: 80px 0;
  }
  .links-block {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 30px;
    padding: 0;
  }
  .links-column {
      width: 24%;
  }
  .link-item {
    width: 100%;
  }
  .link-item a {
      width: auto;
      font-size: 16px;
  }
  .slider {
    padding: 0 65px;
  }
  .slider-item {
    padding: 0 15px;
  }
  .slider-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 25px;
    right: 25px;
    margin: auto;
    height: 40px;
    justify-content: space-between;
  }
  .slider-view .user-picture {
    height: 200px;
    overflow: hidden;
    border-radius: 4px;
  }
  .slider-view img {
    height: 100%;
  }
  /* Footer */
  .footer {
    padding: 40px 0;
  }

  .footer-links-block a {
      padding: 4px 20px;
  }
  .copyright-block {
    font-size: 14px;
    line-height: inherit;
  }
  
  /* SignIn Form */
  select {
    visibility: hidden;
    opacity: 0;
  }
  .signin-block {
    justify-content: center;
  }
  .signin-block .login-form-block,
  .signin-block .reg-form-block {
    padding: 32px 40px 40px;
  }
  
  .login-form-block .close-form,
  .reg-form-block .close-form {
      right: 40px;
      top: 36px;
  }
  .reg-form-title,
  .login-form-title {
    font-size: 24px;
  }
  .form-item {
    margin-top: 0;
  }
  /* Set select value & select dropdown */
  .select-value {
    display: flex;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin: auto;
    padding-right: 8%;
    font-size: 14px;
    line-height: 20px;
    font-family: inherit;
    cursor: pointer;
  }
  .select-dropdown {
    display: block;
    position: absolute;
    z-index: 10;
    top: 100%;
    right: -20px;
    left: -20px;
    max-height: 212px;
    padding: 10px 0;
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
    background: rgba(0,0,0,0.95);
    border-radius: 3px;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1), 0 4px 4px 0 rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    visibility: hidden;
    opacity: 0;
    overflow-y: auto;
  }
  .form-field-block .is-visible .select-dropdown {
    visibility: visible;
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    opacity: 1;
  }
  .select-item {
    position: relative;
    display: block;
    padding: 6px 20px;
    font-size: 13px;
    line-height: 2;
    font-family: inherit;
    cursor: pointer;
    color: var(--default-white);
  }
  .select-item:hover,
  .select-item:focus {
    background: rgba(255, 255, 255, 0.06);
  }
  .form-field-block .is-visible .select-dropdown {
    visibility: visible;
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
    opacity: 1;
  }
}