.hero {
  margin-left: auto;
  margin-right: auto;
  margin-top: 60px;
  padding-inline: 20px;
  padding: 130px 20px;
  text-align: center;
  background-image: linear-gradient(rgba(0, 0, 0, 0.8)), url(../img/hero2.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: var(--section-bg-color);
}

@media screen and (min-width: 768px) {
  .hero {
    width: 100%;
  }
}

@media screen and (min-width: 1280px) {
  .hero {
    width: 100%;
    padding: 130px 0;
  }
}

.hero-title {
  font-family: var(--title-font-family);
  font-size: 35px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--second-text-color);
  margin-bottom: 40px;
  text-transform: uppercase;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
}

@media screen and (min-width: 1280px) {
  .hero-title {
    font-size: 44px;
    margin-bottom: 50px;
    text-align: left;
  }
}

.hero-text {
  font-family: var(--primary-font-family);
  font-size: 18px;
  line-height: 1.4em;
  font-weight: 400;
  color: var(--second-text-color);
  margin-bottom: 40px;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .hero-text {
    font-size: 20px;
  }
}

@media screen and (min-width: 1280px) {
  .hero-text {
    font-size: 22px;
    text-align: left;
    margin-bottom: 0;
  }
}

.history {
  background-color: #1d1d1b;
  padding: 70px 20px;
  padding-inline: 20px;
  margin-top: -3px;
}

@media screen and (min-width: 768px) {
  .history-container {
    width: 100%;
    margin: 0 auto;
  }
}

@media screen and (min-width: 1280px) {
  .history {
    padding: 0;
  }

  .history-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 300px;
    width: 1240px;
    margin: 0 auto;
  }
}

.history-title {
  font-family: var(--title-font-family);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--second-text-color);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .history-title {
    font-size: 35px;
  }
}

@media screen and (min-width: 1280px) {
  .history-title {
    width: 200px;
    font-size: 40px;
    text-align: left;
    margin-bottom: 0;
  }
}

.history-text {
  font-family: var(--primary-font-family);
  font-size: 18px;
  line-height: 1.4em;
  font-weight: 400;
  color: var(--second-text-color);
  text-align: center;
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .history-text {
    font-size: 20px;
  }
}

@media screen and (min-width: 1280px) {
  .history-text {
    width: 500px;
    font-size: 22px;
    text-align: left;
    margin-bottom: 0;
  }
}

.history-logo {
  width: 150px;
  margin: 0 auto;
}

@media screen and (min-width: 1280px) {
  .history-logo {
    width: 200px;
    margin: 0;
  }
}

.founder {
  background-color: #ffffff;
  padding: 70px 0;
  padding-inline: 20px;
}

@media screen and (min-width: 1280px) {
  .founder {
    padding: 150px 0;
  }
}

/* Обгортка - з'являється на десктопній версії */

@media screen and (min-width: 1280px) {
  .founder-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .founder-left-side {
    margin-right: 200px;
  }
}

.founder-foto {
  width: 300px;
  margin: 0 auto;
  margin-bottom: 40px;
  scale: -1 1;
}

@media screen and (min-width: 768px) {
  .founder-foto {
    width: 350px;
  }
}

@media screen and (min-width: 1280px) {
  .founder-foto {
    width: 400px;
    margin-bottom: 0;
  }
}

.founder-subtitle {
  font-family: var(--primary-font-family);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  text-align: left;
  text-transform: uppercase;
  color: var(--primary-text-color);
  margin-bottom: 5px;
}

@media screen and (min-width: 768px) {
  .founder-subtitle {
    font-size: 22px;
    margin-bottom: 10px;
  }
}

@media screen and (min-width: 1280px) {
  .founder-subtitle {
    font-size: 25px;
    margin-bottom: 20px;
  }
}

.founder-title {
  font-family: var(--title-font-family);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--primary-text-color);
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 50px;

  border-bottom: 1px solid black;
  padding-bottom: 10px;
}

@media screen and (min-width: 768px) {
  .founder-title {
    font-size: 35px;
    margin-bottom: 60px;
    padding-bottom: 15px;
  }
}

@media screen and (min-width: 1280px) {
  .founder-title {
    font-size: 40px;
    margin-bottom: 70px;
    padding-bottom: 20px;
  }
}

.founder-text {
  font-family: var(--title-font-family);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  color: var(--primary-text-color);
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .founder-text {
    font-size: 19px;
  }
}

@media screen and (min-width: 1280px) {
  .founder-text {
    font-size: 20px;
    text-align: left;
  }
}

.founder-quote {
  font-family: var(--primary-font-family);
  font-size: 18px;
  font-style: italic;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  color: var(--primary-text-color);
}

@media screen and (min-width: 768px) {
  .founder-quote {
    font-size: 19px;
  }
}

@media screen and (min-width: 1280px) {
  .founder-quote {
    font-size: 20px;
    text-align: left;
  }
}

.accent-color {
  color: var(--active-text-color);
}

.principles {
  padding: 70px 20px;
  padding-inline: 20px;
  background-color: var(--section-bg-color);
}

@media screen and (min-width: 1280px) {
  .principles {
    padding: 100px 0;
  }
}

.principles-title {
  font-family: var(--title-font-family);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--second-text-color);
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 70px;
}

@media screen and (min-width: 768px) {
  .principles-title {
    font-size: 35px;
  }
}

@media screen and (min-width: 1280px) {
  .principles-title {
    font-size: 40px;
  }
}

.principles-list {
  list-style-type: none;
}

.principles-item {
  border-bottom: 1px solid var(--second-text-color);
  width: 100%;
  padding-bottom: 10px;
  margin-bottom: 40px;
}

@media screen and (min-width: 768px) {
  .principles-item {
    padding-bottom: 15px;
  }
}

@media screen and (min-width: 1280px) {
  .principles-item {
    width: 50%;
    padding-bottom: 20px;
  }
}

.principles-list-title {
  font-family: var(--title-font-family);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--second-text-color);
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 10px;
}

@media screen and (min-width: 768px) {
  .principles-list-title {
    font-size: 25px;
  }
}

@media screen and (min-width: 1280px) {
  .principles-list-title {
    font-size: 30px;
  }
}

.principles-list-text {
  font-family: var(--primary-font-family);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  text-align: left;
  color: var(--second-text-color);
}

@media screen and (min-width: 768px) {
  .principles-list-text {
    font-size: 19px;
  }
}

@media screen and (min-width: 1280px) {
  .principles-list-text {
    font-size: 20px;
  }
}

.features {
  padding: 30px 20px;
  padding-inline: 20px;
  background-color: var(--section-bg-color);
}

@media screen and (min-width: 768px) {
  .features {
    padding: 40px 0;
  }
}

@media screen and (min-width: 1280px) {
  .features {
    padding: 100px 0;
  }
}

.features-subtitle {
  font-family: var(--primary-font-family);
  font-size: 20px;
  line-height: 1.2;
  font-weight: 400;
  text-align: left;
  text-transform: uppercase;
  color: var(--second-text-color);
  margin-bottom: 20px;
}

.features-title {
  font-family: var(--title-font-family);
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--second-text-color);
  text-transform: uppercase;
  text-align: left;
  margin-bottom: 70px;
}

@media screen and (min-width: 768px) {
  .features-title {
    font-size: 35px;
  }
}

@media screen and (min-width: 1280px) {
  .features-title {
    font-size: 40px;
  }
}

.features-list {
  list-style-type: none;
}

.features-item {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--second-text-color);
  margin-bottom: 40px;
}

@media screen and (min-width: 1280px) {
  .features-item {
    width: 65%;
  }
}

.features-item:nth-child(even) {
  margin-left: auto;
}

.features-list-title {
  font-family: var(--title-font-family);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--second-text-color);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

@media screen and (min-width: 768px) {
  .features-list-title {
    font-size: 22px;
  }
}

@media screen and (min-width: 1280px) {
  .features-list-title {
    font-size: 25px;
  }
}

.features-list-text {
  font-family: var(--primary-font-family);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 400;
  text-align: center;
  color: var(--second-text-color);
}

@media screen and (min-width: 768px) {
  .features-list-text {
    font-size: 19px;
  }
}

@media screen and (min-width: 1280px) {
  .features-list-text {
    font-size: 20px;
  }
}

.bottom-registration {
  padding: 80px 20px;
  background-color: #ffffff;
  padding-inline: 20px;
  margin-top: -3px;
}

@media screen and (min-width: 768px) {
  .bottom-registration {
    padding: 110px 20px;
  }
}

@media screen and (min-width: 1280px) {
  .bottom-registration {
    padding: 150px 20px;
  }
}

.bottom-registration-title {
  font-family: var(--title-font-family);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.06em;
  color: var(--primary-text-color);
  margin-bottom: 30px;
  text-transform: uppercase;
  text-align: center;
}

@media screen and (min-width: 768px) {
  .bottom-registration-title {
    font-size: 30px;
    margin-bottom: 40px;
  }
}

@media screen and (min-width: 1280px) {
  .bottom-registration-title {
    font-size: 35px;
    margin-bottom: 50px;
  }
}

.bottom-form-button {
  display: block;
  margin: 0 auto;
  margin-top: 50px;
  width: 240px;
  padding: 20px 0;
  background-color: var(--active-text-color);
  border: none;
  border-radius: 5px;

  font-family: var(--title-font-family);
  font-size: 15px;
  color: var(--second-text-color);
  text-transform: uppercase;

  box-shadow: 0 4px 6px rgba(225, 225, 225, 0.2);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

@media (hover: hover) {
  .bottom-form-button:hover {
    transform: scale(1.1);
  }
}

.bottom-form-button:active {
  transform: scale(0.95);
}

.bottom-form-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.gallery__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
}

@media screen and (min-width: 768px) {
  .gallery__list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery__image {
  width: 100%;
  height: auto;
}