/* ==================== */
/* СТРАНИЦА КОНТАКТОВ */
/* ==================== */
html {
  scroll-snap-type: none !important;
}

.contacts-page {
  padding-top: 0;
  min-height: 100vh;
  background: var(--black);
}

/* Градиентный блок — как в правилах */
.contacts-hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(
    135deg,
    rgba(254, 175, 46, 0.05) 0%,
    transparent 50%,
    rgba(254, 175, 46, 0.03) 100%
  );
  border-bottom: 1px solid rgba(254, 175, 46, 0.1);
  margin-bottom: 0;
  margin-top: -100px;
  padding-top: calc(4rem + 100px);
}

/* Обертка как в rules */
.contacts-hero .hero-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
  background: none;
  border: none;
  animation: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}

/* Логотип как в rules */
.contacts-logo {
  width: 230px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(254, 175, 46, 0.4));
}

.contacts-hero h1 {
  font-size: 3.9rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.contacts-hero .subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin-top: 1rem;
}

/* ============================================================== */
/* ДЕСКТОП (БОЛЬШЕ 1718px) — ВАША ИДЕАЛЬНАЯ ОТКРЫТКА */
/* ============================================================== */
@media (min-width: 1719px) {
  .contacts-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    background: #000;
    aspect-ratio: 1700 / 1046;
    min-height: 400px;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  /* Затемнение — темно-серый фильтр */
  .contacts-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 19, 19, 0.58);
    z-index: 1;
    pointer-events: none;
  }

  /* Фон — растянутая марка */
  .contacts-marka-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    z-index: 0;
    pointer-events: none;
    display: block;
  }

  /* Двухколоночный макет */
  .contacts-layout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: grid;
    grid-template-columns: 38% 62%;
    gap: 0;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 4rem;
    background: transparent !important;
  }

  .contacts-sidebar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 2.3rem;
    background: transparent !important;
    border: none;
    padding: 0;
    margin-top: 28.5rem;
    margin-left: 16rem;
    text-align: left;
  }

  .contacts-team {
    display: flex;
    flex-direction: column;
    background: transparent !important;
    border: none;
    padding: 0;
    margin-top: 28.5rem;
    margin-left: 23.5rem;
    gap: 4.9rem;
  }
}

/* ============================================================== */
/* УНИВЕРСАЛЬНЫЕ СТИЛИ (текст, иконки, карточки) */
/* ============================================================== */
.contacts-sidebar-title {
  color: #3e3e3e;
  font-size: 1rem;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  font-family: "Playfair Display", Georgia, serif;
}

.contact-social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0;
  border: none !important;
  background: none !important;
  color: #505050;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
  font-family: "Playfair Display", Georgia, serif;
}

/* Иконки Telegram */
.tg-icon {
  width: 22.2px;
  height: 22.2px;
  object-fit: contain;
}
.tg-icon-active {
  display: none;
  width: 22.2px;
  height: 22.2px;
  object-fit: contain;
}

/* Иконки ВКонтакте */
.vk-icon {
  width: 25.5px;
  height: 25.5px;
  object-fit: contain;
}
.vk-icon-active {
  display: none;
  width: 25.5px;
  height: 25.5px;
  object-fit: contain;
}

/* Ховер — смена иконок */
.contact-social-link:hover .tg-icon,
.contact-social-link:hover .vk-icon {
  display: none;
}
.contact-social-link:hover .tg-icon-active,
.contact-social-link:hover .vk-icon-active {
  display: inline;
}
.contact-social-link:hover {
  color: #feaf2e;
}

/* Правая колонка (Карточки) */
.team-card {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.team-name {
  font-family: "Playfair Display", Georgia, serif;
  color: #3e3e3e;
  font-size: 1.1rem;
  font-weight: 800;
  white-space: nowrap;
}

.team-contact-btn {
  font-family: "Playfair Display", Georgia, serif;
  color: #505050;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
  border: none !important;
  background: none !important;
  padding: 0;
  text-align: right;
}

.team-contact-btn:hover {
  color: #feaf2e;
}

.footer {
  scroll-snap-align: none;
}

/* ============================================================== */
/* ПЛАНШЕТЫ, НОУТБУКИ, ТЕЛЕФОНЫ (МЕНЬШЕ 1718px) — ТЕМНО-СЕРЫЙ ФОН, ОДНА КОЛОНКА, ЦЕНТР */
/* ============================================================== */
@media (max-width: 1718px) {
  /* 1. ФОТО ПОЛНОСТЬЮ ИСЧЕЗАЕТ */
  .contacts-marka-bg {
    display: none !important;
  }
  .contacts-container::after {
    display: none !important;
  }

  /* 2. ТЕМНО-СЕРЫЙ ФОН И ЦЕНТРИРОВАНИЕ ПО ВСЕМУ ЭКРАНУ */
  .contacts-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    background: #222222; /* Темно-серый фон */
    min-height: 80vh;
    display: flex;
    justify-content: center; /* Центрируем контент по горизонтали */
    align-items: center; /* Центрируем контент по вертикали */
    z-index: 1;
  }

  /* 3. СТРУКТУРА В ОДНУ КОЛОНКУ */
  .contacts-layout {
    position: relative;
    width: 100%;
    max-width: 600px; /* Ограничиваем ширину, чтобы текст не растягивался до краев */
    margin: 0 auto;
    padding: 2rem 1.5rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    background: transparent !important;
    text-align: center; /* Текст внутри тоже по центру */
  }

  /* Соцсети — сверху */
  .contacts-sidebar {
    margin: 0 !important;
    padding: 0 !important;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
  }

  /* Люди — снизу */
  .contacts-team {
    margin: 0 !important;
    padding: 0 !important;
    gap: 2rem;
    width: 100%;
  }

  .team-card {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .team-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Меняем цвета на белые/светло-серые для темного фона */
  .team-name {
    color: #e0e0e0;
    font-size: 1.2rem;
    white-space: normal;
    text-align: center;
  }
  .team-contact-btn {
    color: #b0b0b0;
    font-size: 1.05rem;
    text-align: center;
  }
  .contacts-sidebar-title {
    color: #e0e0e0;
  }
  .contact-social-link {
    color: #b0b0b0;
    font-size: 1.1rem;
    justify-content: center;
  }
  .contact-social-link svg {
    fill: #b0b0b0;
  }
  .contact-social-link:hover {
    color: #feaf2e;
  }
  .contact-social-link:hover svg {
    fill: #feaf2e;
  }
}

/* ============================================================== */
/* МАЛЕНЬКИЕ ТЕЛЕФОНЫ (МЕНЬШЕ 480px) */
/* ============================================================== */
@media (max-width: 480px) {
  .contacts-hero h1 {
    font-size: 1.6rem;
  }
  .contacts-logo {
    width: 130px;
    height: 75px;
  }
  .contacts-hero .hero-icon {
    width: 50px;
    height: 50px;
  }
  .contacts-layout {
    gap: 2.5rem;
    padding: 1.5rem;
  }
  .contacts-sidebar {
    gap: 1rem;
  }
  .contact-social-link {
    font-size: 0.95rem;
  }
  .contacts-team {
    gap: 1.5rem;
  }
  .team-name {
    font-size: 1rem;
  }
  .team-contact-btn {
    font-size: 0.95rem;
  }
}
