/* Reference restoration v1.1.
   Decorative illustrations are extracted from the supplied mockups.
   Text, layout, controls, links and forms remain semantic HTML.
   Loaded after styles.css; no remote requests, fonts or frameworks. */
:root {
  --container: 1280px;
  --radius: 16px;
  --border: #264264;
  --border-soft: #142c43;
  --surface: #071522;
  --surface-soft: #08172a;
  --card-top: #09192b;
  --card-end: #04111d;
  --primary: #9b91ff;
  --button-start: #6252ff;
  --button-end: #4331f7;
}
:root[data-theme="light"] {
  --border: #bdcce1; --border-soft: #d9e2f1;
  --surface: #fff; --surface-soft: #eef2fc;
  --card-top: #fff; --card-end: #f4f7ff;
  --primary: #583bcb;
}
body { overflow-wrap: break-word; }
.container { width: min(var(--container), calc(100% - 80px)); }
.site-header { width: min(1440px, calc(100% - 32px)); padding: 12px 28px; min-height: 78px; background: linear-gradient(110deg, #051423eb, #0b1832eb); }
:root[data-theme="light"] .site-header { background: #ffffffed; }
.brand { gap: 8px; }
.brand-mark { width: 55px; height: 47px; flex-shrink: 0; object-fit: contain; }
.brand-name { display: inline; font-size: 28px; font-weight: 650; letter-spacing: -.025em; white-space: nowrap; }
.brand-api { font-size: .82em; font-weight: 450; letter-spacing: -.02em; }
.site-nav { gap: clamp(16px, 1.8vw, 28px); }
.site-nav a { font-size: 14px; }
.site-nav a[aria-current="page"]::after { bottom: -9px; background: #7462ff; box-shadow: 0 0 12px #7656ff66; }
.header-tools { margin-left: auto; }
.button.primary { border-color: #8581ff; box-shadow: inset 0 1px 0 #b6aaff40, 0 7px 26px #4331f729; }
.button.primary:hover { box-shadow: inset 0 1px 0 #d4cfff55, 0 9px 32px #5743ff55; }
.gradient-text { background: linear-gradient(110deg,#678aff,#7767ff 50%,#9470ff); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero { grid-template-columns: 1.22fr 1fr; gap: 0; padding: 36px 0 30px; min-height: 650px; }
.hero-copy { min-width: 0; }
.hero-copy h1 { font-size: clamp(48px, 5.3vw, 78px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; text-wrap: initial; }
body[data-page="index"] .hero-copy h1 { width: 130%; max-width: 860px; position: relative; z-index: 2; }
.hero-title-line { display: block; }
.hero-copy > p { font-size: clamp(18px, 1.6vw, 22px); max-width: 620px; line-height: 1.48; margin-top: 28px; }
.eyebrow { font-size: 13px; padding: 9px 15px; border-color: #26436d; border-radius: 10px; margin-bottom: 24px; }
.hero-features { grid-template-columns: repeat(2, max-content); gap: 20px 38px; margin-top: 30px; font-size: 15px; }
.hero-features .icon { width: 40px; height: 40px; padding: 9px; color: #080c25; border: 1px solid #8b7aff; background: linear-gradient(130deg,#a49bff,#6355ff 75%); box-shadow: 0 0 25px #6958ff16; }
.hero-copy .actions { margin-top: 32px; }
.hero .actions .button { min-height: 56px; padding: 14px 26px; font-size: 16px; border-radius: 11px; }
.reference-scene { isolation: isolate; position: relative; overflow: visible; height: 630px; width: 100%; margin: 0; pointer-events: none; }
.reference-art, .reference-art img { position: relative; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; z-index: 1; }
.reference-art { overflow: visible; }
.reference-scene .scene-glow { inset: 8% -2% 10%; background: radial-gradient(ellipse at 56% 47%,#2338d435, transparent 70%); }
.reference-home { width: 103%; margin-left: 0; }
.hero.small { grid-template-columns: 1.15fr 1fr; min-height: 390px; gap: 28px; padding: 30px 0 36px; }
.hero.small h1 { font-size: clamp(42px, 4.5vw, 64px); }
.hero.small .reference-scene { height: 360px; width: 108%; margin-left: -4%; }
.hero.small .hero-copy > p { font-size: 20px; }
.home-market-section { padding: 36px 0 22px; border-top: 1px solid var(--border-soft); }
.section-header.center { margin-bottom: 26px; }
.section-header.center h2 { font-size: clamp(27px, 3vw, 40px); }
.section-header.center p { font-size: 17px; line-height: 1.6; }
.market-card:not(.large) { align-items: center; text-align: center; padding: 23px 20px 20px; }
.market-card h3 { margin: 14px 0 12px; font-size: 23px; }
.market-logo { width: 70px; height: 70px; border-radius: 19px; font-size: 48px; background: linear-gradient(145deg,#04b96e,#009147); box-shadow: inset 0 1px #a3ffc85a, 0 8px 24px #00b46012; }
.market-logo.plati { background: linear-gradient(145deg,#ff8543,#f25920); }
.market-logo.funpay { background: linear-gradient(145deg,#1e87ff,#164fee); }
.market-logo.other { color: #eef1ff; background: linear-gradient(145deg,#33455e,#182536); }
.market-card .check-list { width: 100%; font-size: 13px; text-align: left; gap: 9px; margin: 4px 0 22px; }
.market-card .check-list .icon { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 3px; }
.market-card .button { min-height: 48px; width: 100%; padding: 11px 12px; font-size: 13px; }
.market-card.pending { opacity: 1; }
.market-card.pending .button { opacity: .62; cursor: not-allowed; }
.market-card.large { padding: 28px; }
.market-card.large .market-heading h3 { margin: 0; }
.market-card.large .check-list { margin: 22px 0 24px; font-size: 15px; }
.market-card.large .market-intro { max-width: 470px; font-size: 15px; }
.market-card.large .button { width: auto; align-self: flex-start; padding-inline: 26px; }
.benefit-strip { padding-block: 26px; margin-bottom: 26px; }
.benefit { gap: 16px; padding-inline: 22px; }
.benefit > .icon { width: 35px; height: 35px; flex: 0 0 35px; }
.benefit strong { font-size: 14px; }
.benefit p { font-size: 13px; }
.model-card .model-head h2 { color: #8993ff; font-size: clamp(21px, 2vw, 29px); }
.model-card:nth-child(2) .model-head h2 { color: #b786ff; }
.model-head .icon-tile { width: 86px; height: 88px; flex-shrink: 0; border-radius: 20px; }
.model-head .icon-tile .icon { width: 46px; height: 46px; }
.icon-tile.blue { background: radial-gradient(ellipse at center,#135eee90,#0c1a4155); box-shadow: inset 0 0 25px #3446ff22,0 0 25px #3a4ef81a; }
.model-detail { margin-top: 24px; }
.docs-sidebar-note .reference-scene { width: 100%; height: 190px; overflow: hidden; }
.docs-sidebar-note .reference-art { width: 150%; margin-left: -31%; object-fit: contain; }
.site-footer { margin-top: 18px; background: linear-gradient(90deg,#041421,#040e1c); }
:root[data-theme="light"] .site-footer { background: #eef2fc; }
body[data-page="index"] .mountains { height: 0; margin-top: 0; }
.footer-grid { grid-template-columns: 1.15fr .78fr .95fr 1.35fr; gap: 30px; padding: 30px 0 25px; align-items: start; }
.footer-intro .brand-mark { width: 42px; height: 37px; }
.footer-intro .brand-name { font-size: 23px; }
.footer-intro p { margin-top: 12px; }
.footer-links a { min-height: 26px; }
.reference-footer-note { position: relative; min-height: 142px; display: flex; align-items: center; overflow: hidden; padding: 20px; border-radius: 14px; background: radial-gradient(ellipse at 100% 50%,#16279a50, transparent 78%); }
.reference-footer-note > div { position: relative; z-index: 1; }
.reference-footer-note strong { font-size: 18px; line-height: 1.4; }
.reference-footer-note p { font-size: 13px; }
.footer-whale { width: 82px; height: 70px; margin-left: auto; transform: rotate(-12deg); opacity: .95; filter: drop-shadow(0 0 16px #6555ff60); }
.footer-bottom { padding-block: 20px; font-size: 11px; }
@media (min-width: 961px) and (max-width: 1180px) {
  .site-header { gap: 16px; padding-inline: 20px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12px; }
  .brand-name { font-size: 24px; }
  .brand-mark { width: 48px; height: 40px; }
  .header-check { font-size: 11px; padding-inline: 12px; }
  .hero { min-height: 590px; }
  .reference-scene { height: 570px; }
  .hero-features { gap: 18px 25px; font-size: 13px; }
  .hero .actions .button { font-size: 14px; padding-inline: 19px; }
  .market-card h3 { font-size: 20px; }
  .market-card:not(.large) { padding-inline: 16px; }
  .market-card .check-list { font-size: 12px; }
  .benefit { padding-inline: 16px; }
}
@media (max-width: 960px) {
  .container { width: calc(100% - 48px); }
  .site-header { width: calc(100% - 24px); padding-inline: 18px; gap: 16px; }
  .hero { min-height: 530px; }
  .reference-scene { height: 500px; overflow: hidden; }
  .hero-copy h1 { font-size: clamp(40px,5.6vw,58px); }
  body[data-page="index"] .hero-copy h1 { width: 100%; max-width: 100%; }
  .hero-copy > p { font-size: 17px; }
  .hero-features { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px 14px; font-size: 12px; width: 100%; }
  .hero-features .icon { width: 32px; height: 32px; padding: 7px; flex-shrink: 0; }
  .hero .actions .button { font-size: 13px; padding-inline: 18px; min-height: 48px; }
  .hero.small { gap: 12px; }
  .hero.small h1 { font-size: 43px; }
  .hero.small .hero-copy > p { font-size: 17px; }
  .hero.small .reference-scene { height: 300px; width: 104%; margin-left: -2%; }
  .model-head .icon-tile { width: 62px; height: 65px; }
  .model-head .icon-tile .icon { width: 38px; height: 38px; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .reference-footer-note { grid-column: 1/-1; }
  .market-card .check-list { font-size: 15px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 36px); }
  .site-header { top: 8px; margin-top: 8px; padding: 9px 11px; min-height: 66px; }
  .brand { gap: 4px; }
  .brand-mark { width: 42px; height: 36px; }
  .brand-name { font-size: 22px; }
  .site-nav { gap: 2px; }
  .site-nav a { font-size: 15px; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .hero, .hero.small { min-height: 0; grid-template-columns: minmax(0,1fr); gap: 0; padding: 34px 0 16px; }
  .hero-copy h1, .hero.small .hero-copy h1 { font-size: clamp(36px,8.9vw,55px); line-height: 1.1; }
  body[data-page="index"] .hero-copy h1 { width: 100%; max-width: 100%; }
  .hero-title-line { display: block; }
  .hero-title-line:last-child { max-width: 100%; }
  .hero-copy > p, .hero.small .hero-copy > p { font-size: 16px; max-width: 100%; line-height: 1.55; margin-top: 20px; }
  .eyebrow { font-size: 11px; padding: 8px 11px; margin-bottom: 22px; }
  .hero-features { width: 100%; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 10px; font-size: 12px; margin-top: 22px; }
  .hero-features .icon { width: 33px; height: 33px; }
  .hero-copy .actions { gap: 10px; margin-top: 26px; }
  .hero .actions .button { flex: 1; font-size: 12px; padding-inline: 13px; min-height: 49px; }
  .reference-scene, .reference-home { height: 360px; width: 100%; max-width: 470px; margin: 12px auto -3px; overflow: hidden; }
  .reference-home .reference-art, .reference-home .reference-art img { object-fit: contain; width: 100%; }
  .hero.small .reference-scene { height: 245px; width: 100%; margin: 12px auto 0; }
  .home-market-section { padding: 26px 0 20px; }
  .section-header.center p { font-size: 15px; }
  .market-card:not(.large) { padding: 24px; }
  .market-card h3 { font-size: 23px; }
  .market-card .check-list { max-width: 295px; font-size: 14px; margin-bottom: 20px; }
  .market-card .button { max-width: 340px; }
  .market-card.large { padding: 24px; }
  .market-card.large .market-heading h3 { font-size: 22px; }
  .market-card.large .check-list { font-size: 14px; }
  .benefit-strip { margin-bottom: 16px; padding-block: 4px; }
  .benefit { padding: 18px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-intro { grid-column: 1/-1; }
  .reference-footer-note { grid-column: 1/-1; min-height: 134px; }
  .footer-whale { width: 80px; height: 70px; }
  .footer-bottom { gap: 12px; font-size: 11px; }
  .model-card .model-head h2 { font-size: clamp(18px,5.5vw,24px); }
  .model-head .icon-tile { width: 58px; height: 64px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 28px); }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 36px; height: 32px; }
  .header-tools { gap: 4px; }
  .hero-copy h1, .hero.small .hero-copy h1 { font-size: 35px; }
  .hero .actions { flex-direction: column; }
  .hero .actions .button { width: 100%; }
  .hero-features { font-size: 11px; gap: 13px 5px; }
  .reference-home { height: 325px; }
  .market-card.large .market-heading { gap: 14px; }
  .model-card .model-head h2 { font-size: 18px; }
}
@media (forced-colors: active) {
  .reference-scene, .footer-whale { display: none; }
  .gradient-text { background: none; -webkit-text-fill-color: currentColor; }
}
@media print {
  .reference-scene { display: none; }
  .site-footer { background: none; }
}
/* Preserve supplied marketplace artwork; no replacement letter-icons. */
.market-logo, .market-logo.plati, .market-logo.funpay, .market-logo.other { background: transparent; border: none; box-shadow: none; }
.market-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 16px; }
/* Separate paint box avoids stale gradient glyphs after a viewport resize. */
.hero-copy h1 .gradient-text { display: inline-block; font-size: inherit; }

/* v1.2: keep six navigation links readable before the existing 960px mobile breakpoint. */
@media (min-width: 961px) and (max-width: 1120px) {
  .site-header { gap: 12px; padding-inline: 16px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 12px; }
  .header-check { display: none; }
}
/* Короткие страницы (например, «страница не найдена»): подвал прижат к низу окна,
   иначе при высоком окне он висит в середине и кажется оторванным от содержания. */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > .site-footer { margin-top: auto; }
