:root {
  --dates-band: #e57f67;
  --dates-text: #2b2621;
  --dates-line: rgba(43, 38, 33, 0.28);
  --dates-accent: #f08f2a;

  --dates-font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
}

.dates {
  position: relative;
  background: #ffffff;
  padding: clamp(34px, 5.5vw, 64px) var(--safe-pad);
  overflow: hidden;
  font-family: var(--dates-font);

  border-top: none;
}

.dates::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;

  height: clamp(150px, 26vw, 210px);

  background: var(--dates-band);
  z-index: 0;
}

.dates::after {
  content: "";
  position: absolute;
  inset-inline: -2px; 
  top: clamp(150px, 26vw, 210px);
  transform: translateY(-24px);
  height: 24px;
  background: #ffffff;
  z-index: 0;

  will-change: transform;
  backface-visibility: hidden;
  transform: translateY(-24px) translateZ(0);

  clip-path: polygon(
    0% 0%,
    2.5% 100%,
    5% 0%,
    7.5% 100%,
    10% 0%,
    12.5% 100%,
    15% 0%,
    17.5% 100%,
    20% 0%,
    22.5% 100%,
    25% 0%,
    27.5% 100%,
    30% 0%,
    32.5% 100%,
    35% 0%,
    37.5% 100%,
    40% 0%,
    42.5% 100%,
    45% 0%,
    47.5% 100%,
    50% 0%,
    52.5% 100%,
    55% 0%,
    57.5% 100%,
    60% 0%,
    62.5% 100%,
    65% 0%,
    67.5% 100%,
    70% 0%,
    72.5% 100%,
    75% 0%,
    77.5% 100%,
    80% 0%,
    82.5% 100%,
    85% 0%,
    87.5% 100%,
    90% 0%,
    92.5% 100%,
    95% 0%,
    97.5% 100%,
    100% 0%,
    100% 100%,
    0% 100%
  );
}



.dates__inner {
  position: relative;
  z-index: 1;
  max-width: var(--hero-max-width);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(18px, 4vw, 54px);
  align-items: center;
}

.dates__content {
  width: min(560px, 100%);
  justify-self: start;

  background: transparent;
  border-radius: 22px;
  padding: clamp(22px, 3vw, 34px);

  text-align: center;
  color: var(--dates-text);

  border: none;
  box-shadow: none;
  margin-top: 150px;
}

.dates__day {
  margin: 0;
  font-size: clamp(24px, 2.7vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.005em;
}

.dates__date {
  margin: 6px 0 0;
  font-size: clamp(20px, 2.35vw, 32px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.005em;
}

.dates__divider {
  margin: 18px 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.dates__line {
  width: 62px;
  height: 2px;
  background: var(--dates-line);
  border-radius: 999px;
}

.dates__cactus {
  width: 80px;
  height: 80px;
  display: block;

  opacity: 0.85;
  transform: translateY(2px);

  filter: none;
  box-shadow: none;
}

.dates__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 18px;
  padding: 15px 40px;

  border-radius: 999px;
  background: var(--dates-accent);
  color: #ffffff;
  text-decoration: none;

  font-weight: 600;
  font-size: 14px;
  line-height: 1;

 
  transition: transform 160ms ease, filter 160ms ease;
}

.dates__btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.dates__photos {
  position: relative;
  min-height: clamp(260px, 34vw, 380px);

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.dates__image {
  width: min(560px, 46vw);
  max-width: 620px;
  height: auto;
  display: block;

  border-radius: 0;
  box-shadow: none;
  transform: none;

  object-fit: contain;
}

@media (max-width: 980px) {
  .dates__inner {
    grid-template-columns: 1fr;
  }

  .dates__content {
    justify-self: center;
    
  }

  .dates__photos {
    min-height: 240px;
    justify-content: center;
  }

  .dates__image {
    width: min(620px, 90vw);
    max-width: 620px;
  }
}

@media (max-width: 520px) {
  .dates__line {
    width: 50px;
  }
}
@media (min-width: 981px) {
  .dates__content {
    grid-column: 1 / 2; 
  }

  .dates__photos {
    grid-column: 2 / 4; 
    justify-content: flex-end; 
  }

  .dates__image {
    width: 100%; 
    max-width: none; 
    height: auto;
  }
}