* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #2b2b2b;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(253, 194, 17, 0.18), transparent 35%),
    linear-gradient(315deg, rgba(233, 78, 26, 0.18), transparent 40%),
    #ffffff;
}

/* HERO */

.hero {
  animation: fadeIn 0.8s ease-in-out;
  position: relative;
  padding: 28px 20px 36px;
  overflow: hidden;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -90px;
  width: 220px;
  height: 220px;
  background: #e94e1a;
  transform: rotate(35deg);
  border-radius: 24px;
  opacity: 0.9;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -35px;
  left: -45px;
  width: 180px;
  height: 80px;
  background: repeating-linear-gradient(
    135deg,
    #fdc211 0 14px,
    #ffffff 14px 22px,
    #e94e1a 22px 36px
  );
  border-radius: 12px;
  opacity: 0.8;
  z-index: 0;
}

.logo,
.badge,
h1,
.hero p {
  position: relative;
  z-index: 1;
}

.logo {
  width: 210px;
  max-width: 80%;
  margin-bottom: 36px;
}

.badge {
  display: inline-block;
  background: #fdc211;
  color: #882615;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

h1 {
  font-size: 3rem;
  line-height: 0.95;
  text-transform: uppercase;
  color: #882615;
  margin-bottom: 20px;
  max-width: 420px;
}

h1 span {
  display: block;
  color: #e94e1a;
  font-size: 4rem;
}

.hero p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 440px;
}

.thanks {
  color: #e94e1a;
  font-weight: 800;
  margin-top: 12px;
}

/* CONTACTS */

.contacts {
  padding: 28px 20px 36px;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
}

.contacts h2 {
  color: #882615;
  font-size: 1.1rem;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.contacts > p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-card {
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(90deg, #882615, #e94e1a);
  padding: 15px 16px;
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  box-shadow: 0 8px 18px rgba(136, 38, 21, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-card span {
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-card strong {
  font-size: 1rem;
  white-space: nowrap;
}

.contact-card:active {
  transform: scale(0.97);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* FOOTER */

footer {
  background: #882615;
  color: #ffffff;
  padding: 20px;
  text-align: center;
}

footer p:first-child {
  font-weight: 700;
  margin-bottom: 6px;
}

footer p:last-child {
  color: #fdc211;
  font-weight: 700;
  font-size: 0.85rem;
}

input, select, textarea {
  font-size: 16px;
}

/* TABLET AND DESKTOP */

@media (min-width: 768px) {
  .page {
    display: grid;
    grid-template-rows: 1fr auto;
  }

  .hero {
    padding: 60px;
  }

  .logo {
    width: 300px;
  }

  h1 {
    font-size: 4.8rem;
  }

  h1 span {
    font-size: 6.2rem;
  }

  .hero p {
    font-size: 1.15rem;
  }

  .contacts {
    padding: 40px 60px;
  }

  .contact-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .page {
    grid-template-columns: 1fr 520px;
    grid-template-rows: 1fr auto;
  }

  .hero {
    grid-column: 1;
  }

  .contacts {
    grid-column: 2;
    grid-row: 1;
    border-radius: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  footer {
    grid-column: 1 / -1;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }
}