.contact-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(227, 6, 19, 0.055), rgba(0, 0, 0, 0.025)),
    linear-gradient(135deg, #fff 0%, #fff 60%, #f5f5f5 100%);
  border-bottom: 1px solid var(--line);
}

.contact-hero::after {
  content: "";
  position: absolute;
  right: -9%;
  top: 0;
  width: 45%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(227, 6, 19, 0.07), rgba(0, 0, 0, 0.04)),
    linear-gradient(135deg, transparent 0 34%, rgba(0, 0, 0, 0.035) 34% 100%);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.contact-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 390px;
  display: grid;
  grid-template-columns: 1.05fr 0.74fr;
  gap: 54px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 76px;
}

.contact-hero-copy h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.contact-hero-copy p:not(.section-label) {
  max-width: 660px;
  margin: 22px 0 0;
  color: #333;
  font-size: 16px;
}

.contact-hero-card {
  padding: 34px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-hero-card .card-label {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-hero-card h2 {
  margin: 0;
  color: var(--black);
  font-size: 22px;
  line-height: 1.4;
}

.contact-hero-card p:not(.card-label) {
  margin: 14px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.contact-content-section {
  background: var(--bg-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  align-items: start;
}

.contact-main {
  display: grid;
  gap: 24px;
}

.contact-panel,
.side-card,
.contact-privacy-panel {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.045);
}

.contact-panel {
  padding: 42px;
}

.contact-panel h2,
.contact-privacy-panel h2,
.side-card h2 {
  margin: 0;
  color: var(--black);
  line-height: 1.45;
}

.contact-panel h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.contact-panel p:not(.section-label) {
  margin: 18px 0 0;
  color: #333;
}

.contact-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.contact-topic-grid article {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(227, 6, 19, 0.035), rgba(0, 0, 0, 0.018)),
    #fff;
  border: 1px solid var(--line);
}

.contact-topic-grid span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.contact-topic-grid h3 {
  margin: 0;
  color: var(--black);
  font-size: 18px;
  line-height: 1.5;
}

.contact-topic-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.form-panel {
  border-top: 4px solid var(--red);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.contact-side {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 28px;
}

.side-card h2 {
  font-size: 20px;
}

.side-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.side-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 0;
  list-style: none;
}

.side-card li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.side-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.operator-card {
  background:
    linear-gradient(135deg, rgba(227, 6, 19, 0.04), rgba(0, 0, 0, 0.018)),
    #fff;
}

.text-link {
  color: var(--red);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-privacy-section {
  background: #fff;
  border-top: 1px solid var(--line);
}

.contact-privacy-panel {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  padding: 38px 42px;
}

.contact-privacy-panel h2 {
  font-size: clamp(24px, 2.8vw, 34px);
}

.contact-privacy-panel p:not(.section-label) {
  max-width: 720px;
  margin: 14px 0 0;
  color: #333;
}

@media (max-width: 960px) {
  .contact-hero-inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-hero-inner {
    min-height: auto;
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .contact-hero::after {
    opacity: 0.5;
    width: 70%;
  }

  .contact-side {
    position: static;
  }

  .contact-privacy-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .contact-hero-card,
  .contact-panel,
  .side-card,
  .contact-privacy-panel {
    padding: 26px 22px;
  }

  .contact-topic-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    flex-direction: column;
  }

  .contact-actions .btn,
  .contact-hero-card .btn,
  .contact-privacy-panel .btn {
    width: 100%;
    justify-content: center;
  }
}
