@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap');

:root {
  --primary: #2B2D42;
  --accent: #CCDBE0;
  --header: #8D99AE;
  --success: #C09C54;
  --danger: #DA2700;
  --warning: #E59010;
  --primary-hover: #cb5656;
  --transition: all 0.25s cubic-bezier(.39,0,.17,.99);
}

ul {
  list-style: disc inside;
}

ol {
  list-style: inside;
}
.nav li {
  display: inline-block;
  position: relative;
  padding: 10px;
  cursor: pointer;
}
.nav li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding: 0;
  margin: 0;
  z-index: 1;
}
.nav li:hover ul {
  display: block;
}
.nav li {
  display: block;
  padding: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:focus {
  outline: 0;
}
h1,h2,h3{
  font-weight: 400;
}
img {
  border: none;
}
.select-item[value=""],
.select-item[value="default"] {
  display: none;
}
option[disabled] {
  display: none;
}
html {
  scroll-behavior: smooth;
}
.wrapper {
  overflow-x: hidden;
}
body {
  font: 14px/1.42 'Roboto', Arial, sans-serif;
  color: rgba(0, 0, 0, 0.85);
  background-color: #F2F6F7;
}
.center {
  width: 100%;
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto;
}
section {
  margin-bottom: 60px;
}
/*ul,*/
/*ol {*/
/*  list-style-position: inside;*/
/*  margin-bottom: 20px;*/
/*}*/

/* Header */
.header {
  padding: 20px 0;
}
.header .center {
  position: relative;
  z-index: 2;
}
.header .center:after {
  content: '';
  position: absolute;
  top: -10px;
  right: -36px;
  width: 241px;
  height: 241px;
  border-radius: 50%;
  background-color: var(--header);
  z-index: -1;
}
.header .center {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .logo {
  max-width: 180px;
  height: auto;
}
.header-buttons {
  display: flex;
  align-items: center;
}
.nav{
  display:flex;
}

.switch-form-btn {
  display: none;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  min-width: 140px;
  text-align: center;
  text-transform: uppercase;
  background-color: var(--primary);
  padding: 12px 15px;
  box-shadow: 0 2px 2px rgba(0,0,0,.2), 0 0 2px rgba(0,0,0,.1);
  border-radius: 20px;
  border: none;
  outline: none;
  cursor: pointer;
  transition: var(--transition);
  margin: 5px;
}
.switch-form-btn a{
  text-decoration:none;
  color:#fff;
}
.drop-down ul{
  width:200px;
}
.drop-down::before {
  content: '\25BC';
  position: absolute;
  right: 0;
  transform: translateX(-50%);
  font-size: 12px;
}
.switch-form-btn.is-active {
  display: block;
}
.switch-form-btn:hover {
  box-shadow: none;
  background-color: var(--primary-hover);
}

/* Main-section */
.main-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-grow: 1;
  background: url(bg-main.webp) top center / cover no-repeat;
  min-height: 355px;
  border: 6px solid #F2F2F2;
  border-radius: 40px 40px 0 40px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  margin: 0 10px;
  z-index: 1;
}
.main-section .center {
  padding: 0;
}
.slogan-title {
  display: block;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin: 0 20px 20px;
}
.is-open-form .slogan-title {
  display: none;
}
.page-title {
  position: relative;
  display: block;
  font-size: 24px;
  font-weight: 400;
  text-align: center;
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 20px;
}
.page-title-h3 {
  position: relative;
  display: block;
  font-size: 20px;
  font-weight: 400;
  text-align: center;
  color: rgba(0, 0, 0, 0.85);
  margin-bottom: 20px;
}
.page-btn,
.main-btn {
  display: inline-block;
  vertical-align: top;
  font-weight: 500;
  font-size: 14px;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  background-color: var(--primary);
  padding: 12px 15px;
  box-shadow: 0px 2px 2px rgba(0,0,0,0.2), 0px 0px 2px rgba(0,0,0,0.1);
  border-radius: 20px;
  border: none;
  outline: none;
  cursor: pointer;
  margin: 0 auto;
  transition: var(--transition);
}
.page-btn {
  display: block;
  min-width: 180px;
}
.page-btn:hover,
.main-btn:hover {
  box-shadow: none;
  background-color: var(--primary-hover);
}
.main-btn {
  display: block;
  margin-bottom: 20px;
}
.is-open-form .main-btn {
  display: none;
}

.form-block {
  display: none;
  width: 100%;
  padding: 40px 15px;
  color: rgba(0, 0, 0, 0.85);
  background-color: #fff;
  margin: 0 auto;
  border-radius: 33px 33px 0 33px;
  transition: all 0.2s cubic-bezier(0.39,0,0.17,0.99);
}

.form-block.is-active-form {
  display: block;
}

.is-active-form + .form-block {
  display: none;
}


/* Breadcrumbs-section */
.breadcrumbs-section {
  padding: 25px 0 0;
  margin-bottom: 40px;
}
.breadcrumbs-block {
  margin-bottom: 0;
}
.breadcrumbs-item {
  position: relative;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.3);
  text-decoration: none;
  display: inline-block;
  margin: 5px 0;
}
.breadcrumbs-item:after {
  content: '/';
  display: inline-block;
  vertical-align: top;
}
.breadcrumbs-item:last-child:after {
  display: none;
}
.breadcrumbs-item:last-child {
  color: var(--primary);
}
.breadcrumbs-item a {
  color: rgba(0, 0, 0, 0.3);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
}
.breadcrumbs-item a:hover {
  text-decoration: underline;
}

/* Profiles-section */
.profiles-block {
  display: grid;
  grid-gap: 40px 20px;
  grid-template-columns: repeat(auto-fill,minmax(285px,1fr));
  margin-bottom: 40px;
  margin-top: 30px;
}
.profiles-item {
  border-radius: 40px 40px 0 40px;
  box-shadow: 0px 15px 50px rgba(26, 6, 36, 0.15);
}
.profiles-picture {
  position: relative;
  padding: 10px 10px 0 0;
  top: -10px;
}
.profiles-picture:after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90%;
  height: 90%;
  opacity: .9;
  border-radius: 20px;
  z-index: -1;
}
.profiles-item:nth-child(1) .profiles-picture:after {
  background-color: var(--accent);
}
.profiles-item:nth-child(2) .profiles-picture:after {
  background-color: var(--header);
}
.profiles-item:nth-child(3) .profiles-picture:after {
  background-color: var(--primary);
}
.profiles-item:nth-child(4) .profiles-picture:after {
  background-color: var(--header);
}
.profiles-item:nth-child(5) .profiles-picture:after {
  background-color: var(--danger);
}
.profiles-item:nth-child(6) .profiles-picture:after {
  background-color: var(--accent);
}
.profiles-item img {
  display: block;
  width: 100%;
  border: 3px solid #fff;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(26,6,36,.15);
}
.profiles-inner {
  padding: 20px 40px 40px;
}
.profiles-title {
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #EBEBEB;
}
.profiles-title span {
  display: block;
  font-size: 12px;
  font-weight: 400px;
  color: rgba(38, 38, 38, 0.5);
}

/* Text-section */
.text-section {
  position: relative;
}
.text-section p {
  margin-bottom: 20px;
}
.text-section p:last-child {
  margin-bottom: 0;
}
.text-section img {
  position: center;
  width: 100%;
  height: auto;
}

/* Links-section */
.links-block {
  position: relative;
  display: grid;
  grid-gap: 20px 20px;
  grid-template-columns: repeat(auto-fill,minmax(285px,1fr));
}
.links-column {
  padding: 40px;
  box-shadow: 0px 15px 50px rgba(26, 6, 36, 0.15);
  border-radius: 30px 30px 0px 30px;
}
.links-list {
  list-style: none;
}
.links-list li {
  display: block;
  margin-bottom: 15px;
}
.links-list li:last-child {
  margin-bottom: 0;
}
.links-list a {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  text-align: left;
  transition: var(--transition);
}
.links-list a:hover {
  color: var(--primary-hover);
}

/* Footer */
.footer {
  padding: 30px 0;
  text-align: center;
  background-color: var(--header);
}
.footer-logo {
  display: block;
  margin: 0 auto 20px;
}
.footer-list {
  list-style: none;
  margin-bottom: 20px;
}
.footer-list-decoration {
  position: relative;
  padding-bottom: 20px;
}
.footer-list-decoration:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 120px;
  height: 1px;
  background-color: #fff;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}
.footer-list li {
  display: inline-block;
  vertical-align: top;
  margin: 0 15px 10px;
}
.footer-list li:last-child {
  margin-bottom: 0;
}
.footer-list a {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
}
.footer-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.copyright-block {
  font-size: 12px;
  line-height: 1.42;
  text-align: center;
  color: rgba(255,255,255,0.6);
}
.copyright-block a {
  color: rgba(255,255,255,0.6);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0,0,0,.85);
  z-index: 10;
}
.overlay.is-active-form {
  display: block;
}

/* Popup-block */
.popup-container {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  left: 50%;
  top: 50%;
  width: 100%;
  max-width: 698px;
  -webkit-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  transition: var(--transition);
  z-index: 100;
}
.popup-container.is-open-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-block {
  display: grid;
  max-width: 698px;
  margin: auto;
  -webkit-transform: translateY(-30px);
  transform: translateY(-30px);
  transition: var(--transition);
  z-index: 10;
}

.is-open-popup .popup-block {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.popup-reg-form-block {
  display: block;
}

@media (min-width: 768px) {
  .main-section {
    max-width: 1050px;
    min-height: 455px;
    padding: 0;
    text-align: left;
    flex-grow: 1;
    margin: 0 auto;
    background: #fff;
    border: none;
    box-shadow: none;
    margin-bottom: 20px;
    z-index: 1;
  }
  .main-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    min-height: 455px;
    background: linear-gradient(360deg, #1A0624 0%,rgba(48,15,31,0) 77.14%), url(bg-main.webp) top center / cover no-repeat;
    border: 6px solid #F2F2F2;
    border-radius: 40px 40px 0 40px;
    box-shadow: 0 4px 4px rgba(0,0,0,.25);
  }
  .main-section .center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
  }
  .main-section .center {
    position: relative;
  }
  .slogan-title {
    font-size: 33px;
    text-align: left;
    margin-bottom: 40px;
  }
  .is-open-form .slogan-title {
    display: block;
  }
  .main-btn {
    display: none;
  }
  .signin-block {
    width: 100%;
  }
  .form-block {
    padding: 40px;
    max-width: 698px;
    min-height: 202px;
    box-shadow: 0px 15px 50px rgba(26, 6, 36, 0.15);
    border-radius: 30px;
    animation: fadeIn 0.5s cubic-bezier(0.39,0,0.17,0.99) forwards;
    margin-bottom: -20px;
  }
  .reg-form-block {
    position: relative;
    top: 0;
    display: block;
  }
  .is-active-form + .form-block {
    display: none;
  }
  .form-select select {
    opacity: 0;
    visibility: hidden;
  }
  .select-value {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    font-size: 14px;
    color: rgba(0,0,0,.85);
    padding-right: 8%;
    cursor: pointer;
  }
  .select-dropdown {
    position: absolute;
    top: 100%;
    right: -20px;
    left: -20px;
    display: block;
    max-height: 200px;
    padding: 10px 0;
    overflow-y: auto;
    background: #fff;
    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);
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
    visibility: hidden;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
  }
  .is-visible .select-dropdown {
    visibility: visible;
    opacity: 1;
    -webkit-transform: translateY(-1px);
    transform: translateY(-1px);
  }
  .select-item {
    position: relative;
    display: block;
    font-size: 13px;
    color: rgba(0,0,0,0.85);
    padding: 10px 20px;
    cursor: pointer;
    transition: var(--transition);
  }
  .form-step-block {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-left: 150px;
    transition: var(--transition);
  }
  [data-current-step-index="1"] .next-btn {
    justify-content: space-between;
  }
  [data-current-step-index="1"] .form-step-block,
  [data-current-step-index="4"] .form-step-block {
    padding-left: 0;
  }
  [data-current-step-index="1"] .prev-btn {
    display: none;
  }
  .prev-btn {
    position: absolute;
    left: 0;
  }
  .form-step-wrapper {
    flex-grow: 2;
    margin-right: 25px;
  }
  .form-step-block .form-item {
    margin: 20px 0 0;
  }
  
  /* Footer */
  .footer {
    padding: 20px 0;
  }
  .footer .center {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }
  .footer-logo {
    margin: 0;
  }
  .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .footer-block {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .footer-list-decoration {
    padding: 0 20px 0 0;
  }
  .footer-list-decoration:after {
    left: auto;
    right: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
  }
  .footer-list {
    margin-bottom: 0;
  }
  .footer-list li {
    margin-bottom: 0;
  }
  .footer-list li:last-child {
    margin-right: 0;
  }
}

@media (min-width: 1200px) {
  .header .center:after {
    top: 15px;
    right: -137px;
  }
  .main-section {
    margin-bottom: 70px;
  }
  .main-section:before,
  .main-section {
    min-height: 600px;
  }
  .main-section .center:before,
  .main-section .center:after {
    content: '';
    position: absolute;
    border-radius: 50%;
  }
  .main-section .center:before {
    top: 315px;
    left: -277px;
    width: 353px;
    height: 353px;
    background-color: var(--accent);
    z-index: -2;
  }
  .main-section .center:after {
    top: 520px;
    left: -72px;
    width: 150px;
    height: 150px;
    background-color: var(--primary);
    z-index: -1;
  }
  .signin-block {
    display: flex;
    align-items: flex-start;
  }
  /* Text-section */
  .text-section .center {
    position: relative;
  }
  
  /* Profiles-section */
  .profiles-block {
    margin-top: 50px;
  }
}

@media (min-width: 1920px) {
  .main-section {
    margin-top: 40px;
  }
}

.article-image img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
}

/*mob menu*/
.hamburger{
  display:none;
}
@media(max-width: 768px){
  .header .center:after{
    display:none;
  }
  .hamburger{
    display:block;
  }
.hamburger-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  z-index: 1;
  padding-right: 20px;
}

.hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 2;
}

.hamburger-icon,
.hamburger-icon:before,
.hamburger-icon:after {
  background-color: #333;
  content: '';
  display: block;
  height: 2px;
  width: 25px;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
}

.hamburger-icon:before {
  top: -8px;
}

.hamburger-icon:after {
  bottom: -8px;
}

.nav {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  top: 100%;
  left: 0;
  z-index: 1;
  background-color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.nav li {
  display: block;
}

.nav a:hover {
  background-color: #cb5656;
}

.hamburger-menu .open{
  display: block;
}
.drop-down ul{
  background: #fff;
}
.switch-form-btn{
  min-width:190px;
}
}

.text-section ul{
  margin-bottom:20px;
}