/* ==========================================================================
   PricePlan — company page (/ru/about/company/)
   ========================================================================== */

.about-page { padding-bottom: 0; }

/* Intro ------------------------------------------------------------------ */

.about-head {
  margin: 60px 0 40px;
  text-align: center;
}

.about-head h1 {
  margin: 0;
  font-size: 40px;
  line-height: 50px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--heading);
}

.about-head p {
  margin: 12px 0 0;
  font-size: 20px;
  line-height: 26px;
  color: var(--muted);
}

.about-head::after {
  content: "";
  display: block;
  width: 200px;
  height: 1px;
  margin: 20px auto 0;
  background: var(--line);
}

/* Timeline --------------------------------------------------------------- */

.timeline {
  position: relative;
  margin: 100px 0 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: #f1f1f2;
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  align-items: start;
  margin-bottom: 70px;
}

.timeline-time {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  width: 108px;
  padding: 10px;
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}

.timeline-icon {
  grid-column: 2;
  grid-row: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f5f6;
  position: relative;
  z-index: 1;
}

.timeline-label {
  grid-column: 3;
  grid-row: 1;
  margin-left: 30px;
  padding: 28px 24px;
  background: #f5f5f6;
  text-align: center;
}

.timeline-label h2 {
  margin: 0;
  font-size: 16px;
  line-height: 22.857px;
  font-weight: 300;
  text-transform: uppercase;
  color: #737881;
}

.timeline-entry--left .timeline-time {
  grid-column: 3;
  justify-self: start;
  text-align: left;
}

.timeline-entry--left .timeline-label {
  grid-column: 1;
  justify-self: end;
  margin: 0 30px 0 0;
}

.timeline-end {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border-radius: 50%;
  background: #f5f5f6;
}

/* Contacts --------------------------------------------------------------- */

.about-contact {
  display: grid;
  grid-template-columns: 520px 163px 360px;
  align-items: start;
  margin-top: 90px;
  padding: 60px 0 100px;
}

.about-map iframe {
  display: block;
  width: 520px;
  height: 456px;
  border: 0;
  background: #f2f4f6;
}

.about-contact__info {
  grid-column: 3;
  text-align: center;
}

.about-contact__info ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-contact__info li {
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
}

.about-contact__info a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.about-contact__info a:hover { color: var(--orange); }

.about-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.about-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #428bca;
  font-size: 48px;
  line-height: 1;
}

.about-social a:hover { color: #2a6496; }

/* Certificates ----------------------------------------------------------- */

.about-certs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 0 40px;
}

.cert {
  width: 292px;
  margin: 0;
  text-align: center;
}

.cert img {
  display: block;
  width: 200px;
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--text);
  background: #fff;
}

.cert figcaption {
  margin: 8px 15px 0;
  font-size: 14px;
  line-height: 24px;
  color: var(--text);
}

/* Page-level tweaks ------------------------------------------------------ */

.about-page ~ .site-footer { margin-top: 15px; }

.dropdown a[aria-current="page"] { color: var(--orange); }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1199px) {
  .about-contact {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 70px;
  }

  .about-map iframe {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .about-contact__info { grid-column: 1; }
}

@media (max-width: 991px) {
  .about-head { margin-top: 40px; }

  .about-head h1 {
    font-size: 32px;
    line-height: 1.25;
  }

  .about-head p {
    font-size: 18px;
    line-height: 25px;
  }

  .timeline-label { padding: 24px 20px; }
  .timeline-label h2 { font-size: 15px; }

  .about-certs { gap: 20px; }
}

@media (max-width: 767px) {
  .about-head {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  .about-head h1 { font-size: 26px; }

  .about-head p {
    font-size: 16px;
    line-height: 24px;
  }

  .timeline { margin: 40px 0 26px; }

  .timeline::before {
    left: 20px;
    margin-left: 0;
  }

  .timeline-entry,
  .timeline-entry--left {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    margin-bottom: 34px;
  }

  .timeline-time,
  .timeline-entry--left .timeline-time {
    grid-column: 2;
    grid-row: 1;
    justify-self: start;
    width: auto;
    padding: 0 0 8px;
    font-size: 13px;
    line-height: 20px;
    text-align: left;
  }

  .timeline-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-label,
  .timeline-entry--left .timeline-label {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding: 20px 18px;
    text-align: left;
  }

  .timeline-label h2 {
    font-size: 14px;
    line-height: 1.45;
  }

  .timeline-end {
    margin: 0;
    width: 40px;
    height: 40px;
  }

  .about-contact {
    margin-top: 40px;
    padding-bottom: 50px;
  }

  .about-map iframe { height: 320px; }

  .about-certs {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
  }
}
