/* contacts.css — стили только страницы «Контакты» */

.contacts-page {
  overflow: hidden;
}

.contacts-hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(38, 217, 255, .25), transparent 24%),
    radial-gradient(circle at 8% 92%, rgba(116, 89, 255, .23), transparent 28%),
    linear-gradient(135deg, #031226 0%, #082d61 52%, #0a6780 100%);
}

.contacts-hero__grid {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 75%);
}

.contacts-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(4px);
}

.contacts-hero__glow--one {
  width: 330px;
  height: 330px;
  left: -90px;
  bottom: -110px;
  background: radial-gradient(circle, rgba(40,220,255,.32), transparent 68%);
}

.contacts-hero__glow--two {
  width: 280px;
  height: 280px;
  right: 20%;
  top: -110px;
  background: radial-gradient(circle, rgba(146,97,255,.24), transparent 68%);
}

.contacts-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 650px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.contacts-hero__copy h1 {
  margin: 18px 0 20px;
  max-width: 680px;
  font-size: clamp(54px, 6.6vw, 92px);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 950;
}

.contacts-hero__copy h1 span {
  background: linear-gradient(90deg, #65eaff, #4ce2cc, #8c72ff, #ff6ac4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contacts-hero__copy p {
  max-width: 650px;
  margin: 0;
  color: #d4e3f4;
  font-size: 19px;
  line-height: 1.7;
}

.contacts-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.contacts-hero__photo {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  transform: perspective(1200px) rotateY(-3deg);
}

.contacts-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(2,17,38,.63), transparent 54%),
    linear-gradient(135deg, rgba(38,217,255,.10), transparent 40%);
  pointer-events: none;
}

.contacts-hero__photo img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.contacts-hero__badge {
  position: absolute;
  z-index: 3;
  left: 22px;
  bottom: 22px;
  padding: 15px 18px;
  border-radius: 16px;
  background: rgba(5,24,51,.80);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.14);
}

.contacts-hero__badge span,
.contacts-hero__badge strong {
  display: block;
}

.contacts-hero__badge span {
  color: #7deaff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.contacts-hero__badge strong {
  margin-top: 3px;
  color: #fff;
  font-size: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 26px;
  border: 1px solid #dfe8f4;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #f9fbff);
  box-shadow: 0 14px 36px rgba(18, 57, 108, .07);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.contact-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,112,255,.12), transparent 70%);
}

.contact-card--address::after {
  background: radial-gradient(circle, rgba(37,217,255,.18), transparent 70%);
}


.contact-card:hover {
  transform: translateY(-7px);
  border-color: #c9dbf7;
  box-shadow: 0 24px 52px rgba(20, 68, 145, .13);
}

.contact-card__icon {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  background: linear-gradient(135deg, #2d70ff, #21cfe8);
  box-shadow: 0 12px 28px rgba(45,112,255,.22);
}

.contact-card__label {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: 20px;
  color: #2d70ff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .09em;
}

.contact-card h3 {
  position: relative;
  z-index: 2;
  margin: 10px 0 10px;
  color: #11213a;
  font-size: 22px;
  line-height: 1.25;
  word-break: break-word;
}

.contact-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: #667994;
  font-size: 16px;
  line-height: 1.65;
}

.contact-card > a,
.contact-card h3 a {
  position: relative;
  z-index: 2;
  color: #155dd8;
  font-weight: 850;
}

.contact-card > a {
  display: inline-flex;
  margin-top: 20px;
  font-size: 15px;
}

.phone-list {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin: 12px 0 14px;
}

.phone-list a {
  width: fit-content;
  color: #11213a;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.01em;
}

.phone-list a:hover {
  color: #155dd8;
}


.contacts-map {
  background:
    radial-gradient(circle at 90% 10%, rgba(35,217,255,.07), transparent 22%),
    #f5f8fd;
}

.contacts-map__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.map-shell {
  position: relative;
  overflow: hidden;
  min-height: 570px;
  border-radius: 28px;
  border: 1px solid #dbe6f3;
  background: #dce7f3;
  box-shadow: 0 24px 64px rgba(15, 52, 102, .13);
}

.map-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-info {
  position: absolute;
  z-index: 3;
  left: 22px;
  bottom: 22px;
  min-width: 300px;
  max-width: calc(100% - 44px);
  padding: 18px 20px;
  border-radius: 18px;
  color: #fff;
  background: rgba(5,24,52,.87);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 35px rgba(0,0,0,.20);
  backdrop-filter: blur(18px);
}

.map-info span,
.map-info strong,
.map-info small {
  display: block;
}

.map-info span {
  color: #77eaff;
  font-size: 14px;
  font-weight: 850;
}

.map-info strong {
  margin-top: 4px;
  font-size: 24px;
}

.map-info small {
  margin-top: 5px;
  color: #b7cbe2;
  font-size: 15px;
}

.contacts-cta {
  background: #fff;
}

.contacts-cta__box {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding: 42px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(38,217,255,.28), transparent 24%),
    radial-gradient(circle at 65% 100%, rgba(118,93,255,.31), transparent 28%),
    linear-gradient(135deg, #04162e, #0c458b 54%, #0a7085);
  box-shadow: 0 24px 65px rgba(8, 50, 112, .20);
}

.contacts-cta__box::after {
  content: "АТК";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.045);
  font-size: 190px;
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: 1;
}

.contacts-cta__box > * {
  position: relative;
  z-index: 2;
}

.contacts-cta h2 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1;
  letter-spacing: -.045em;
}

.contacts-cta p {
  margin: 0;
  max-width: 650px;
  color: #cfdeef;
  font-size: 17px;
}

.contacts-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .7s cubic-bezier(.18,.8,.25,1), transform .7s cubic-bezier(.18,.8,.25,1);
}

@media (max-width: 1100px) {
  .contacts-hero__inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contacts-hero__photo {
    min-height: 390px;
    transform: none;
  }

  .contacts-hero__photo img {
    min-height: 390px;
  }

  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-map__head,
  .contacts-cta__box {
    align-items: flex-start;
    flex-direction: column;
  }

  .contacts-cta__buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .contacts-hero {
    min-height: auto;
  }

  .contacts-hero__inner {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .contacts-hero__copy h1 {
    font-size: clamp(46px, 14vw, 66px);
  }

  .contacts-hero__copy p {
    font-size: 17px;
  }

  .contacts-hero__photo,
  .contacts-hero__photo img {
    min-height: 300px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: auto;
  }

  .map-shell {
    min-height: 470px;
  }

  .map-info {
    left: 14px;
    right: 14px;
    bottom: 14px;
    min-width: 0;
    max-width: none;
  }

  .contacts-cta__box {
    padding: 30px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
