/* public/assets/pages/contacts.css */
/* =========================================================
   CONTACTS — единый светлый воздушный UI (scoped)
   Без смены палитры и без изменения структуры страницы
   ========================================================= */

.contacts-page{
  --c-surface: rgba(255,255,255,.72);
  --c-surface-2: rgba(255,255,255,.58);
  --c-border: rgba(181,194,222,.26);
  --c-text: var(--text, #0f172a);
  --c-muted: rgba(15,23,42,.58);
  --c-brand: var(--theme-color, #2f4a80);

  --c-radius: 18px;
  --c-shadow:
    0 10px 24px rgba(71,85,105,.05),
    inset 0 1px 0 rgba(255,255,255,.58);

  color: var(--c-text);
}

.contacts-page,
.contacts-page *{
  box-sizing: border-box;
}

.contacts-page a{
  color: var(--c-brand);
  text-decoration: none;
}

.contacts-page a:hover{
  text-decoration: underline;
}

/* layout shell */
.contacts-shell{
  max-width: var(--shell-wide, min(1380px, calc(100vw - 28px)));
  margin: 14px auto 36px;
  padding: 0 14px;
}

/* top */
.contacts-top{
  margin: 10px 0 16px;
}

.contacts-kicker{
  display:inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.contacts-title{
  margin: 8px 0 6px;
  font-size: 26px;
  line-height: 1.08;
  font-weight: 1000;
  letter-spacing: -0.02em;
  color: #163b67;
}

.contacts-sub{
  font-size: 14px;
  line-height: 1.5;
  color: rgba(15,23,42,.76);
}

/* grid */
.contacts-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 860px){
  .contacts-grid{
    grid-template-columns: 1fr;
  }

  .contacts-title{
    font-size: 22px;
  }
}

/* card */
.contacts-card{
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  box-shadow: var(--c-shadow);
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contacts-card__head{
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(181,194,222,.20);
  background: rgba(255,255,255,.36);
}

.contacts-h2{
  margin: 0;
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: -0.01em;
  color: rgba(15,23,42,.95);
}

.contacts-card__body{
  padding: 14px;
}

/* list of contacts */
.contacts-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-direction: column;
  gap: 10px;
}

.contacts-item{
  display:flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 10px;
  border: 1px solid rgba(181,194,222,.20);
  border-radius: 14px;
  background: var(--c-surface-2);
  box-shadow:
    0 6px 16px rgba(71,85,105,.035),
    inset 0 1px 0 rgba(255,255,255,.54);
}

.contacts-item__icon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(47,74,128,.10);
  border: 1px solid rgba(47,74,128,.16);
  color: rgba(47,74,128,.98);
  font-weight: 900;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.44);
}

.contacts-item__content{
  min-width: 0;
}

.contacts-item__label{
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 2px;
}

.contacts-item__value{
  font-size: 14px;
  font-weight: 800;
  color: rgba(15,23,42,.90);
  overflow-wrap: anywhere;
  line-height: 1.42;
}

/* extra note */
.contacts-note{
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(181,194,222,.18);
  background: rgba(255,255,255,.46);
  color: rgba(15,23,42,.82);
  line-height: 1.55;
  font-weight: 700;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* alerts (scoped) */
.contacts-page .alert{
  border-radius: 14px;
  padding: 10px 12px;
  margin: 0 0 12px;
  border: 1px solid rgba(181,194,222,.22);
  background: rgba(255,255,255,.52);
  color: rgba(15,23,42,.92);
  line-height: 1.4;
  font-weight: 800;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.contacts-page .alert-success{
  background: rgba(236,253,245,.76);
  border-color: rgba(22,163,74,.18);
  color: #14532d;
}

.contacts-page .alert-danger{
  background: rgba(254,242,242,.76);
  border-color: rgba(220,38,38,.18);
  color: #7f1d1d;
}

.contacts-page .alert-warning{
  background: rgba(255,251,235,.78);
  border-color: rgba(245,158,11,.20);
  color: #7c4a00;
}

.contacts-errlist{
  margin: 0;
  padding-left: 18px;
}

/* form */
.contacts-form{
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.c-field{
  display:flex;
  flex-direction: column;
  gap: 6px;
}

.c-label{
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.c-input,
.c-textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(181,194,222,.30);
  background: rgba(255,255,255,.84);
  color: rgba(15,23,42,.92);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.58);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.c-input:focus,
.c-textarea:focus{
  border-color: rgba(47,74,128,.28);
  box-shadow: 0 0 0 4px rgba(47,74,128,.08);
  background: rgba(255,255,255,.92);
}

.c-textarea{
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.c-error{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #b91c1c;
}

/* buttons (scoped bootstrap-like) */
.contacts-page .btn{
  appearance: none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 950;
  text-decoration:none;
  cursor:pointer;
  border: 1px solid transparent;
  transition:
    transform .08s ease,
    box-shadow .14s ease,
    filter .14s ease,
    background .14s ease,
    border-color .14s ease;
  user-select:none;
  line-height: 1.1;
  white-space: nowrap;
}

.contacts-page .btn:active{
  transform: translateY(1px);
}

.contacts-page .btn:focus{
  outline: none;
}

.contacts-page .btn:focus-visible{
  box-shadow: 0 0 0 4px rgba(47,74,128,.10);
}

.contacts-page .btn-primary{
  background: linear-gradient(180deg, var(--c-brand), #234c8e);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47,74,128,.14);
}

.contacts-page .btn-primary:hover{
  filter: brightness(1.02);
}

.contacts-actions{
  display:flex;
  align-items:flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.contacts-hint{
  font-size: 13px;
  line-height: 1.4;
  max-width: 420px;
  color: rgba(15,23,42,.66);
}

/* muted helper */
.contacts-page .text-muted{
  color: var(--c-muted);
}

/* honeypot */
.hp-wrap{
  position:absolute !important;
  left:-10000px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

@media (max-width: 560px){
  .contacts-shell{
    margin: 12px auto 26px;
    padding: 0 12px;
  }

  .contacts-card__head{
    padding: 12px 12px 10px;
  }

  .contacts-card__body{
    padding: 12px;
  }

  .contacts-item{
    padding: 10px;
  }

  .contacts-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .contacts-page .btn{
    width: 100%;
  }

  .contacts-hint{
    max-width: none;
  }
}
