@font-face {
  font-family: Outfit;
  src: url("/assets/Outfit-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #162326;
  --header: #142023;
  --surface: #1d2e32;
  --raised: #233a3d;
  --border: #365055;
  --line: #2c4246;
  --text: #ecf6f4;
  --muted: #acc0c0;
  --soft: #98aeaf;
  --accent: #68e4d2;
  --accent-hover: #98f2e2;
  --ink: #112526;
  --header-height: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 400 1rem / 1.55 Outfit, Arial, sans-serif;
}
main { flex: 1; }
a { color: inherit; }
img { max-width: 100%; }
input, button { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 450; }
h1, h2 { letter-spacing: -.045em; line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.1vw, 2.65rem); }
h3 { letter-spacing: -.015em; line-height: 1.25; }
p { color: var(--muted); }
code {
  padding: .1em .35em;
  border-radius: .28em;
  background: #203538;
  color: #d4f6ef;
  font: .86em / 1.6 ui-monospace, monospace;
  overflow-wrap: anywhere;
}
.skip { position: fixed; z-index: 10; top: .8rem; left: .8rem; padding: .7rem 1rem; background: var(--ink); border-radius: .5rem; transform: translateY(-180%); }
.skip:focus { transform: none; }
.container { width: min(100% - 48px, 1096px); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  height: var(--header-height);
  border-bottom: 1px solid var(--line);
  background: rgba(20, 32, 35, .96);
  backdrop-filter: blur(14px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  width: min(100% - 48px, 1152px);
  height: 100%;
  margin-inline: auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  text-decoration: none;
  font-size: 2.1rem;
  font-weight: 520;
  line-height: 1;
  letter-spacing: -.075em;
}
.brand img { flex: none; object-fit: contain; transform: scale(1.37); }
.brand picture { display: flex; }
.brand:has(picture) img { transform: none; }
.brand:hover { opacity: .8; }
.brand, .header-search, .desktop-nav a { transition: opacity .2s ease, color .18s ease, border-color .2s ease, background .2s ease; }
.header-search, .room-form input {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}
.header-search { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px; border-radius: 999px; }
.header-search:focus-within { border-color: var(--accent); background: var(--raised); }
.header-search input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; outline: none; color: var(--text); font-size: .875rem; }
.search-suggestions {
  position: absolute;
  z-index: 1;
  top: calc(100% + 9px);
  left: 0;
  width: min(100%, 480px);
  max-height: min(60vh, 440px);
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: 0 18px 42px #0b151899;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top left;
  transition: opacity .2s ease, transform .23s cubic-bezier(.2,.8,.2,1), visibility .2s ease;
}
.search-suggestions.is-open { opacity: 1; visibility: visible; transform: none; }
.search-suggestions p { padding: 7px 10px; font-size: .85rem; }
.search-suggestions a { display: flex; flex-direction: column; min-height: 50px; justify-content: center; padding: 6px 10px; border-radius: 9px; text-decoration: none; transition: background .16s ease; }
.search-suggestions a:is(:hover,:focus-visible) { background: var(--raised); }
.search-suggestions a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggestions small { color: var(--muted); }
input::placeholder { color: var(--muted); opacity: 1; }
.desktop-nav { display: flex; align-items: stretch; gap: 24px; height: 100%; }
.desktop-nav a { position: relative; display: flex; align-items: center; color: var(--muted); font-size: .875rem; white-space: nowrap; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav [aria-current] { color: var(--text); }
.desktop-nav a::after { position: absolute; right: 0; bottom: 19px; left: 0; height: 1px; background: var(--accent); content: ""; opacity: 0; transform: scaleX(.15); transition: opacity .18s ease, transform .24s cubic-bezier(.2,.7,.25,1); }
.desktop-nav a:is(:hover,:focus-visible)::after { opacity: .8; transform: scaleX(.68); }
.desktop-nav a[aria-current]::after { opacity: 1; transform: scaleX(1); }
.mobile-menu { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: color .18s, background .18s, border-color .18s, transform .18s;
}
.primary { background: var(--accent); color: var(--ink); }
.primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.secondary { background: var(--surface); border-color: var(--line); }
.secondary:hover { background: var(--raised); border-color: var(--border); }
.header-button { min-height: 42px; padding-inline: 15px; background: var(--text); color: var(--ink); white-space: nowrap; font-size: .875rem; }
.header-button:hover { background: var(--accent-hover); }
.icon { flex: none; display: inline-grid; place-items: center; line-height: 1; }
.icon-search { width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; font-size: 0; color: var(--muted); }
.icon-search::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: currentColor; right: -4px; bottom: -2px; transform: rotate(45deg); border-radius: 4px; }
.telegram-icon { width: 16px; height: 16px; border-radius: 50%; color: var(--accent); background: var(--ink); font-size: .66rem; transform: rotate(-26deg); transition: transform .28s cubic-bezier(.22,1,.36,1); }
.button:is(:hover,:focus-visible) .telegram-icon { transform: translate(2px,-1px) rotate(-26deg); }
.header-button .telegram-icon { color: var(--text); }

.hero { width: min(100% - 48px, 920px); margin: 0 auto; padding: 122px 0 90px; text-align: center; }
.hero h1 { font-size: clamp(2.1rem, 6vw, 4.25rem); font-weight: 400; line-height: 1.12; }
.heading-first { display: block; }
.heading-last { display: flex; align-items: baseline; justify-content: center; gap: .22em; width: fit-content; margin: .12em auto 0; transform: translateX(var(--hero-offset,0px)); }
.mobile-into { display: none; }
.hero-intro { display: inline-block; transform-origin: center bottom; }
.word-frame { position: relative; display: grid; padding-bottom: .18em; }
.word { display: inline-flex; grid-area: 1/1; justify-self: start; visibility: hidden; }
.word:is([data-state=current],[data-state=in],[data-state=out]) { visibility: visible; }
.word-underline {
  position: absolute;
  bottom: 0;
  left: var(--underline-offset,0px);
  width: var(--underline-width,calc(100% - .17em));
  height: 3px;
  overflow: hidden;
  border-radius: 4px;
  background: #5a8f91;
}
.word-underline::after { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 40%, #81ffec 46%, #3ac4da 50%, #a8f7df 55%, transparent 60%) 100% 50% / 400% 100% no-repeat; content: ""; }
.hero-lede { margin: 26px 0 0; color: var(--text); font-size: 1rem; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 31px; }
.hero-buttons .button { min-height: 54px; padding-inline: 25px; }
.hero-note { margin-top: 14px; color: var(--soft); font-size: .875rem; }

.section { padding-block: 80px; }
.section + .section { border-top: 1px solid var(--line); }
.intro { display: grid; grid-template-columns: minmax(0, 362px) minmax(0, 1fr); gap: 90px; }
.steps { display: grid; align-self: start; padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps h3 { font-size: 1.05rem; }
.steps p { margin-top: 8px; font-size: .95rem; }
.step-number { color: var(--soft); font-size: .85rem; font-weight: 500; line-height: 1.5; font-variant-numeric: tabular-nums; }
.action-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.action-card { padding: 28px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); transition: background .18s; }
.action-card:hover { background: var(--raised); }
.action-card > .icon { position: relative; height: 30px; margin-bottom: 26px; color: var(--accent); font-size: 1.85rem; }
.action-card > .icon-notify { width: 20px; height: 19px; margin: 5px 0 32px 4px; border: 2px solid currentColor; border-radius: 10px 10px 3px 3px; font-size: 0; }
.action-card > .icon-notify::after { position: absolute; bottom: -6px; left: 6px; width: 5px; height: 2px; border-radius: 99px; background: currentColor; content: ""; }
.action-card h3, .guide-grid h2 { font-size: 1.3rem; }
.action-card p { max-width: 34ch; margin-top: 10px; font-size: .95rem; }
.center-action { display: flex; justify-content: center; margin-top: 28px; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: 76px; }
.split h2 { max-width: 17ch; }
.split p { max-width: 39ch; margin-top: 17px; }
.split .button { margin-top: 23px; }
.flow { width: 100%; max-width: 482px; justify-self: end; min-width: 0; padding: 26px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); }
.flow-header, .flow-brand, .flow-telegram { display: flex; align-items: center; gap: 8px; }
.flow-header { justify-content: space-between; }
.flow-brand { font-size: 1.33rem; font-weight: 500; letter-spacing: -.05em; }
.flow-telegram { color: var(--muted); font-size: .875rem; }
.chat-row { display: flex; justify-content: end; margin-top: 30px; }
.chat-bubble { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 16px 16px 5px 16px; background: var(--raised); }
.chat-bubble code { padding: 0; background: none; color: var(--text); }
.chat-bubble code span { color: var(--accent); }
.chat-bubble .icon { color: var(--accent); }
.flow-steps { display: grid; gap: 23px; padding: 0; margin: 27px 0; list-style: none; }
.flow-steps li, .flow-file { display: flex; align-items: center; gap: 13px; }
.flow-steps li > .icon { width: 33px; height: 33px; color: var(--accent); border-radius: 50%; border: 1px solid var(--border); }
.flow-steps strong, .flow-file strong { display: block; font-size: .95rem; font-weight: 500; line-height: 1.3; }
.flow-steps li div span, .flow-file div span { display: block; color: var(--muted); font-size: .875rem; }
.flow-file { padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: var(--raised); }
.flow-file > .icon:first-child { width: 42px; height: 44px; color: var(--accent); border: 1px solid var(--border); border-radius: 9px; font-size: 1.3rem; }
.file-check { margin-left: auto; color: var(--accent); }
.flow figcaption { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px; color: var(--muted); font-size: .875rem; }
.flow figcaption span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-heading a, .text-link, .prose a:not(.button) { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .24em; }
.archive p { margin-top: 12px; }
.faq-section { align-items: start; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; position: relative; align-items: center; justify-content: space-between; gap: 18px; min-height: 65px; padding-block: 15px; list-style: none; cursor: pointer; }
.accordion summary::-webkit-details-marker, .mobile-menu summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--accent); }
.accordion summary span { position: relative; width: 14px; height: 14px; flex: none; color: var(--accent); }
.accordion summary span::before, .accordion summary span::after { position: absolute; top: 6px; width: 14px; height: 1px; background: currentColor; content: ""; }
.accordion summary span::after { transform: rotate(90deg); }
.accordion summary span { transition: transform .28s cubic-bezier(.22,1,.36,1); }
.accordion details[open]:not(.faq-closing) summary span { transform: rotate(45deg); }
.accordion details.faq-animating { overflow: hidden; }
.accordion p { max-width: none; padding: 0 24px 18px 0; margin: 0; font-size: .95rem; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .site-header { view-transition-name: recbigo-header; }
  #main-content { view-transition-name: recbigo-content; }
  ::view-transition { pointer-events: none; }
  ::view-transition-group(*) { animation-duration: .22s; }
  ::view-transition-group(recbigo-header) { z-index: 2; }
  ::view-transition-old(root), ::view-transition-old(recbigo-header), ::view-transition-old(recbigo-content) { display: none; }
  ::view-transition-new(root), ::view-transition-new(recbigo-header) { animation: none; }
  ::view-transition-new(recbigo-content), .page-enter { animation: page-in .22s cubic-bezier(.2,.7,.25,1) both; }
  :active-view-transition .page-enter { animation: none; }

  .hero h1 { perspective: 1200px; }
  .hero-intro[data-order] { animation: hero-in 700ms cubic-bezier(.2,.7,.25,1) both; animation-delay: calc(120ms + var(--entrance-delay,0ms)); }
  .heading-last, .word-underline { transition: transform .4s ease-in-out, width .4s ease-in-out, left .4s ease-in-out; }
  .word[data-state=in] > span { animation: letter-in .4s cubic-bezier(.2,.75,.2,1) var(--letter-in-delay) both; }
  .word[data-state=out] > span { animation: letter-out .2s cubic-bezier(.4,0,.7,.2) var(--letter-out-delay) both; }
  .word-underline[data-shimmer=true]::after { animation: word-sweep 2.2s linear .3s both; }
  .hero :is(.hero-lede,.hero-buttons,.hero-note) { animation: section-in .7s cubic-bezier(.2,.7,.25,1) both; }
  .hero .hero-lede { animation-delay: .6s; }
  .hero .hero-buttons { animation-delay: .74s; }
  .hero .hero-note { animation-delay: .82s; }
  .home-page > .intro { animation: section-in .8s cubic-bezier(.2,.7,.25,1) .9s both; }
  [data-reveal] {
    transition-property: opacity, transform, background-color;
    transition-duration: .65s, .65s, .24s;
    transition-timing-function: cubic-bezier(.2,.7,.25,1), cubic-bezier(.2,.7,.25,1), ease;
    transition-delay: var(--reveal-delay,0ms), var(--reveal-delay,0ms), 0ms;
  }
  [data-reveal=pending]:not(:focus-within) { opacity: 0; transform: translateY(16px); }
  [data-reveal=immediate] { transition: none; }
  .plan-grid dl > [data-reveal] { transition-duration: .42s, .42s, .24s; }
  .plan-grid dl > [data-reveal=pending] { transform: translateY(8px); }
  .mobile-menu[open] nav { animation: section-in .2s cubic-bezier(.2,.7,.25,1) both; }
  .image-pending { opacity: 0; }
  .image-in { animation: image-in .28s ease both; }

}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(45%) rotateX(-40deg); }
  to { opacity: 1; transform: none; }
}
@keyframes letter-in {
  from { opacity: 0; transform: translateY(.24em); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes letter-out {
  from { opacity: 1; transform: none; filter: none; }
  to { opacity: 0; transform: translateY(-.24em); filter: blur(4px); }
}
@keyframes word-sweep { to { background-position: 0% 50%; } }
@keyframes section-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes page-in { from { opacity: .01; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes image-in { from { opacity: 0; } to { opacity: 1; } }

.access { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 441px); gap: 76px; align-items: center; }
.access p { margin-top: 12px; }
.access .text-link { display: inline-block; margin-top: 18px; }
.plan-card { padding: 26px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.plan-card h3 { font-size: 1.35rem; }
.plan-card p { margin-top: 7px; font-size: .95rem; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 15px 0 20px; color: var(--text); font-size: 2.2rem; line-height: 1; letter-spacing: -.05em; }
.price span { color: var(--muted); font-size: .925rem; letter-spacing: 0; }
.plan-card dl { margin: 0 0 20px; border-top: 1px solid var(--border); }
.plan-card dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.plan-card dt { color: var(--muted); }
.plan-card dd { margin: 0; color: var(--text); text-align: right; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 460px); }
.subpage { min-height: 60vh; padding-block: 76px; }
.page-heading { max-width: 690px; margin-bottom: 34px; }
.page-heading h1 { margin: 5px 0 12px; font-size: clamp(2.4rem, 6vw, 4.5rem); overflow-wrap: anywhere; }
.page-heading p { font-size: 1.06rem; }
.page-heading .eyebrow { color: var(--accent); font-size: .875rem; letter-spacing: .095em; text-transform: uppercase; }
.sub-section { margin-top: 42px; padding-bottom: 0; border-top: 1px solid var(--line); }
.guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-grid .text-link { display: inline-block; margin-top: 18px; }
.prose { max-width: 670px; }
.prose h2 { margin: 26px 0 8px; font-size: 1.6rem; }
.prose p + p { margin-top: 13px; }
.prose .button { margin-top: 25px; }
.library-search-panel { padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.room-form label { display: block; margin-bottom: 7px; }
.room-form > div { display: flex; gap: 10px; }
.room-form input { width: 100%; min-width: 0; padding: 11px 14px; border-radius: 10px; background: var(--header); }
#search-results { margin-top: 17px; }
#search-results p + p { margin-top: 8px; }
#search-results a { color: var(--accent); }
.library-empty { padding: 38px 24px; margin-top: 20px; border: 1px solid var(--line); border-radius: 18px; text-align: center; }
.library-empty > .icon { color: var(--accent); font-size: 1.65rem; }
.library-empty h2 { margin: 10px 0 8px; font-size: clamp(1.55rem, 4vw, 2rem); }
.library-empty p { max-width: 48ch; margin: 0 auto 18px; }
.site-footer { border-top: 1px solid var(--line); background: var(--header); }
.footer-main { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; padding: 45px 0 30px; }
.footer-main p { margin-top: 14px; font-size: .95rem; }
.footer-main nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.footer-main nav a { display: block; width: max-content; margin-bottom: 10px; color: var(--muted); text-decoration: none; }
.footer-main nav a:hover { color: var(--accent); }
.footer-bottom { padding: 17px 0 22px; border-top: 1px solid var(--line); color: var(--soft); font-size: .875rem; }

@media (max-width: 950px) {
  .header-inner { gap: 18px; }
  .desktop-nav { gap: 15px; }
  .intro, .split, .access { gap: 46px; }
}
@media (max-width: 760px) {
  :root { --header-height: 69px; }
  .header-inner { grid-template-columns: auto minmax(0, 1fr) auto auto; width: calc(100% - 32px); gap: 10px; }
  .header-search { padding-inline: 12px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { display: grid; place-items: center; width: 38px; height: 42px; list-style: none; cursor: pointer; }
  .mobile-menu nav { position: absolute; top: calc(100% + 7px); right: 16px; display: grid; gap: 2px; width: 200px; padding: 8px; border: 1px solid var(--border); border-radius: 13px; background: var(--header); box-shadow: 0 10px 40px #07101388; }
  .mobile-menu nav a { padding: 9px 12px; border-radius: 6px; text-decoration: none; }
  .mobile-menu nav a:hover { background: var(--surface); }
  .brand { font-size: 1.65rem; }
  .brand img { width: 29px; height: 29px; transform: scale(1.27); }
  .hero { padding: 88px 0 62px; }
  .section { padding-block: 55px; }
  .intro, .split, .access, .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .flow { justify-self: start; }
  .action-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .action-card { padding: 23px; }
}
@media (max-width: 510px) {
  .container, .hero { width: calc(100% - 40px); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto auto; }
  .header-search { display: none; }
  .hero { padding-top: 66px; }
  .hero h1 { font-size: clamp(1.85rem, 8.6vw, 2.7rem); }
  .heading-last { flex-direction: column; align-items: center; gap: 0; margin-top: 0; transform: none; }
  .word { justify-self: center; }
  .desktop-into { display: none; }
  .mobile-into { display: inline; }
  .hero-lede span { display: block; }
  .hero-buttons { gap: 8px; margin-top: 22px; }
  .hero-buttons .button { min-height: 48px; padding-inline: 14px; font-size: .875rem; }
  .hero-note { margin-top: 12px; }
  .steps li { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding-block: 18px; }
  .flow { padding: 20px 16px; }
  .subpage { padding-block: 48px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .image-pending { opacity: 1; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  [data-reveal=pending] { opacity: 1 !important; transform: none !important; }
}
