/* ===============================
   CONTACTS PAGE — ISOLATED STYLES
================================ */

/* COLOR PALETTE (from your scheme)
   -----------------------------
   background / blocks 1: #2a3c47
   headings:             #f0d3a5
   dark background:      #211e1e
   dark background 2:    #25292c
   action button:        #e60023
*/

:root {
  --bg-main: #211e1e;
  --bg-alt: #25292c;
  --bg-block: #2a3c47;
  --text-main: #f4f4f4;
  --text-muted: #b2b2b2;
  --heading: #f0d3a5;
  --accent: #e60023;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  line-height: 1.6;

  /* НОВЫЙ ФОН — геометрический паттерн */
  background: url("img/background.webp") repeat-y center top;
 background-repeat: repeat;
  background-size: 720px; /* ← регулируешь размер паттерна */
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
 background: rgba(0,0,0,0);
  pointer-events: none;
  z-index: -10; /* ← ОПУСКАЕМ НИЖЕ ВСЕГО */
}


.contacts-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

.contacts-wrapper {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

/* Заголовок */
.contacts-title {
  font-size: clamp(32px, 4vw, 46px);
  letter-spacing: 0.2em;
  margin-bottom: 18px;
}

/* Текст */
.contacts-text {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 1;
  max-width: 680px;
  margin: 0 auto 48px;
}

/* Иконки */
.contacts-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.contacts-icons a {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;

  border-radius: 50%;
  background: transparent; /* ← УБРАЛИ КРУЖКИ */

  display: flex;
  align-items: center;
  justify-content: center;

  transition: transform 0.25s ease, opacity 0.25s ease;
}
.contacts-icons a:hover {
  transform: scale(1.12);
  opacity: 0.85;
}
.contacts-icons a img {
  width: 44px;
  height: 44px;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}
/* Кнопка */
.contacts-back-btn {
  display: inline-block;
  padding: 16px 36px;

  background: #e10600;
  color: #fff;
  text-decoration: none;

  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(225,6,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contacts-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(225,6,0,0.55);
}

/* ===============================
   CONTACT ICONS — MOBILE FIX
================================ */
@media (max-width: 480px) {
  .contacts-icons {
    flex-wrap: nowrap;          /* ❗ запрещаем перенос */
    gap: 14px;                  /* уменьшаем расстояние */
  }

  .contacts-icons a {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
  }

  .contacts-icons a img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
  }
}