:root {
  --border-color: #333333;
  --background-main-color: #f4f0e8;
  --text-color: #333333;
  --background-color-card-1: #f7d287;
  --background-color-card-2: #ded3f4;
  --background-color-card-3: #f89061;
  --background-color-card-4: #85b97b;
  --color-bg: #f4f0e8;
  --color-next-bg: #d4ccbd;
}

@font-face {
  font-family: "PT Root Ui Regular";
  src: url("../fonts/PT-Root-UI_Regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "PT Root UI Medium";
  src: url("../fonts/PT-Root-UI_Medium.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "PT Root UI Bold";
  src: url("../fonts/PT-Root-UI_Bold.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

.menu {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-direction: row-reverse;
  justify-content: start;
}

.menu li {
  position: relative;
  top: 2px;
  border: 2px solid var(--border-color);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.menu p {
  display: block;
  padding: 20px 34px;
  font-size: 25px;
  line-height: 1;
  text-decoration: none;
  color: var(--text-color);
}

.menu__corner {
  position: absolute;
  bottom: 0;
  right: -38.7px;
  width: 40px;
  height: 40px;
  background-color: var(--color-bg);
  border-bottom: 2px solid #333;
  overflow: hidden;
}

.menu__corner::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 80px;
  background-color: var(--color-bg);
  border: 2px solid #333;
  border-radius: 40px;
}

.menu__corner__2 {
  position: absolute;
  bottom: -2px;
  right: -38.8px;
  width: 40px;
  height: 40px;
  background-color: var(--color-next-bg);
  border-bottom: 2px solid #333;
  overflow: hidden;
}

.menu__corner__2::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 80px;
  height: 80px;
  background-color: #f4f0e8;
  border: 2px solid #333;
  border-radius: 40px;
}

.menu li:last-child {
  background-color: var(--color-bg);
  border-bottom: #f4f0e8;
}

.menu li:last-child .menu__corner {
  border-bottom: none;
  background-color: var(--color-bg);
}

.menu li:last-child .menu__corner::after {
  bottom: 0;
  background-color: var(--color-next-bg);
}

.menu li:nth-child(2) {
  background-color: var(--color-bg);
}

.menu li:first-child {
  background-color: var(--color-next-bg);
}

.menu li:not(:last-child) {
  margin-left: -12px;
  background-color: var(--color-next-bg);
}

.menu li:not(:last-child) p {
  padding-inline: 48px;
}

h1,
h2,
h3,
p,
div {
  margin: 0;
}

body {
  background-color: var(--background-main-color);
  font-family: "PT Root Ui Regular", sans-serif;
  color: var(--text-color);
  margin: 0;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

.c-bg-orange {
  background-color: var(--background-color-card-1);
}

.c-bg-lavanda {
  background-color: var(--background-color-card-2);
}

.c-bg-carrot {
  background-color: var(--background-color-card-3);
}
.c-bg-green {
  background-color: var(--background-color-card-4);
}

.header,
main {
  justify-content: center;
}

.main {
  margin-bottom: 100px;
}

/* Стили для списка вкладок */
.tab-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0;
  margin-top: 60px;
  max-width: 1720px;
  width: 100%;
  height: 73px;
}

.tab-item-container {
  list-style: none;
  padding-left: 0;
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  margin: 0;
}

/* Стили для вкладки */
.tab-header__item {
  padding: 10px 20px;
  cursor: pointer;

  font-size: 25px;
  font-family: "PT Root UI Medium", sans-serif;
}

/* Стили для активной вкладки */
.tab-header__item.active {
  position: relative;
  top: 2px;
}

/* Стиль для списка контейнеров с содержимым вкладок */
.tab-content {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 1720px;
  width: 100%;
  flex-direction: column;
  justify-content: start;
}

/* Стили для контейнера с содержимым вкладки */
.tab-content__item {
  display: none;
  border: 2px solid var(--border-color);
  border-top-right-radius: 40px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

/* Стили для активного контейнера вкладки */
.tab-content__item.active {
  display: block;
}

.content__item__conteiner {
  flex-direction: column;
}

.content__item__top {
  flex-wrap: wrap;
  max-width: 1720px;
  justify-content: space-between;
}

.preview {
  flex-direction: column;
  row-gap: 40px;
  margin-left: 90px;
  margin-top: 60px;
  max-width: 680px;
}

.preview h2 {
  max-width: 680px;
  font-size: 40px;
  font-family: "PT Root UI Medium", sans-serif;
  margin: 40px 0;
  line-height: 90%;
}

.main-img {
  border-top-right-radius: 40px;
  width: 100%;
  height: auto;
  max-inline-size: 100%;
  block-size: auto;
}

.main-img-container {
  border-top-right-radius: 40px;
}

.content__item__bottom {
  grid-template-columns: repeat(auto-fill, 800px);
  gap: 36px;
  margin-top: 40px;
  padding-left: 40px;
  padding-bottom: 40px;
  padding-right: 40px;
}

.grid-card {
  flex-direction: column;
  flex-wrap: wrap;
  border-radius: 40px;
  height: 455px;
  padding: 40px;
}

.grid-card h3 {
  font-size: 40px;
  line-height: 90%;
}

.transition-link {
  font-family: "PT Root UI Medium", sans-serif;
  color: var(--text-color);
  font-size: 30px;
  border-radius: 10px;
  width: min-content;
  padding: 20px 30px;
  text-decoration: none;
  line-height: 90%;
  display: inline-block;
  background: linear-gradient(90deg, #ffffff, #f0f0ed, #d1cdc5, #ffffff);
  background-size: 200%;
  transition: transform 0.3s ease;
  animation: none;
  text-decoration: none;
}

.transition-link:hover {
  animation: shimmer 2s linear infinite;
  transform: translateY(-2px);
}

.img-newspaper {
  margin-top: 85.5px;
}

.img-smartphone {
  margin-top: 88.5px;
}

.img-bear {
  margin-top: 76.5px;
}

.grid-card:nth-child(4) > .transition-link {
  margin-top: 150px;
}

.big-arrow-icon {
  margin-right: 20px;
  margin-bottom: 20px;
}

.conf-policy {
  padding: 10px;
  cursor: pointer;
  margin-right: 39px;
  font-size: 25px;
  font-family: "PT Root UI Medium", sans-serif;
  text-decoration: none;
  color: var(--text-color);
}

.conf-policy:hover {
  text-decoration: underline;
}

.conf-policy-container {
  align-items: end;
}

.job-heading {
  justify-content: space-between;
  align-items: center;
  margin-top: 75px;
  margin-left: 100px;
  margin-right: 100px;
}

.job-heading h2 {
  font-size: 100px;
  font-family: "PT Root UI Medium", sans-serif;
}

.job-content-page h3 {
  font-size: 60px;
  font-family: "PT Root UI Medium", sans-serif;
}

strong {
  font-family: "PT Root UI Medium", sans-serif;
}

.job-content-page {
  margin-left: 100px;
  margin-right: 100px;
}

.job-content-page p {
  font-size: 40px;
}

.team-list li {
  font-size: 40px;
  margin-top: 40px;
}

.digital-img {
  border-radius: 40px;
  margin-top: 40px;
}

/* корректировки */

.more {
  display: flex;
  align-items: center;
  gap: 55px;
}

.main-title {
  font-family: "PT Root UI Bold", sans-serif;
  font-size: 110px;
  padding-bottom: 40px;
  border-bottom: 2px solid #878787;
  line-height: 90%;
}

.more-text {
  font-family: "PT Root UI Medium", sans-serif;
  font-size: 55px;
}

.p-descriprion {
  font-size: 30px;
  margin-bottom: 122px;
  line-height: 100%;
  letter-spacing: 0.03px;
}

.top-card {
  justify-content: space-between;
  height: 300px;
}

.card-ref {
  height: 75px;
  justify-content: space-between;
  align-items: flex-end;
}

.card-base-text {
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0.03px;
  margin-top: 20px;
  margin-bottom: 0;
}

.card-lav-text {
  font-size: 20px;
  margin-top: 10px;
  line-height: 100%;
  letter-spacing: 0.03px;
}

.card-text h3 {
  font-family: "PT Root UI Medium", sans-serif;
}

.no-margin {
  margin: 0;
}

.text-margin {
  margin-top: 30px;
}

.about-us {
  margin: 80px 0 40px;
}

.our-team {
  margin: 40px 0;
}

.about-us-end {
  margin: 30px 0 100px;
}
