/* Стилі для темплейту About (template-about.php) */

.about-page .container {
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Hero */

.about-hero {
  position: relative;
  padding: 120px 0 100px;
  background-color: #ffffff;
  overflow: hidden;
}

.about-hero.has-bg-image {
  background-image:
    linear-gradient(
      90deg,
      #ffffff 0%,
      #ffffff 38%,
      rgba(255, 255, 255, 0.75) 52%,
      rgba(255, 255, 255, 0) 72%
    ),
    var(--about-hero-bg);
  background-size:
    100% 100%,
    cover;
  background-position:
    0 0,
    right center;
  background-repeat: no-repeat, no-repeat;
}

.about-hero__content {
  position: relative;
  max-width: 700px;
  padding: 50px 60px 50px 40px;
  margin-left: -40px;
}

.about-hero__content::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30px -40px;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(30px);
  border-radius: 60px;
}

.about-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #123169;
}

.about-hero__eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 40px;
  height: 2px;
  background-color: #123169;
}

.about-hero__title {
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
  font-size: 44px;
  font-weight: 500;
  color: #113168;
}

.about-hero__text {
  margin: 0 0 36px;
  max-width: 550px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.7;
  color: #55606f;
}

.about-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.about-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  padding: 16px 26px;
  box-shadow: 0 12px 26px rgba(17, 49, 104, 0.18);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.about-hero__btn:hover,
.about-hero__btn:focus {
  box-shadow: 0 16px 34px rgba(17, 49, 104, 0.24);
  transform: translateY(-2px);
}

.about-hero__btn--primary {
  background-color: #3565a0;
  color: #ffffff;
  border: 1px solid #3565a0;
  padding: 8px 8px 8px 26px;
}

.about-hero__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    font-weight: 200;
    border-radius: 50%;
    background-color: #ffffff;
    color: #3565a0;
    font-size: 24px;
    box-shadow: 0 4px 10px rgba(17, 49, 104, 0.2);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.about-hero__btn--primary:hover,
.about-hero__btn--primary:focus {
  background-color: transparent;
  color: #3565a0;
}

.about-hero__btn--primary:hover .about-hero__btn-icon,
.about-hero__btn--primary:focus .about-hero__btn-icon {
  background-color: #3565a0;
  color: #ffffff;
}

.about-hero__btn--outline {
  background-color: transparent;
  color: #123169;
  border: 1px solid #123169;
}

.about-hero__btn--outline:hover,
.about-hero__btn--outline:focus {
  background-color: #123169;
  color: #ffffff;
}

@media (max-width: 991px) {
  .about-hero {
    padding: 40px 0 120px;
  }

  .about-hero.has-bg-image {
    background-image:
      linear-gradient(
        180deg,
        #ffffff 0%,
        #ffffff 55%,
        rgba(255, 255, 255, 0.6) 75%,
        rgba(255, 255, 255, 0) 100%
      ),
      var(--about-hero-bg);
    background-size:
      100% 100%,
      cover;
    background-position:
      0 0,
      center top;
  }

  .about-hero__content {
    max-width: 100%;
    margin-left: 0;
    padding: 30px 20px;
  }
}

@media (max-width: 600px) {
  .about-hero__title {
    font-size: 2.1em;
  }

  .about-hero__btn {
    width: 100%;
    justify-content: center;
  }

  .about-hero__btn--primary {
    justify-content: space-between;
  }
  span.about-hero__btn-text {
    margin-left: auto;
    margin-right: auto;
  }
}

/* Biography */

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

.about-bio__card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 34px 80px rgba(17, 49, 104, 0.2);
  overflow: hidden;
  margin-top: -90px;
}

.about-bio__photo {
  min-height: 100%;
}

.about-bio__photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;

}

.about-bio__info {
  padding: 44px 48px;
}

.about-bio__name {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 700;
  color: #113168;
}

.about-bio__position {
  margin: 0 0 22px;
  font-family: inherit;
  font-size: 19px;
  color: #6b7688;
}

.about-bio__contacts {
  display: flex;
  gap: 40px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e7e9ef;
}

.about-bio__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about-bio__contact-label {
  font-family: inherit;
  font-size: 13px;
  color: #8891a1;
}

.about-bio__contact-value {
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  color: #113168;
  text-decoration: none;
}

.about-bio__contact-value:hover,
.about-bio__contact-value:focus {
  color: #b23a52;
  text-decoration: underline;
}

.about-bio__practice-label {
  display: block;
  margin-bottom: 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8891a1;
}

.about-bio__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.about-bio__tag {
  display: inline-flex;
  align-items: center;
  padding: 11px 30px;
  border-radius: 50px;
  background-color: #eef1f7;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #113168;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(17, 49, 104, 0.08);
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}



.about-bio__tag--link:hover,
.about-bio__tag--link:focus {
  background-color: #e7eef8;
  color: #3565a0;
  box-shadow: 0 8px 18px rgba(53, 101, 160, 0.22);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .about-hero {
    padding-bottom: 120px;
  }

  .about-bio__card {
    grid-template-columns: minmax(0, 1fr);
    margin-top: -70px;
  }

  .about-bio__photo img {
    min-height: 320px;
  }

  .about-bio__info {
    padding: 36px 28px;
  }
}

@media (max-width: 600px) {
  .about-bio__contacts {
    flex-direction: column;
    gap: 14px;
  }

  .about-bio__info {
    padding: 28px 20px;
  }
  .about-bio__tag {
    font-size: 14px;
    padding: 10px 26px;
  }
}

/* Information */

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

.about-info__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 30px;
}

.about-info__title {
  margin: 0 0 24px;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 700;
  color: #113168;
}

.about-info__content {
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
  color: #3d4758;
}

.about-info__content h2,
.about-info__content h3,
.about-info__content h4 {
  margin: 40px 0 16px;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #113168;
  scroll-margin-top: 100px;
}

.about-info__content h2 {
  font-size: 28px;
}

.about-info__content h3 {
  font-size: 22px;
}

.about-info__content h4 {
  font-size: 18px;
}

.about-info__content > *:first-child {
  margin-top: 0;
}

.about-info__content p {
  margin: 0 0 18px;
}

.about-info__content a {
  color: #3565a0;
  text-decoration: underline;
  text-decoration-color: rgba(53, 101, 160, 0.4);
  text-underline-offset: 3px;
  transition:
    color 0.25s ease,
    text-decoration-color 0.25s ease;
}

.about-info__content a:hover,
.about-info__content a:focus {
  color: #123169;
  text-decoration-color: #123169;
}

.about-info__content ul,
.about-info__content ol {
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}

.about-info__content ol {
  counter-reset: about-info-ol;
}

.about-info__content li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 24px;
}

.about-info__content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #3565a0;
}

.about-info__content ol li {
  counter-increment: about-info-ol;
}

.about-info__content ol li::before {
  content: counter(about-info-ol) ".";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #3565a0;
}

/* Sidebar */

.about-info__sidebar-inner {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-info__toc {
  background-color: #f7f8fb;
  border: 1px solid #e7e9ef;
  border-radius: 16px;
  padding: 26px;
}

.about-info__toc-title {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 30px;
  font-weight: 700;
  color: #113168;
}

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

.about-info__toc-item {
  border-bottom: 1px dashed #dde1ea;
}

.about-info__toc-item:last-child {
  border-bottom: none;
}

.about-info__toc-item--h4 {
  margin-left: 18px;
}

.about-info__toc-item a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.45;
  color: #55606f;
  text-decoration: none;
  transition: color 0.25s ease;
}

.about-info__toc-item a::before {
  content: "";
  flex-shrink: 0;
  margin-top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #b23a52;
  transition: background-color 0.25s ease;
}

.about-info__toc-item a:hover,
.about-info__toc-item a:focus {
  color: #3565a0;
}

.about-info__toc-item a:hover::before,
.about-info__toc-item a:focus::before {
  background-color: #3565a0;
}

.about-info__contact-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #123169;
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 20px 40px rgba(17, 49, 104, 0.22);
}

.about-info__contact-title {
  margin: 0;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.about-info__contact-line {
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.about-info__contact-line:hover,
.about-info__contact-line:focus {
  color: #ffffff;
  text-decoration: underline;
}

.about-info__contact-note {
  margin: 4px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-family: inherit;
  font-size: 14px;
  color: #c3cee3;
}

@media (max-width: 991px) {
  .about-info__grid {
    display: flex;
    flex-direction: column;
  }

  .about-info__sidebar,
  .about-info__sidebar-inner {
    display: contents;
  }

  .about-info__toc {
    order: 1;
    margin-bottom: 24px;
  }

  .about-info__main {
    order: 2;
  }

  .about-info__contact-box {
    order: 3;
    margin-top: 24px;
  }
}

@media (max-width: 600px) {
  .about-info {
    padding: 0px 0 50px;
  }

  .about-info__title {
    font-size: 30px;
  }
}

/* Credentials */

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

.about-credentials__card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: #ffffff;
  border: 1px solid #e7e9ef;
  border-radius: 20px;
  overflow: hidden;
}

.about-credentials__col {
  padding: 32px 28px;
  border-right: 1px solid #e7e9ef;
}

.about-credentials__col:last-child {
  border-right: none;
}

.about-credentials__col-title {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: #113168;
}

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

.about-credentials__item {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px dashed #dde1ea;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  color: #3d4758;
}

.about-credentials__item:last-child {
  border-bottom: none;
}

.about-credentials__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #b23a52;
}

@media (max-width: 991px) and (min-width: 768px) {
  .about-credentials__card {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-credentials__col:nth-child(odd) {
    border-right: 1px solid #e7e9ef;
  }

  .about-credentials__col:nth-child(even) {
    border-right: none;
  }

  .about-credentials__col:nth-child(-n + 2) {
    border-bottom: 1px solid #e7e9ef;
  }
}

@media (max-width: 767px) {
  .about-credentials {
    padding: 50px 0;
  }

  .about-credentials__card {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-credentials__col {
    border-right: none;
    border-bottom: 1px solid #e7e9ef;
  }

  .about-credentials__col:last-child {
    border-bottom: none;
  }
}

.about-credentials__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 14px;
  margin-top: 40px;
}

.about-credentials__review-item img {
  display: block;
  width: 280px;
  max-width: 100%;
  height: auto;
}

.about-credentials__logos-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 1;
  min-width: 280px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #e2e5ec;
  border-radius: 8px;
}

.about-credentials__logos-box img {
  display: block;
  width: auto;
  height: 86px;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .about-credentials__logos {
    gap: 16px;
    justify-content: center;
  }

  .about-credentials__review-item img {
    width: 330px;
  }

  .about-credentials__logos-box {
    gap: 18px;
    padding: 16px;
  }

  .about-credentials__logos-box img {
    height: 62px;
  }
}

/* CTA (форма + мапа) */

.about-cta {
  padding-bottom: 80px;
}
.about-cta__grid .about-info__title {
  text-align: center;
  margin-bottom: 40px;
}
.about-cta__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-cta__form-card {
  background-color: #edf1fa;
  border-radius: 16px;
  padding: 40px 24px;
}

.about-cta__map-inner {
  height: 450px;
  border-radius: 16px;
  overflow: hidden;
}

.about-cta__map-inner iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.about-cta .wpcf7-not-valid-tip {
  position: absolute;
  font-size: 9px !important;
  bottom: 0;
  left: 10px;
}
.about-cta .wpcf7-response-output {
  position: absolute;
  font-size: 10px;
  margin: 0px !important;
}
/* Форму cf7-form налаштовує сам клієнт у шаблоні CF7 (класи cf7-row/cf7-col/cf7-input/cf7-textarea/cf7-submit) */
/* CF7 огортає кожне поле в свій <p> з браузерним margin — обнуляємо, відступи задаємо самі */

.cf7-form p {
  margin: 0;
}

.cf7-form br {
  display: none;
}

.cf7-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}

.cf7-col {
  flex: 1;
  min-width: 220px;
}

.cf7-col--full {
  flex: 0 0 100%;
}

.cf7-form label {
  display: block;
  margin-bottom: 7px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #24365e;
}

.cf7-form label span {
  color: #b23a52;
}

.cf7-input,
.cf7-textarea,
.wpcf7-form-control:not([type="submit"]) {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background-color: #ffffff;
  border: 1px solid #e1e6f0;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: #24365e;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.cf7-input::placeholder,
.cf7-textarea::placeholder,
.wpcf7-form-control::placeholder {
  color: #97a1b3;
}

.cf7-textarea {
  min-height: 120px;
  resize: vertical;
}

.cf7-input:focus,
.cf7-textarea:focus,
.wpcf7-form-control:focus {
  outline: none;
  border-color: #3565a0;
  box-shadow: 0 0 0 3px rgba(53, 101, 160, 0.12);
}

.cf7-row:last-child {
  margin-bottom: 0;
  margin-top: 4px;
}

.cf7-row:last-child p {
  position: relative;
  display: inline-block;
  width: fit-content;
}

.cf7-row:last-child p .wpcf7-spinner {
  display: none;
}

.cf7-submit {
  display: inline-block;
  width: auto;
  background-color: #3565a0;
  border: none;
  border-radius: 50px;
  padding: 13px 63px 13px 28px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cf7-submit:hover {
  background-color: #24365e;
}

.cf7-row:last-child p::after {
  content: "\2197";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: #ffffff;
  color: #3565a0;
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}

.cf7-form .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #b23a52;
}

.wpcf7-response-output {
  margin-top: 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}

@media (max-width: 600px) {
  .about-cta__form-card {
    padding: 28px 20px;
  }

  .cf7-row {
    flex-direction: column;
  }

  .about-cta__map-inner {
    height: 320px;
  }
}
