:root {
  color-scheme: dark;
  --bg: #171514;
  --bg-soft: #201d1b;
  --panel: #24211f;
  --panel-light: #302a27;
  --text: #f1ede7;
  --muted: #bcb4aa;
  --faint: #898077;
  --pink: #d48a7d;
  --pink-strong: #c77b70;
  --violet: #c7a99b;
  --line: rgba(236, 226, 215, .12);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 14px 34px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { max-width: 100%; display: block; }
::selection { background: rgba(240, 154, 190, .35); color: white; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }

.site-header { position: relative; z-index: 5; height: 82px; border-bottom: 1px solid var(--line); background: rgba(23, 21, 20, .97); }
.nav-wrap { max-width: 1240px; height: 100%; margin: auto; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.brand__logo { display: block; width: 112px; max-width: 112px; height: 74px; object-fit: contain; }
.footer-brand .brand__logo { width: 150px; max-width: 150px; height: 100px; }
.brand__mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(240,154,190,.7); border-radius: 50%; color: var(--pink); font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a { color: var(--muted); font-size: 13px; transition: color .22s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--pink); }
.site-nav .nav-telegram { display: flex; align-items: center; gap: 9px; color: var(--text); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; }

.hero { min-height: 630px; height: min(78vh, 790px); position: relative; overflow: hidden; display: flex; align-items: center; background: radial-gradient(ellipse at 78% 42%, rgba(144, 91, 78, .13), transparent 34%), linear-gradient(112deg, #171514 8%, #201b19 58%, #29211e 100%); }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: 9%; top: 50%; transform: translateY(-50%); border: 1px solid rgba(240,154,190,.18); border-radius: 50%; box-shadow: 0 0 0 40px rgba(240,154,190,.025), 0 0 0 100px rgba(240,154,190,.018), inset 0 0 100px rgba(202,132,185,.05); }
.hero::after { content: "✳"; position: absolute; right: 24%; top: 20%; color: rgba(242,200,225,.62); font-size: 23px; text-shadow: 0 0 25px rgba(255,182,220,.7); }
.hero__grain { position: absolute; inset: 0; opacity: .17; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.5) .65px, transparent .65px); background-size: 6px 6px; mask-image: linear-gradient(90deg, transparent, black); }
.hero__content { position: relative; z-index: 1; width: min(1240px, 100%); margin: 0 auto; padding: 0 34px; }
.eyebrow { margin: 0 0 13px; color: var(--pink); font-size: 10px; font-weight: 700; letter-spacing: .21em; line-height: 1.5; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow__line { width: 28px; height: 1px; background: var(--pink); }
.hero h1 { max-width: 700px; margin: 20px 0 19px; font-family: var(--serif); font-size: clamp(68px, 10vw, 132px); font-weight: 500; letter-spacing: -.065em; line-height: .98; }
h1 em, h2 em { color: var(--pink); font-weight: inherit; }
.hero h1 em { color: #e8afcf; }
.hero__lead { margin: 0; color: #c6bdcc; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 35px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 21px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 700; transition: transform .23s ease, background .23s ease, box-shadow .23s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--pink); color: #261622; box-shadow: 0 8px 24px rgba(240,154,190,.16); }
.button--primary:hover { background: #f5adca; box-shadow: 0 12px 30px rgba(240,154,190,.24); }
.button--quiet { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.035); color: var(--text); }
.button--quiet:hover { background: rgba(255,255,255,.09); }
.hero__note { position: absolute; right: 34px; bottom: 46px; display: flex; align-items: center; gap: 12px; color: #c7b4c7; font-size: 10px; letter-spacing: .07em; }
.hero__note span:first-child { color: var(--pink); font-family: var(--serif); font-size: 17px; }
.hero__note-line { width: 34px; height: 1px; background: var(--pink); opacity: .6; }
.hero__scroll { position: absolute; left: 50%; bottom: 37px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; color: var(--pink); font-size: 12px; transform: translateX(-50%); }

.section { max-width: 1240px; margin: 0 auto; padding: 100px 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.section-heading h2, .social-band h2 { margin: 0; font-family: var(--serif); font-size: clamp(34px, 4vw, 49px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; }
.text-link { display: inline-flex; align-items: center; gap: 11px; margin-bottom: 6px; color: var(--pink); font-size: 12px; font-weight: 700; transition: gap .2s ease; }
.text-link:hover { gap: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.game-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #252133, #201d2c); box-shadow: 0 10px 26px rgba(4,3,12,.12); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.game-card:hover { transform: translateY(-6px); border-color: rgba(240,154,190,.35); box-shadow: var(--shadow); }
.game-card__cover { position: relative; aspect-ratio: 1.63 / 1; overflow: hidden; background: #34273b; }
.game-card__cover::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(22,18,31,.55)); pointer-events: none; }
.game-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.game-card:hover .game-card__cover img { transform: scale(1.045); }
.game-card__body { padding: 21px 21px 22px; }
.game-card__kicker { margin: 0 0 7px; color: var(--pink); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.game-card h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.3; }
.game-card__description { min-height: 51px; margin: 0 0 19px; color: var(--muted); font-size: 12px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.game-card__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.download-link { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border-radius: 8px; font-size: 10px; font-weight: 700; transition: filter .2s ease, transform .2s ease; }
.download-link:hover { filter: brightness(1.12); transform: translateY(-1px); }
.download-link--drive { background: #3b79cf; color: #fff; }
.download-link--mega { background: #d34553; color: #fff; }
.loading-state, .error-state { grid-column: 1 / -1; padding: 26px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); text-align: center; }
.error-state { border-color: rgba(236,120,172,.35); color: #f1b1cb; }

.social-band { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 70px max(34px, calc((100vw - 1172px) / 2)); background: linear-gradient(110deg, #211c2d, #282036); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.social-band__copy { flex: 0 0 35%; }
.social-band__copy p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.social-links { display: flex; gap: 13px; }
.social-links--large { flex: 1; }
.social-link { min-height: 67px; flex: 1; display: flex; align-items: center; gap: 13px; padding: 0 17px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); color: var(--text); transition: transform .22s ease, border-color .22s ease, background .22s ease; }
.social-link:hover { transform: translateY(-3px); border-color: rgba(240,154,190,.42); background: rgba(240,154,190,.06); }
.social-link > i:first-child { color: var(--pink); font-size: 21px; }
.social-link span { font-size: 12px; font-weight: 600; }
.social-link__arrow { margin-left: auto; color: var(--faint); font-size: 10px; }
.section--news { padding-top: 95px; padding-bottom: 110px; }
.news-teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.news-teaser { position: relative; min-height: 210px; overflow: hidden; padding: 26px 29px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.news-teaser--accent { background: linear-gradient(135deg, #30243a, #241f32); }
.news-teaser__number { color: var(--pink); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.news-teaser h3 { margin: 12px 0 8px; font-family: var(--serif); font-size: 23px; font-weight: 500; }
.news-teaser p { max-width: 460px; margin: 0 0 17px; color: var(--muted); font-size: 12px; }
.news-teaser a { display: inline-flex; align-items: center; gap: 8px; color: var(--pink); font-size: 11px; font-weight: 700; }

.page-main { min-height: calc(100vh - 82px - 180px); }
.page-intro { padding: 92px 24px 62px; text-align: center; background: radial-gradient(ellipse at 50% 0, rgba(151,92,145,.17), transparent 63%); }
.page-intro h1 { margin: 9px 0 13px; font-family: var(--serif); font-size: clamp(46px, 7vw, 76px); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.page-intro > p:last-child { max-width: 570px; margin: 0 auto; color: var(--muted); font-size: 14px; }
.games-page, .social-page { padding-top: 12px; padding-bottom: 110px; }
.games-page .card-grid { row-gap: 25px; }
.news-page { padding-top: 10px; padding-bottom: 100px; }
.telegram-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 20px; }
.telegram-card { min-height: 190px; padding: 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; color: #292435; }
.telegram-card iframe { max-width: 100%; }
.telegram-fallback { margin: 0; color: #736a79; font-size: 11px; }
.telegram-card:has(iframe) .telegram-fallback { display: none; }
.news-cta { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 35px; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
.news-cta > i { color: var(--pink); font-size: 28px; }
.news-cta p { margin: 0; color: var(--muted); font-size: 13px; }
.news-cta .button { min-height: 41px; margin-left: 10px; font-size: 10px; }
.social-page { padding-top: 8px; padding-bottom: 58px; }
.section-heading--center { justify-content: center; text-align: center; }
.social-page .social-links { max-width: 820px; margin: auto; }

.site-footer { border-top: 1px solid var(--line); background: #14121d; }
.footer-inner { max-width: 1240px; min-height: 125px; margin: auto; padding: 27px 34px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .brand { font-size: 11px; }
.footer-brand small { color: var(--faint); font-size: 10px; }
.footer-socials { display: flex; align-items: center; gap: 17px; }
.footer-socials a { color: var(--muted); font-size: 16px; transition: color .2s ease; }
.footer-socials a:hover { color: var(--pink); }
.footer-copy { color: var(--faint); font-size: 10px; }

@media (max-width: 900px) {
  .hero::before { right: -18%; width: 520px; height: 520px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-band { align-items: flex-start; flex-direction: column; gap: 25px; }
  .social-band__copy { flex-basis: auto; }
  .social-links--large { width: 100%; }
}
@media (max-width: 767px) {
  .site-header { height: 70px; }
  .nav-wrap { padding: 0 21px; }
  .brand__logo { width: 100px; max-width: 100px; height: 66px; }
  .footer-brand .brand__logo { width: 150px; max-width: 150px; height: 100px; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav { position: absolute; top: 69px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 7px 21px 17px; border-bottom: 1px solid var(--line); background: #1b1827; box-shadow: 0 20px 30px rgba(0,0,0,.24); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
  .site-nav .nav-telegram { border-bottom: 0; }
  .hero { min-height: 600px; height: calc(86svh - 70px); max-height: 760px; }
  .hero__content { padding: 0 23px; }
  .hero::before { right: -55%; top: 42%; width: 460px; height: 460px; }
  .hero::after { right: 18%; top: 19%; }
  .hero h1 { font-size: clamp(62px, 14vw, 98px); }
  .hero__note { right: 22px; bottom: 25px; max-width: 200px; font-size: 8px; }
  .hero__scroll { display: none; }
  .section { padding: 75px 22px; }
  .section-heading { align-items: start; }
  .section-heading h2, .social-band h2 { font-size: 36px; }
  .social-band { padding: 55px 22px; }
  .section--news { padding-top: 70px; padding-bottom: 78px; }
  .page-intro { padding: 74px 22px 45px; }
  .page-main { min-height: calc(100vh - 70px - 180px); }
  .games-page, .social-page { padding-bottom: 75px; }
  .news-page { padding-top: 0; }
  .telegram-grid { grid-template-columns: 1fr; }
  .news-cta { flex-wrap: wrap; text-align: center; }
  .news-cta .button { margin-left: 0; }
  .footer-inner { padding: 25px 22px; }
}
@media (max-width: 479px) {
  body { font-size: 15px; }
  .hero { min-height: 570px; }
  .hero__lead { font-size: 15px; }
  .hero__actions { align-items: flex-start; flex-direction: column; margin-top: 29px; }
  .button { min-height: 45px; }
  .hero__note { left: 23px; right: auto; }
  .desktop-only { display: none; }
  .section { padding: 63px 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 25px; }
  .section-heading h2, .social-band h2 { font-size: 32px; }
  .card-grid { grid-template-columns: 1fr; gap: 15px; }
  .card-grid--home .game-card:nth-of-type(n+4) { display: none; }
  .game-card__body { padding: 18px; }
  .news-teasers { grid-template-columns: 1fr; gap: 13px; }
  .news-teaser { min-height: 190px; padding: 22px; }
  .social-links--large { flex-direction: column; gap: 9px; }
  .social-link { min-height: 58px; }
  .page-intro { padding: 62px 18px 35px; }
  .page-intro h1 { font-size: 45px; }
  .page-intro > p:last-child { font-size: 12px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
  .footer-socials { gap: 21px; }
}
.telegram-news-card { max-width: 720px; margin: 0 auto; padding: 56px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #211e1c, #1c1918); text-align: center; }
.telegram-news-card__icon { width: 64px; height: 64px; display: grid; place-items: center; margin: 0 auto 24px; border: 1px solid rgba(212,138,125,.28); border-radius: 50%; color: var(--pink); font-size: 29px; }
.telegram-news-card h2 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); font-weight: 500; }
.telegram-news-card__description { max-width: 490px; margin: 0 auto 24px; color: var(--muted); font-size: 13px; }
@media (max-width: 479px) {
  .telegram-news-card { padding: 40px 20px; }
}

/* Главная: короткое представление студии слева и крупный логотип справа. */
.home-page #site-footer { display: none; }
.home-main, .home-hero { min-height: calc(100svh - 82px); }
.home-hero { display: flex; align-items: center; overflow: hidden; padding: 34px; background: radial-gradient(ellipse at 76% 48%, rgba(144,91,78,.11), transparent 38%), var(--bg); }
.home-hero__layout { width: min(1240px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 76px); }
.home-hero__copy { position: relative; z-index: 1; }
.home-hero__copy h1 { margin: 18px 0; font-family: var(--serif); font-size: clamp(56px, 7vw, 88px); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
.home-hero__copy h1 em { color: #d7a195; }
.home-hero__lead { max-width: 440px; margin: 0; color: var(--muted); font-size: clamp(15px, 1.6vw, 19px); line-height: 1.8; }
.home-hero__logo { display: block; justify-self: end; width: min(560px, 100%); max-height: calc(100svh - 145px); object-fit: contain; filter: drop-shadow(0 16px 40px rgba(0,0,0,.2)); }
@media (max-width: 767px) {
  .home-main, .home-hero { min-height: calc(100svh - 70px); }
  .home-hero { padding: 48px 22px; }
  .home-hero__layout { max-width: 560px; grid-template-columns: 1fr; gap: 22px; }
  .home-hero__copy { text-align: center; }
  .home-hero__copy .eyebrow { justify-content: center; }
  .home-hero__copy h1 { margin: 12px 0; font-size: clamp(47px, 11vw, 68px); }
  .home-hero__lead { margin: auto; }
  .home-hero__copy .hero__actions { justify-content: center; margin-top: 22px; }
  .home-hero__logo { justify-self: center; width: min(420px, 80vw); max-height: 42svh; }
}
