/* vars */

:root {
  --color-main: #cd3615;
  --color-secondary: #a6bbdc;
  --color-text: black;
  --color-bg-main: #fff7ef;
  --color-bg-secondary: #fff1e6;
  --color-bg-third: #ffe7cf;
  --color-button: #f4a659;
  --color-hover: #e3703c;
  --weight-basic: 500;
  --gap-section: 80px;
  --gap-container: 40px;
}

/* global */

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
  padding: 0px;
  margin: 0px;
}

*:focus-visible {
  outline: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

body {
  margin: 0px;
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 400;
  background-color: var(--color-bg-main);
  color: var(--color-text);
}

textarea {
  resize: none;
}

h1 {
  font-size: 48px;
}

h2 {
  padding-bottom: var(--gap-container);
  font-size: 36px;
}

h3 {
  padding-bottom: var(--gap-container);
  font-size: 24px;
}

.section-main {
  margin: 0px;  
  padding: var(--gap-section) 0px;
}

.container {
  width: 1400px;
  padding: 0px;
  margin: 0px auto;
  overflow: hidden;  
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.grid2__cell {
  padding: var(--gap-container);
  margin-bottom: var(--gap-container);
  border-radius: 16px;
}

.grid2__cell:first-child {
  margin-right: calc(var(--gap-container) / 2);
}

.grid2__cell:last-child {
  margin-left: calc(var(--gap-container) / 2);
}

.grid3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.grid3__cell {
  padding: var(--gap-container);
  margin-bottom: var(--gap-container);
  border-radius: 16px;
}

.grid3__cell:first-child {
  margin-right: calc(var(--gap-container) / 2);
}

.grid3__cell:nth-child(2) {
  margin: 0px calc(var(--gap-container) / 2) var(--gap-container) calc(var(--gap-container) / 2);
}

.grid3__cell:last-child {
  margin-left: calc(var(--gap-container) / 2);
}

.text-main {
  padding-bottom: var(--gap-container);
  font-size: 20px;
  line-height: 1.5em;
}

.text-bold {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5em;
}

.red-text {
  color: var(--color-main);
}

.blue-text {
  color: var(--color-secondary);
}

.orange-text {
  color: var(--color-button);
}

.text-number {
  font-size: 36px;
  font-weight: 700;
}

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

.link {
  text-decoration: none;
  font-size: 20px;
}

.button, .button-alternate, .button-blue {
  position: relative;
  margin: 20px 0px;
  display: inline-block;
  padding: calc((var(--gap-container)) / 2) var(--gap-container);   
  border-radius: calc((var(--gap-container)) / 2);
  color: var(--color-bg-main);
  font-size: 22px;
  transition: all 0.5s ease-in-out;
}

.button {
  background-color: var(--color-main);
  border: 1px solid var(--color-main);
}

.button-alternate {
  background-color: var(--color-button);
  border: 1px solid var(--color-button);
}

.button-blue {
  background-color: var(--color-secondary);
  border: 1px solid var(--color-secondary);
}

.columns2 {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  align-content: stretch;
}

.columns2__left {
  width: calc((100% - (var(--gap-main))) / 2);
}

.columns2__right {
  width: calc((100% - (var(--gap-main))) / 2);
}

.columns2__item {
  display: flex;
  flex-direction: row;
}

.city-choice {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.city-choice__selection {
  font-size: 20px;
}

.city-choice__selection {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;    
  padding-right: 10px; 
  border: none;
  background-image: url('../img/dropdown.svg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 25px;
  background-color: transparent;  
}

.city-choice__selection::-ms-expand {
  display: none;
}

.city-choice__text {
  margin: 0px 10px;
  font-size: 20px;
}

.city-choice__img {
  margin-right: 10px;
}



/* header */

.header {
  height: 120px;
  margin: 0px;  
  padding: 0px;
  position: fixed;  
  background: var(--color-bg-main);
  z-index: 100;
}

.header__container {
  width: 1400px;
  height: 50%;
  padding: 20px 0px;
  margin: 0px calc((100vw - 1400px) / 2 - 10px);  
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.header__container:first-child {
  border-bottom: 1px solid var(--color-button);
}

.header__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.header__menu_desktop .link {
  margin-right: var(--gap-container);
}

.header__logo {
  display: block;
  height: 40px;
  width: 210px;
  background: url('../img/logo.svg') no-repeat center;
  background-size: 224px 40px;
}

.header__button {
  margin: 10px 0px;
  padding: 10px 30px;
}

.header__menu_mobile {
  display: none;
}


/* first */

#first {
  height: 900px;
}

.first {
  height: 100%;
  display: flex;
  flex-direction: row;
}

.first__left-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 100px;
  padding: calc(2 * var(--gap-container)) var(--gap-container) calc(2 * var(--gap-container)) 0px;
  width: 50%;
}

.first__right-column {
  width: 50%;
  margin-top: 100px;
  background-size: 660px 600px;
}

.nocity {
    background: url('../img/intro-city.svg') no-repeat center;
}

.saint-petersburg {
    background: url('../img/spb.svg') no-repeat center;
}

.ekaterinburg {
    background: url('../img/ekb.svg') no-repeat center;
}

.kazan {
    background: url('../img/kazan.svg') no-repeat center;
}

/* second */

#second {
  background-color: var(--color-bg-secondary);
}

.second {
  padding: var(--gap-container);
  background-color: var(--color-bg-third);
  border-radius: 16px;
}

.second .grid2 .grid2__cell {
  background-color: var(--color-bg-main);
}

/* third */

#third {
  background-color: var(--color-bg-main);
}

.third {
  display: flex;
  flex-direction: row;
}

.third .text-main {
  padding-bottom: 0px;
}

.third__left-block {
  position: relative;
  width: 20%;
  border: 2px solid var(--color-main);
  border-radius: 16px;
  margin-right: var(--gap-container);
  padding: 100px 16px 16px;
}

.third__svg {
  position: absolute;
  left: 140px;
  top: 20px;
}

.third__center-block {
  width: 60%;
}

.third__center-block > * {
  border: 2px solid var(--color-main);
  border-radius: 16px;
  padding: 16px;
}

.third__center-block-top {
  margin-bottom: var(--gap-container);
}

.third__right-block {
  position: relative;
  width: 20%;
  border: 2px solid var(--color-main);
  border-radius: 16px;
  margin-left: var(--gap-container);
  padding: 100px 16px 16px;
}

/* quiz1 */

#quiz1 {
  background-color: var(--color-secondary);
}

.quiz__content {
  height: 200px;
  background-color: var(--color-bg-main);
  border-radius: 16px;
}

/* about */

#about {
  background-color: var(--color-bg-third);
}

.about .grid3 .grid3__cell, #about .grid1 {
  padding: var(--gap-container);
  background-color: var(--color-bg-main);
  border-radius: 16px;
}

.about__items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;  
}

.about__item {
  display: flex;
  flex-direction: row;
}

.about__item svg {
  margin: 5px 15px 0px 0px;
}

/* forcustomer */

#forcustomer {
  background-color: var(--color-bg-main);
}

.forcustomer .grid2 .grid2__cell {
  padding: 0px;  
}

.forcustomer .grid2 .grid2__cell .header-wrapper {
  padding: var(--gap-container) var(--gap-container) 0px var(--gap-container);
  background-color: var(--color-secondary);
  border-top: 2px solid var(--color-secondary);
  border-right: 2px solid var(--color-secondary);
  border-left: 2px solid var(--color-secondary);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.forcustomer__list {
  min-height: 300px;
  padding: var(--gap-container);
  border-bottom: 2px solid var(--color-secondary);
  border-right: 2px solid var(--color-secondary);
  border-left: 2px solid var(--color-secondary);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.forcustomer__list li {
  padding-bottom: 0px;
}

.forcustomer__list li::marker {
  color: var(--color-main);
}

/* chances */

#chances {
  background-color: var(--color-bg-third);
}

.chances {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 1400px;
  height: 4em;
  margin: 0px auto;
  padding: 0px;  
}

.chances * {
  margin: 0px;
}

.chances .text-main {
  padding: 0px;
  width: 80%;
}

/* realcases */

#realcases {
  background-color: var(--color-bg-main);
}

.realcases__slider {
  position: relative;
  overflow: hidden;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 12px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

.arrow:hover {
  background: rgba(0,0,0,0.7);
}

.slides {
  position: relative;
  height: 700px;
}

.slide {
  position: absolute;
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  top: 0px;
}

.column { 
  padding: var(--gap-container);
  background-color: white;
  border-radius: 16px;
}

.column:first-child {
  margin-right: calc(var(--gap-container) / 2);
}

.column:last-child {
  margin-left: calc(var(--gap-container) / 2);
}

.column .blue-text, .text-main {
  padding-bottom: var(--gap-container);
}

.column ul {
  padding-left: calc(var(--gap-container) / 2);
}

.column h3, .text-bold, li.text-main {
  padding-bottom: 0px;
}

.closed {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--color-bg-third);
}

.closed:hover {
  background-color: var(--color-hover);
}

.closed .content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.closed.opened .content {
  max-height: 200px;
}

.dots {
  display: flex;
  justify-content: center;
  padding: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  margin: 0px 6px;
  background: var(--color-button);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  width: 30px;
  background: var(--color-button);
}

/* benefits */

#benefits {
  background-color: var(--color-bg-main);
}

.benefits .grid3 .grid3__cell {
  padding: 0px;
}

.edge-header-wrapper {
  height: 100px;
  padding: var(--gap-container) var(--gap-container) 0px var(--gap-container);
  border-top: 2px solid var(--color-main);
  border-right: 2px solid var(--color-main);
  border-left: 2px solid var(--color-main);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background-color: var(--color-bg-third);
}

.middle-header-wrapper {
  height: 100px;
  padding: calc(var(--gap-container) / 2) var(--gap-container) 0px var(--gap-container);
  border-top: 2px solid var(--color-main);
  border-right: 2px solid var(--color-main);
  border-left: 2px solid var(--color-main);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background-color: var(--color-button);
  color: white;
}

.list-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 1080px;
  padding: var(--gap-container);
  border-bottom: 2px solid var(--color-main);
  border-right: 2px solid var(--color-main);
  border-left: 2px solid var(--color-main);
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
}

.list-wrapper p {
  padding-bottom: 10px;
}

.list-wrapper .blue-text {
  margin-top: 20px;
}

.benefits__list li {
  padding-bottom: 10px;
}

/* howitworks */

.howitworks__card {
  display: flex;
  flex-direction: row;
  margin-bottom: var(--gap-container);
  padding: var(--gap-container);  
}

.howitworks__card {
  background: url(../img/arrow-block-center.svg) center / cover no-repeat;
}

.howitworks__card:nth-child(2) {
  background: url(../img/arrow-block-top.svg) center / cover no-repeat;
}

.howitworks__card:last-child {
  background: url(../img/arrow-block-bottom.svg) center / cover no-repeat;
}

.howitworks__card_content {
  width: 50%;
}

.howitworks__card_image {
  width: 650px;
  height: 400px;
  background-size: 650px 400px;
}

.hiwi1 {
  background: url('../img/step1.svg') no-repeat center;  
}

.hiwi2 {
  background: url('../img/step2.svg') no-repeat center;  
}

.hiwi3 {
  background: url('../img/step3.svg') no-repeat center;  
}

.hiwi4 {
  background: url('../img/step4.svg') no-repeat center;  
}

.hiwi5 {
  background: url('../img/step5.svg') no-repeat center;  
}

/* doc1 */

#doc1 .grid2__cell:first-child {
  background: url('../img/docs.svg') no-repeat center;
  background-size: 100%;
}

#doc1 .grid2__cell:last-child {
  padding-left: 0px;
}

/* team */

.team .grid2 .grid2__cell {
  padding: 0px;
}

.team h3 {
  padding-bottom: 0px;
}

.about-img {
  width: 100%;
  aspect-ratio: 1.4;
  margin-bottom: var(--gap-container);
}

/* book */

#book {
  display: none;
  position: fixed;
  right: 0;
  top: 50%;
  width: 300px;
  margin: calc(var(--gap-container) / 2);
  padding: 0;
  background-image: url('../img/bg.png');
  opacity: 0.7;
  overflow: hidden;
  z-index: 10;
}

.book {
  width: 100%;
  padding: 10px;
}

/* articles */

#articles {
  display: none;
}

/* accordion */

.accordion__item {
  margin: calc(var(--gap-container) / 2) 0px;
  padding-bottom: calc(var(--gap-container) / 2);
  border-bottom: 1px solid rgba(244, 166, 89, 0.2);
}

.accordion__item:last-child {
  border-bottom: none;
}

.accordion__button {
  display: inline-block;
  width: 70%;
  height: 50px;  
  padding: 0px 0px 0px 70px;
  font-size: 20px;
  font-weight: 700;
  text-align: left;
  border: none;
  background-color: transparent;
  background-image: url('../img/add.svg');
  background-size: 50px 50px;
  background-repeat: no-repeat;
  background-position: left;
  transition: all .2s ease-in-out;
}

.accordion__content {
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  opacity: 0;
  visibility: hidden;
  padding: 0px;
}

.is-open .accordion__content {
  max-height: 100vh;
  opacity: 1;
  visibility: visible;
  height: auto;
}

.is-open button {
  background-image: url('../img/add_extra.svg');
  background-repeat: no-repeat;
  background-position: left;
  background-size: 50px 50px;
}

.is-open p {
  padding: calc(var(--gap-container) / 2) 0px 0px 0px;
}

/* footer */

.footer {
  height: 200px;
  margin: 0px;  
  padding: 0px; 
  background: var(--color-bg-main);
}

.footer__container {
  width: 1400px;
  padding: 20px 0px;
  margin: 0px calc((100vw - 1400px) / 2 - 10px); 
}

.footer__content {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.footer__content:first-child {
  margin-bottom: var(--gap-container);
}

.footer__logo {
  width: 210px;
  height: 40px;
}

.footer_part {
  width: 350px;
  margin-right: 300px;
}

.footer-text {
  font-size: 20px;
}

.footer__sn {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 120px;
}

.footer__sn_img {
  display: inline-block;
  width: 50px;
  height: 50px;
  background-size: 50px 50px;
  background-repeat: no-repeat;
  background-position: center;
}

.telegram {
  background-image: url('../img/telegram.svg');
}

.vk {
  background-image: url('../img/vk.svg');
}