:root {
  --main-color: #555D9D;
  --light-main: #C5BFED;
  --color-link: #FEFEFE;
  --color-hover: #FF8100;
  --top-color: #FFFFFF;
  --accent-color: #37A18E;
  --color-todo: #D24A43;
  --footer-color: #FDFDFD;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  min-width: 375px; 
}

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

html,
body {
  height: 100%;
  background:rgba(173,80,82,0.03);
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--color-link);
}

.m-auto {
  margin: auto!important;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.container {
  margin: 0 auto;
  padding: 0 10px;
  max-width: 1440px;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo {
  display: flex;
  align-items: flex-end;
  padding-bottom: 20px;
}

.logo__text {
  color: var(--main-color);
  font-size: 25px;
  font-weight: 600;
  line-height: 150%;
  letter-spacing: -0.25px;
}

.menu__list {
  display: flex;
  gap: 20px;
  padding-top: 10px;
}

.menu__list-item {
  display: flex;
  align-items: center;
  padding: 16px;
  height: 31px;
  background-color: var(--main-color);
  font-weight: 600;
  line-height: 150%;
  letter-spacing: -0.16px;
  border-radius: 30px;
  transition: all .4s;
}

.menu__list-item--demo {
  display: none;
  background-color: var(--color-todo);
}

.menu__list-item:hover {
  text-shadow: 0 4px 4px #00000040;
  background-color: var(--color-hover);
}

.menu__list-link {
  display: flex;
  gap: 12px;
}

.menu__btn {
  width: 30px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  border: none;
  background-color: transparent;
  cursor: pointer;
  display: none;
}

.menu__btn span {
  width: 100%;
  height: 2px;
  background-color: var(--main-color);
}

/* main */
.main {
  flex-grow: 1;
}

.tg-phone {
  position: fixed;
  bottom: 40px;
  right: 10px;
  z-index: 10;
}

.tg-phone img {
  width: 60px;
  height: 60px;
  cursor: pointer;
  animation: pulsing 1s infinite alternate;
}

.tg-phone.activated .tg-close {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 20px;
  cursor: pointer;
  z-index: 10;
}

.tg-phone.activated .tg-close span {
  position: absolute;
  top: 20px;
  right: 10px;
  width: 20px;
  height: 2px;
  background-color: var(--main-color);
  z-index: 11;
}

.tg-close span:first-child {
  transform: rotate(45deg);
}

.tg-close span:nth-child(2) {
  transform: rotate(-45deg);
}

.tg-form {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9;
  display: none;
  height: 100vh;
  background-color: var(--light-main);
}

.tg-form.active {
  display: block;
}

#tg {
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.tg-title {
  margin-bottom: 30px;
  font-size: 22px;
  color: var(--main-color);
}

.tg-label {
  display: block;
}

.tg-input {
  display: block;
  height: 40px;
  padding: 6px 16px;
  border: none;
  background-color: #f3f3f3;
}

.tg-input,
.tg-input::placeholder {
    font-size: 1.25rem;
}

.tg-message {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-color);
}

.tg-message.red {
  color: var(--color-todo);
}

.tg-button {
  margin-top: 20px;

  display: inline-block;
  outline: none;
  cursor: pointer;
  font-weight: 500;
  border-radius: 3px;
  padding: 0 16px;
  border-radius: 4px;
  color: #fff;
  background: var(--main-color);
  line-height: 1.15;
  font-size: 14px;
  height: 36px;
  text-decoration: none;
  text-transform: uppercase;
  min-width: 64px;
  border: none;
  text-align: center;
  box-shadow: 0px 3px 1px -2px rgb(0 0 0 / 20%), 0px 2px 2px 0px rgb(0 0 0 / 14%), 0px 1px 5px 0px rgb(0 0 0 / 12%);
  transform: scale(1.2);
  transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-button:hover {
  background: var(--color-hover);
  box-shadow: 0px 2px 4px -1px rgb(0 0 0 / 20%), 0px 4px 5px 0px rgb(0 0 0 / 14%), 0px 1px 10px 0px rgb(0 0 0 / 12%);
}

.top {
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position-y: 35%;
  color: var(--top-color);
  text-shadow: 4px 5px 8px #000000bf;
  border: 1px solid transparent;
}

.sides {
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
}

.title {
  margin: 37px 0 25px;
  font-size: 57px;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: -2.8px;
  text-shadow: 4px 5px 8px #000000;
}

.top__list {
  margin-bottom: 56px;
  max-width: 720px;
  list-style: "\2022    " outside none;
  font-size: 28px;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: -0.84px;
}

.top__list-item {
  margin-bottom: 15px;
  line-height: 110%;
}

.top__line {
  margin-bottom: 47px;
  width: 690px;
  height: 1px;
  background-color: var(--top-color);
}

.top__quote {
  margin-bottom: 12px;
  font-family: 'Calistoga', cursive;
  max-width: 600px;
  font-size: 24px;
  line-height: 140%;
  letter-spacing: 0.73px;
}

.top__director {
  margin: 0 auto 82px;
  width: 320px;
}

.top__director-name {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 600;
  line-height: 140%;
}

.top__director-articles {
  display: inline-block;
  text-shadow: none;
  background-color: var(--accent-color);
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  border-radius: 30px;
  transition: all .4s;
}

.top__director-articles:hover {
  text-shadow: 0 4px 4px #00000040;
  background-color: var(--color-hover);
}

.top__tel {
  white-space: nowrap;
  margin-top: 70px;
  display: flex;
  flex-direction: column;
  font-size: 30px;
  font-weight: 700;
  line-height: 155%;
  letter-spacing: -0.3px;
}

.top__tel * {
  text-shadow: none;
  color: #434A86;
}

.top__tel-border {
  text-shadow: none;
  -webkit-text-stroke: 4px #FFFFFF;
}

.top__tel--numbers {
  position: absolute;
  top: 0;
}

.top__tel-number {
  transition: all .5s;
}

.top__tel-number:hover {
  color: var(--color-hover);
}

.top__social-networks {
  position: absolute;
  right: 32px;
  bottom: 30px;
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.top__social-networks * {
  transition: all 0.5s;
}

.top__social-networks *:hover {
  transform: scale(110%);
}

.olymp-info {
  padding: 33px 0;
  background-repeat: no-repeat;
  background-size: cover;
}

.olymp-info__list {
  margin: auto;
  max-width: 980px;
  display: flex;
  justify-content: center;
  gap: 100px;
}

.olymp-info__list-item {
  position: relative;
  text-align: center;
}

.olymp-info__list-item:first-child::before,
.olymp-info__list-item:last-child::before {
  position: absolute;
  content: '';
  display: block;
  height: 100%;
  width: 1px;
  background-color: var(--light-main);
  opacity: 0.15;
}

.olymp-info__list-item:first-child::before {
  right: -50px;
}

.olymp-info__list-item:last-child::before {
  left: -50px;
}

.olymp-info__list-title {
  font-family: 'Public Sans', sans-serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--top-color);
  line-height: 125%;
}

.olymp-info__list-details {
  color: var(--light-main);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 150%;
}

.olymp-texts {
  margin: 40px auto 132px;
  max-width: 1000px;
  color: var(--main-color);
  text-align: center;
  text-shadow: 3px 3px 4px #00000040;
  font-family: 'Kanit', sans-serif;
  font-size: 43px;
  font-style: italic;
  font-weight: 500;
  line-height: 120%;
}

.olymp-texts__text {
  margin-bottom: 76px;
}

.olymp-texts__text:last-child {
  text-shadow: 4px 4px 4px #00000040;
}

.olymp-texts__text span {
  white-space: nowrap;
}

.school-activities {
  padding: 46px 0;
  color: var(--top-color);
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  line-height: 120%;
  background-color: var(--main-color);
}

.school-activities__text {
  margin: auto;
  max-width: 1100px;
}

.our-achievements__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  background-color: var(--main-color);
}

.our-achievements__title-title {
  font-size: 60px;
  color: var(--top-color);
}

.our-achievements__list {
  margin: 46px auto 22px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 784px;
}

.our-achievements__list-item {
  position: relative;
  padding: 8px 16px;
  padding-left: 80px;
  font-size: 29px;
  font-weight: 500;
  line-height: 36px;
  border: 3px solid;
  transition: all .4s;
}

.our-achievements__list-item:hover {
  color: var(--top-color);
  transform: scale(110%);
}

.our-achievements__list-item:first-child,
.our-achievements__list-item:last-child {
  border-color: #4365DD;
}

.our-achievements__list-item:first-child:hover,
.our-achievements__list-item:last-child:hover {
  background-color: #4365DD;
}

.our-achievements__list-item:nth-child(2) {
  border-color: #69D924;
}

.our-achievements__list-item:nth-child(2):hover {
  background-color: #69D924;
}

.our-achievements__list-item:nth-child(3) {
  border-color: #24D9AD;
}

.our-achievements__list-item:nth-child(3):hover {
  background-color: #24D9AD;
}

.our-achievements__list-item:nth-child(4) {
  border-color: #9424D9;
}

.our-achievements__list-item:nth-child(4):hover {
  background-color: #9424D9;
}

.our-achievements__list-item:nth-child(5) {
  border-color: #D9244F;
}

.our-achievements__list-item:nth-child(5):hover {
  background-color: #D9244F;
}

.our-achievements__list-item:nth-child(6) {
  border-color: #FFF176;
}

.our-achievements__list-item:nth-child(6):hover {
  color: gray;
  background-color: #FFF176;
}

.our-achievements__list-item:nth-child(7) {
  border-color: #7694FF;
}

.our-achievements__list-item:nth-child(7):hover {
  background-color: #7694FF;
}

.our-achievements__list-item::before {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  content: '';
  display: inline-block;
  width: 47px;
  height: 48px;
  background: url(../images/check-mark.png);
  transition: all .5s;
}

.our-achievements__list-item:hover::before {
  -webkit-filter: invert(100%);
  filter: invert(100%);
}

.our-achievements__list-item:nth-child(6):hover::before {
  -webkit-filter: invert(50%);
  filter: invert(50%);
}

/* footer */
.footer {
  padding-top: 50px;
  background-color: var(--footer-color);
  /* border: 1px solid #000; */
  box-shadow: 0px 0px 4px #333;
}

.contacts {
  display: grid;
  grid-template-columns: 35% 55% 10%;
}

.contacts__address {
  display: grid;
  grid-template-rows: 110px 36px 36px;
}

.contacts__numbers {
  display: grid;
  grid-template-rows: 110px 36px 36px 36px;
}

.contacts__social-networks {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.contacts__social-networks * {
  transition: all 0.5s;
}

.contacts__social-networks *:hover {
  transform: scale(110%);
}

.contacts__title {
  color: var(--main-color);
  font-size: 72px;
  font-weight: 400;
  letter-spacing: -3.6px;
  text-transform: uppercase;
}

.contacts__subtitle {
  color: var(--main-color);
  font-size: 24px;
  font-weight: 500;
  line-height: 36px;
  letter-spacing: 0.49px;
  text-transform: uppercase;
}

.contacts__info {
  display: block;
  color: var(--main-color);
  font-size: 24px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.245px;
  transition: all .3s;
}

.contacts__info:hover {
  text-shadow: 0 0 4px #00000040;
}

.footer__menu-list {
  justify-content: space-evenly;
  padding-top: 100px;
  padding-bottom: 68px;
}

@media (max-width: 1440px) {
  .contacts {
    grid-template-columns: 45% 45% 10%;
  }

  .contacts__address {
    margin-left: 40px;
  }

  .contacts__title {
    font-size: 58px;
  }
}

@media (max-width: 999px) {
  .menu__btn {
    display: flex;
  }

  .menu__btn, 
  .logo {
    position: relative;
    z-index: 6;
  }

  .menu__list {
    padding-top: 200px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    min-height: 667px;
    width: 100%;
    min-width: 375px;
    background-color: var(--light-main);
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 5;

    transform: translateX(-100%);
    transition: transform .3s;
  }

  .menu__list.menu__list--active {
    transform: translateX(0%);
  }

  .menu__list-item {
    width: 200px;
    padding: 24px 12px;
  }

  .menu__list-item--demo {
    display: flex;
  }

  .menu__list-link {
    text-align: center;
    margin: 0 auto;
  }

  .menu__btn {
    position: relative;
  }

  .menu__btn span {
    transition: all .3s;
  }

  .menu__btn--active span {
    position: absolute;
    top: 10px;
  }

  .menu__btn--active span:first-child {
    transform: rotate(45deg);
  }

  .menu__btn--active span:nth-child(2) {
    transform: rotate(-45deg);
    background-color: transparent;
  }

  .menu__btn--active span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .footer {
    padding-left: 30px;
  }

  .contacts {
    padding-bottom: 60px;
    grid-template-columns: 37% 53% 10%;
  }

  .contacts__address {
    margin-left: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .contacts__logo {
    margin-bottom: 10px;
    max-width: fit-content;
  }

  .contacts__numbers {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .contacts__title {
    margin-bottom: 10px;
    font-size: 48px;
  }

  .contacts__info {
    max-width: 30vw;
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .top {
    height: auto;
  }

  .menu__btn {
    margin-top: 10px;
  }

  .logo__text {
    font-size: 16px;
    line-height: 200%;
  }

  .sides {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .sides__right-side {
    margin: auto;
  }

  .top__tel {
    margin-top: 20px;
    font-size: 24px;
  }

  .sides__left-side {
    justify-content: initial;
    height: fit-content;
    gap: 0;
  }

  .footer {
    padding: 4px 20px 20px;
  }

  .contacts {
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .contacts__address,
  .contacts__numbers {
    display: flex;
    flex-direction: column;
  }

  .contacts__logo {
    margin-bottom: 12px;
    width: fit-content;
  }

  .contacts__info {
    font-size: 18px;
    min-width: 280px;
  }

  .contacts__title {
    margin-bottom: 8px;
    font-size: 40px;
    letter-spacing: -2px;
  }

  .contacts__social-networks {
    flex-direction: row;
  }

  .contacts__social-networks a:nth-child(2) img {
    margin-right: -2px;
  }
}
