@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

html {
  scroll-behavior: smooth;
}
body {
  padding: 0;
  margin: 0;
  font-size: 15px;
  background: #FFFFFF;
  font-family: 'Roboto', sans-serif;
}

.container {
  width: 90%;
  margin: auto;
  position: relative;
}

@media (min-width:576px){
  .container{
    max-width:540px;
  }
}
@media (min-width:768px){
  .container{
    max-width:720px;
  }
}
@media (min-width:992px){
  .container{
    max-width:960px;
  }
}
@media (min-width:1200px){
  .container{
    max-width:1140px;
  }
}
@media (min-width:1400px){
  .container{
    max-width:1240px;
  }
}
input, select, textarea, button {
  cursor: pointer;
  outline: none;
  box-sizing: border-box;
  border: 1px solid transparent;
}
input, select, textarea {
  width: 100%;
}
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input[type=number] {
  -moz-appearance: textfield;
}
li {
  list-style: none;
}
a {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}
.mr-8 {
  margin-right: 8px;
}
.mb-8 {
  margin-bottom: 8px;
}
.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-only {
  display: flex;
}
ul {
  padding: 0;
  margin: 0;
}


.header {
  border-bottom: 1px solid hsla(0,0%,0%,0.1);
  box-shadow: 0 0.25rem 0.375rem -0.0625rem hsla(0,0%,0%,0.1),0 0.125rem 0.25rem -0.0625rem hsla(0,0%,0%,0.05);
}
.header__content {
  display: flex;
  align-items: stretch;
  height: 80px;
}
.header__logo {
  box-sizing: border-box;
}
.header__logo a {
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 32px;
  border-right: 1px solid hsla(0,0%,0%,0.1);
}
.header__logo img {
  height: 44px;
}
.header__list {
  padding-left: 12px;
}
.header__item {
  height: 100%;
}
.header__item-link {
  position: relative;
  z-index: 0;
  color: hsl(0,0%,0%);
  display: inline-flex;
  height: 100%;
  font-weight: 600;
  line-height: 80px;
  padding: 4px 16px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
}
.header__item-link:hover {
  color: hsl(1,95%,63%);
}
.header__item-link.active {
  color: #ffffff;
}
.header__item-link.active:before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 100%;
  left: 0;
  height: 2rem;
  background: hsl(1,95%,63%);
  border-radius: 1.5rem 1.5rem 1rem 1rem;
}


.main-block-scale .main-block-title {
  font-size: 24px;
  color: #000000;
  margin: 0;
  transition: color .2s ease;
}
.main-block-scale:hover .main-block-title {
  color: #D62000;
}
.main-block-scale .main-image-wrapper {
  transition: transfer .2s ease;
}
.main-block-scale:hover .main-image-wrapper {
  transform: scale(1.025);
  box-shadow: 0 0.25rem 0.375rem -0.0625rem hsla(0,0%,0%,0.1),0 0.125rem 0.25rem -0.0625rem hsla(0,0%,0%,0.05);
}
.main-image-wrapper {
  width: 100%;
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid hsl(0,0%,90%);
}
.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.main-title {
  padding-left: 16px;
  margin: 0 0 16px;
  font-size: 32px;
  position: relative;
  text-align: left;
}
.main-title::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 6px;
  background-color: #54cbe3;
  left: 0;
  top: 0;
  display: block;
  border-radius: 3px;
}


.footer {
  margin: 80px auto 0;
  padding: 32px 0;
  position: relative;
  background-color: #2B3136;
  color: #ffffff;
}
.footer__polygon {
  height: 16px;
  top: -16px;
  display: block;
  width: 100%;
  position: absolute;
  fill: hsl(205,12%,19%);
  font-size: 0;
}
.footer__content {
  align-items: flex-start;
  justify-content: flex-start;
}
.footer__left {
  padding: 24px;
  width: 30%;
}
.footer__right {
  padding: 24px;
  width: 30%;
  border-left: 1px solid hsl(207,8%,27%);
}
.footer__logo-wrapper {
  height: 44px;
  padding: 0 8px 8px 0;
  margin-bottom: 14px;
}
.footer__logo {
  height: 100%;
}
.footer__about-link {
  font-size: 16px;
  letter-spacing: .09375rem;
  margin-bottom: .5rem;
  position: relative;
}
.footer__about-text {
  margin: 14px 0;
  color: #B3B3B3;
  font-size: 12px;
  line-height: 24px;
}
.footer__title {
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 24px;
  text-transform: uppercase;
  font-weight: 700;
  color: #B3B3B3;
}
.footer__list {
  column-count: 2;
}
.footer__item {
  width: 100%;
}
.footer__item a {
  text-transform: uppercase;
  margin-bottom: 8px;
  padding-right: 16px;
  display: block;
  height: 25px;
}



@media (max-width: 500px) {
  .main-title {
    font-size: 24px;
  }

  .header__content {
    height: 64px;
  }
  .header__list {
    overflow-x: auto;
  }
  .header__list::-webkit-scrollbar {
    height: 0;
  }
  .header__item-link {
    line-height: 64px;
    padding: 0 16px;
  }

  .footer__content {
    display: block;
  }
  .footer__left {
    border-bottom: 1px solid hsla(255,100%,100%,0.1);
  }
  .footer__left, .footer__right {
    width: 100%;
    box-sizing: border-box;
  }
}
