/* vidjo.app: one stylesheet for every page. Light page, dark phones, glass only on the header. */
:root {
  --paper: #F2F0EB;
  --paper-2: #E8E5DE;
  --ink: #0A1230;
  --ink-2: #454B63;
  --ink-3: #565C73;
  --line: rgba(10, 18, 48, .14);
  --cyan: #46E3FF;
  --pink: #FF4FA8;
  --brand: #0B63FF;
  --max: 1296px;
  --gut: clamp(20px, 4.4vw, 72px);
  --font: "Onest", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; }
.skip:focus { left: 16px; }
.hidden { display: none !important; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.you { background: var(--cyan); }
.dot.friend { background: var(--pink); }

/* ---- header: the one glass element ---- */
.top { position: sticky; top: 12px; z-index: 30; padding: 0 var(--gut); margin-top: 12px; }
.bar { max-width: calc(var(--max) + 32px); margin: 0 auto; height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 22px; border-radius: 30px; background: rgba(255, 255, 255, .58); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px rgba(10, 18, 48, .08);
  -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); }
.right { display: flex; align-items: center; }
.logo { display: flex; align-items: center; height: 44px; }
.logo svg { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 500; }
.nav a { display: flex; align-items: center; height: 44px; padding: 0 15px; text-decoration: none; border-radius: 22px; }
.nav a:hover { background: rgba(10, 18, 48, .06); }
.lang { display: flex; align-items: center; margin-left: 10px; }
.lang a { padding: 0 9px; }
.lang a[aria-current] { font-weight: 700; }
.lang span { color: rgba(10, 18, 48, .35); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; border-radius: 22px; cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 20px; height: 20px; }

/* ---- Telegram banner above the header (main pages only) ---- */
.tg { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 8px var(--gut);
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 70%), linear-gradient(90deg, #229ED9 0%, #1A8BD2 50%, #1779C6 100%);
  color: #fff; text-decoration: none; font-size: 16px; line-height: 1.3; }
.tg::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 24%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .26) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-110%); animation: tg-shine 7s ease-in-out 1.2s infinite; }
@keyframes tg-shine { 0% { transform: translateX(-110%); } 22%, 100% { transform: translateX(520%); } }
.tg-ico { width: 30px; height: 30px; flex: none; }
.tg-text { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tg-text b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.tg-sub { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, .92); }
.tg-sub::before { content: ""; width: 1px; height: 16px; background: rgba(255, 255, 255, .45); }
.tg-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 36px; margin-left: 6px; padding: 0 14px 0 18px; border-radius: 18px; background: #fff; color: #126BAE;
  font-size: 15px; font-weight: 700; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 40, 90, .18); transition: transform .2s; }
.tg-btn svg { width: 16px; height: 16px; }
.tg:hover .tg-btn { transform: translateX(3px); }
.tg:focus-visible { outline: 3px solid #fff; outline-offset: -6px; border-radius: 0; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 72px) 0 0; margin-top: -72px; padding-top: calc(72px + clamp(28px, 6vw, 72px)); }
.bg { position: absolute; inset: -60px; z-index: -2; pointer-events: none; animation: drift 48s ease-in-out infinite alternate; }
.bg img { position: absolute; border-radius: 22px; }
.bg .b1 { left: 43%; top: 30px; width: 400px; filter: blur(9px); opacity: .85; transform: rotate(-4deg); }
.bg .b2 { left: 83%; top: 30px; width: 360px; filter: blur(7px); opacity: .85; transform: rotate(3deg); }
.bg .b3 { left: 90%; top: 400px; width: 340px; filter: blur(8px); opacity: .8; transform: rotate(-3deg); }
.bg .b4 { left: 87%; top: 600px; width: 330px; filter: blur(9px); opacity: .8; transform: rotate(2deg); }
.veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--paper) 0%, rgba(242, 240, 235, .95) 38%, rgba(242, 240, 235, .34) 62%, rgba(242, 240, 235, .14) 100%),
    linear-gradient(180deg, rgba(242, 240, 235, 0) 70%, var(--paper) 100%); }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-70px, -36px, 0); } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(56px, 8.6vw, 124px); line-height: .94; letter-spacing: -.035em; font-weight: 800; }
.hero h1 span { display: block; white-space: nowrap; }
.hero.invite h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: .98; }
.hero.invite h1 span { white-space: normal; }
.lead { margin-top: 26px; max-width: 32ch; font-size: clamp(17px, 1.55vw, 22px); line-height: 1.45; color: var(--ink-2); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 58px; padding: 0 28px; border-radius: 29px; font-size: 17px; font-weight: 700;
  text-decoration: none; border: 0; cursor: pointer; transition: transform .2s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-main { background: var(--ink); color: #F4F6FB; }
.btn-line { background: transparent; border: 1px solid rgba(10, 18, 48, .32); font-weight: 500; }
.btn-line:hover { background: rgba(10, 18, 48, .05); }
.note { margin-top: 18px; max-width: 46ch; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.code-form { display: flex; gap: 10px; margin-top: 16px; max-width: 440px; }
.code-form input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 26px; border: 1px solid rgba(10, 18, 48, .28); background: rgba(255, 255, 255, .7);
  font: 600 17px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.code-form input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-3); }
.code-form .btn { height: 52px; }
.invite-code { margin-top: 18px; font-size: 14px; color: var(--ink-3); }
.invite-code b { display: block; margin-top: 4px; font-size: 32px; letter-spacing: .18em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---- phones: real screens of the app in a frame ---- */
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 16px; padding: 8px 0 0; }
.shot { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shot.friend { margin-top: 40px; }
.shot figcaption { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.phone { position: relative; width: clamp(200px, 19.5vw, 280px); padding: 9px; border-radius: 46px;
  background: linear-gradient(145deg, #7b8190 0%, #2a2e39 18%, #11131a 50%, #2a2e39 82%, #6d7382 100%);
  box-shadow: 0 0 0 1px rgba(10, 18, 48, .4), inset 0 0 0 1px rgba(255, 255, 255, .22), 0 2px 4px rgba(10, 18, 48, .2),
    0 28px 48px -16px rgba(10, 18, 48, .42), 0 56px 90px -36px rgba(10, 18, 48, .3); }
.phone::before, .phone::after { content: ""; position: absolute; right: -3px; width: 3px; border-radius: 0 2px 2px 0; background: linear-gradient(90deg, #1a1d26, #5d6372); }
.phone::before { top: 21%; height: 8%; }
.phone::after { top: 32%; height: 14%; }
.screen { position: relative; border-radius: 37px; overflow: hidden; background: #000; aspect-ratio: 412 / 892; box-shadow: 0 0 0 6px #05060a; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen.light { background: #F2F5FA; }
.screen.light img { height: auto; object-fit: initial; }
.cam { position: absolute; left: 50%; top: 1.1%; width: 3.6%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #33405f 0%, #06070c 62%); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .07); }
.glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(118deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, .03) 20%, rgba(255, 255, 255, 0) 38%); }
.credit { margin-top: 22px; text-align: center; font-size: 12px; line-height: 1.45; color: var(--ink-3); }

/* ---- facts under the first screen ---- */
.facts { display: grid; grid-template-columns: 1.5fr 1.2fr .9fr; gap: 40px; margin-top: clamp(40px, 6vw, 72px); padding: 20px 0 8px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
.facts small { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ink-3); }
.facts a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.facts a svg { width: 16px; height: 16px; }

/* ---- sections ---- */
.section { padding: clamp(72px, 10vw, 136px) 0 0; }
.section h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; font-weight: 800; max-width: 16ch; }
.intro { margin-top: 18px; max-width: 52ch; font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 48px; padding: 0; list-style: none; }
.steps li { display: flex; flex-direction: column; gap: 22px; }
.steps .phone { width: min(100%, 270px); align-self: center; }
.steps h3 { font-size: 22px; letter-spacing: -.01em; }
.steps h3 em { font-style: normal; color: var(--ink-3); font-weight: 500; margin-right: 8px; }
.steps p { margin-top: 6px; color: var(--ink-2); }

.rows { margin-top: 44px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px 40px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.row h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; letter-spacing: -.01em; }
.row h3 img { width: 40px; height: 40px; border-radius: 50%; }
.row p { color: var(--ink-2); max-width: 58ch; }
.row p small { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-3); }

.rave { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.rave h2 { font-size: clamp(32px, 4.2vw, 56px); max-width: 18ch; }
.rave p { color: var(--ink-2); max-width: 52ch; }

.dl { margin-top: 44px; border-top: 1px solid var(--line); }
.dl-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) auto; gap: 16px 32px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dl-row h3 { font-size: 22px; letter-spacing: -.01em; }
.dl-row p { color: var(--ink-2); font-size: 16px; }
.dl-row .btn { height: 52px; padding: 0 24px; font-size: 16px; }
.dl-row.mine h3::after { content: attr(data-mine); margin-left: 10px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.sub { margin-top: 44px; font-size: 22px; letter-spacing: -.01em; }
.how-apk { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 40px; padding: 0; list-style: none; counter-reset: s; }
.how-apk li { counter-increment: s; color: var(--ink-2); font-size: 16px; }
.how-apk li::before { content: counter(s); display: block; margin-bottom: 6px; font-weight: 800; font-size: 28px; color: var(--ink); }
.inapp { margin: 16px 0 0; padding: 14px 18px; border-radius: 18px; background: #FFF4D8; border: 1px solid #F1D48A; font-size: 15px; color: #4A3A10; }
.inapp a { font-weight: 700; }

.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); margin: -6px 6px 0 0; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq details p { padding: 0 0 22px; max-width: 64ch; color: var(--ink-2); }

/* ---- «Что нового» ---- */
.page { padding: clamp(40px, 7vw, 88px) 0 0; }
.page h1 { font-size: clamp(48px, 7vw, 96px); line-height: .96; letter-spacing: -.035em; font-weight: 800; }
.release { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 12px 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.release:first-of-type { margin-top: 40px; border-top: 1px solid var(--line); }
.release h2 { font-size: 28px; letter-spacing: -.02em; }
.release time { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.release ul { padding-left: 20px; color: var(--ink-2); }
.release li + li { margin-top: 8px; }
.release li b { color: var(--ink); }

/* ---- footer ---- */
.foot { margin-top: clamp(80px, 10vw, 136px); padding: 36px 0 48px; border-top: 1px solid var(--line); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 28px 32px; }
.foot h4 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.foot ul { padding: 0; list-style: none; }
.foot li + li { margin-top: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .fine { margin-top: 28px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }

/* ---- smaller screens ---- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .phones { margin-top: 36px; }
  .veil { background: linear-gradient(180deg, rgba(242, 240, 235, .55) 0%, rgba(242, 240, 235, .93) 18%, rgba(242, 240, 235, .95) 70%, var(--paper) 100%); }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
  .row, .rave, .release { grid-template-columns: 1fr; }
  .dl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .dl-row p { grid-column: 1 / -1; grid-row: 2; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .tg { justify-content: flex-start; gap: 10px; min-height: 52px; }
  .tg-ico { width: 28px; height: 28px; }
  .tg-text b { font-size: 16px; }
  .tg-sub { display: none; }
  .tg-btn { margin-left: auto; height: 34px; padding: 0 12px 0 14px; font-size: 14px; }
  .bar { padding-left: 18px; }
  .nav { display: none; }
  .menu-btn { display: flex; }
  .lang { margin-left: auto; }
  .nav.open { display: flex; position: absolute; left: var(--gut); right: var(--gut); top: 68px; flex-direction: column; align-items: stretch; padding: 8px; border-radius: 24px;
    background: rgba(255, 255, 255, .94); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 20px 40px rgba(10, 18, 48, .14);
    -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); }
  .hero h1 { font-size: clamp(52px, 17vw, 76px); }
  .cta { flex-direction: column; }
  .cta .btn { width: 100%; }
  .phones { gap: 0; }
  .shot.friend { margin-left: -70px; margin-top: 44px; }
  .shot.friend .phone { z-index: 0; }
  .shot.you { z-index: 1; }
  .phone { width: min(52vw, 236px); padding: 7px; border-radius: 38px; }
  .screen { border-radius: 31px; box-shadow: 0 0 0 5px #05060a; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .steps li { grid-template-columns: 1fr; }
  .steps .phone { width: min(64vw, 230px); }
  .how-apk { grid-template-columns: 1fr; }
  .dl-row .btn { width: 100%; }
  .dl-row { grid-template-columns: 1fr; }
  .dl-row p { grid-row: auto; }
  .foot-grid { grid-template-columns: 1fr; }
  .bg img:nth-child(n + 4) { display: none; }
}
@media (max-width: 350px) {
  .tg-btn { padding: 0 12px; }
  .tg-btn svg { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg { animation: none; }
  .btn, .tg-btn { transition: none; }
  .tg::before { animation: none; display: none; }
}
