/* Reset and base styles  */
* {
  padding: 0px;
  margin: 0px;
  border: none;
}

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

html {
  scroll-behavior: smooth;
}

/* Links */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
  color: inherit;
  text-decoration: none;
}

/* Common */

aside,
nav,
footer,
header,
section,
main {
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ul li {
  /* list-style: none; */
}

img {
  vertical-align: top;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

/* Form */

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
}

input::-ms-clear {
  display: none;
}

button,
input[type='submit'] {
  display: inline-block;
  box-shadow: none;
  background-color: transparent;
  background: none;
  cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

input[type='file'] {
  max-width: 100%;
}

@font-face {
  font-family: 'Montserrat';
  src: url('/italialotto-fonts/italialotto-montserrat-variablefont-wght.woff2')
    format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Paytone One Regular */
@font-face {
  font-family: 'Paytone One';
  src: url('/italialotto-fonts/italialotto-paytoneone-regular.woff2')
    format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
}

@media (max-width: 1240px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}
.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.ptb-40 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.mb-40-20 {
  margin-bottom: 40px;
}

@media (max-width: 780px) {
  .mb-40-20 {
    margin-bottom: 20px;
  }
}
.tx-48-32 {
  color: #1b1b1b;
  text-align: center;
  font-family: 'Paytone One';
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 57.6px */
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .tx-48-32 {
    font-size: 32px;
  }
}

.tx-48-30 {
  color: #fff;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #1b1b1b;
  font-family: 'Paytone One', sans-serif;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .tx-48-30 {
    font-size: 30px;
  }
}

.tx-40-24 {
  color: #1b1b1b;
  font-family: 'Paytone One', sans-serif;
  font-size: 40px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  text-transform: uppercase;
  text-align: left;
}

@media (max-width: 780px) {
  .tx-40-24 {
    font-size: 24px;
  }
}

.tx-18-14 {
  color: #1b1b1b;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

@media (max-width: 780px) {
  .tx-18-14 {
    font-size: 14px;
  }
}

.tx-16-14 {
  color: #1b1b1b;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

@media (max-width: 780px) {
  .tx-16-14 {
    font-size: 14px;
  }
}

.tx-btn {
  color: #1b1b1b;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 150%;
}

@media (max-width: 780px) {
  .tx-btn {
    font-size: 14px;
  }
}

.mb-auto {
  margin: auto;
}

.btn-style-green {
  border-radius: 100px;
  background: #5ecb5a;
  padding: 14px 24px;
  width: min(100%, 320px);
  box-sizing: border-box;
  text-align: center;
}

/* кнопка: важны relative + overflow + радиус */
.btn--shine {
  position: relative;
  overflow: hidden;
  border-radius: 100px; /* твой радиус */
}

/* блик по умолчанию скрыт */
.btn--shine .grale {
  position: absolute;
  pointer-events: none;
  top: -120%; /* повыше, чтобы накрывал всю кнопку */
  left: -140%; /* старт сильно слева — в процентах от ширины кнопки */
  width: 40px;
  height: 300%;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: rotate(45deg);
}

/* запуск по hover (или повесишь класс .shine из JS) */
.btn--shine .grale {
  animation: shine-slide 1.8s ease-in-out forwards;
}

/* адаптивная анимация: двигаем по left в % от ширины кнопки и делаем fade-in/out */
@keyframes shine-slide {
  0% {
    left: -140%;
    opacity: 0;
  }
  10% {
    left: -110%;
    opacity: 0.85;
  }
  90% {
    left: 140%;
    opacity: 0.85;
  }
  100% {
    left: 140%;
    opacity: 0;
  }
}

@media (max-width: 780px) {
  .btn-style-green {
    padding: 10px 20px;
    margin: auto;
  }
}

/* header */

.italialotto-header {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

@media (max-width: 780px) {
  .italialotto-header {
    padding: 12px 0;
  }

  .italialotto-header img {
    width: 156px;
  }
}

/* hero section */

.italialotto-hero {
  background: url('/italialotto-img/italialotto-hero-bg.webp') lightgray 50%
    center / cover no-repeat;
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 780px) {
  .italialotto-hero {
    background: url('/italialotto-img/italialotto-hero-bg.webp') lightgray 50%
      center / cover no-repeat;
  }
}

.italialotto-hero__container-text {
  padding: 40px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  background-clip: padding-box;
  max-width: 814px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 780px) {
  .italialotto-hero__container-text {
    padding: 20px 16px;
  }
}

/* italialotto-vincite-recenti */

.italialotto-vincite-recenti {
  background: #e7f8e6;
}

.italialotto-vincite-recenti__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (max-width: 780px) {
  .italialotto-vincite-recenti__container {
    gap: 20px;
  }
}

/* контейнер бегущей строки */
.italialotto-vincite-recenti-ticker {
  overflow: hidden;
  position: relative;
}

.ticker__track {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  white-space: nowrap;
  will-change: transform;
  animation: il-ticker 30s linear infinite;
}

/* карточка победителя */
.ticket {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 10px;
  background: #fff;
  color: #141414;
}

/* зелёная точка-разделитель 8×8 */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5ecb5a;
  flex: 0 0 8px;
}

.ticket__amount {
  color: #217d1e;
  font-family: 'Paytone One', sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

@media (max-width: 780px) {
  .ticket__amount {
    font-size: 14px;
  }
}

/* анимация: двигаем содержимое влево на половину ширины трека (см. JS ниже) */
@keyframes il-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* italialotto-giochi */

.italialotto-giochi__container__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

@media (max-width: 780px) {
  .italialotto-giochi__container__cards {
    gap: 16px;
  }
}

.italialotto-giochi__container__card {
  border-radius: 20px;
  background: #e7f8e6;
  padding: 40px;
  width: 600px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.italialotto-giochi__container__card img {
  margin-bottom: 16px;
}

@media (max-width: 780px) {
  .italialotto-giochi__container__card {
    gap: 16px;
    padding: 20px 16px;
  }

  .italialotto-giochi__container__card img {
    margin-bottom: 4px;
  }
}

/* footer */

.italialotto-footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

@media (max-width: 780px) {
  .italialotto-footer__container {
    gap: 16px;
  }
}
.italialotto-footer__logo {
  display: flex;
  justify-content: center;
}

@media (max-width: 780px) {
  .italialotto-footer__logo img {
    width: 156px;
  }
}

.italialotto-footer-text {
  list-style: none;
  text-align: center;
}

.italialotto-footer-partners {
  list-style: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.italialotto-footer-partners img {
  max-width: 143px;
}

.italialotto-footer-navigation {
  width: 100%;
}

.italialotto-footer-navigation__container {
  list-style: none;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 780px) {
  .italialotto-footer-partners {
    gap: 32px;
  }

  .italialotto-footer-navigation__container {
    flex-direction: column;
    justify-content: center;
    gap: 16px;
  }
}

/* pupup */

.popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}
.popup.is-open {
  display: block;
}
.popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.popup__dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 92vw);
  margin: 6vh auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #fff;
}
.popup__title {
  margin: auto;
}
.popup__close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.popup__body {
  padding: 20px;
}

.form {
  display: grid;
  gap: 16px;
  padding: 8px 16px 24px;
}
.input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #eee;
  background: #fafafa;
  font-size: 16px;
  outline: 0;
}
.input:focus {
  border-color: #cce3cc;
  box-shadow: 0 0 0 3px rgba(94, 203, 90, 0.15);
}
.form__submit {
  width: 100%;
  border-radius: 999px;
}
.form__hint {
  text-align: center;
  font-size: 14px;
  color: #333;
  margin: 0;
}
.link-btn {
  background: none;
  border: 0;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.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;
}
body.modal-open {
  overflow: hidden;
}
@media (max-width: 480px) {
  .popup__body {
    padding: 16px;
  }
}

/* discl */

.italialotto-text-page {
  background: #e7f8e6;
}

.italialotto-text-page h1 {
  margin-bottom: 24px;
}

.italialotto-text-page__container {
  max-width: 814px;
  margin: auto;
  text-align: center;
}

@media (max-width: 780px) {
  .italialotto-text-page h1 {
    text-align: left;
    margin-bottom: 16px;
  }
  .italialotto-text-page p {
    text-align: left;
  }
}

.italialotto-informazioni-legali {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (max-width: 780px) {
  .italialotto-informazioni-legali {
    gap: 16px;
  }
}

ol {
  list-style: decimal;
}

/* Все ul внутри ol — убираем стандартные маркеры */
ol ul {
  list-style: none;
  margin: 0 0 0 1rem;
  padding: 0;
  text-align: left;
}

/* Рисуем свои точки 2px */
ol ul li {
  position: relative;
  padding-left: 10px;
}
ol ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: currentColor;
  transform: translateY(-50%);
}

.italialotto-text-page__container ol {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* italialotto-18-plus */

.italialotto-18-plus-img {
  margin-bottom: 24px;
}

.italialotto-cookie__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/*  */

.cookie-list {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.italialotto-cookie-row {
  display: flex;
  flex-direction: column;
  align-items: center;
}
