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

:root {
  --berry-dark: #1a0f24;
  --berry: #4a1d6a;
  --berry-light: #7b3fa8;
  --accent: #c41e5a;
  --accent-soft: #f4d4e0;
  --mint: #e8f5f0;
  --white: #ffffff;
  --text: #2d2438;
  --text-muted: #5c5368;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(26, 15, 36, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(165deg, #faf7fc 0%, #f0e8f8 45%, #e8f0f5 100%);
  line-height: 1.6;
  min-height: 100vh;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 29, 106, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--berry);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
}

.header-cta {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  background: linear-gradient(135deg, var(--berry) 0%, var(--accent) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 30, 90, 0.35);
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: var(--berry-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.prize-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent);
}

.prize-highlight strong {
  font-size: 1.5rem;
  color: var(--berry);
}

.product-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-visual::before {
  content: "";
  position: absolute;
  width: 85%;
  height: 85%;
  background: radial-gradient(circle, rgba(123, 63, 168, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.product-visual img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  filter: drop-shadow(0 20px 40px rgba(26, 15, 36, 0.2));
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 1.75rem;
  color: var(--berry-dark);
  margin-bottom: 1.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.about-card {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.about-card p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-card p:last-child {
  margin-bottom: 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.feature {
  padding: 1.25rem;
  background: linear-gradient(145deg, #faf7fc, #f3edf8);
  border-radius: var(--radius);
  border: 1px solid rgba(74, 29, 106, 0.08);
}

.feature h3 {
  font-size: 0.95rem;
  color: var(--berry);
  margin-bottom: 0.35rem;
}

.feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Form */
.form-section {
  background: linear-gradient(160deg, var(--berry-dark) 0%, var(--berry) 55%, #5c2878 100%);
  color: var(--white);
  padding: 4rem 0;
}

.form-section .section-title {
  color: var(--white);
}

.form-section .section-subtitle {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin: -0.75rem auto 2rem;
  max-width: 520px;
}

.form-wrapper {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #e8e2ef;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--berry-light);
  box-shadow: 0 0 0 4px rgba(123, 63, 168, 0.15);
}

.form-group input.error {
  border-color: var(--accent);
}

.form-error {
  font-size: 0.8rem;
  color: var(--accent);
  margin-top: 0.35rem;
  display: none;
}

.form-error.visible {
  display: block;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--berry) 0%, var(--accent) 100%);
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 30, 90, 0.4);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

/* Contest rules */
.contest-rules {
  background: var(--white);
  padding: 3rem 0;
  border-top: 1px solid rgba(74, 29, 106, 0.1);
}

.contest-rules h2 {
  font-size: 1.35rem;
  color: var(--berry-dark);
  margin-bottom: 1.75rem;
  text-align: center;
}

.rules-list {
  display: grid;
  gap: 1.5rem;
}

.rule-item h3 {
  font-size: 1rem;
  color: var(--berry);
  margin-bottom: 0.5rem;
}

.rule-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: var(--berry-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 1.75rem 0;
  font-size: 0.8rem;
  text-align: center;
}

/* Thank you page */
.thankyou-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.thankyou-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.thankyou-card {
  text-align: center;
  max-width: 520px;
  background: var(--white);
  padding: 3rem 2.5rem;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
}

.thankyou-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--berry) 0%, var(--accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.thankyou-card h1 {
  font-size: 1.75rem;
  color: var(--berry-dark);
  margin-bottom: 1rem;
}

.thankyou-card p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.thankyou-name {
  font-weight: 700;
  color: var(--berry);
}

.btn-back {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--berry) 0%, var(--accent) 100%);
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 30, 90, 0.35);
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .prize-highlight {
    justify-content: center;
  }

  .product-visual {
    order: -1;
  }

  .product-visual img {
    max-height: 280px;
  }

  .about-card {
    padding: 1.5rem;
  }
}
