:root {
  --color-bg: #fff7f6;
  --color-bg-alt: #fdecec;
  --color-surface: #fff;
  --color-primary: #ff6f61;
  --color-primary-soft: #ffd7d2;
  --color-primary-strong: #e04236;
  --color-text: #4a4a4a;
  --color-text-muted: #7a7a7a;
  --color-border: #f3c1bc;
  --color-shadow-soft: rgba(255, 111, 97, 0.2);
  --gap: 1.5rem;
  --radius: 12px;
  --btn-radius: 9999px;
  --btn-padding: 0.75rem 2rem;
  --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --max-width: 1280px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus-visible {
  color: var(--color-primary-strong);
  text-decoration: underline;
}

.header,
.footer,
.main {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.header__inner,
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
}

.header__logo,
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__brand,
.footer__logo {
  display: block;
  height: 40px;
  width: auto;
  border-radius: var(--radius);
  object-fit: contain;
}

.footer__name {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--color-primary-strong);
}

.header__nav-list,
.footer__nav-list {
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.header__nav-list {
  flex-wrap: wrap;
}

.header__nav-item,
.footer__nav-item {
}

.header__nav-link,
.footer__link {
  display: inline-block;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  color: var(--color-text-muted);
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.header__nav-link:hover,
.header__nav-link:focus-visible,
.footer__link:hover,
.footer__link:focus-visible {
  color: var(--color-primary-strong);
  background-color: var(--color-primary-soft);
}

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 28px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.header__burger span {
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  display: block;
}

.main {
  padding-top: 3rem;
  padding-bottom: 3rem;
  max-width: var(--max-width);
}

/* HERO */
.hero {
  display: flex;
  gap: 3rem;
  padding: 3rem 1rem 4rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffe6e1, #fff7f6);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px var(--color-shadow-soft);
  backdrop-filter: none;
}

.hero--centered {
  flex-wrap: wrap;
  text-align: center;
}

.hero__content {
  max-width: 600px;
}

.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary-strong);
}

.hero__subtitle {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.hero__support {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.hero__cta-row {
  margin-top: 1rem;
}

.hero__cta-btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 600;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  box-shadow: 0 6px 12px var(--color-shadow-soft);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  user-select: none;
}

.hero__cta-btn:hover,
.hero__cta-btn:focus-visible {
  background-color: var(--color-primary-strong);
  transform: scale(1.05);
}

/* Hero visual image */
.hero__visual {
  flex-shrink: 0;
  max-width: 480px;
}

.hero__image {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 20px var(--color-shadow-soft);
  object-fit: cover;
}

/* GALLERY */
.gallery {
  margin-top: 4rem;
}

.section__title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--color-primary-strong);
  margin-bottom: 2rem;
}

.gallery--grid .gallery__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  justify-items: center;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--color-surface);
  box-shadow: 0 5px 15px var(--color-shadow-soft);
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

.gallery__item:hover,
.gallery__item:focus-within {
  transform: scale(1.05);
  filter: brightness(1.1);
  z-index: 2;
}

.gallery__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* STORY */
.story {
  margin-top: 4rem;
  padding: 2.5rem 1rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px var(--color-shadow-soft);
  text-align: center;
  color: var(--color-text);
}

.story__wrapper {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.story__text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-top: 1rem;
}

/* BENEFITS */
.benefits {
  margin-top: 4rem;
  padding: 2rem 1rem;
  background-color: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: 0 8px 16px var(--color-shadow-soft);
}

.benefits--twocol .benefits__cols {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.benefits__list {
  flex: 1 1 320px;
}

.benefits__ul {
  list-style: disc inside;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-top: 1rem;
  line-height: 1.5;
}

.benefits__li {
  margin-bottom: 0.75rem;
}

.benefits__visual {
  flex: 1 1 320px;
  max-width: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px var(--color-shadow-soft);
}

.benefits__img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius);
}

/* HOW TO PLAY */
.howto {
  margin-top: 4rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.section__title,
.howto__num {
  color: var(--color-primary-strong);
}

.howto__steps {
  margin-top: 1.5rem;
  padding-left: 0;
  list-style: none;
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.howto__step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background-color: var(--color-surface);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 15px var(--color-shadow-soft);
}

.howto__num {
  font-weight: 700;
  font-size: 1.5rem;
  min-width: 2.5rem;
  height: 2.5rem;
  line-height: 2.3rem;
  background-color: var(--color-primary-soft);
  color: var(--color-primary-strong);
  text-align: center;
  border-radius: var(--btn-radius);
  flex-shrink: 0;
  user-select: none;
}

.howto__txt {
  flex: 1;
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* TIPS */
.tips {
  margin-top: 4rem;
  padding: 2rem 1rem;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: 0 8px 20px var(--color-shadow-soft);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tips--cards .tips__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tips__card {
  background-color: var(--color-surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 12px var(--color-shadow-soft);
  transition: transform 0.3s ease;
  cursor: default;
}

.tips__card:hover,
.tips__card:focus-within {
  transform: scale(1.03);
  z-index: 1;
}

.tips__text {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* COMMUNITY */
.community {
  margin-top: 4rem;
  display: flex;
  gap: 2rem;
  background: linear-gradient(135deg, #fff0ef 0%, #ffe4e0 100%);
  padding: 2.5rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px var(--color-shadow-soft);
  align-items: center;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  text-align: left;
}

.community--split .community__content {
  flex: 1 1 320px;
  max-width: 480px;
}

.community__text {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.community__visual {
  flex: 1 1 320px;
  max-width: 440px;
  border-radius: var(--radius);
  box-shadow: 0 10px 20px var(--color-shadow-soft);
  overflow: hidden;
}

.community__img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}

/* CTA */
.cta--stripe {
  margin-top: 5rem;
  background: linear-gradient(90deg, #ff6f61 0%, #e04236 100%);
  color: #fff;
  padding: 3rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 10px 30px rgba(224, 66, 54, 0.4);
}

.cta__inner {
  max-width: 720px;
  margin: 0 auto;
}

.cta__title {
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 6px rgba(224, 66, 54, 0.6);
}

.cta__desc {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: #ffe6e1;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cta__btn {
  background-color: #fff;
  color: var(--color-primary-strong);
  font-weight: 700;
  font-size: 1.125rem;
  padding: 1rem 3rem;
  border-radius: var(--btn-radius);
  box-shadow: 0 12px 28px rgba(255, 111, 97, 0.4);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
  display: inline-block;
  user-select: none;
  text-decoration: none;
}

.cta__btn:hover,
.cta__btn:focus-visible {
  background-color: var(--color-primary-strong);
  color: #fff;
  transform: scale(1.07);
}

/* LEGAL & ABOUT SECTIONS */
.about__intro,
.about__story,
.about__values,
.about__regional,
.about__project,
.about__contact-info {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem;
  color: var(--color-text);
  line-height: 1.6;
}

.about__intro p:not(:last-child),
.about__story p:not(:last-child),
.about__values ul,
.about__regional p:not(:last-child),
.about__project p:not(:last-child),
.about__contact-info p:not(:last-child) {
  margin-bottom: 1rem;
}

.about__values ul {
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

.about__values li {
  margin-bottom: 0.75rem;
}

/* LEGAL */
.legal {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem 4rem;
  color: var(--color-text);
  line-height: 1.6;
}

.legal__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-primary-strong);
  text-align: center;
}

.legal__section {
  margin-bottom: 2rem;
}

.legal__section-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.legal__text,
.legal__item {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.legal__list {
  list-style: disc inside;
  margin-top: 0.5rem;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

/* CONTACT */
.contact__container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 1rem 4rem;
}

.contact__intro,
.contact__support,
.contact__developer,
.contact__links,
.contact__regional {
  margin-bottom: 3rem;
}

.contact__list {
  list-style: none;
  padding-left: 0;
  margin-top: 1rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.contact__list li {
  margin-bottom: 1rem;
}

.contact__list a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* CONTACT INFO BOX */
.contact-info {
  background-color: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 8px 20px var(--color-shadow-soft);
  color: var(--color-text-muted);
}

.contact-info h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--color-primary-strong);
  font-weight: 700;
  font-size: 1.125rem;
}

/* RESPONSIVE */
@media (max-width: 1199px) {
  .hero {
    gap: 2rem;
    padding-left: 1rem;
    padding-right: 1rem;
    flex-wrap: wrap;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__visual {
    max-width: 100%;
  }

  .benefits--twocol .benefits__cols {
    flex-direction: column;
    gap: 1.5rem;
  }

  .community {
    flex-direction: column;
    text-align: center;
  }

  .community--split .community__content,
  .community__visual {
    max-width: 100%;
  }

  .tips--cards .tips__cards {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

@media (max-width: 767px) {
  .header__nav-list,
  .footer__nav-list {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero {
    flex-direction: column;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__cta-row {
    margin-top: 1rem;
  }

  .hero__image {
    border-radius: var(--radius);
    width: 100%;
    height: auto;
    box-shadow: 0 8px 20px var(--color-shadow-soft);
  }

  .gallery--grid .gallery__grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
  }

  .howto__step {
    flex-direction: column;
    align-items: flex-start;
  }

  .howto__num {
    margin-bottom: 0.5rem;
  }

  .cta__btn {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
  }
}
.quiz-cookie {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 9999;
  pointer-events: none;
}

.quiz-cookie__panel {
  max-width: 420px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 18px 40px var(--color-shadow-soft);
  padding: 1.25rem 1.5rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: auto;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.quiz-cookie--hidden .quiz-cookie__panel {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.quiz-cookie__header {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.quiz-cookie__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--color-bg-alt);
  border: 1px solid rgba(243, 193, 188, 0.9);
}

.quiz-cookie__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--color-primary);
}

.quiz-cookie__badge-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.quiz-cookie__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.quiz-cookie__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.quiz-cookie__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(
    135deg,
    rgba(255, 215, 210, 0.2),
    rgba(255, 247, 246, 0.9)
  );
  padding: 0.7rem 0.75rem;
}

.quiz-cookie__row {
  padding: 0.45rem 0.5rem 0.5rem;
  border-radius: 10px;
}

.quiz-cookie__row + .quiz-cookie__row {
  border-top: 1px dashed rgba(243, 193, 188, 0.7);
}

.quiz-cookie__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.quiz-cookie__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.quiz-cookie__pill {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(243, 193, 188, 0.9);
  background: rgba(253, 236, 236, 0.7);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.quiz-cookie__pill--locked {
  color: var(--color-primary-strong);
  border-color: rgba(255, 111, 97, 0.55);
  background: rgba(255, 215, 210, 0.4);
}

.quiz-cookie__desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Switch */

.quiz-cookie__switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.quiz-cookie__switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.quiz-cookie__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background-color: #f7d7d3;
  transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.quiz-cookie__slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease;
}

.quiz-cookie__switch input:checked + .quiz-cookie__slider {
  background-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(255, 111, 97, 0.2);
}

.quiz-cookie__switch input:checked + .quiz-cookie__slider::before {
  transform: translateX(16px);
}

/* Footer */

.quiz-cookie__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.quiz-cookie__link {
  font-size: 0.8rem;
  color: var(--color-primary-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.quiz-cookie__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quiz-cookie__btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}

.quiz-cookie__btn:active {
  transform: translateY(1px);
}

.quiz-cookie__btn--primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px var(--color-shadow-soft);
}

.quiz-cookie__btn--primary:hover {
  background: var(--color-primary-strong);
}

.quiz-cookie__btn--outline {
  background: #fff7f6;
  color: var(--color-primary-strong);
  border-color: rgba(255, 111, 97, 0.7);
}

.quiz-cookie__btn--outline:hover {
  border-color: var(--color-primary-strong);
}

.quiz-cookie__btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: rgba(243, 193, 188, 0.9);
}

.quiz-cookie__btn--ghost:hover {
  color: var(--color-text);
}

/* Responsive */

@media (max-width: 768px) {
  .quiz-cookie {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
  }

  .quiz-cookie__panel {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .quiz-cookie__footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-cookie__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .quiz-cookie__btn {
    flex: 1 1 auto;
    text-align: center;
  }
}
