/*
 * Страница «Контакты»: общий каркас (как about/pricing) + локальная сетка и форма.
 * Раньше не хватало nav/mobile-menu/footer — шапка дублировалась и ломалась вёрстка.
 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg: #08090e;
  --bg2: #0e0f16;
  --bg3: #13141d;
  --bg4: #1a1b26;
  --brd: rgba(255, 255, 255, 0.07);
  --brd2: rgba(255, 255, 255, 0.13);
  --a: #4f6ef7;
  --a2: #7b96ff;
  --ag: rgba(79, 110, 247, 0.13);
  --text: #f0f0f8;
  --sub: #7b7d96;
  --sub2: #a0a2b8;
  --green: #22c55e;
  --r: 12px;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.blob {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(130px);
  opacity: 0.18;
}
.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(79, 110, 247, 0.28), transparent 70%);
  top: -10%;
  right: -10%;
  animation: b1 14s ease-in-out infinite alternate;
}
@keyframes b1 {
  to {
    transform: translate(-60px, 70px);
  }
}

/* NAV */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  background: rgba(8, 9, 14, 0.82);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--brd);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo svg {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}
.logo-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}
nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--sub);
  text-decoration: none;
  transition: color 0.15s;
}
nav a:hover,
nav a.active {
  color: var(--text);
}
.nav-pill {
  padding: 0.5rem 1.25rem;
  background: var(--a);
  color: #fff !important;
  border-radius: 99px;
  font-weight: 600 !important;
  font-size: 0.835rem !important;
  transition: all 0.2s !important;
  white-space: nowrap;
}
.nav-pill:hover {
  background: var(--a2) !important;
  transform: translateY(-1px);
}
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 9, 14, 0.97);
  backdrop-filter: blur(24px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sub2);
  text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif;
  letter-spacing: -0.03em;
  transition: color 0.15s;
}
.mobile-menu a:hover {
  color: var(--text);
}
.mobile-menu .nav-pill {
  font-size: 1rem !important;
  padding: 0.75rem 2rem;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--brd);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}
.foot-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.foot-logo svg {
  width: 26px;
  height: 26px;
  display: block;
}
.foot-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
footer p {
  font-size: 0.78rem;
  color: var(--sub);
}
.foot-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}
.foot-links a {
  font-size: 0.8rem;
  color: var(--sub);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.foot-links a:hover {
  color: var(--text);
}

.contacts-page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9rem 2.5rem 6rem;
  position: relative;
  z-index: 1;
}

.contacts-page-wrap .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--sub, #7b7d96);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.contacts-page-wrap .breadcrumb a {
  color: var(--sub, #7b7d96);
  text-decoration: none;
  transition: color 0.15s;
}
.contacts-page-wrap .breadcrumb a:hover {
  color: var(--text, #f0f0f8);
}
.contacts-page-wrap .breadcrumb-sep {
  color: var(--brd2, rgba(255, 255, 255, 0.13));
}

.contacts-page-wrap .s-eye {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a2, #7b96ff);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.contacts-page-wrap .s-eye::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--a2, #7b96ff);
}

.contacts-page-wrap .page-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.03;
  margin-bottom: 1rem;
}
.contacts-page-wrap .page-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--a, #4f6ef7), var(--a2, #7b96ff));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contacts-page-wrap .page-desc {
  font-size: 1rem;
  color: var(--sub2, #a0a2b8);
  line-height: 1.75;
  font-weight: 300;
  max-width: 560px;
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: start;
}

/* Форма */
.contact-form {
  background: var(--bg2, #0e0f16);
  border: 1px solid var(--brd, rgba(255, 255, 255, 0.07));
  border-radius: 20px;
  padding: 2.5rem;
}
.form-title {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 0.4rem;
}
.form-subtitle {
  font-size: 0.845rem;
  color: var(--sub2, #a0a2b8);
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.55;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.875rem;
}
.form-group:last-of-type {
  margin-bottom: 1.25rem;
}
.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sub2, #a0a2b8);
  letter-spacing: 0.02em;
}
.form-input {
  padding: 0.875rem 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--brd, rgba(255, 255, 255, 0.07));
  border-radius: 12px;
  color: var(--text, #f0f0f8);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border 0.2s, background 0.2s;
  width: 100%;
}
.form-input::placeholder {
  color: var(--sub, #7b7d96);
}
.form-input:focus {
  border-color: rgba(79, 110, 247, 0.5);
  background: rgba(255, 255, 255, 0.05);
}
textarea.form-input {
  resize: none;
  min-height: 110px;
}

.contact-form .btn-a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.9rem 2rem;
  background: var(--a, #4f6ef7);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 0 30px rgba(79, 110, 247, 0.3);
  width: 100%;
  font-family: inherit;
}
.contact-form .btn-a:hover {
  background: var(--a2, #7b96ff);
  transform: translateY(-1px);
  box-shadow: 0 0 50px rgba(79, 110, 247, 0.45);
}
.form-note {
  font-size: 0.72rem;
  color: var(--sub, #7b7d96);
  text-align: center;
  margin-top: 0.625rem;
  line-height: 1.5;
}

/* Карточки контактов */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-card {
  background: var(--bg2, #0e0f16);
  border: 1px solid var(--brd, rgba(255, 255, 255, 0.07));
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.contact-card:hover {
  border-color: var(--brd2, rgba(255, 255, 255, 0.13));
  transform: translateY(-2px);
}
.cc-top {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.625rem;
}
.cc-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cc-ico.tg {
  background: rgba(41, 182, 246, 0.1);
  border: 1px solid rgba(41, 182, 246, 0.2);
}
.cc-ico.email {
  background: rgba(79, 110, 247, 0.1);
  border: 1px solid rgba(79, 110, 247, 0.2);
}
.cc-ico.phone {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.cc-ico.wa {
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.2);
}
.cc-channel {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sub, #7b7d96);
}
.cc-value {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}
.cc-note {
  font-size: 0.78rem;
  color: var(--sub, #7b7d96);
  font-weight: 300;
}

.response-card {
  background: var(--bg2, #0e0f16);
  border: 1px solid var(--brd, rgba(255, 255, 255, 0.07));
  border-radius: 16px;
  padding: 1.5rem;
}
.rc-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sub, #7b7d96);
  margin-bottom: 1rem;
}
.rc-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--brd, rgba(255, 255, 255, 0.07));
}
.rc-label {
  font-size: 0.82rem;
  color: var(--sub2, #a0a2b8);
}
.rc-val {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 0.5rem;
}
.rc-val.fast {
  color: var(--green, #22c55e);
}
.rc-val.mid {
  color: var(--a2, #7b96ff);
}

.contact-block-plain {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--sub2, #a0a2b8);
}
.contact-block-plain p {
  margin-bottom: 0.75rem;
}
.contact-block-plain strong {
  color: var(--text, #f0f0f8);
  font-weight: 600;
}
.contact-block-plain a {
  color: var(--a2, #7b96ff);
}

.rv {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.rv.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  nav ul,
  .nav-pill {
    display: none;
  }
  .burger {
    display: flex;
  }
  nav {
    padding: 0 1.5rem;
  }
  .contacts-page-wrap {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
  }
  .foot-links {
    justify-content: center;
  }
}
