/* Филиал в Астане */

.page-astana {
  background: #f3f5f8;
}

.astana-hero {
  position: relative;
  min-height: min(78vh, 640px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: #111;
}

.astana-hero__bg {
  position: absolute;
  inset: 0;
}

.astana-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.astana-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 28, 0.15) 0%, rgba(10, 16, 28, 0.78) 68%, rgba(10, 16, 28, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 16, 28, 0.55) 0%, transparent 55%);
}

.astana-hero__inner {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3rem;
  max-width: 720px;
}

.astana-hero__brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-logo, Georgia, serif);
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.astana-hero__brand span {
  color: #e11d2e;
}

.astana-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.astana-hero__lead {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
}

.astana-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.astana-section {
  padding: 3.25rem 0;
}

.astana-section--muted {
  background: #fff;
  border-top: 1px solid #e5e9ef;
  border-bottom: 1px solid #e5e9ef;
}

.astana-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.astana-section__title {
  margin: 0 0 0.6rem;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 800;
  color: #151515;
}

.astana-section__text {
  margin: 0 0 1.75rem;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #5b6472;
}

.astana-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #dbe2ea;
  border: 1px solid #dbe2ea;
  overflow: hidden;
}

.astana-services li {
  background: #fff;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.astana-services strong {
  font-size: 1rem;
  font-weight: 800;
  color: #0056b3;
}

.astana-services span {
  font-size: 0.9rem;
  line-height: 1.45;
  color: #5b6472;
}

.astana-contacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.astana-contact__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a93a1;
}

.astana-contact__value {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  color: #151515;
}

.astana-contact__phones {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.astana-contact__value a {
  color: #0056b3;
  text-decoration: none;
}

.astana-contact__value a:hover {
  text-decoration: underline;
}

.astana-contact__note {
  font-size: 0.85rem;
  color: #7a8494;
}

.astana-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.astana-gallery__item {
  margin: 0;
  overflow: hidden;
  background: #111;
  min-height: 240px;
}

.astana-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.astana-gallery__item:hover img {
  transform: scale(1.04);
}

.astana-gallery__item--wide {
  grid-column: span 2;
  min-height: 280px;
}

.astana-map {
  position: relative;
  overflow: hidden;
  background: #dbe2ea;
  margin-bottom: 1.15rem;
  aspect-ratio: 16 / 8;
}

.astana-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.astana-map-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.astana-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.astana-map-link--google {
  background: #fff;
  color: #1a73e8;
  border-color: #c9d7ef;
}

.astana-map-link--google:hover {
  background: #eef4ff;
}

.astana-map-link--yandex {
  background: #fff;
  color: #fc3f1d;
  border-color: #f7c8be;
}

.astana-map-link--yandex:hover {
  background: #fff1ee;
}

.astana-map-link--2gis {
  background: #fff;
  color: #1a9f4a;
  border-color: #bfe8cd;
}

.astana-map-link--2gis:hover {
  background: #eefaf2;
}

.astana-cta {
  background: #111;
  color: #fff;
  padding: 2.75rem 0;
}

.astana-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.astana-cta__title {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.astana-cta__text {
  margin: 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.astana-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 992px) {
  .astana-services,
  .astana-contacts {
    grid-template-columns: 1fr 1fr;
  }

  .astana-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .astana-gallery__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .astana-hero {
    min-height: 68vh;
  }

  .astana-hero__inner {
    padding: 3.25rem 0 2rem;
  }

  .astana-services,
  .astana-contacts,
  .astana-gallery {
    grid-template-columns: 1fr;
  }

  .astana-gallery__item,
  .astana-gallery__item--wide {
    grid-column: auto;
    min-height: 220px;
  }

  .astana-map {
    aspect-ratio: 4 / 5;
  }
}
