:root {
  /* Sizes */
  --inner: 1170px;

  /* Colors */
  --body: #0F0F23;
  --logo: #0F0F23;
  --logo-blink: #ffcc00;
  --link: #0F0F23;
  --link-hover: #3300ffa2;
  --link-border: rgba(51, 0, 255, 0.3);
  --success: #77c700;
  --error: #c72b00;
}

/* Reset */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  color: var(--body);
  background: rgb(231,236,240);
  background: linear-gradient(180deg, rgba(231,236,240,1) 0%, rgba(255,255,255,1) 50%);
}

a {
  position: relative;
  color: var(--link);
  transition: color 0.1s;
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
}

ul {
  margin: 0;
  padding: 0 0 0 23px;
}

ul.dashed {
  list-style-type: none;
}

ul.dashed > li {
  text-indent: -23px;
}

ul.dashed > li:before {
  content: "—";
  padding: 0 5px 0 0;
}

/* Button */
.button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  min-width: 150px;
  height: 40px;
  padding: 0 20px;
  border-radius: 1.5rem;
  background: #3d3a4e;
  background-size: 400%;
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

.button:hover::before {
  transform: scaleX(1);
}

.button-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
  height: inherit;
  border-radius: inherit;
  background: linear-gradient(
    82.3deg,
    rgba(150, 93, 233, 1) 10.8%,
    rgba(99, 88, 238, 1) 94.3%
  );
  transition: all 0.475s;
}

/* Layout */
.sec {
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.sec-in {
  width: 100%;
  max-width: var(--inner);
}

/* Header */
.header-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
}

.header .logo {
  font-size: 25px;
  letter-spacing: 0.03em;
}

.header .logo::after {
  display: none;
}

.header .logo b {
  color: var(--logo);
  font-weight: 400;
  transition: color 0.1s;
}

.header .logo b span{
  animation: blink linear infinite 2s;
}

.header .logo b span:nth-of-type(2){
  animation: blink linear infinite 3s;
}

.header .logo:hover b {
  color: var(--logo-blink);
}

@keyframes blink {
  78% {
    color: inherit;
    text-shadow: inherit;
  }
  79%{
     color: var(--logo-blink);
  }
  80% {
    
    text-shadow: none;
  }
  81% {
    color: inherit;
    text-shadow: inherit;
  }
  82% {
    color: var(--logo-blink);
    text-shadow: none;
  }
  83% {
    color: inherit;
    text-shadow: inherit;
  }
  92% {
    color: var(--logo-blink);
    text-shadow: none;
  }
  92.5% {
    color: inherit;
    text-shadow: inherit;
  }
}

/* Languages */
.languages {
  display: flex;
  align-items: center;
  font-size: 14px;
}

.languages a {

}

.languages .cur {
  font-weight: bold;
}

.languages .div {
  width: 2px;
  height: 10px;
  margin: 0 5px;
  background-color: var(--body);
}


/* Page Title */
.page-title-in {
  display: flex;
  align-items: flex-start;
}

.page-title-in a {
  display: flex;
}

.page-title-in .back-icon {
  display: flex;
  align-items: flex-start;
  margin: 0 10px 0 0;
}

.page-title-in .back-icon svg {
  width: 35px;
  height: 35px;
  transform: rotate(180deg);
  fill: var(--body);
  transition: fill 0.1s;
}

.page-title-in a:hover svg {
  fill: var(--link-hover);
}

/* Main */
.main {
  flex: 1;
}

.main-in {

}

/* Home */
.home-content {
  margin: 0 0 50px;
}

.home-about {
  margin: 0 0 20px 0;
  font-weight: normal;
  font-size: 18px;
}

.home-list {
  margin: 0 0 25px;
}

.home-list li {
  margin: 0 0 5px;
}

.home-list li h3 {
  display: inline;
  margin: 0;
  font-weight: normal;
  font-size: 18px;
}

.home-content .button-wrap {
  display: flex;
  justify-content: center;
  padding: 50px 0 5px;
}

.home-content .btn-note {
  text-align: center;
  margin: 0 auto;
  opacity: 0.7;
  font-size: 14px;
}

/* Contacts */
.contacts {

}

.contacts-photo {
  width: 250px;
  height: 250px;
  margin: 0 auto 20px;
  border-radius: 300px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contacts-info {
  text-align: center;
  margin: 0 0 3px;
}

.contacts-info a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 6px;
  right: 6px;
  width: 100%;
  height: 2px;
  background-color: var(--link-border);
}

/* Calc Form */
.form {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 0 50px;
}

.input {
  margin: 0 0 15px;
}

.input label {
  display: block;
  margin: 0 0 5px 0;
}

.input input,
.input select {
  width: 100%;
  height: 40px;
  padding: 5px;
}

.form .button-wrap {
  padding: 5px 0 0;
}

/* Cost Result */
.cost-result {
  margin: 0 0 20px;
}

.cost-result .result-value {
  display: flex;
  font-weight: bold;
}

.cost-discount {
  opacity: 1;
  padding: 10px 0 0;
}

.cost-discount span {
  color: var(--link-hover);
}

.cost-discount.hidden {
  opacity: 0;
}

/* Thankyou message */
.thx-msg {
  opacity: 1;
  padding: 10px 0 0;
  color: var(--success);
}

.thx-err {
  color: var(--error);
}

.thx-msg.hidden {
  opacity: 0;
}

/* Footer */
.footer {
  text-align: center;
}

.footer-in {
  padding: 20px;
}

@media (min-width: 750px) {
  .main-in {
    display: flex;
    justify-content: space-between;
  }

  .home-about span,
  .home-note span {
    display: block;
  }

  .home-content .button-wrap {
    justify-content: flex-start;
  }

  .home-content .btn-note {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .calc-sec {
    width: 100%;
  }
  
  .form {
    flex-direction: row;
    width: 100%;
  }
  
  .form-group {
    max-width: 40%;
    margin: 0 40px 0 0;
  }

  .input input,
  .input select {
    min-width: 300px;
  }
}
