.loto-home-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 52px;
  padding: 48px 28px 32px;
  border-radius: var(--loto-radius-xl);
  background: radial-gradient(circle at 8% 0%, rgba(59, 130, 246, .13), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(249, 115, 22, .11), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 62%, #fff7ed 100%);
  border: 1px solid var(--loto-border);
}

.loto-home-hero::after {
  content: "";
  position: absolute;
  inset: auto -70px -120px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(59, 130, 246, .06);
  pointer-events: none;
}

.loto-home-hero__note {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  margin: 18px auto 0;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--loto-border);
  color: var(--loto-muted);
  font-size: .9rem;
  line-height: 1.6;
  text-align: center;
}

.loto-game-grid,
.loto-home-game-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.loto-game-card {
  --game-color: var(--loto-blue);
  --game-color-dark: var(--loto-blue-dark);
  --game-soft: var(--loto-blue-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 20px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .95);
  color: var(--loto-text);
  border: 1px solid var(--loto-border);
  box-shadow: var(--loto-shadow-sm);
  overflow: hidden;
  transition: transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease,
    background .18s ease;
}

.loto-game-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--game-color);
}

.loto-game-card::after {
  content: "";
  position: absolute;
  right: -42px;
  top: -42px;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  background: var(--game-soft);
  opacity: .72;
  pointer-events: none;
}

.loto-game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--loto-shadow-md);
  border-color: var(--game-color);
  background: #fff;
}

.loto-game-card__badge,
.loto-game-card__title,
.loto-game-card__text,
.loto-game-card__meta,
.loto-game-card__button {
  position: relative;
  z-index: 1;
}

.loto-game-card__badge {
  align-self: flex-start;
  margin: 0 0 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--game-soft);
  color: var(--game-color-dark);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.loto-game-card h2.loto-game-card__title,
.loto-game-card__title {
  display: block;
  margin: 0 0 4px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: var(--loto-heading);
  font-size: 1.46rem;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: .03em;
}

.loto-game-card h2.loto-game-card__title::before,
.loto-game-card h2.loto-game-card__title::after,
.loto-game-card__title::before,
.loto-game-card__title::after {
  content: none !important;
  display: none !important;
}

.loto-game-card__text {
  margin: 0 0 12px;
  color: var(--loto-muted);
  font-size: .92rem;
  line-height: 1.66;
}

.loto-game-card__meta {
  margin: auto 0 11px;
  padding: 9px 0 0;
  border-top: 1px dashed var(--loto-border-strong);
  color: var(--loto-text);
  font-size: .85rem;
  font-weight: 800;
  line-height: 1.4;
}

.loto-game-card__button {
  display: flex;
  min-height: 39px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 13px;
  background: var(--game-color);
  color: #fff;
  font-size: .91rem;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
}

.loto-game-card__button:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(.97);
}

.loto-game-card__button::after {
  content: " →";
  margin-left: 4px;
}

.loto-guide-box {
  display: block;
}

.loto-guide-intro {
  max-width: 900px;
  margin: 0 auto 26px;
  padding: 30px;
  border-radius: var(--loto-radius-lg);
  background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, .09), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border: 1px solid var(--loto-border);
  box-shadow: var(--loto-shadow-sm);
  text-align: center;
}

.loto-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.loto-guide-card {
  position: relative;
  padding: 22px;
  border-radius: var(--loto-radius-md);
  background: var(--loto-white);
  border: 1px solid var(--loto-border);
  box-shadow: var(--loto-shadow-sm);
}

.loto-guide-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
}

.loto-guide-card__number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--loto-blue);
  color: #fff;
  font-size: .88rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.loto-guide-card__label {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--loto-blue-soft);
  color: var(--loto-blue-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  line-height: 1;
}

.loto-guide-card h3 {
  margin: 0 0 8px;
  color: var(--loto-heading);
  font-size: 1.05rem;
  line-height: 1.45;
}

.loto-guide-card p {
  margin: 0;
  color: var(--loto-muted);
  font-size: .94rem;
  line-height: 1.75;
}

.loto-link-card {
  display: block;
  padding: 24px;
  border-radius: var(--loto-radius-lg);
  background: var(--loto-white);
  color: var(--loto-text);
  text-decoration: none;
  border: 1px solid var(--loto-border);
  box-shadow: var(--loto-shadow-sm);
  transition: transform .18s ease,
    box-shadow .18s ease,
    border-color .18s ease;
}

.loto-link-card:hover {
  color: var(--loto-text);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--loto-shadow-md);
  border-color: var(--loto-blue);
}

.loto-link-card h3 {
  margin: 0 0 8px;
  color: var(--loto-heading);
  font-size: 1.15rem;
  line-height: 1.45;
}

.loto-link-card p {
  margin: 0;
  color: var(--loto-muted);
  line-height: 1.8;
}

.loto-game-card__button:focus-visible,
.loto-link-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 4px;
}

.loto-game-card__button,
.loto-link-card {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 960px) {
.loto-guide-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.loto-home-hero {
  padding: 44px 22px 30px;
}

.loto-game-card {
  padding: 18px 20px;
}
}

@media (max-width: 600px) {
.loto-home-hero {
  margin-bottom: 44px;
  padding: 36px 18px 26px;
  border-radius: 24px;
}

.loto-home-hero__note {
  width: 100%;
  border-radius: 16px;
  text-align: left;
}

.loto-guide-grid {
  grid-template-columns: 1fr;
}

.loto-guide-intro {
  text-align: left;
}

.loto-game-card {
  border-radius: 20px;
}

.loto-game-card__badge {
  margin-bottom: 5px;
}

.loto-game-card h2.loto-game-card__title,
  .loto-game-card__title {
  margin-bottom: 4px !important;
  font-size: 1.4rem;
  line-height: 1.06;
}

.loto-game-card__text {
  font-size: .92rem;
  line-height: 1.66;
}

.loto-game-card__button {
  min-height: 42px;
}
}

.loto-home-game-block {
  position: relative;
  z-index: 1;
}

.loto-home-game-block + .loto-home-game-block {
  margin-top: 28px;
}

.loto-home-game-block__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  margin: 0 0 14px;
  text-align: center;
}

.loto-home-game-block__label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--loto-blue-soft);
  color: var(--loto-blue-dark);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .1em;
  line-height: 1;
}

.loto-home-game-block__head h2 {
  margin: 0;
  padding: 0;
  color: var(--loto-heading);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .03em;
}

@media (max-width: 600px) {
.loto-home-game-block__head {
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.loto-home-game-block + .loto-home-game-block {
  margin-top: 24px;
}
}
