:root {
  --bg-main: #0f0f0f;
  --bg-dark: #070707;
  --bg-card: #161616;
  --gold: #c9a45c;
  --text-main: #ffffff;
  --text-muted: #b8b8b8;
  --container: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* HERO */

.contacts-hero {
  min-height: calc(80vh - 105px);
  padding: 120px 70px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.86), rgba(0,0,0,0.52), rgba(0,0,0,0.9)),
    url("images/project-modern.webp") center/cover no-repeat;
  position: relative;
}

.contacts-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg-main));
  pointer-events: none;
}

.contacts-hero-content {
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.contacts-hero-content span,
.section-heading span,
.contacts-form-box span {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 18px;
}

.contacts-hero-content h2 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 26px;
}

.contacts-hero-content p {
  max-width: 650px;
  color: #d1d1d1;
  font-size: 18px;
  line-height: 1.75;
}

/* CONTACTS */

.contacts-section {
  background: var(--bg-main);
  padding: 110px 70px;
}

.contacts-container {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 60px;
  align-items: start;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 42px;
}

.section-heading h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.contact-card {
  min-height: 180px;
  padding: 30px;
  background: linear-gradient(145deg, #181818, #101010);
  border: 1px solid rgba(201, 164, 92, 0.22);
  color: #fff;
  transition: 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-7px);
  border-color: rgba(201, 164, 92, 0.75);
  background: #191919;
}

.contact-card span {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
}

.contact-card h3 {
  font-size: 23px;
  margin: 36px 0 12px;
}

.contact-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* FORM */

.contacts-form-box {
  background:
    linear-gradient(145deg, rgba(201,164,92,0.10), rgba(255,255,255,0.02)),
    #111;
  border: 1px solid rgba(201, 164, 92, 0.35);
  padding: 42px;
}

.contacts-form-box h2 {
  font-size: 36px;
  margin-bottom: 28px;
}

.contacts-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.contacts-form input,
.contacts-form select,
.contacts-form textarea {
  width: 100%;
  padding: 16px 18px;
  background: #0b0b0b;
  border: 1px solid rgba(201, 164, 92, 0.25);
  color: #fff;
  outline: none;
  font-size: 14px;
}

.contacts-form select {
  appearance: none;
  cursor: pointer;
}

.contacts-form input:focus,
.contacts-form select:focus,
.contacts-form textarea:focus {
  border-color: #c9a45c;
}


.contacts-form input:focus,
.contacts-form textarea:focus {
  border-color: var(--gold);
}

.contacts-form textarea {
  grid-column: span 2;
  height: 140px;
  resize: none;
}

.contacts-form button {
  grid-column: span 2;
  padding: 16px 24px;
  background: var(--gold);
  color: #111;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  transition: 0.3s ease;
}

.contacts-form button:hover {
  background: #fff;
}

/* NOTE */

.contact-note {
  background: #111;
  padding: 100px 70px;
}

.contact-note-container {
  max-width: var(--container);
  margin: 0 auto;
}

.contact-note h2 {
  font-size: clamp(34px, 4vw, 46px);
  margin-bottom: 42px;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.note-item {
  min-height: 190px;
}

.note-item {
  background: #151515;
  border: 1px solid rgba(201, 164, 92, 0.22);
  padding: 30px;
  min-height: 180px;
  transition: 0.3s ease;
}

.note-item:hover {
  transform: translateY(-7px);
  border-color: rgba(201, 164, 92, 0.75);
}

.note-item span {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
}

.note-item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-top: 36px;
}

/* FOOTER */

.contacts-footer {
  background: #050505;
  padding: 34px 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contacts-footer p {
  color: #777;
  font-size: 14px;
}

.contacts-footer a {
  color: var(--gold);
  font-size: 14px;
}

.contacts-footer a:hover {
  color: #fff;
}

.contact-note-container {
  max-width: 1200px;
  margin: 0 auto;
}

.note-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px !important;
  width: 100% !important;
}

.note-item {
  width: 100% !important;
  min-height: 190px;
}

/* RESPONSIVE */

@media (max-width: 1050px) {
  .contacts-container {
    grid-template-columns: 1fr;
  }

  .note-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .contacts-hero {
    min-height: 70vh;
    padding: 90px 25px;
  }

  .contacts-section,
  .contact-note {
    padding: 80px 25px;
  }

  .contacts-grid,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .contacts-form {
    grid-template-columns: 1fr;
  }

  .contacts-form textarea,
  .contacts-form button {
    grid-column: span 1;
  }

  .contacts-form-box {
    padding: 30px;
  }

  .contacts-footer {
    padding: 30px 25px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* Hidden anti-spam field */
.website-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
