:root {
  --width-slide: 590px;
  --width-block: calc(50% - 10px);
  --gap: 10px;
  --padding: 50px;
}

html {
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}

body {
  font-family: Inter, sans-serif;
  min-width: 320px;
  color: #232020;
  background-color: #ffffff;
  font-size: 16x;
  line-height: 1.5;
  font-weight: 400;
}

.container {
  max-width: 1190px;
  margin: 0 auto;
}

.list-reset {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease-in-out;
}

.link:hover {
  color: #ffd952;
}

.image {
  max-width: 100%;
  height: auto;
}

.button {
  border: none;
  cursor: pointer;
  border-radius: 24px;
  padding: 18px 40px;
  color: #232020;
  text-transform: uppercase;
  background-color: #ffc700;
  border: 1px solid #ffc700;
  outline: none;
}

.button:hover {
  background-color: #ffd952;
  border-color: #ffd952;
}

.button:focus-visible {
  border-color: #9e7b00;
}

.button:active {
  transform: translate(2px, 2px);
}

.button:disabled {
  pointer-events: none;
  background-color: #e0e0e0;
  color: #898989;
  border-color: #e0e0e0;
}

.button_o {
  background-color: transparent;
  border: 1px solid #232020;
}

.button_o:focus-visible {
  border: 1px solid #ffc700;
}

.section-offset {
  padding-top: 40px;
  padding-bottom: 40px;
}

.visually-hidden {
  position: fixed;
  transform: scale(0);
}

.gray-block {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: var(--padding);
  min-height: 530px;
}

.title {
  font-weight: 500;
  font-size: 44px;
  line-height: 130%;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 1240px) {
  :root {
    --padding: 30px;
    --width-slide: 440px;
  }

  .container {
    max-width: 890px;
  }

  .section-offset {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .gray-block {
    min-height: 396px;
  }

  .title {
    font-size: 34px;
  }
}

@media (max-width: 920px) {
  :root {
    --padding: 24px;
    --width-slide: 311px;
  }

  .container {
    max-width: 690px;
    padding: 0 30px;
  }

  .gray-block {
    min-height: 280px;
  }

  .button {
    padding: 10px 24px;
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  :root {
    --padding: 20px;
    --gap: 4px;
  }

  .container {
    max-width: 690px;
    padding: 0 6px;
  }

  .gray-block {
    min-height: 232px;
  }

  .title {
    font-size: 24px;
  }

  .button {
    font-size: 12px;
  }
}
