/* Rosvideo mobile polish — hero, proof, cases and footer */
@media (max-width: 640px) {
  /* Set final dimensions before Tilda's deferred styles and fonts appear */
  html body #allrecords #rec2267109441 .t1047__mainwrapper,
  html body #allrecords #rec2267109441 .t-cover__wrapper {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  html body #allrecords #rec2267109441 .t1047__title,
  html body #allrecords #rec2267109441 .t1047__descr {
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    box-sizing: border-box !important;
  }
  html body #allrecords #rec2267109441 .t1047__title,
  html body #allrecords #rec2267109441 .t1047__title p,
  html body #allrecords #rec2267109441 .t1047__title strong,
  html body #allrecords #rec2267109441 .t1047__title span {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }
  html body #allrecords #rec2267109441 .t1047__title > div > br { display: none !important; }
  html body #allrecords #rec2267109441 .t1047__title p:first-of-type {
    margin: 0 0 16px !important;
    font-size: clamp(40px, 12.3vw, 48px) !important;
    line-height: 1.06 !important;
  }
  html body #allrecords #rec2267109441 .t1047__title p:first-of-type strong {
    display: block !important;
    font-size: inherit !important;
    line-height: inherit !important;
    white-space: nowrap !important;
  }
  html body #allrecords #rec2267109441 .t1047__title p:nth-of-type(2) {
    margin: 0 0 10px !important;
    font-size: clamp(18px, 5.1vw, 20px) !important;
    line-height: 1.3 !important;
  }
  html body #allrecords #rec2267109441 .t1047__title p:nth-of-type(2) span {
    font-size: inherit !important;
    line-height: inherit !important;
  }
  html body #allrecords #rec2267109441 .t1047__title p:last-of-type,
  html body #allrecords #rec2267109441 .t1047__title p:last-of-type * {
    font-size: clamp(20px, 5.6vw, 22px) !important;
    line-height: 1.22 !important;
  }
  html body #allrecords #rec2267109441 .t1047__title p:last-of-type {
    min-height: 2.45em !important;
    margin: 0 !important;
  }
  html body #allrecords #rec2267109441 .t1047__descr {
    margin: 18px 0 24px !important;
    padding: 5px 0 5px 14px !important;
    font-size: clamp(14px, 3.8vw, 16px) !important;
    line-height: 1.5 !important;
    text-shadow: 0 2px 6px rgba(0,0,0,.95) !important;
  }
  html body #allrecords #rec2267109441 form {
    width: min(320px, calc(100vw - 48px)) !important;
    max-width: calc(100vw - 48px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Keep the award statement readable without splitting words */
  html body #allrecords :is(#rec2399145911,#rec6165456201,#rec6379088201,#rec6379092501) .t1074__title,
  html body #allrecords :is(#rec2399145911,#rec6165456201,#rec6379088201,#rec6379092501) .t1074__title div {
    max-width: calc(100vw - 40px) !important;
    font-size: clamp(24px, 6.4vw, 28px) !important;
    line-height: 1.18 !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
  }
  html body #allrecords :is(#rec2399145911,#rec6165456201,#rec6379088201,#rec6379092501) .t1074__title span[style*="222, 30, 27"] {
    color: #f14135 !important;
  }

  /* A visible loading state replaces the blank case grid */
  html body #allrecords #rec2377258331 .js-feed-container:empty::before {
    content: "Загружаем кейсы";
    display: flex;
    align-items: flex-end;
    min-height: 190px;
    padding: 18px;
    border: 1px solid #252525;
    border-radius: 12px;
    background: linear-gradient(125deg,#121212,#1b1b1b 55%,#111);
    color: #a8a8a8;
    font-size: 15px;
    box-sizing: border-box;
  }

  /* Let the SEO introduction lead into the footer quietly */
  html body #allrecords :is(#rec2452903031,#rec6165456801,#rec6379088801,#rec6379093001) {
    padding-top: 32px !important;
  }
  html body #allrecords :is(#rec2452903031,#rec6165456801,#rec6379088801,#rec6379093001) .t232__title {
    font-size: 15px !important;
    line-height: 1.35 !important;
    text-transform: none !important;
  }
  html body #allrecords :is(#rec2452903031,#rec6165456801,#rec6379088801,#rec6379093001) .t232__subtitle {
    color: #828282 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* Mobile footer: a logo, three horizontal groups, proof and legal text */
  html body #allrecords :is(#rec2399155261,#rec6165457001,#rec6379089101,#rec6379093201) {
    padding-top: 42px !important;
    padding-bottom: 105px !important;
  }
  html body #allrecords .t463:has(.rv-footer) .t463__colwrapper {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 0 !important;
  }
  html body #allrecords .t463:has(.rv-footer) .t463__col:first-child {
    grid-column: 1 !important;
    grid-row: 1 !important;
    margin-bottom: 24px !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__group:first-child {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__group:nth-child(2) {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__group {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 18px !important;
    width: 100% !important;
    padding: 17px 0 !important;
    border-top: 1px solid #242424 !important;
    box-sizing: border-box !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__group .rv-footer__label {
    flex: 0 0 100% !important;
    margin: 0 0 2px !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__group a {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }
  html body #allrecords .t463:has(.rv-footer) .t463__col:last-child {
    grid-column: 1 !important;
    grid-row: 4 !important;
    width: 100% !important;
    padding: 17px 0 !important;
    border-top: 1px solid #242424 !important;
  }
  html body #allrecords .t463:has(.rv-footer) .t-sociallinks {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  html body #allrecords .t463:has(.rv-footer) .t-sociallinks::before { margin: 0 !important; }
  html body #allrecords .t463:has(.rv-footer) .t-sociallinks__wrapper { margin: 0 !important; }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__ratings {
    grid-column: 1 !important;
    grid-row: 5 !important;
    margin: 0 !important;
    padding: 24px 0 !important;
    border-top: 1px solid #242424 !important;
    border-bottom: 0 !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__ratings-title { margin-bottom: 14px !important; }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__ratings-grid {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) !important;
    gap: 10px !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__rating {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 180px !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    justify-items: start !important;
    gap: 10px !important;
    min-height: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px !important;
    border: 1px solid #292929 !important;
    border-radius: 8px !important;
    background: #101010 !important;
    box-sizing: border-box !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__rating > span {
    white-space: normal !important;
    font-size: 10px !important;
    line-height: 1.35 !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__rating iframe {
    max-width: none !important;
    margin: 0 !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__legal {
    grid-column: 1 !important;
    grid-row: 6 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding-top: 18px !important;
    border-top: 1px solid #242424 !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__legal p {
    grid-column: auto !important;
    grid-row: auto !important;
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
  }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__legal p:nth-child(1) { order: 1 !important; }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__legal p:nth-child(3) { order: 2 !important; }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__legal p:nth-child(2) { order: 3 !important; }
  html body #allrecords .t463:has(.rv-footer) .rv-footer__legal p:nth-child(4) { order: 4 !important; }
}
@media (max-width: 359px) {
  html body #allrecords .t463:has(.rv-footer) .rv-footer__rating {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 8px !important;
  }
}
