/* ============================================
   APULEIUS — Main Stylesheet
   Imports all modules in correct order
   ============================================ */

@import url('./variables.css');
@import url('./base.css');
@import url('./buttons.css');
@import url('./forms.css');
@import url('./components.css');
@import url('./page.css');



/* ============================================
   APULEIUS — Contact Page
   contact-page.css
   ============================================ */

.cpg {
  background: var(--c-bg);
  overflow: hidden;
  background-image: url('../img/contact-bg.png');
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  padding-bottom: var(--section-py);
}

/* Hero: background image + grid lines */
.cpg__hero {
  position: relative;
  padding-top: 92px;
}

.cpg__lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 54px;
  pointer-events: none;
}

.cpg__line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, rgba(234,234,234,0.4) 70%, rgba(245,245,245,0) 100%);
}

.cpg__hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 31px;
  padding-bottom: 60px;
  padding-left: var(--container-px);
  padding-right: var(--container-px);
  position: relative;
  z-index: 2;
}

/* Headline */
.cpg__headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  max-width: 788px;
}

.cpg__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-h1);
  color: #222;
  margin: 0;
}

.cpg__subtitle {
  max-width: 518px;
  font-family: var(--ff-body);
  font-size: var(--fs-body2);
  font-weight: 400;
  line-height: var(--lh-body2);
  color: var(--c-text);
  margin: 0;
}

/* Body: white card + form, overlaps hero slightly */
.cpg__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: var(--card-p);
  border-radius: 24px;
  background: var(--c-white);
  margin-top: -20px;
  position: relative;
  z-index: 3;
}

/* White card: contact info + payment side by side */
.cpg__card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  overflow: hidden;
}

/* Left: big phone/email */
.cpg__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 605px;
}

.cpg__phone,
.cpg__email {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 110%;
  color: var(--c-heading);
  text-decoration: none;
  transition: color var(--transition);
  display: block;
}

.cpg__phone:hover,
.cpg__email:hover {
  color: var(--c-primary);
}

.cpg__region {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cpg__region-label {
  font-family: var(--ff-body);
  font-size: 24px;
  font-weight: 600;
  line-height: 140%;
  color: var(--c-heading);
}

.cpg__region-value {
  font-family: var(--ff-body);
  font-size: 24px;
  font-weight: 600;
  line-height: 140%;
  color: var(--c-text);
}

/* Right: payment — reuses .contact__payment from page.css */
.cpg__card .contact__payment {
  flex: 1;
}

/* Form — gray block, seamless bottom of white card */
.cpg__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--c-bg);
}

.cpg__form-fields {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.cpg__form-fields .form-group {
  flex: 1;
}

.cpg__form-footer {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cpg__form-btn {
  flex-shrink: 0;
  min-width: 280px;
}

/* ============================================
   MOBILE ADAPTIVE  <=992px
   ============================================ */
@media (max-width: 992px) {

  .cpg__hero {
    padding-top: 62px;
    background-size: cover;
  }

  .cpg__lines .cpg__line:nth-child(n+7) {
    display: none;
  }

  .cpg__hero-inner {
    padding-top: 20px;
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    align-items: flex-start;
  }

  .cpg__hero-inner .breadcrumb {
    align-self: flex-start;
  }

  .cpg__headline {
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
  }

  .cpg__title {
    font-size: var(--fs-h2);
  }

  .cpg__subtitle {
    max-width: 100%;
    font-size: var(--fs-body3);
  }

  .cpg__body {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 60px;
    margin-top: -10px;
  }

  .cpg__card {
    flex-direction: column;
    padding: 24px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    gap: 24px;
  }

  .cpg__contacts {
    width: 100%;
  }

  .cpg__phone,
  .cpg__email {
    font-size: var(--fs-h3);
  }

  .cpg__region-label,
  .cpg__region-value {
    font-size: 18px;
  }

  .cpg__form {
    padding: 20px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .cpg__form-fields {
    flex-direction: column;
    gap: 16px;
  }

  .cpg__form-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cpg__form-btn {
    width: 100%;
    min-width: auto;
  }
}


/* ============================================
   APULEIUS — Text Page (Terms, Privacy, etc.)
   text-page.css
   ============================================ */

.tpg {
  background: var(--c-white);
}

/* ----- Hero ----- */
.tpg__hero {
  position: relative;
  padding-top: 92px; /* заходит под фиксированный header */
  overflow: hidden;
}

.tpg__lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 54px;
  pointer-events: none;
}

.tpg__line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, #EAEAEA 70%, rgba(234,234,234,0) 100%);
}

.tpg__hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 31px;
  padding-bottom: 80px;
}

.tpg__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: var(--lh-h1);
  color: #1F1F1F;
  text-align: center;
  margin: 0;
}

/* ----- Content ----- */
.tpg__content {
   position: relative;
   padding-bottom: var(--section-py);
}

.tpg__content-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1058px;
  margin: 0 auto;
}

.tpg__block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tpg__h2 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-h2);
  color: #1F1F1F;
  margin: 0;
}

.tpg__h3 {
  font-family: var(--ff-heading);
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: var(--lh-h3);
  color: #1F1F1F;
  margin: 0;
}

.tpg__text {
  font-family: var(--ff-body);
  font-size: var(--fs-body1);
  font-weight: 400;
  line-height: var(--lh-body1);
  color: #6E6E6E;
  margin: 0;
}

/* ============================================
   MOBILE  <=992px
   ============================================ */
@media (max-width: 992px) {

  .tpg__hero {
    padding-top: 62px;
  }

  .tpg__lines .tpg__line:nth-child(n+7) {
    display: none;
  }

  .tpg__hero-inner {
    padding-top: 20px;
    padding-bottom: 48px;
    align-items: flex-start;
  }

  .tpg__title {
    text-align: left;
  }

  .tpg__content {
    padding-bottom: 60px;
  }
}



/* ============================================
   APULEIUS — 404 Page
   404.css
   ============================================ */

.e404 {
  position: relative;
  background: var(--c-white);
  padding-top: 92px;
  overflow: hidden;
}

.e404__lines {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 54px;
  pointer-events: none;
}

.e404__line {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, #EAEAEA 70%, rgba(234,234,234,0) 100%);
}

.e404__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 51px;
  padding-top: 31px;
  padding-bottom: var(--section-py);
}

.e404__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1178px;
  width: 100%;
}

.e404__number {
  font-family: var(--ff-heading);
  font-size: 180px;
  font-weight: 400;
  line-height: 90%;
  color: var(--c-primary);
  text-align: center;
}

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

.e404__title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-h2);
  color: #0F0F0F;
  text-align: center;
  margin: 0;
}

.e404__text {
  max-width: 923px;
  font-family: var(--ff-body);
  font-size: var(--fs-body2);
  font-weight: 400;
  line-height: var(--lh-body2);
  color: var(--c-text);
  text-align: center;
  margin: 0;
}

/* ============================================
   MOBILE  <=992px
   ============================================ */
@media (max-width: 992px) {

  .e404 {
    padding-top: 62px;
  }

  .e404__lines .e404__line:nth-child(n+7) {
    display: none;
  }

  .e404__inner {
    padding-top: 20px;
    padding-bottom: 60px;
    gap: 32px;
  }

  .e404__inner .breadcrumb {
    align-self: flex-start;
  }

  .e404__number {
    font-size: 100px;
  }

  .e404__title {
    font-size: var(--fs-h2);
  }

  .e404__text {
    font-size: var(--fs-body3);
  }

  .e404__content .btn-primary {
    width: 100%;
  }
}