:root {
  --primary-color: #181818;
  --text-color: #f7f7f7;
  --accent-color: #ff5722;
  --accent-color-2: #673ab7;
  --bright-color: #ffeb3b;
}

body {
  padding: 0;
  margin: 0;

  font-family: "Open Sans", sans-serif;
  color: var(--text-color);
  background-color: var(--primary-color);
}

.container {
  padding-inline: 2rem;
  margin-inline: auto;
  max-width: 1300px;
}

h2 {
  color: var(--accent-color-2);
}

h3 {
  color: var(--accent-color);
}

.main {
  padding-top: 8rem;
}

.text-row {
  display: block;
  font-style: italic;
  padding-inline: 1rem;
}

.section-intro {
  display: flex;
  flex-direction: row;

  align-items: center;
  justify-content: space-between;

  height: 90vh;
}

.section-intro__title {
  font-size: 3rem;
  font-weight: 800;
}

.section-intro__title span {
  color: var(--accent-color);
}

.section-intro-img {
  width: 50%;
  perspective: 1000px;
}

.section-intro-img img {
  width: 35vw;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.section-intro__btn {
  background-color: var(--accent-color-2);
  padding: 1rem 2rem;
  font-size: 2rem;
  color: var(--text-color);
  font-weight: 600;
  border: none;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: 0.2s;
}

.section-intro__btn:hover {
  background-color: var(--bright-color);
  color: var(--primary-color);
}

.section-about {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  padding-top: 2rem;
  padding-bottom: 2rem;

  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
  border-radius: 2rem;

  font-size: 1.4rem;

  margin-bottom: 4rem;
}

.section-about__img img {
  width: 30vw;
  height: 100%;
  border-radius: 1.5rem;
  object-fit: cover;
}

.section-about__title {
  color: var(--accent-color-2);
  font-size: 3rem;
}

.section-features {
  margin-bottom: 4rem;
}

.section-features__title {
  font-size: 3rem;
  text-align: center;
}

.secton-features__list {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

.section-features__list-item {
  margin-bottom: 2rem;

  font-size: 1.2rem;
  background-color: #1d1d1d;

  border-radius: 1rem;
  padding: 2rem;

  width: 550px;
}

.section-features__list-item h3 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.page-section__content {
  font-size: 1.4rem;
}

.page-section__title {
  font-size: 3rem;
}

.list-style li {
  margin-bottom: 1.5rem;
}

.list-icons {
  list-style: none;
  padding-left: 1rem;
}

.styled-table {
  width: 100%;
  max-width: fit-content;

  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.styled-table thead {
  background-color: var(--accent-color);
  color: #fff;
}

.styled-table th,
.styled-table td {
  padding: 12px 16px;
  text-align: left;
}

.final-section {
  font-size: 2rem;
  text-align: center;
  align-items: center;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
  border-radius: 2rem;
  padding: 2rem;
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.final-section__title {
  color: var(--accent-color);
}

.news-section {
  font-size: 1.2rem;
}

.news-section__content {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
  border-radius: 2rem;
  padding: 2rem;
}

.news-section__title h2 {
  font-size: 3rem;
}

.news-title {
  font-size: 2rem;
}

.news-section__content-item {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  position: relative;
  cursor: pointer;
}

.news-section__content-item a {
  text-decoration: none;
}

.news-section__content-item:hover {
  background-color: var(--bright-color);
}

.news-title {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: color 0.3s ease;
}

.news-title:hover {
  color: var(--primary-color);
}

.news-text {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  margin-top: 0.5rem;
  color: var(--primary-color);
  padding: 1rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.news-section__content-item:hover .news-text {
  max-height: 200px;
  opacity: 1;
}

.article-title {
  text-align: center;
  font-size: 3rem;
  color: var(--accent-color);
}

.list-style span {
  color: var(--accent-color-2);
  font-weight: 600;
  font-size: 2rem;
}

.article-text {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.5);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 830px) {
  .section-about {
    flex-direction: column;
    gap: 2rem;
  }

  .section-about__img img {
    width: 100%;
    height: 40vh;
  }

  .secton-features__list {
    flex-direction: column;
  }

  .page-section__content {
    font-size: 1.2rem;
  }

  .section-features__list-item {
    width: auto;
  }

  .news-text {
    max-height: 150px;
    opacity: 1;
    color: white;
  }

  .news-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 700px) {
  .section-intro {
    flex-direction: column-reverse;
    height: auto;
    margin-bottom: 2rem;
    text-align: center;
  }
}

@media (max-width: 630px) {
  .styled-table {
    font-size: 1rem;
  }

  .styled-table th,
  .styled-table td {
    padding: 6px 7px;
  }
}

@media (max-width: 500px) {
  .section-intro__title {
    font-size: 2rem;
  }

  .section-features__title {
    font-size: 2rem;
  }

  .section-about__title {
    font-size: 2rem;
  }

  .page-section__content {
    font-size: 1rem;
  }

  .page-section__title {
    font-size: 2rem;
  }

  .container {
    padding-inline: 1rem;
  }

  .final-section__title {
    padding-top: 1rem;
    font-size: 1.7rem;
  }

  .final-section {
    font-size: 1.2rem;
  }

  .styled-table {
    font-size: 0.8rem;
  }

  .styled-table th,
  .styled-table td {
    padding: 5px 6px;
  }

  .news-section__title h2 {
    font-size: 2.5rem;
    text-align: center;
  }

  .article-title {
    font-size: 2rem;
  }
}

@media (max-width: 400px) {
  .styled-table {
    font-size: 0.7rem;
  }

  .styled-table th,
  .styled-table td {
    padding: 3px 4px;
  }

  .news-section__content {
    padding: 0.5rem;
  }

  .news-text {
    padding: 0.6rem;
    font-size: 0.9rem;
  }
}
