@font-face {
  font-family: "Rubik";
  src: url("/ogorod/fonts/rubik-cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Rubik";
  src: url("/ogorod/fonts/rubik-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2190-2193, U+2212, U+FEFF;
}

:root {
  color-scheme: dark;
  --bg: #0d1510;
  --bg-soft: #132017;
  --panel: #18261c;
  --line: rgba(237, 221, 163, .16);
  --text: #f6f3e7;
  --muted: #b4beb0;
  --gold: #ffd65a;
  --gold-dark: #d89c28;
  --green: #9ed45f;
  --shadow: 0 22px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Rubik", system-ui, sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: rgba(255, 214, 90, .32); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--gold); color: #17200e; }
.skip:focus { top: 16px; }

.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 36px; min-height: 82px; padding: 12px max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s, min-height .25s; }
.top.scrolled { min-height: 70px; background: rgba(10, 17, 12, .9); border-color: var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 13px; box-shadow: 0 4px 20px rgba(0, 0, 0, .25); }
.brand span { color: var(--gold); font-size: 18px; font-weight: 800; line-height: 1.05; letter-spacing: .09em; }
.brand small { display: block; margin-top: 5px; color: #d4d9ca; font-size: 9px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { color: #e3e7dc; font-size: 14px; font-weight: 500; transition: color .2s; }
.top nav a:hover { color: var(--gold); }
.top-play { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px; border: 1px solid rgba(255, 214, 90, .5); border-radius: 12px; color: var(--gold); font-size: 14px; font-weight: 700; transition: background .2s, color .2s; }
.top-play:hover { background: var(--gold); color: #1b230f; }

.hero { position: relative; min-height: max(680px, 94svh); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: -5%; z-index: -3; background: url("/assets/hero.webp") center / cover no-repeat; animation: hero-drift 24s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7, 15, 9, .94) 0%, rgba(8, 17, 10, .76) 34%, rgba(8, 17, 10, .12) 68%, rgba(8, 17, 10, .08) 100%), linear-gradient(0deg, var(--bg) 0%, transparent 25%, rgba(6, 13, 8, .22) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .15; background-image: radial-gradient(rgba(255, 255, 255, .7) .55px, transparent .55px); background-size: 5px 5px; mix-blend-mode: soft-light; }
.hero-content { width: min(1240px, 100%); margin: 0 auto; padding: 130px 24px 120px; }
.eyebrow, .kicker { margin: 0 0 14px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; animation: enter .7s .1s both; }
.eyebrow::before { content: ""; width: 38px; height: 2px; background: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(64px, 8vw, 116px); font-weight: 850; line-height: .88; letter-spacing: -.055em; text-shadow: 0 5px 35px rgba(0, 0, 0, .45); animation: enter .85s .18s both; }
h1 span { display: block; margin-top: 16px; color: var(--gold); font-size: .68em; letter-spacing: -.035em; }
.hero-lead { max-width: 545px; margin-bottom: 30px; color: #e0e6d9; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.6; text-shadow: 0 2px 15px #000; animation: enter .8s .3s both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; animation: enter .8s .4s both; }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; gap: 20px; padding: 14px 24px; border: 1px solid transparent; border-radius: 14px; font-size: 15px; font-weight: 750; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-3px); }
.button.primary { background: linear-gradient(180deg, #ffe480, #f0b735); color: #1c250f; box-shadow: 0 8px 28px rgba(226, 166, 42, .24), inset 0 1px rgba(255, 255, 255, .55); }
.button.primary:hover { box-shadow: 0 12px 36px rgba(226, 166, 42, .38); }
.button.secondary { border-color: rgba(255, 255, 255, .35); background: rgba(14, 24, 16, .45); backdrop-filter: blur(8px); }
.button.secondary:hover { background: rgba(34, 51, 37, .8); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 28px 0 0; padding: 0; color: #c8d1c2; font-size: 13px; list-style: none; animation: enter .8s .5s both; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(158, 212, 95, .6); }
.scroll-cue { position: absolute; right: max(24px, calc((100vw - 1240px) / 2)); bottom: 42px; display: flex; align-items: center; gap: 14px; color: #e2e6da; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue i { position: relative; width: 28px; height: 44px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 20px; }
.scroll-cue i::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--gold); animation: scroll-dot 1.8s infinite; }

.games-section { width: min(1180px, 100%); margin: 0 auto; padding: 100px 24px 70px; }
.section-head { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 50px; margin-bottom: 38px; }
.kicker { margin-bottom: 10px; }
h2 { margin-bottom: 0; font-size: clamp(36px, 4.4vw, 58px); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; }
.section-head > p { margin: 0 0 4px; color: var(--muted); font-size: 16px; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 8px 25px rgba(0, 0, 0, .12); transition: transform .3s, border-color .3s, box-shadow .3s; }
.game-card:hover { transform: translateY(-6px); border-color: rgba(255, 214, 90, .5); box-shadow: var(--shadow); }
.game-image { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #202a23; }
.game-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 6, .1), transparent 55%, rgba(5, 10, 6, .3)); pointer-events: none; }
.game-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2, .7, .2, 1); }
.game-card:hover .game-image img { transform: scale(1.045); }
.game-number { position: absolute; left: 16px; top: 16px; z-index: 2; display: grid; place-items: center; width: 40px; height: 32px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9px; background: rgba(10, 16, 11, .72); backdrop-filter: blur(8px); color: var(--gold); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.game-info { position: relative; padding: 23px 24px 25px; }
.game-info p { margin-bottom: 6px; color: var(--green); font-size: 11px; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.game-info h3 { margin-bottom: 9px; font-size: 25px; font-weight: 750; line-height: 1.2; letter-spacing: -.025em; }
.game-info > span { display: block; max-width: 430px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.game-info b { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: var(--gold); font-size: 13px; font-weight: 700; }
.game-info b i { font-size: 21px; font-style: normal; transition: transform .2s; }
.game-card:hover .game-info b i { transform: translateX(5px); }

.about-section { width: min(1240px, 100%); margin: 0 auto; padding: 45px 24px 110px; }
.about-panel { display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: linear-gradient(140deg, #1b2a1e, #111b14); box-shadow: var(--shadow); }
.about-image { min-height: 100%; }
.about-image img { width: 100%; height: 100%; object-fit: cover; }
.about-text { padding: clamp(32px, 5vw, 66px); }
.about-text h2 { margin-bottom: 22px; }
.about-text > p:not(.kicker) { color: var(--muted); font-size: 15px; }
.about-text ul { margin: 24px 0 30px; padding: 0; list-style: none; }
.about-text li { position: relative; margin: 11px 0; padding-left: 23px; color: #dce3d6; font-size: 14px; }
.about-text li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }

footer { display: flex; align-items: center; gap: 30px; padding: 30px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line); background: #0a110c; }
footer p { margin: 0 auto; color: #859184; font-size: 12px; }
footer > a:last-child { color: var(--muted); font-size: 13px; }
footer > a:last-child:hover { color: var(--gold); }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }
@keyframes enter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-1.5%); } }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

@media (max-width: 900px) {
  .top { gap: 18px; }
  .top nav { display: none; }
  .top-play { margin-left: auto; }
  .hero-bg { background-position: 57% center; }
  .hero-shade { background: linear-gradient(90deg, rgba(7, 15, 9, .9), rgba(8, 17, 10, .55) 65%, rgba(8, 17, 10, .2)), linear-gradient(0deg, var(--bg), transparent 40%); }
  .section-head { grid-template-columns: 1fr; gap: 18px; }
  .section-head > p { max-width: 580px; }
  .about-panel { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 16 / 9; }
  footer { flex-wrap: wrap; }
  footer p { order: 3; width: 100%; text-align: center; }
  footer > a:last-child { margin-left: auto; }
}

@media (max-width: 640px) {
  .top { min-height: 68px; padding: 10px 16px; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; border-radius: 10px; }
  .brand span { font-size: 15px; }
  .brand small { font-size: 7px; }
  .top-play { padding: 8px 12px; font-size: 12px; }
  .top-play span { display: none; }
  .hero { min-height: 760px; align-items: flex-end; }
  .hero-bg { inset: 0; background-position: 54% top; background-size: auto 52%; background-repeat: no-repeat; background-color: #16241a; animation: none; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 4%, rgba(13, 21, 16, .96) 32%, rgba(13, 21, 16, .25) 62%, rgba(13, 21, 16, .15)); }
  .hero-content { padding: 110px 20px 90px; }
  h1 { margin-bottom: 18px; font-size: clamp(54px, 17vw, 76px); }
  h1 span { margin-top: 10px; }
  .hero-lead { font-size: 16px; line-height: 1.5; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .button { min-height: 50px; padding: 12px 16px; gap: 10px; font-size: 13px; }
  .hero-facts { gap: 8px 16px; font-size: 11px; }
  .scroll-cue { display: none; }
  .games-section { padding: 65px 16px 35px; }
  .section-head { margin-bottom: 26px; }
  .section-head > p { font-size: 14px; }
  .game-grid { grid-template-columns: 1fr; gap: 18px; }
  .game-info { padding: 20px; }
  .game-info h3 { font-size: 23px; }
  .about-section { padding: 35px 16px 70px; }
  .about-text { padding: 28px 22px; }
  .about-text .button { width: 100%; }
  footer { padding: 24px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
