:root {
  --bg: #fafafa;
  --black: #121212;
  --gray: #363636;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: #000;
  font-family: "Inter", sans-serif;
}

h1,
h2,
p,
ul {
  margin: 0;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

.shiftboard-page {
  width: 1012px;
  margin: 0 auto;
  padding-bottom: 64px;
}

.back-link {
  margin-top: 64px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
  line-height: 1;
  color: var(--gray);
}

.back-link img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  display: block;
  transform: translateY(0.5px);
}

.back-link span {
  position: relative;
  top: 1px;
}

.hero {
  padding-top: 19px;
}

.hero h1 {
  font-size: 40px;
  font-weight: 500;
}

.hero p {
  margin-top: 9px;
  font-size: 16px;
}

.meta-row {
  width: 327px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.meta-label {
  font-size: 14px;
  color: var(--gray);
}

.meta-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
}

.meta-item.wide {
  width: 155px;
}

.meta-item.wide .meta-value {
  white-space: nowrap;
}

.hero-image-block {
  padding: 24px 0;
}

.hero-image {
  width: 100%;
  height: 631px;
  border-radius: 15px;
  object-fit: cover;
  object-position: 44% 50%;
}

.split-section {
  padding: 48px 0;
  display: grid;
  grid-template-columns: 461px 496px;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.split-section.reverse {
  grid-template-columns: 496px 461px;
}

.text-col h2,
.full-text-section h2 {
  font-size: 26px;
  font-weight: 500;
}

.text-col p,
.full-text-section p,
.text-col li,
.full-text-section li {
  font-size: 16px;
}

.text-col ul,
.full-text-section ul {
  margin-top: 19px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.text-col p {
  margin-top: 19px;
}

.side-image {
  width: 496px;
  height: 496px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}

.full-text-section {
  padding: 48px 0;
}

.full-text-section p {
  margin-top: 19px;
}

.phones-grid {
  padding: 24px 0;
  display: grid;
  grid-template-columns: repeat(2, 483px);
  justify-content: space-between;
  gap: 24px;
}

.phones-grid img {
  width: 483px;
  height: 926px;
  object-fit: cover;
}

.mac-block {
  padding: 24px 0;
}

.mac-block img {
  width: 100%;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .shiftboard-page {
    width: 785px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-image {
    height: 489px;
  }

  .split-section,
  .split-section.reverse {
    grid-template-columns: 1fr;
  }

  .text-col,
  .side-image {
    width: 100%;
    height: auto;
  }

  .side-image {
    border-radius: 15px;
  }

  .phones-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .phones-grid img {
    width: 100%;
    height: auto;
  }
}

@media (max-width: 820px) {
  .shiftboard-page {
    width: 370px;
    padding-bottom: 40px;
  }

  .back-link {
    margin-top: 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .meta-row {
    width: 100%;
  }

  .meta-item.wide {
    width: 200px;
  }

  .hero-image {
    height: 231px;
  }

  .split-section,
  .split-section.reverse,
  .full-text-section,
  .phones-grid,
  .mac-block {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .text-col h2,
  .full-text-section h2 {
    font-size: 24px;
  }

  .split-section.reverse .text-col {
    order: 1;
  }

  .split-section.reverse .side-image {
    order: 2;
  }
}
