/* =============================================
   Contacts — Hero
   ============================================= */

.contacts-hero {
  position: relative;
  padding: 0 0 60px;
  overflow: hidden;
  z-index: 2;
}

.contacts-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contacts {
  position: relative;
}

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

.contacts-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 248, 250, 0) 0%, var(--background) 100%);
}

.contacts-hero .container {
  position: relative;
  z-index: 1;
}

.contacts-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 60px;
  max-width: 720px;
}

.contacts-hero__title {
  color: var(--primary-dark);
}

.contacts-hero__description {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .contacts-hero {
    padding: 0 0 40px;
  }

  .contacts-hero__content {
    margin-top: 24px;
    gap: 12px;
  }
}

/* =============================================
   Contacts — Cards grid
   ============================================= */

.contacts-cards {
  padding-bottom: 20px;
  position: relative;
  z-index: 2;
}

.contacts-cards__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 41px 20px;
  background: #EEF2F699;
  border: 1px solid #F7F8FA;
  box-shadow: 0px 2px 2px 0px #0000001A;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  width: 100%;
  max-width: 488px;
}

.contact-card:nth-child(even) {
  justify-self: flex-end;
}

a.contact-card:hover {
  box-shadow: 0px 4px 16px rgba(46, 91, 255, 0.12);
  transform: translateY(-2px);
}

.contact-card--small {
  align-items: center;
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card__value {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-card__company {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card__company .text-m {
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .contacts-cards {
    padding-bottom: 40px;
  }

  .contacts-cards__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .contact-card {
    padding: 20px 22px;
    gap: 14px;
    justify-self: flex-start !important;
    max-width: 100%;
    width: 100%;
  }

  .contact-card__icon {
    width: 44px;
    height: 44px;
  }

  .contact-card__icon svg {
    width: 24px;
    height: 24px;
  }
}

/* =============================================
   Contacts — Form + Map
   ============================================= */

.contacts-form {
  position: relative;
  overflow: hidden;
}

.contacts-form__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contacts-form__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 60%;
}
.contacts-form .container {
  position: relative;
  z-index: 1;
}

.contacts-form__title {
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
}

.contacts-form__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contacts-form__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: transparent;
  padding: 20px;
  background: #EEF2F633;
}

.contacts-form__form .checkbox > .text-s {
  flex: 1;
  min-width: 0;
}

.contacts-form__form > .btn {
  width: 100%;
  margin-top: 4px;
}

.contacts-form__map,
.contacts-form__map iframe {
  width: 100%;
  height: 363px;
  border: 0;
  display: block;
  align-self: center;
}

.contacts-form__map-placeholder {
  width: 100%;
  height: 363px;
  background: var(--muted);
  border: 1px dashed var(--border);
}

@media (max-width: 1080px) {
  .contacts-form {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .contacts-form__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contacts-form__form {
    padding: 10px;
  }

  .contacts-form__title {
    display: none;
  }


  .contacts-form__map,
  .contacts-form__map iframe,
  .contacts-form__map-placeholder {
    min-height: 247px;
  }
}

/* =============================================
   Text page (Privacy / Cookies / etc.)
   ============================================= */

.text-page {
  max-width: 880px;
  padding: 20px 0 80px;
  color: var(--text-main);
}

.text-page__title {
  color: var(--text-main);
  margin-bottom: 32px;
}

.text-page__body {
  font-size: 15px;
  line-height: 26px;
  color: var(--text-main);
}

.text-page__body h2,
.text-page__body h3,
.text-page__body h4 {
  color: var(--text-main);
  margin: 32px 0 12px;
  font-weight: 600;
}

.text-page__body h2 { font-size: 24px; line-height: 32px; }
.text-page__body h3 { font-size: 20px; line-height: 28px; }
.text-page__body h4 { font-size: 17px; line-height: 26px; }

.text-page__body p {
  margin-bottom: 14px;
}

.text-page__body ul,
.text-page__body ol {
  margin: 0 0 14px 22px;
  padding: 0;
}

.text-page__body ul li {
  list-style: disc;
  margin-bottom: 6px;
}

.text-page__body ol li {
  list-style: decimal;
  margin-bottom: 6px;
}

.text-page__body a {
  color: var(--primary);
  text-decoration: underline;
}

.text-page__body a:hover {
  text-decoration: none;
}

.text-page__body strong {
  font-weight: 600;
}

@media (max-width: 768px) {
  .text-page {
    padding: 12px 0 60px;
  }

  .text-page__title {
    margin-bottom: 24px;
  }
}

/* =============================================
   Thanks page
   ============================================= */

.thanks {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
}

.thanks__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.thanks__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.2;
}

.thanks__inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.thanks__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(181.29deg, #4C78FF 1.1%, #2E5BFF 98.9%);
  box-shadow: 0px 12px 28px rgba(46, 91, 255, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.thanks__title {
  color: var(--text-main);
}

.thanks__description {
  color: var(--text-secondary);
}

.thanks__btn {
  width: auto;
  max-width: 280px;
  padding: 16px 40px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .thanks {
    padding: 60px 0 80px;
  }

  .thanks__icon {
    width: 72px;
    height: 72px;
  }

  .thanks__icon svg {
    width: 36px;
    height: 36px;
  }

  .thanks__btn {
    width: 100%;
    max-width: 100%;
  }
}

/* =============================================
   404 page
   ============================================= */

.error-404 {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-404__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.error-404__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.error-404__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(247, 248, 250, 0.7);
}

.error-404 .container {
  position: relative;
  z-index: 1;
}

.error-404__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 80px 0;
  max-width: 760px;
  margin: 0 auto;
}

.error-404__title {
  color: var(--text-main);
}

.error-404__text {
  color: var(--text-main);
  font-weight: 500;
}

.error-404__btn {
  width: auto;
  max-width: 360px;
  padding: 18px 48px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .error-404 {
    min-height: 480px;
  }

  .error-404__inner {
    padding: 48px 0;
    gap: 16px;
  }

  .error-404__btn {
    width: 100%;
    max-width: 100%;
  }
}
