* {
  box-sizing: border-box;
}

:root {
  --cream: #fbf6ef;
  --white: #fffdf9;
  --rose: #a76c70;
  --rose-dark: #875155;
  --text: #382f2c;
  --muted: #81736d;
  --line: #eadfd5;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 7%;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: bold;
  white-space: nowrap;
}


.logo span {
  color: var(--rose);
}

.header nav {
  display: flex;
  gap: 23px;
  flex-wrap: wrap;
}

.header nav a {
  color: var(--muted);
  font-size: 14px;
}

.header nav a:hover {
  color: var(--rose);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  padding: 70px 10%;
  background: linear-gradient(120deg, #f7e9df, #ead4cb);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.eyebrow {
  color: var(--rose);
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 2px;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

h1 {
  margin: 15px 0;
  font-size: clamp(38px, 6vw, 64px);
}

h1 span {
  color: var(--rose);
}

.hero-content > p:not(.eyebrow) {
  max-width: 450px;
  color: #695953;
}

.hero-symbol {
  position: absolute;
  right: 12%;
  top: 15%;
  color: rgba(167, 108, 112, 0.22);
  font-size: 230px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 13px 22px;
  margin-top: 15px;
  border: none;
  border-radius: 7px;
  background: var(--rose);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.button:hover {
  background: var(--rose-dark);
  transform: translateY(-2px);
}

.section {
  padding: 70px 7%;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2,
.about h2 {
  margin: 10px 0;
  font-size: clamp(29px, 4vw, 40px);
}

.section-heading > p:last-child {
  color: var(--muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: auto;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 5px 18px rgba(70, 45, 35, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(70, 45, 35, 0.1);
}

.product-image {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--product-bg, #eee1d1);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  position: absolute;
  bottom: 8px;
  padding: 5px 9px;
  border-radius: 5px;
  background: rgba(255, 253, 249, 0.8);
  color: #695953;
  font-size: 11px;
}

.candle-art {
  position: relative;
  width: 88px;
  height: 135px;
  border-radius: 8px 8px 13px 13px;
  background: var(--wax, #f2d9b9);
  box-shadow: 8px 12px 22px rgba(90, 60, 40, 0.14);
}

.candle-art::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 100%;
  height: 12px;
  border-radius: 50%;
  background: var(--wax, #f2d9b9);
}

.candle-art::after {
  content: "";
  position: absolute;
  top: -28px;
  left: 40px;
  width: 8px;
  height: 23px;
  border-radius: 70% 30% 60% 40%;
  background: #d79a55;
  box-shadow: 0 0 18px 7px rgba(239, 173, 89, 0.3);
}

.product-info {
  padding: 20px;
}

.product-info h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.description {
  min-height: 44px;
  color: var(--muted);
  font-size: 14px;
}

.product-price {
  margin: 15px 0;
  font-size: 21px;
  font-weight: bold;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-actions .button {
  width: 100%;
  margin: 0;
  text-align: center;
}

.button-secondary {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-weight: bold;
  cursor: pointer;
}

.button-secondary:hover {
  background: #f5ece4;
}

.about {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  padding: 65px 10%;
  background: #f0e6db;
}

.about > div:last-child {
  max-width: 620px;
}

.about-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border: 1px solid #cba9a1;
  border-radius: 50%;
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 54px;
}

.about p:last-child {
  color: var(--muted);
}

.contact {
  background: var(--white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 550px;
  margin: auto;
}

.contact-form label {
  margin-top: 8px;
  font-size: 14px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #d9afb0;
}

.contact-form .button {
  width: 100%;
}

.form-note,
#contact-status {
  color: var(--muted);
  font-size: 12px;
}

.footer {
  padding: 35px 7%;
  background: #352c29;
  color: #f7eee7;
  text-align: center;
}

.footer-logo span {
  color: #d6a3a1;
}

.footer p {
  color: #d1c1b8;
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  font-size: 13px;
}

.footer-links a:hover {
  color: #e6b9b4;
}

@media (max-width: 850px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header {
    padding: 18px 5%;
  }

  .header nav {
    gap: 12px;
  }
}

@media (max-width: 580px) {
  .header {
    flex-direction: column;
  }

  .header nav {
    justify-content: center;
  }

  .hero {
    padding: 60px 7%;
  }

  .hero-symbol {
    right: 0;
    top: 45%;
    font-size: 130px;
  }

  .section {
    padding: 50px 5%;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .about {
    flex-direction: column;
    padding: 45px 7%;
    text-align: center;
  }
}
:root {
  --cream: #f8efe2;
  --white: #fffaf3;
  --brown: #543b2c;
  --gold: #b9894b;
  --gold-light: #f3d7a2;
  --border: #ead8c0;
  --muted: #927d69;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 28px 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    radial-gradient(ellipse at top, #fffdf8, transparent 65%),
    var(--cream);
  color: var(--brown);
  font-family: Georgia, "Times New Roman", serif;
}

.game-card {
  width: 100%;
  max-width: 700px;
  padding: clamp(22px, 5vw, 44px);
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 18px 55px #65432612;
}

.brand {
  margin: 0;
  color: var(--gold);
  font: bold 14px Arial, sans-serif;
  letter-spacing: 5px;
}

.decor {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 28px;
}

.subtitle {
  color: var(--muted);
  font: 10px Arial, sans-serif;
  letter-spacing: 3px;
}

h1 {
  margin: 25px 0 12px;
  font-size: clamp(30px, 6vw, 46px);
  font-weight: normal;
}

.description {
  max-width: 460px;
  margin: 0 auto 28px;
  color: var(--muted);
  font: 15px/1.7 Arial, sans-serif;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto 24px;
}

.stat {
  padding: 15px 8px;
  background: #f8efe2;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.stat span {
  display: block;
  color: var(--muted);
  font: 12px/1.5 Arial, sans-serif;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font: bold 26px Arial, sans-serif;
}

.candles {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 26px;
}

.candle {
  min-width: 0;
  min-height: 125px;
  padding: 10px 3px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(#fff9ed, #f1e2cd);
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.candle:hover:not(:disabled) {
  transform: translateY(-4px);
}

.candle:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.candle:disabled {
  cursor: default;
}

.wax {
  position: relative;
  width: 32px;
  height: 49px;
  border-radius: 5px;
  background: linear-gradient(
    90deg, #ddc39d, #fff2d9 45%, #e7cfaa
  );
  box-shadow: 0 5px 9px #65432615;
}

.wax::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  border: 1px solid #ead8bd;
  border-radius: 50%;
  background: #fff8e9;
}

.flame {
  position: relative;
  width: 18px;
  height: 25px;
  margin-bottom: 5px;
  opacity: 0;
  transform: scale(.5);
  transition: .2s;
}

.flame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 80% 10% 70% 70%;
  background: radial-gradient(
    ellipse at 45% 70%,
    #fffbd2 5%, #ffc45b 45%, #ed7733 80%
  );
  transform: rotate(45deg);
}

.candle.lit {
  background: linear-gradient(#fff6dc, #f6dfb1);
  border-color: #d9b36e;
}

.candle.lit .flame {
  opacity: 1;
  transform: scale(1);
  animation: flicker .65s infinite alternate;
  filter: drop-shadow(0 0 5px #ffc05c);
}

.candle.lit .wax {
  background: linear-gradient(
    90deg, #e8c77e, #fff0c1 45%, #e8c77e
  );
}

.number {
  margin-top: 8px;
  color: var(--muted);
  font: 11px Arial, sans-serif;
}

.buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  min-height: 48px;
  padding: 14px 22px;
  border: 0;
  border-radius: 30px;
  font: bold 14px Arial, sans-serif;
  cursor: pointer;
  transition: transform .2s, background .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  color: white;
  background: var(--brown);
}

.btn-primary:hover:not(:disabled) {
  background: #74523b;
}

.btn-secondary {
  color: var(--brown);
  background: #f0e3d1;
  border: 1px solid var(--border);
}

.message {
  min-height: 24px;
  margin: 20px 0;
  color: var(--muted);
  font: 14px/1.6 Arial, sans-serif;
}

.result {
  margin-top: 24px;
  padding: 24px 12px;
  background: #f5ebd9;
  border: 1px dashed var(--gold);
  border-radius: 18px;
}

.result[hidden] {
  display: none;
}

.gift {
  font-size: 38px;
}

.result h2 {
  font-size: 27px;
  font-weight: normal;
}

.result p {
  color: var(--muted);
  font: 14px/1.6 Arial, sans-serif;
}

.promo-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px auto;
  padding: 18px;
  max-width: 290px;
  background: #fffaf2;
  border: 1px dashed var(--gold);
  border-radius: 12px;
}

.promo-box span {
  color: var(--muted);
  font: 11px Arial, sans-serif;
  letter-spacing: 2px;
}

.promo-box strong {
  color: #96662d;
  font: bold 28px Arial, sans-serif;
  letter-spacing: 3px;
}

.copy-message {
  min-height: 20px;
}

footer {
  margin-top: 30px;
  color: var(--muted);
  font: 12px/1.7 Arial, sans-serif;
}

footer a {
  display: inline-block;
  margin-top: 8px;
  color: var(--brown);
}

@keyframes flicker {
  from { transform: rotate(42deg) scale(.93); }
  to { transform: rotate(48deg) scale(1.05); }
}

@media (max-width: 420px) {
  .game-card {
    padding: 24px 12px;
    border-radius: 18px;
  }

  .candles {
    gap: 5px;
  }

  .candle {
    min-height: 108px;
  }

  .wax {
    width: 26px;
    height: 43px;
  }

  .buttons .btn {
    width: 100%;
  }

  .stat span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
