:root {
  --photo-width: 1500px;
  --image-offset: calc((100vw - var(--photo-width)) / 2);
}

.centered-photo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.body {
  background: #212121;
  color: #e0e0e0;
}

.about-content {
  max-width: 100%;
  padding: 70px 0 5px var(--image-offset);
  width: 100vw;
}

.about-title {
  position: relative;
  display: inline-block;
  font-size: 40px;
  font-weight: 500;
}
.about-title::before {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}
.about-title::after {
  content: "";
  position: absolute;
  bottom: -29.5px;
  left: 100%; /* от конца before */
  width: calc(100vw - var(--image-offset) - var(--image-offset) - 100%);
  height: 1px;
  background: rgba(224, 224, 224, 0.8);
}

.about-second-title {
  font-size: 33px;
  font-weight: 600;
  margin: 30px auto 10px auto;
  text-transform: uppercase;
}

.about-text {
  font-size: 20px;
  font-weight: 400;
  margin: 0px auto 20px auto;
}

.achievements-text {
  max-width: 100%;
  padding: 30px 0 0px var(--image-offset);
  width: 100vw;
}

.achievements-title {
  position: relative;
  display: inline-block;
  font-size: 40px;
  font-weight: 500;
}

.achievements-title::before {
  content: "";
  position: absolute;
  bottom: -30px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
}

.achievements-title::after {
  content: "";
  position: absolute;
  bottom: -29.5px;
  left: 100%; /* от конца before */
  width: calc(100vw - var(--image-offset) - var(--image-offset) - 100%);
  height: 1px;
  background: rgba(224, 224, 224, 0.8);
}

.achievements-description p {
  font-size: 20px;
  font-weight: 400;

  margin: 40px auto 30px;
  white-space: nowrap;
}

.achievements-description ul {
  font-size: 20px;
  font-weight: 700;

  margin: 0px auto 30px;
  padding-left: 20px;
}

.achievements-description ul li {
  margin-top: 15px;
}

.about-separator {
  border: none;
  height: 1px;
  background: rgba(224, 224, 224, 0.8);
  width: var(--photo-width);
  margin: 0 auto;
}

.about-all-text {
  font-size: 20px;
  font-weight: 400;

  width: var(--photo-width);
  max-width: 100%;
  margin: 40px auto 60px;
  line-height: 1.6;
  text-align: justify;
}

.boss-photo-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: var(--photo-width);
  max-width: 100%;
  margin: 0 auto;
}

.boss-caption {
  margin-top: 20px;
  font-size: 20px;
  font-weight: 400;
  color: #e0e0e0;
  text-align: right;
  padding-right: 10px;
}

/* === 📱📲 Адаптивная верстка под все экраны === */

@media (max-width: 1600px) {
  :root {
    --photo-width: 1200px;
    --image-offset: calc((100vw - var(--photo-width)) / 2);
  }

  .about-title,
  .achievements-title {
    font-size: 36px;
  }

  .about-second-title {
    font-size: 30px;
  }

  .about-text,
  .about-all-text,
  .achievements-description p,
  .achievements-description ul {
    font-size: 19px;
  }
}

@media (max-width: 1366px) {
  :root {
    --photo-width: 1000px;
    --image-offset: calc((100vw - var(--photo-width)) / 2);
  }

  .about-title,
  .achievements-title {
    font-size: 34px;
  }

  .about-second-title {
    font-size: 28px;
  }

  .about-text,
  .about-all-text,
  .achievements-description p,
  .achievements-description ul {
    font-size: 18px;
  }
}

@media (max-width: 1399px) and (min-width: 1025px) {
  .about-content,
  .achievements-text,
  .boss-photo-container,
  .site-footer__inner {
    padding-left: var(--image-offset);
    padding-right: var(--image-offset);
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }
}

/* Планшеты */
@media (max-width: 1024px) {
  :root {
    --photo-width: 90vw;
    --image-offset: 5vw;
  }

  .about-content,
  .achievements-text,
  .about-all-text,
  .boss-photo-container {
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
    margin-left: 0;
  }

  .centered-photo {
    width: 100%;
    height: auto;
  }

  .boss-photo-container {
    align-items: center;
  }

  .boss-caption {
    font-size: 17px;
    text-align: center;
    padding: 0;
  }

  .about-title,
  .achievements-title {
    font-size: 28px;
  }

  .about-second-title {
    font-size: 24px;
  }

  .about-all-text {
    width: 100%;
  }

  
}

/* Смартфоны */
@media (max-width: 768px) {
  :root {
    --photo-width: 100vw;
    --image-offset: 10px;
  }


  .about-content {
    padding: 90px 25px 0px 25px;
  }
  .achievements-text,
  .about-all-text,
  .boss-photo-container {
    padding-left: 25px;
    padding-right: 25px;
  }

  .centered-photo {
    width: 100%;
    height: auto;
  }

  .boss-photo-container {
    width: var(--photo-width);
    max-width: 100%;
    margin: 0 auto;
    align-items: flex-end; /* важно для выравнивания caption по правому краю */
  }

  .boss-caption {
    width: 100%;
    text-align: right;
    font-size: 14px;
    margin-top: 10px;
    padding-right: 10px;
  }

  .boss-name {
    display: block;
    margin-top: 5px;
  }

  .about-title {
    font-size: 25px;
    margin-bottom: 15px;
  }
  .achievements-title {
    font-size: 35px;
  }
  .about-title::before,
  .achievements-title::before {
    height: 1.5px;
    bottom: -20px;
  }
  .about-title::after,
  .achievements-title::after {
    bottom: -19.5px;
    left: 100%;
    width: calc(100vw - 50px - 100%); /* 15px отступ с каждой стороны */
    height: 1px;
    background: rgba(224, 224, 224, 0.8);
    content: "";
    position: absolute;
  }
  .about-second-title {
    font-size: 18px;
    margin-top: 25px;
  }

  .about-text {
    font-size: 16px;
    margin-top: 15px;
    text-align: left;
  }

  .achievements-title {
    font-size: 25px;
    margin-bottom: 15px;
  }

  .about-all-text,
  .achievements-description p,
  .achievements-description ul {
    font-size: 16px;
    white-space: normal;
    word-wrap: break-word;
  }

  .achievements-text {
    padding-top: 0px;
  }

  .achievements-description p {
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .boss-caption {
    font-size: 14px;
    text-align: right;
    margin-top: 10px;
    padding: 0;
  }
  .about-all-text {
    font-size: 16px;
    font-weight: 400;
    max-width: var(--photo-width);
    margin: 30px auto 30px;
    line-height: 1.2;
    text-align: left;
    padding-left: 25px;
    padding-right: 25px;
  }
  .site-footer__inner {
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
    padding-left: 25px;
    padding-right: 25px;
    font-size: 10px;
  }

  .footer-copy,
  .footer-location {
    font-size: 12px;
  }

  .footer-icons {
    margin-top: 15px;
  }

  .footer-icons a {
    font-size: 16px;
  }

  .footer-icons a img {
    height: 12px;
  }

  .about-text br {
    display: none;
  }

  .footer-logo {
    text-align: center;
    margin: 50px 0 30px;
  }

  .site-footer {
    padding: 10px 0 30px;
  }
}
