/* Pochta5 contact page */
:root {
  --accent: #6847df;
  --accent-2: #8a70ff;
  --accent-rgb: 104, 71, 223;
  --bg: #f6f8fc;
  --panel: #fff;
  --panel-tint: #f8f9fd;
  --text: #211a35;
  --muted: #6b728b;
  --line: rgba(104, 71, 223, 0.12);
  --green: #168a70;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
  --font: Manrope, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }

.contact-page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.contact-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.contact-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contact-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.contact-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.14);
}

.contact-brand__title {
  font-size: 17px;
  font-weight: 850;
  line-height: 1.15;
}

.contact-brand__note {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.contact-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-back,
.contact-login {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.contact-back {
  color: rgba(var(--accent-rgb), 0.92);
}

.contact-login {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.06);
  border-color: rgba(var(--accent-rgb), 0.18);
}

.contact-back:hover,
.contact-login:hover {
  background: rgba(var(--accent-rgb), 0.05);
}

.contact-back svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-main {
  flex: 1;
  padding: 28px 18px 44px;
  background:
    radial-gradient(circle at 12% 8%, rgba(96, 165, 250, 0.08), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

.contact-wrap {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.contact-col {
  display: grid;
  gap: 14px;
}

.contact-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 22px;
}

.contact-panel h1 {
  margin: 0;
  font-size: clamp(22px, 4vw, 26px);
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.contact-lead {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
}

.contact-mails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.contact-mail {
  display: block;
  padding: 14px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-tint);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.contact-mail:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.06);
}

.contact-mail__label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
  color: var(--muted);
}

.contact-mail__addr {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent);
  word-break: break-word;
}

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

.contact-link {
  display: block;
  padding: 14px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s;
}

.contact-link:hover {
  border-color: rgba(var(--accent-rgb), 0.28);
}

.contact-link b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
}

.contact-link span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.contact-aside {
  position: sticky;
  top: 76px;
}

.contact-panel--aside h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.25;
}

.contact-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.contact-list li {
  position: relative;
  padding-left: 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.contact-phone-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.contact-phone-block__label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  color: var(--muted);
}

.contact-phone {
  display: inline-block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 850;
  color: var(--accent);
}

@media (max-width: 800px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .contact-aside {
    position: static;
  }

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

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

@media (max-width: 640px) {
  .contact-header__inner {
    padding: 10px 14px calc(10px + env(safe-area-inset-top, 0px));
  }

  .contact-brand img {
    width: 36px;
    height: 36px;
  }

  .contact-brand__title { font-size: 16px; }

  .contact-login__text { display: none; }

  .contact-login {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .contact-back {
    width: 40px;
    min-width: 40px;
    padding: 0;
  }

  .contact-back__text { display: none; }

  .contact-main {
    padding: 16px 14px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .contact-panel {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .contact-panel h1 { font-size: 22px; }

  .contact-lead { max-width: none; }

  .contact-mails { margin-top: 16px; }

  .contact-phone { font-size: 17px; }
}

/* Unified footer */
.footer-band-wrap.trackbox-footer {
  margin-top: 0;
  background: #fff;
  color: #5f6675;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
}

.trackbox-footer .container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.trackbox-footer .footer-band {
  background: #f7f8fc;
  border-top: 1px solid rgba(109, 77, 210, 0.13);
  padding: 30px 0 34px;
}

.trackbox-footer .footer_navi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(109, 77, 210, 0.12);
}

.trackbox-footer .footer_navi_col {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.trackbox-footer a {
  color: #2b2940;
  text-decoration: none;
}

.trackbox-footer .footer_navi a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 560;
  color: #3b3a49;
}

.trackbox-footer a:hover { color: #6d42e6; }

.trackbox-footer .footer_unsubscribe {
  padding: 0;
  color: #2b2940;
  white-space: nowrap;
}

.trackbox-footer .footer_col {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.trackbox-footer .footer_kicker {
  margin: 0 0 8px;
  color: #6d42e6;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.trackbox-footer .footer_title {
  margin: 0 0 10px;
  color: #262434;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 680;
}

.trackbox-footer .footer_text {
  margin: 0;
  color: #747989;
  font-weight: 400;
  max-width: 430px;
}

.trackbox-footer .footer_text--muted {
  margin-top: 10px;
  font-size: 14px;
}

.trackbox-footer .footer_contact_links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.trackbox-footer .footer_email,
.trackbox-footer .footer_block_right a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  font-weight: 560;
  color: #343241;
}

.trackbox-footer .footer_phone { color: #5f45cf; }

.trackbox-footer .footer_block_right {
  display: grid;
  gap: 9px;
  justify-items: start;
}

.trackbox-footer .footer_requisites {
  margin: 10px 0 0;
  color: #747989;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

.trackbox-footer .mb20 { height: 6px; }

@media (max-width: 900px) {
  .trackbox-footer .footer_col {
    grid-template-columns: 1fr 1fr;
  }

  .trackbox-footer .footer_about_block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .trackbox-footer .container {
    width: min(100% - 24px, 1180px);
  }

  .trackbox-footer .footer-band {
    padding: 24px 0 28px;
  }

  .trackbox-footer .footer_navi {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(109, 66, 230, 0.22) transparent;
    padding: 0 14px 18px;
    margin-left: -14px;
    margin-right: -14px;
    margin-bottom: 22px;
    box-sizing: border-box;
  }

  .trackbox-footer .footer_navi_col {
    display: contents !important;
  }

  .trackbox-footer .footer_navi_col a,
  .trackbox-footer .footer_navi > .footer_unsubscribe {
    flex: 0 0 calc(100% / 3);
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0 4px;
    font-size: clamp(15px, 4.1vw, 22px);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 560;
  }

  .trackbox-footer .footer_unsubscribe {
    margin-top: 0 !important;
    width: auto !important;
    justify-content: center !important;
  }

  .trackbox-footer .footer_col {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trackbox-footer .footer_title { font-size: 18px; }

  .trackbox-footer .footer_text { max-width: none; }
}
