:root {
  --color-primary: #0a2896;
  --color-primary-light: #0d2ea7;
  --color-dark: #00104b;
  --color-text: #606060;
  --color-white: #ffffff;
  --color-border: #c8c8c8;
  --radius-sm: 7px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.header__nav-links,
.header__phone,
.header__logo {
  color: #00104b;
}

.section {
  padding: 75px 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-section {
  padding: 80px 0;
}

.about-section__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.about-section__content {
  flex: 1;
}

.about-section__title {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-dark);
  font-family: "Unbounded", Arial, sans-serif;
  margin-bottom: 30px;
  text-align: left;
}

.about-section__text {
  font-size: 23px;
  line-height: 1.4;
  font-weight: 400;
  color: var(--color-dark);
  font-family: "Montserrat", Arial, sans-serif;
  text-align: left;
}

.about-section__text p:not(:last-child) {
  margin-bottom: 20px;
}

.about-section__image {
  flex: 1;
}

.about-section__image img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

.team-section {
  padding: 80px 0;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)),
    url(../img/content/5361690920100071139.webp) center/cover fixed;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  background-attachment: fixed;
  background-size: cover;
  overflow: hidden;
  z-index: 1;
}

.team-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0)),
    url(../img/content/5361690920100071139.webp) center/cover fixed;
  background-size: cover;
  background-attachment: fixed;
  filter: blur(3px);
  z-index: -1;
}

.team-section__header {
  text-align: center;
  margin-bottom: 60px;
}

.team-section__title {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.team-section__description {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 23px;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.4;
  max-width: 1160px;
  margin: 0 auto;
}

.team-section__members {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 60px;
}

.team-member {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.team-member__photo {
  position: relative;
  height: 450px;
  overflow: hidden;
  border-radius: 25px;
  flex-shrink: 0;
}

.team-member__photo img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  display: block;
}

.team-member__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(0, 12, 58, 0.5)
  );
}

.team-member__info {
  position: absolute;
  top: 335px;
  padding: 30px 20px;
  color: var(--color-white);
}

.team-member__name {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 5px;
}

.team-member__position {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

.team-member__expertise {
  display: grid;
  gap: 30px;
  margin-top: 30px;
  flex-grow: 1;
}

.expertise-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  display: flex;
  min-height: 325px;
}
.expertise-card-2 {
  height: 100%;
  min-height: 173px;
}

.expertise-card__text {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  max-height: 100%;
}

.expertise-card__text strong {
  font-weight: 600;
}

.advantages-section {
  padding: 80px 0;
}

.advantages-section__title {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.35;
  text-align: center;
  margin-bottom: 60px;
}

.advantages-section__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 15px;
  border: 1px solid #ddd;
  padding: 24px;
}

.advantage-item__icon {
  margin-bottom: 20px;
}

.advantage-item__icon img {
  display: block;
  width: 65px;
  height: 65px;
  object-fit: contain;
}

.advantage-item__title {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--color-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.advantage-item__text {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.35;
  margin: 0;
}

.mission-section {
  padding: 80px 0;
}

.mission-section__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 262px;
}

.mission-section__background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(to top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
    url(../img/content/cases-bg.webp);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.mission-section__content {
  position: relative;
  z-index: 2;
  padding: 50px 40px;
  text-align: center;
}

.mission-section__title {
  font-family: "Unbounded", Arial, sans-serif;
  font-size: 45px;
  font-weight: 500;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 30px;
}

.mission-section__text {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.35;
  max-width: 1030px;
  margin: 0 auto;
}

.container_wider {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.how-section {
  position: relative;
}

.fadeIn {
  opacity: 1;
}

.how-section:before {
  content: "";
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: var(--color-accent);
  transform: rotate(-2deg);
  position: absolute;
}

.how-section__block {
  position: relative;
  padding: 64px 84px;
  z-index: 2;
  background: url("../img/content/form-bg.webp") no-repeat 50% 50%;
  background-size: cover;
  border-radius: 15px;
}

.how-section__grid {
  display: flex;
  align-items: center;
  gap: 84px;
}

.how-section__about {
  padding: 10% 48px 17%;
  background: url("../img/content/form-block-bg.webp") no-repeat 50% 50%;
  background-size: cover;
  color: #fff;
  border-radius: 15px;
}

.how-section__about .title {
  font-size: 45px;
  font-family: "Unbounded", Arial, sans-serif;
  font-weight: 500;
  color: #fff !important;
  text-align: left;
}

.how-section__desc {
  font-size: 22px;
  color: #fff !important;
  text-align: left;
}

.how-section__desc p {
  margin: 0;
  color: #fff !important;
}

.how-section__desc p:not(:last-child) {
  margin: 0 0 24px;
}

.how-section__form {
  flex: 0 0 33%;
}

.how-section__title {
  margin: 0 0 32px;
  font-size: 35px;
  color: var(--color-dark) !important;
  text-align: left;
}

.how-section__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-section__field .button {
  text-transform: uppercase;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшеты */
@media (max-width: 1280px) {
  .how-section__block {
    padding: 48px 64px;
  }

  .how-section__grid {
    gap: 64px;
  }
}

@media (max-width: 1200px) {
  .team-section__members,
  .team-section__expertise,
  .advantages-section__grid {
    gap: 20px;
  }
}

/* Средние планшеты */
@media (max-width: 992px) {
  .section {
    padding: 30px 0;
  }

  .header__content {
    top: 1%;
  }

  .about-section__grid {
    flex-direction: column;
    gap: 40px;
  }

  .about-section__title,
  .about-section__text {
    text-align: center;
  }

  .team-section__members,
  .team-section__expertise,
  .advantages-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-member__expertise {
    height: auto;
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .expertise-card {
    height: auto;
    min-height: 180px;
  }

  .expertise-card__text {
    -webkit-line-clamp: unset;
  }

  .how-section__grid {
    flex-direction: column;
  }

  .how-section__form {
    width: 100%;
  }

  .how-section__desc {
    font-size: 18px;
    text-align: center;
  }

  .how-section__about .title,
  .how-section__title {
    text-align: center;
  }

  .advantage-item {
    align-items: center;
    text-align: center;
  }
}

/* Мобильные устройства */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .team-member__photo img {
    height: 200%;
  }

  #header__bur i {
    background: #00104b;
    width: 24px;
    display: block;
    margin: 3px 0;
    height: 1px;
    -webkit-transition: width 0.1s linear;
    transition: width 0.1s linear;
  }

  .container_wider {
    padding: 0 15px;
  }

  .about-section__title,
  .team-section__title,
  .advantages-section__title {
    font-size: 28px;
    text-align: center;
  }

  .about-section__text,
  .team-section__description {
    font-size: 18px;
    text-align: center;
  }

  .team-section__members,
  .team-section__expertise,
  .advantages-section__grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    margin: 0 auto;
  }

  .team-section__expertise,
  .advantages-section__grid {
    gap: 20px;
  }

  .team-member__expertise {
    margin-top: 20px;
    height: auto;
  }

  .expertise-card {
    height: auto;
    padding: 20px;
    text-align: center;
  }

  .mission-section__title {
    font-size: 32px;
  }

  .mission-section__text {
    font-size: 18px;
  }

  .advantage-item {
    align-items: center;
    text-align: center;
  }

  .advantage-item__title {
    font-size: 18px;
    text-align: center;
    width: 100%;
  }

  .advantage-item__text {
    font-size: 16px;
    text-align: center;
  }

  .mission-section__content {
    padding: 30px 20px;
  }

  .team-member__info {
    padding: 20px 15px;
  }

  .team-member__name {
    font-size: 18px;
  }
}

/* Маленькие мобильные */
@media (max-width: 550px) {
  .section {
    margin: 0px 0;
  }

  .mission-section__title {
    font-size: 26px;
  }

  .mission-section__text {
    font-size: 16px;
  }

  .how-section__block {
    padding: 32px 20px;
  }

  .how-section__grid {
    gap: 32px;
  }

  .how-section__about {
    padding: 24px;
  }

  .how-section__about .title {
    font-size: 24px;
    margin: 0 0 24px !important;
    text-align: center;
  }

  .how-section__desc {
    font-size: 16px;
    text-align: center;
  }

  .how-section__desc p:not(:last-child) {
    margin: 0 0 16px;
  }

  .how-section__title {
    font-size: 24px;
    text-align: center;
  }

  .about-section__image img {
    border-radius: var(--radius-sm);
  }
  .mission-section {
    padding: 0;
  }

  .team-member__info {
    top: 260px;
  }

  .team-member__photo {
    height: 350px;
  }

  .advantage-item__icon {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .advantage-item__icon img {
    margin: 0 auto;
  }

  .expertise-card {
    padding: 15px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 375px) {
  .container {
    padding: 0 10px;
  }

  .container_wider {
    padding: 0 10px;
  }

  .about-section__title,
  .team-section__title,
  .advantages-section__title {
    font-size: 24px;
  }

  .about-section__text,
  .team-section__description {
    font-size: 16px;
  }

  .mission-section__title {
    font-size: 22px;
  }

  .mission-section__text {
    font-size: 14px;
  }

  .how-section__block {
    padding: 24px 15px;
  }
}
