:root {
  --primary: #0d6b5c;
  --primary-dark: #084a40;
  --accent: #e8a317;
  --accent-light: #fff3d6;
  --danger: #c0392b;
  --text: #1a2b2a;
  --text-muted: #5a6e6c;
  --bg: #f4faf9;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(13, 107, 92, 0.12);
  --radius: 16px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo img {
  width: 48px;
  height: auto;
}

.badge-giveaway {
  background: var(--accent);
  color: #3d2a00;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Hero */
.hero {
  background: var(--white) url("../img/header_bg.jpg") center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.97) 42%, rgba(255, 255, 255, 0.75) 100%);
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: 2.5rem;
  align-items: start;
  padding: 3rem 0 4rem;
}

.hero-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.hero-left .hero-content {
  flex: 1 1 280px;
}

.hero-left .hero-visual {
  flex: 0 1 260px;
}

.form-card {
  position: sticky;
  top: 1rem;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--primary-dark);
  border: 2px solid var(--accent);
  padding: 0.35rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

.hero h1 span {
  color: var(--danger);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.hero-benefits {
  list-style: none;
  margin-bottom: 1.5rem;
}

.hero-benefits li {
  padding: 0.45rem 0 0.45rem 2rem;
  position: relative;
  font-weight: 500;
}

.hero-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.hero-visual {
  text-align: center;
}

.hero-visual img.product-main {
  max-height: 380px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.prize-counter {
  background: var(--danger);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
  font-weight: 700;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Form card */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  border: 2px solid var(--primary);
}

.form-card h2 {
  font-size: 1.25rem;
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.form-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #d0e8e4;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(180deg, #f5b731 0%, var(--accent) 100%);
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #3d2a00;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: transform 0.15s, box-shadow 0.15s;
  margin-top: 0.5rem;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 163, 23, 0.45);
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.75rem;
}

/* Sections */
section {
  padding: 3.5rem 0;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  text-align: center;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-grid p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.about-grid strong {
  color: var(--primary-dark);
}

.quote-block {
  background: var(--primary);
  color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  font-style: italic;
  margin-top: 1rem;
}

.quote-block cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Technology */
.tech-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.tech-step {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
}

.tech-step h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.tech-step p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Ingredients */
.ingredients {
  background: var(--white);
}

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.ingredient-card {
  text-align: center;
  padding: 1.25rem;
  border-radius: var(--radius);
  background: var(--bg);
}

.ingredient-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
}

.ingredient-card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
}

.ingredient-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .percent {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Expert */
.expert-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-items: start;
}

.expert-block img {
  border-radius: var(--radius);
  width: 100%;
}

.expert-block ul {
  margin: 1rem 0 0 1.25rem;
  color: var(--text-muted);
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.review-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-card .author {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.review-card .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* CTA bottom */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  text-align: center;
}

.cta-section .section-title {
  color: var(--white);
}

.cta-section .form-card {
  max-width: 420px;
  margin: 2rem auto 0;
}

/* Contest rules */
.contest-rules {
  background: #eef5f4;
  padding: 3rem 0;
  border-top: 1px solid #d0e8e4;
}

.contest-rules h2 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

.rules-list {
  max-width: 800px;
  margin: 0 auto;
}

.rules-item {
  margin-bottom: 1.25rem;
}

.rules-item h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.rules-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0;
  font-size: 0.85rem;
}

.site-footer .container {
  text-align: center;
}

.site-footer p {
  margin-bottom: 0.35rem;
}

.disclaimer {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Thank you page */
.thankyou-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.thankyou-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.thankyou-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.thankyou-icon {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.thankyou-card h1 {
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.thankyou-card p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.btn-back {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 2rem;
  background: var(--primary);
  color: var(--white);
  border-radius: 10px;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-back:hover {
  background: var(--primary-dark);
}

/* Responsive */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .form-card {
    position: static;
  }

  .hero-left .hero-visual {
    order: -1;
    flex: 1 1 100%;
  }

  .about-grid,
  .expert-block {
    grid-template-columns: 1fr;
  }

  .expert-block img {
    max-width: 200px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .form-card {
    padding: 1.25rem;
  }
}
