

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

a:hover, a:focus {
  color: #4d5afe;
}

button,
a {
  display: block;
  color: inherit;
  transition: all 0.41s ease-out;
  cursor: pointer;
}

a {
  font-style: normal;
  -webkit-text-decoration: none;
  text-decoration: none;
}

img, picture {
  display: block;
  width: 100%;
  height: auto;
  max-width: max-content;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
}

html, body {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.2;
  color: #66686a;
  width: 100%;
  background: #fff;
  font-family: "Lato", sans-serif;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
}

html {
  scroll-behavior: smooth;
}

.in-block {
  padding: 0 12px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media screen and (max-width: 767.98px) {
  .in-block {
    max-width: 430px;
  }
}

@media screen and (min-width: 768px) {
  .in-block {
    max-width: 768px;
  }
}

@media (min-width: 1200px) {
  .in-block {
    padding: 0 40px;
    max-width: 1200px;
  }
}

.s {
  padding-top: 80px;
  padding-bottom: 80px;
}

.in-l {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  font-weight: 400;
  font-size: 20px;
  text-transform: uppercase;
}
.in-l span {
  color: #4d5afe;
}

.in-btn {
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-family: inherit;
  background: #4d5afe;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  max-width: max-content;
}
.in-btn:hover, .in-btn:focus {
  color: #a7adff;
}

.t1 {
  font-weight: 700;
  font-size: 32px;
  color: #1c1c1e;
}
@media (min-width: 1200px) {
  .t1 {
    font-size: 40px;
  }
}

.t2 {
  font-weight: 700;
  font-size: 24px;
  color: #1c1c1e;
}

.t3 {
  font-size: 20px;
  color: #1c1c1e;
}

.t4 {
  font-weight: 700;
  font-size: 20px;
  color: #1c1c1e;
  text-transform: uppercase;
}

header {
  background: #f7f7f7;
  position: sticky;
  top: 0;
}
header nav {
  padding: 24px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  position: relative;
}
header ul {
  position: absolute;
  top: -350px;
  left: 0;
  background: #f7f7f7;
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
header ul.open {
  top: 50px;
}
@media (min-width: 1200px) {
  header ul {
    position: static;
    display: flex;
    max-width: max-content;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
}
header .in-menu__btn {
  padding: 0;
  margin: 0;
  display: block;
  background: transparent;
  border: none;
}
@media (min-width: 1200px) {
  header .in-menu__btn {
    display: none;
  }
}

footer {
  padding-top: 40px;
  padding-bottom: 40px;
  background: #1c1c1e;
  color: #fff;
}
footer .in-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1200px) {
  footer .in-block {
    flex-direction: row;
    justify-content: space-between;
  }
}
footer .in-up ul {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
}
footer address, footer .in-low {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer address a, footer .in-low a {
  font-weight: 700;
}

.main {
  background-image: url(../img/1.png);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.main article {
  width: 100%;
  max-width: 640px;
}
.main article p {
  margin-top: 8px;
  margin-bottom: 8px;
}
.main article a {
  margin-top: 40px;
}

.about {
  background: #f7f7f7;
}
.about .in-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1200px) {
  .about .in-block {
    flex-direction: row;
    justify-content: space-between;
  }
}
.about .text-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 1200px) {
  .about .text-block {
    max-width: 50%;
  }
}
.about .in-btn {
  margin-top: 32px;
}

.courses .in-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.courses ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  text-align: left;
}
.courses li {
  border-radius: 12px;
  padding: 24px;
  background: #f7f7f7;
  max-width: 350px;
}
.courses .t3 {
  margin-bottom: 10px;
}

.blog {
  background: #f7f7f7;
}
.blog .in-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1200px) {
  .blog .in-block {
    flex-direction: row-reverse;
    justify-content: space-between;
  }
}
.blog .text-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
@media (min-width: 1200px) {
  .blog .text-block {
    max-width: 50%;
  }
}
.blog .in-btn {
  margin-top: 32px;
}

.phases .in-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.phases ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  text-align: left;
}
.phases li {
  border-radius: 12px;
  padding: 24px;
  background: #f7f7f7;
  max-width: 350px;
}
.phases .t4 {
  margin-bottom: 10px;
}

.faq {
  background: #f7f7f7;
}
.faq .in-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.faq ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  text-align: left;
}
.faq li {
  border-radius: 12px;
  padding: 24px;
  background: #fff;
  max-width: 260px;
}
.faq .t2 {
  margin-bottom: 10px;
}

.contact .in-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact .form {
  border-radius: 6px;
  padding: 24px;
  background: #f7f7f7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact .form .in-input {
  border: 1px solid #e4e6e7;
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  font-weight: 400;
  font-size: 18px;
  font-family: inherit;
}
.contact .form .in-input::placeholder {
  color: #66686a;
}
.contact .form .in-input.error {
  border: 2px solid red;
}
.contact .form .in-btn {
  margin-left: auto;
  margin-right: auto;
  margin-top: 20px;
}
.contact .form textarea {
  resize: none;
  min-height: 135px;
}

.in-popup-cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  background: #fff;
  margin: 5px;
  border-radius: 8px;
  border: 1px solid #1c1c1e;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px;
  max-width: 600px;
}
.in-popup-cookie div {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 1200px) {
  .in-popup-cookie div {
    flex-direction: row;
  }
}
.in-popup-cookie .in-btn.sec {
  background: #fff;
  color: #4d5afe;
  border: 1px solid #4d5afe;
}

.in-priv {
  background: #fff;
}
.in-priv .t1 {
  margin-bottom: 30px;
  text-transform: uppercase;
}

.in-success {
  background: #fff;
}
.in-success .in-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.in-success .in-btn {
  margin-top: 30px;
}
