@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;700;800&display=swap');

* {
  box-sizing: border-box;
}

:root {
  --rose: #c95f73;
  --rose-dark: #a34c5c;
  --rose-soft: #fff0f2;
  --gold: #d7ac51;
  --brand: #a38c83;
  --text: #30343a;
  --muted: #6f6970;
  --line: #eadada;
  --paper: #fffdfb;
  --success: #27734d;
  --error: #b3261e;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top, rgba(201, 95, 115, .10), transparent 35%),
    linear-gradient(180deg, #fff7f2 0%, #fffdfb 45%, #fff0f2 100%);
}

.page {
  min-height: 100vh;
}

.brand {
  background: linear-gradient(180deg, #ad978e, var(--brand));
  padding: 38px 18px 42px;
  text-align: center;
  overflow: hidden;
}

.gold-line {
  width: min(100%, 980px);
  height: 5px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.brand h1 {
  margin: 20px auto;
  color: #2f343b;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(48px, 11vw, 102px);
  font-weight: 400;
  line-height: .95;
  text-shadow: 0 1px 0 rgba(255,255,255,.12);
  white-space: nowrap;
}

.hero {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 54px 22px 42px;
  text-align: center;
}

.heart {
  color: var(--rose);
  font-size: 42px;
  line-height: 1;
  margin-bottom: 10px;
}

.hero h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.hero h2 span {
  color: var(--rose);
}

.subtitle {
  max-width: 560px;
  margin: 18px auto 30px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.45;
}

.instagram {
  width: min(100%, 520px);
  min-height: 92px;
  margin: 0 auto 34px;
  padding: 18px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rose), #d97989);
  color: white;
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(180, 76, 98, .28);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  transition: .18s ease;
}

.instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(180, 76, 98, .36);
}

.instagram-icon {
  width: 54px;
  height: 54px;
  border: 3px solid rgba(255,255,255,.85);
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.instagram-icon svg {
  width: 33px;
  height: 33px;
  fill: white;
}

.instagram strong {
  display: block;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 19px;
}

.instagram small {
  display: block;
  text-align: left;
  margin-top: 6px;
  font-size: 14px;
  opacity: .94;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  color: var(--rose);
  margin: 0 auto 22px;
  max-width: 620px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.instruction {
  margin: 0 auto 26px;
  font-size: 17px;
}

.form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

label {
  display: grid;
  gap: 9px;
  margin-bottom: 19px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #d2c5c1;
  border-radius: 10px;
  padding: 0 17px;
  background: white;
  color: var(--text);
  font: 500 16px Inter, Arial, sans-serif;
}

input:focus {
  outline: 3px solid rgba(201, 95, 115, .16);
  border-color: var(--rose);
}

.check {
  grid-template-columns: 24px 1fr;
  gap: 13px;
  align-items: start;
  padding: 18px 20px;
  margin: 26px 0 28px;
  border: 1px solid #efcbd2;
  border-radius: 12px;
  background: var(--rose-soft);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #42424a;
  line-height: 1.5;
}

.check input {
  width: 20px;
  height: 20px;
  min-height: auto;
  margin-top: 2px;
  accent-color: var(--rose);
}

button {
  width: min(100%, 430px);
  min-height: 84px;
  margin: 0 auto;
  border: none;
  border-radius: 14px;
  padding: 16px 22px;
  background: linear-gradient(135deg, var(--rose), #d97989);
  color: white;
  box-shadow: 0 18px 34px rgba(180, 76, 98, .28);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  cursor: pointer;
  transition: .18s ease;
}

button:hover {
  transform: translateY(-2px);
}

button:disabled {
  opacity: .65;
  cursor: not-allowed;
  transform: none;
}

.gift-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.gift-icon svg {
  width: 42px;
  height: 42px;
  fill: white;
}

button strong {
  display: block;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 20px;
}

button small {
  display: block;
  text-align: left;
  margin-top: 5px;
  font-size: 14px;
  font-weight: 400;
  opacity: .94;
}

.message {
  min-height: 26px;
  margin: 18px 0 0;
  text-align: center;
  font-weight: 800;
}

.success {
  color: var(--success);
}

.error {
  color: var(--error);
}

.secure {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.rules {
  padding: 48px 22px 56px;
  background: linear-gradient(180deg, rgba(255,240,242,.7), rgba(255,240,242,.95));
}

.rules h2 {
  margin: 0 0 30px;
  text-align: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 34px;
  color: var(--rose-dark);
}

.rules-grid {
  width: min(100%, 760px);
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.rules-grid article {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
}

.rule-icon {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(201, 95, 115, .5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--rose);
  background: rgba(255,255,255,.45);
  font-size: 25px;
}

.rules-grid h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.rules-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

footer {
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--rose), #d97989);
  color: white;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 24px;
}

footer p {
  margin: 0;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(47,52,58,.48);
  display: none;
  place-items: center;
  padding: 20px;
  z-index: 10;
}

.modal.show {
  display: grid;
}

.modal-card {
  width: min(100%, 420px);
  background: var(--paper);
  border-radius: 22px;
  padding: 34px 26px;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  min-height: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  box-shadow: none;
  background: #f4e6e7;
  color: var(--rose-dark);
  font-size: 24px;
}

.modal-close:hover {
  transform: none;
}

.modal-heart {
  color: var(--rose);
  font-size: 44px;
}

.modal-card h2 {
  margin: 8px 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 700px) {
  .brand {
    padding: 30px 12px 34px;
  }

  .brand h1 {
    white-space: normal;
    font-size: clamp(42px, 17vw, 72px);
  }

  .hero {
    padding: 42px 18px 36px;
  }

  .instagram,
  button {
    min-height: 78px;
    padding: 15px 17px;
  }

  .instagram-icon,
  .gift-icon {
    width: 42px;
    height: 42px;
  }

  .instagram-icon svg,
  .gift-icon svg {
    width: 30px;
    height: 30px;
  }

  .instagram strong,
  button strong {
    font-size: 15px;
  }

  .instagram small,
  button small {
    font-size: 12px;
  }

  .rules-grid article {
    grid-template-columns: 54px 1fr;
  }

  .rule-icon {
    width: 50px;
    height: 50px;
  }
}
