/* Contacts page accent and direct contact cards. */

.page-story-section--contacts {
  --page-accent: #0f9d92;
  --page-accent-rgb: 15, 157, 146;
}

.page-story-section--contacts .page-story-chapters {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  min-height: 0;
  padding: clamp(26px, 3.4vw, 46px);
}

.page-story-section--contacts .page-chapter {
  --chapter-accent-rgb: 15, 157, 146;
  --chapter-accent: rgb(var(--chapter-accent-rgb));
  isolation: isolate;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 2.4vw, 30px);
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
  border-radius: clamp(26px, 2.8vw, 40px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 9% 8%, rgba(133, 213, 226, 0.22), transparent 29%),
    radial-gradient(circle at 91% 10%, rgba(111, 92, 255, 0.32), transparent 34%),
    linear-gradient(135deg, #101820 0%, #172235 54%, #0d1118 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 58px rgba(18, 38, 62, 0.18);
}

.page-story-section--contacts .page-chapter::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 16px);
  opacity: 0.64;
  pointer-events: none;
}

.page-story-section--contacts .page-chapter > * {
  position: relative;
  z-index: 1;
}

.page-story-section--contacts .page-chapter::after {
  display: none;
}

.page-story-section--contacts .page-chapter-index {
  display: none;
}

.page-story-section--contacts .page-chapter-head {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.page-story-section--contacts .page-chapter-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-right: 0;
  justify-items: center;
  text-align: center;
}

.page-story-section--contacts .page-chapter-title {
  display: none;
  max-width: 100%;
  margin: 0;
  color: rgba(35, 42, 52, 0.96);
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  hyphens: none;
}

.page-story-section--contacts .page-chapter-intro {
  max-width: 78ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.02rem, 1.18vw, 1.2rem);
  line-height: 1.46;
  text-align: center;
}

.page-story-section--contacts .page-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 1.6vw, 18px);
  width: min(100%, 920px);
  margin-inline: auto;
  min-width: 0;
}

.page-story-section--contacts .page-point,
.page-story-section--contacts .page-point:first-child,
.page-story-section--contacts .page-point:last-child,
.page-story-section--contacts .page-chapter--01 .page-point {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 12px;
  min-width: 0;
  height: auto;
  min-height: clamp(190px, 14vw, 230px);
  padding: clamp(18px, 2vw, 24px);
  border-top: 0;
  border-radius: clamp(18px, 1.7vw, 24px);
  border: 1px solid rgba(var(--chapter-accent-rgb), 0.14);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--chapter-accent-rgb), 0.12), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 253, 0.66)),
    rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 28px rgba(39, 89, 138, 0.07);
  overflow: hidden;
}

.page-story-section--contacts .page-point:nth-child(2) {
  --chapter-accent-rgb: 44, 118, 238;
}

.page-story-section--contacts .page-point:nth-child(3) {
  --chapter-accent-rgb: 111, 92, 255;
}

.page-story-section--contacts .page-point:nth-child(4) {
  --chapter-accent-rgb: 43, 167, 220;
}

.page-story-section--contacts .page-point::before {
  display: none;
}

.page-story-section--contacts .page-point-icon {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #58b0ff 0%, #00a6c8 100%);
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  text-decoration: none;
}

.page-story-section--contacts .page-point:nth-child(2) .page-point-icon {
  background: linear-gradient(135deg, #38d36e 0%, #0ea44b 100%);
}

.page-story-section--contacts .page-point:nth-child(3) .page-point-icon {
  background: linear-gradient(135deg, #58b0ff 0%, #007ceb 100%);
}

.page-story-section--contacts .page-point:nth-child(4) .page-point-icon {
  background: linear-gradient(135deg, #8f7cff 0%, #5949ff 100%);
}

.page-story-section--contacts .page-point-icon-link {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.page-story-section--contacts .page-point-icon-link:hover,
.page-story-section--contacts .page-point-icon-link:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 28px rgba(var(--chapter-accent-rgb), 0.16);
  outline: none;
}

.page-story-section--contacts .page-point-icon-svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-story-section--contacts .page-point:nth-child(4) .page-point-icon-svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
}

.page-story-section--contacts .page-point-title {
  grid-column: 1;
  margin: 0;
  color: rgba(35, 42, 52, 0.96);
  font-size: clamp(1.1rem, 1.32vw, 1.34rem);
  line-height: 1.08;
  letter-spacing: 0;
  white-space: nowrap;
}

.page-story-section--contacts .page-point-text,
.page-story-section--contacts .page-point-link {
  grid-column: 1;
  align-self: start;
  margin: 0;
  color: rgba(46, 51, 59, 0.68);
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.page-story-section--contacts .page-point-link {
  color: rgb(var(--chapter-accent-rgb));
  text-decoration: none;
}

.page-story-section--contacts .page-story-cta {
  display: none;
}

@media (max-width: 1180px) {
  .page-story-section--contacts .page-chapter-intro {
    max-width: 52ch;
  }
}

@media (max-width: 960px) {
  .page-story-section--contacts .page-points {
    grid-template-columns: 1fr;
  }

  .page-story-section--contacts .page-point,
  .page-story-section--contacts .page-point:first-child,
  .page-story-section--contacts .page-point:last-child,
  .page-story-section--contacts .page-chapter--01 .page-point {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .page-story-section--contacts .page-story-chapters {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .page-story-section--contacts .page-chapter {
    gap: 16px;
    padding: 17px;
    border-radius: 22px;
  }

  .page-story-section--contacts .page-chapter-title {
    font-size: clamp(1.64rem, 7.2vw, 2.12rem);
  }

  .page-story-section--contacts .page-chapter-intro {
    max-width: 100%;
    font-size: 0.9rem;
    line-height: 1.46;
  }

  .page-story-section--contacts .page-point,
  .page-story-section--contacts .page-point:first-child,
  .page-story-section--contacts .page-point:last-child,
  .page-story-section--contacts .page-chapter--01 .page-point {
    gap: 10px;
    padding: 14px;
    border-radius: 17px;
  }

  .page-story-section--contacts .page-point-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
  }

  .page-story-section--contacts .page-point-icon-svg {
    width: 28px;
    height: 28px;
  }

  .page-story-section--contacts .page-point:nth-child(4) .page-point-icon-svg {
    width: 27px;
    height: 27px;
  }

  .page-story-section--contacts .page-point-title {
    font-size: clamp(1.04rem, 5vw, 1.32rem);
  }

  .page-story-section--contacts .page-point-text,
  .page-story-section--contacts .page-point-link {
    font-size: 0.9rem;
    line-height: 1.44;
  }
}
