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

.text-page {
  padding: 120px 0 80px;
  color: var(--text-main);
}

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

.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: 80px 0 60px;
  }

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

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

.thanks {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  background: var(--graphite-dark);
}

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

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

.thanks::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--graphite-dark);
  opacity: 0.65;
  z-index: 1;
}

.thanks .container {
  position: relative;
  z-index: 2;
}

.thanks__inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.thanks__title {
  color: var(--white);
}

.thanks__description {
  color: var(--graphite-pale);
}

.thanks__data {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.thanks__check {
  color: var(--graphite-pale);
  margin: 0;
  opacity: 0.75;
}

.thanks__field {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--graphite-dark);
  text-align: left;
  min-height: 50px;
  box-sizing: border-box;
}

.thanks__placeholder {
  color: var(--text-muted);
}

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

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

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

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

.error-404 {
  background: var(--white);
  padding: 60px 0 80px;
}

.error-404__illustration {
  text-align: center;
  margin-bottom: 40px;
}

.error-404__image {
  max-width: 640px;
  width: 100%;
  display: inline-block;
}

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

.error-404__title {
  color: var(--graphite-dark);
  margin: 0;
}

.error-404__text {
  color: var(--graphite-medium);
  margin: 0;
}

.error-404__btn {
  width: auto;
  padding: 16px 40px;
  margin-top: 8px;
}

@media (max-width: 768px) {
  .error-404 {
    padding: 40px 0 60px;
  }

  .error-404__illustration {
    margin-bottom: 24px;
  }

  .error-404__image {
    max-width: 320px;
  }

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

/* =============================================
   Contacts page
   ============================================= */

.contacts-info {
    background: var(--white);
    padding: 56px 0;
}

.contacts-info__grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.contacts-info__item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    max-width: 318px;
}

.contacts-info__item svg{

    flex-shrink: 0;
}

.contacts-info__value {
    color: var(--graphite-dark);
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

.contacts-info__value a {
    color: var(--graphite-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.contacts-info__value a:hover {
    color: var(--primary);
}

.contacts-info__socials {
    display: flex;
    gap: 12px;
    align-items: center;
}

.contacts-info__social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: opacity 0.2s;
    text-decoration: none;
}

.contacts-info__social-link:hover {
    opacity: 0.85;
}


/* Map */

.contacts-map {
    background: var(--white);
    padding: 0 0 80px;
}

.contacts-map__inner {
  display: grid;
  grid-template-columns: 261px 1fr;
  gap: 20px;
  width: 100%;
}

.contacts-map__heading {
    color: var(--graphite-dark);
    margin: 0 0 24px;
}

.contacts-map__embed {
    border: 1px solid var(--soft-border);
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    width: 100%;
}

.contacts-map__embed iframe {
    width: 100%;
    height: 400px;
    border: none;
    display: block;
}

/* Form */

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

.contacts-form__inner {
    display: flex;
    justify-content: flex-end;
}

.contacts-form__image {
    background-size: cover;
    background-position: center;
    background-color: var(--graphite-pale);
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

.contacts-form__body {
    padding: 56px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 692px;
    position: relative;
    z-index: 2;
}

.contacts-form__heading {
    color: var(--graphite-dark);
    margin: 0 0 12px;
}

.contacts-form__desc {
    color: var(--graphite-medium);
    line-height: 1.6;
    margin: 0 0 32px;
}

.contacts-form__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.contacts-form__input,
.contacts-form__textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    background: var(--white);
    color: var(--graphite-dark);
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.contacts-form__input::placeholder,
.contacts-form__textarea::placeholder {
    color: var(--text-muted);
}

.contacts-form__input:focus,
.contacts-form__textarea:focus {
    border-color: var(--primary);
}

.contacts-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.contacts-form__privacy {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.contacts-form__privacy input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.contacts-form__privacy a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contacts-form__submit {
    width: 100%;
    margin-top: 4px;
}

/* Responsive */

@media (max-width: 1080px) {
    .contacts-info__grid {
      display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .contacts-map__inner {
      grid-template-columns: 1fr;
    }
}

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

    .contacts-map {
        padding: 0 0 56px;
    }

    

    .contacts-map__embed iframe {
        height: 300px;
    }

    .contacts-form__inner {
        grid-template-columns: 1fr;
    }

    .contacts-form__image {
        display: none;
    }

    .contacts-form__body {
        padding: 40px 32px;
    }
}

@media (max-width: 480px) {
    .contacts-info__grid {
        grid-template-columns: 1fr;
    }

    .contacts-form__row {
        grid-template-columns: 1fr;
    }

    .contacts-form__body {
        padding: 32px 20px;
    }
}
