@font-face {
  font-display: swap;
  font-family: "Bolota";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/bolota-bold.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/inter-tight-regular.woff2") format("woff2");
}

:root {
  --aqua: #1AD0C1;
  --yellow: #FFDD00;
  --brown: #462000;
  --danger: #d01f1f;
  --page-max: 1920px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
  color: var(--brown);
  background: var(--yellow);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-family: "Inter Tight", Arial, sans-serif;
  background: var(--yellow);
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-inner,
.hero-inner,
.footer-inner {
  width: min(100%, var(--page-max));
  margin: 0 auto;
}

.footer-inner{
  width: 100%;
}

.site {
  max-width: 100%;
  overflow: hidden;
}

.copy-mobile,
.entry-title-mobile {
  display: none;
}

.zabka-mark {
  width: clamp(150px, 14.24vw, 205px);
  aspect-ratio: 205 / 142;
  background: url("../img/zabka_logo.svg") center / contain no-repeat;
  margin-left: 5%;
}

.hero {
  position: relative;
  height: 750px;
  min-height: 0;
  background-image: url("../img/hero_desktop_4k.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center top;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(96px, 8.125vw, 156px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 156' preserveAspectRatio='none'%3E%3Cpath fill='%23462000' d='M0 44C214 68 426 105 655 128C938 156 1195 161 1442 122C1634 92 1774 51 1920 28V156H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  height: 750px;
  padding-top: 0;
}

.hero-logo {
  position: absolute;
  left: 50%;
  top: 80px;
  width: 699px;
  min-width: 0;
  margin: 0;
  transform: translateX(-50%);
}

.hero-logo img,
.hero-character img {
  width: 100%;
}

.hero h1 {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 492px;
  width: 1010px;
  margin: 0;
  transform: translateX(-50%);
  color: var(--aqua);
  font-family: "Bolota", Arial, sans-serif;
  font-size: 91px;
  line-height: 0.94;
  letter-spacing: 0;
  text-align: center;
}

.hero h1 span {
  display: block;
}

.hero-character {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.hero-cookie {
  left: -82px;
  top: 360px;
  bottom: auto;
  width: 312px;
}

.hero-chocolate {
  right: -60px;
  top: 360px;
  bottom: auto;
  width: 282px;
}

.hero-cookie-jam {
  position: absolute;
  left: 33.5%;
  top: 29%;
  width: 27%;
  height: 19%;
  border: 7px solid #d3194a;
  border-radius: 45% 55% 50% 50% / 55% 58% 42% 45%;
  background: #d77b93;
  transform: rotate(-5deg);
}

.eye {
  --look-x: 0px;
  --look-y: 0px;
  position: absolute;
  z-index: 4;
  width: var(--size);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  background: url("../img/white_eye.png") center / contain no-repeat;
}

.pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58.823529%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("../img/black_eye.png") center / contain no-repeat;
  transform: translate(calc(-50% + var(--look-x)), calc(-50% + var(--look-y)));
  transition: transform 80ms ease-out;
}

.eye-logo-left {
  --size: 24.9%;
  left: 41.78%;
  top: 74.57%;
}

.eye-logo-right {
  --size: 24.9%;
  left: 66.67%;
  top: 74.57%;
}

.prizes {
  position: relative;
  overflow: hidden;
  padding: 100px 0 clamp(210px, 17.2vw, 248px);
  background: var(--brown);
}

.prizes::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(150px, 15.35vw, 221px);
  background: url("../img/desktop_cut_1.jpg") center bottom / 100% 100% no-repeat;
}

.prizes-inner {
  position: relative;
  z-index: 1;
}

.prizes h2 {
  margin: 0 0 clamp(58px, 5.5vw, 80px);
  color: var(--yellow);
  font-family: "Bolota", Arial, sans-serif;
  font-size: clamp(66px, 6.8vw, 98px);
  line-height: 0.95;
  letter-spacing: 0;
  text-align: center;
}

.prizes-art {
  position: relative;
  width: min(93.6vw, 1348px);
  margin: 0 auto;
  padding-bottom: clamp(8px, 1vw, 14px);
}

.prizes-art picture,
.prizes-art img {
  width: 100%;
}

.prize-label {
  position: absolute;
  margin: 0;
  color: var(--aqua);
  font-family: "Bolota", Arial, sans-serif;
  font-size: clamp(34px, 3.65vw, 54px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.label-chair {
  left: 36.2%;
  top: 8.1%;
}

.label-bag {
    left: 58.4%;
    top: 27.2%;
}

.label-screen {
    left: 61%;
    top: 51.8%;
}

.label-hoodie {
    left: 24.4%;
    top: 73.4%;
}

.label-blanket {
  left: 62.3%;
  top: 88.1%;
}

.label-towel {
  left: 8.6%;
  top: 96.7%;
}

.mood {
  position: relative;
  overflow: hidden;
  padding: clamp(116px, 10vw, 144px) 0 210px;
  background: var(--yellow);
}

.mood::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(215px, 19vw, 274px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 274' preserveAspectRatio='none'%3E%3Cpath fill='%23462000' d='M0 220C185 214 310 196 451 154C598 111 744 95 919 116C1085 136 1238 198 1440 214V274H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.mood-inner {
  z-index: 1;
  min-height: clamp(390px, 34vw, 492px);
  padding: 0 clamp(48px, 4.7vw, 67px);
}

.mood-copy {
  max-width: min(57vw, 760px);
  padding-top: clamp(42px, 4.8vw, 70px);
}

.mood-copy h2 {
  margin: 0 0 32px;
  color: var(--brown);
  font-family: "Bolota", Arial, sans-serif;
  font-size: clamp(46px, 4.2vw, 61px);
  line-height: 1.12;
  letter-spacing: 0;
}

.mood-copy h2 span {
  display: block;
}

.mood-copy p {
  max-width: 690px;
  margin: 0;
  font-size: clamp(25px, 2.2vw, 36px);
  line-height: 1.08;
}

.mood-wafer {
  position: absolute;
  right: 0;
  top: 50%;
  display: block;
  width: min(43vw, 525px);
  max-width: none;
  transform: translateY(-50%);
}

.mood-wafer img {
  width: 100%;
}

.rules {
  position: relative;
  overflow: hidden;
  padding: 45px 0 155px;
  background: var(--brown);
}

.rules::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(190px, 17.5vw, 252px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 252' preserveAspectRatio='none'%3E%3Cpath fill='%23FFDD00' d='M0 188C170 176 330 182 500 210C660 236 835 240 1010 214C1190 186 1275 135 1440 114V252H0Z'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.rules-inner {
  position: relative;
  z-index: 1;
  padding: 0 clamp(48px, 6.5vw, 94px);
}

.rules-head {
  display: grid;
  grid-template-columns: minmax(250px, 370px) minmax(450px, 1fr);
  gap: clamp(54px, 6vw, 86px);
  align-items: center;
  margin-bottom: clamp(68px, 8vw, 116px);
}

.rules-cookie {
  width: min(30.7vw, 441px);
  justify-self: center;
}

.rules h2 {
  margin: 0;
  color: var(--yellow);
  font-family: "Bolota", Arial, sans-serif;
  font-size: clamp(74px, 7.8vw, 112px);
  line-height: 1.05;
  letter-spacing: 0;
}

.rules h2 span {
  display: block;
}

.rules-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(48px, 5vw, 72px);
  align-items: start;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rules-list li {
  min-width: 0;
  text-align: center;
}

.rules-list strong {
  display: block;
  margin-bottom: clamp(28px, 3.1vw, 45px);
  color: var(--yellow);
  font-family: "Bolota", Arial, sans-serif;
  font-size: clamp(104px, 10vw, 144px);
  line-height: 0.8;
  letter-spacing: 0;
}

.rules-list img,
.rules-list picture {
  display: block;
  width: auto;
  max-width: min(90%, 282px);
  height: clamp(250px, 21vw, 302px);
  object-fit: contain;
  margin: 0 auto clamp(30px, 3.5vw, 50px);
}

.rules-list picture img {
  height: 100%;
}

.rules-list p {
  max-width: 360px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(23px, 2.1vw, 30px);
  line-height: 1.05;
}

.rules-step-cookie {
  display: none!important;
}

.app-icon {
  display: grid;
  place-items: center;
  width: clamp(210px, 20vw, 292px);
  aspect-ratio: 1;
  margin: 0 auto clamp(30px, 3.5vw, 50px);
  transform: rotate(9deg);
  border-radius: 23%;
  color: #fff;
  font-family: "Inter Tight", Arial, sans-serif;
  font-size: clamp(42px, 4.2vw, 62px);
  font-weight: 700;
  background: radial-gradient(circle at 32% 25%, #31f47b, #0cae65 58%, #078a53 100%);
  box-shadow: 14px 16px 0 rgba(0, 0, 0, 0.18);
}

.entry {
  padding: 0 0 69px;
  background: var(--yellow);
  padding-top: 70px;
}

.entry-inner {
  padding: 0 clamp(32px, 5.4vw, 78px);
}

.entry-kicker {
  margin: 0 0 8px;
  font-size: clamp(28px, 2.2vw, 36px);
  line-height: 1.1;
  text-align: center;
}

.entry h2 {
  margin: 0 auto 14px;
  color: var(--brown);
  font-family: "Bolota", Arial, sans-serif;
  font-size: clamp(42px, 4.15vw, 60px);
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
}

.entry-date {
  margin: 0 0 24px;
  font-size: clamp(28px, 2.2vw, 36px);
  text-align: center;
}

.contest-form {
  width: min(100%, 990px);
  margin: 0 auto;
}

.answer-field {
  position: relative;
  margin-bottom: clamp(34px, 3.4vw, 50px);
}

.contest-form textarea,
.contest-form input {
  width: 100%;
  border: 1.5px solid var(--brown);
  border-radius: 18px;
  outline: 0;
  color: var(--brown);
  background: transparent;
  caret-color: var(--brown);
}

.contest-form textarea {
  height: clamp(250px, 22.2vw, 320px);
  padding: 24px 24px 44px;
  resize: vertical;
  font-size: 18px;
  line-height: 1.25;
}

.contest-form input {
  height: 45px;
  margin-bottom: 16px;
  padding: 0 22px;
  font-size: 18px;
}

.contest-form textarea::placeholder,
.contest-form input::placeholder {
  color: rgba(70, 32, 0, 0.82);
  opacity: 1;

}

.contest-form textarea:focus,
.contest-form input:focus {
  box-shadow: 0 0 0 3px rgba(26, 208, 193, 0.34);
}

.contest-form .is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(208, 31, 31, 0.16);
}

.char-counter {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--brown);
  font-size: 13px;
}

.contest-form h3 {
  margin: 18px 0 14px;
  font-family: "Bolota", Arial, sans-serif;
  font-size: clamp(22px, 1.55vw, 24px);
  line-height: 1;
  letter-spacing: 0;
}

.consents {
  display: grid;
  gap: 12px;
  margin: 35px 0 70px;
}

.consent {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 16px;
  align-items: start;
  color: var(--brown);
  font-size: 13px;
  line-height: 1.22;
}

.consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.consent-box {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border-radius: 50%;
  background: url("../img/checkbox.png") center / contain no-repeat;
}

.consent input:checked + .consent-box {
  background-image: url("../img/checkbox_ok.png");
}

.consent.is-invalid .consent-box {
  background-image: url("../img/checkbox_bad.png");
}

.contest-form button {
  display: block;
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  color: var(--yellow);
  font-family: "Bolota", Arial, sans-serif;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1;
  letter-spacing: 0;
  background: var(--brown);
  cursor: pointer;
}

.contest-form button:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 4px;
}

.contest-form.is-submitting button {
  cursor: progress;
  opacity: 0.78;
}

.form-status {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--brown);
  font-family: "Bolota", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
}

.form-status.is-error {
  color: var(--danger);
}

.footer {
  position: relative;
  overflow: hidden;
  min-height: clamp(190px, 16vw, 232px);
  margin-top: -1px;
  background: var(--yellow);
}

.footer-inner {
  position: relative;
  z-index: 1;
  min-height: clamp(190px, 16vw, 232px);
  padding: 0 clamp(48px, 4.7vw, 67px);
}

.footer-zabka {
  position: absolute;
  left: clamp(48px, 4.7vw, 67px);
  bottom: 0;
  margin-left: 0;
}

@media (max-width: 900px) {
  .site,
  .hero,
  .prizes,
  .mood,
  .rules,
  .entry,
  .footer {
    max-width: 100%;
    overflow-x: clip;
  }

  .copy-desktop,
  .hero-cookie,
  .entry-title-desktop {
    display: none;
  }

  .copy-mobile,
  .entry-title-mobile {
    display: inline;
  }

  .hero {
    height: 123.8vw;
    min-height: 0;
    background-image: url("../img/hero_mobile.jpg");
  }

  .hero::after {
    display: none;
  }

  .hero-inner {
    height: 483px;
    min-height: 0;
  }

  .hero-logo {
    left: 7.5%;
    top: 35px;
    width: 85%;
    transform: none;
  }

  .hero h1 {
    left: 30px;
    top: 218px;
    width: 330px;
    transform: none;
    font-size: 8.72vw;
    line-height: 0.9;
  }

  .hero-chocolate {
    display: none;
  }
  .zabka-mark{
    display: none;
  }
  #hero h1{
    display: none;
  }

  .hero-cookie-arm-left {
    border-left-width: 4px;
    border-bottom-width: 4px;
  }

  .hero-cookie-arm-right {
    border-right-width: 4px;
    border-top-width: 4px;
  }

  .prizes {
    padding: 0;
  }

  .prizes::after {
    height: 0;
    background: none;
  }

  .prizes h2 {
    margin: 0 auto clamp(40px, 10vw, 58px);
    font-size: 13vw;
    line-height: 1.12;
  }

  .prizes-art {
    max-width: 88.2vw;
    padding-bottom: clamp(62px, 18vw, 82px);
  }

  .prize-label {
    display: none;
  }

  .label-chair {
    left: 16.8%;
    top: 21.7%;
  }

  .label-bag {
    left: 1.5%;
    top: 40.1%;
  }

  .label-hoodie {
    left: 17%;
    top: 57.8%;
  }

  .label-screen {
    left: 9.2%;
    top: 71.9%;
  }

  .label-blanket {
    left: 4%;
    top: 87.4%;
    font-size: 6.4vw;
  }

  .label-towel {
    left: 2.4%;
    top: 101.5%;
    font-size: 6.4vw;
  }

  .mood {
    padding: 0;
    padding-bottom: 30px;
  }

  .mood::after {
    height: 0;
    background: none;
  }

  .mood-inner {
    display: block;
    min-height: 0;
    padding: 24px;
    text-align: center;
  }

  .mood-copy {
    max-width: none;
    padding-top: 0;
  }

  .mood-copy h2 {
    margin-right: auto;
    margin-bottom: 28px;
    margin-left: auto;
    font-size: 7.69vw;
    line-height: 1.16;
  }

  .mood-copy p {
    margin: 0 auto;
    font-size: 4.87vw;
    line-height: 1.12;
  }

  .mood-wafer {
    position: relative;
    right: auto;
    top: auto;
    width: 344px;
    max-width: 88.2vw;
    margin: 42px auto 0;
    transform: none;
    margin-right: 0;
    right: -7%;
  }

  .rules {
    padding: 92px 0 272px;
  }

  .rules::after {
    height: 164px;
  }

  .rules-inner {
    padding: 0 24px;
  }

  .rules-head {
    display: block;
    margin-bottom: clamp(50px, 15vw, 72px);
    text-align: center;
  }

  .rules-cookie {
    display: none;
  }

  .rules h2 {
    font-size: 11.54vw;
    line-height: 1.15;
  }

  .rules-list {
    grid-template-columns: 1fr;
    gap: 118px;
  }

  .rules-list li:first-child {
    position: relative;
  }

  .rules-list strong {
    margin-bottom: 26px;
    font-size: 28vw;
  }

  .rules-step-cookie {
    position: absolute;
    top: -20vw;
    right: -24px;
    display: block!important;
    width: 30vw;
    max-width: 118px;
    height: auto;
    margin: 0;
    z-index: 1;
    pointer-events: none;
  }

  .rules-list img,
  .rules-list picture {
    max-width: 80%;
    height: auto;
    max-height: 405px;
    margin-bottom: 26px;
  }

  .rules-list p {
    max-width: none;
    font-size: 6.2vw;
    line-height: 1.08;
  }

  .app-icon {
    width: min(58vw, 230px);
    margin-bottom: 34px;
    font-size: 10vw;
  }

  .entry {
    padding: 72px 0 0;
  }

  .entry-inner {
    padding: 0 30px;
  }

  .entry-kicker {
    margin-bottom: 12px;
    font-size: 5.13vw;
  }

  .entry h2 {
    margin-bottom: 22px;
    font-size: 6.67vw;
    line-height: 1.05;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .entry-date {
    max-width: 50vw;
    margin: 0 auto 30px;
    font-size: 4.87vw;
    line-height: 1.08;
  }

  .contest-form {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .contest-form textarea {
    height: 330px;
    padding: 22px 18px 42px;
    font-size: 4.1vw;
  }

  .contest-form input {
    height: 42px;
    margin-bottom: 14px;
    padding: 0 18px;
    border-radius: 18px;
    font-size: 3.33vw;
  }

  .contest-form h3 {
    margin: 18px 0 14px;
    font-size: 4.62vw;
  }

  .consents {
    gap: 16px;
    margin: 30px 0 10vw;
  }

  .consent {
    grid-template-columns: 16px 1fr;
    gap: 14px;
    font-size: 3vw;
    line-height: 1.18;
  }

  .contest-form button {
    min-height: 12vw;
    font-size: 4.62vw;
  }

  .footer {
    min-height: 50vw;
  }

  .footer-inner {
    min-height: 50vw;
    padding: 0 30px;
  }

  .footer-zabka {
    bottom: 0;
    left: 35vw;
    width: 30vw;
    height: 21vw;
    aspect-ratio: auto;
    background-size: 100% 100%;
    transform: none;
    display: block;
  }
}
