/* Home Figma split: trace flag controls only the PNG mirror; redesign flag controls live Home UI. */
#homeSection .home-figma-stage {
  display: none;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection:not(.hidden) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background:
    #000 url("../../img/home/home-figma-clean-bg.png?v=20260626-home-clean-bg-3")
    center / 100% 100%
    no-repeat;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"]:has(#homeSection:not(.hidden))::before,
body[data-home-redesign="true"][data-app-chrome-mode="home"]:has(#homeSection:not(.hidden))::after {
  display: none;
  content: none;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"]:has(#homeSection:not(.hidden)) header {
  display: none !important;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection:not(.hidden) .hero,
body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection:not(.hidden) .home-quick-actions,
body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection:not(.hidden) .home-feed-preview,
body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection:not(.hidden) #forecastPanel,
body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection:not(.hidden) .home-weather-card {
  display: none !important;
}

body[data-home-figma-trace="true"][data-app-chrome-mode="home"]::before,
body[data-home-figma-trace="true"][data-app-chrome-mode="home"]::after {
  display: none;
  content: none;
}

body[data-home-figma-trace="true"][data-app-chrome-mode="home"] {
  overflow-x: hidden;
}

body[data-home-figma-trace="true"][data-app-chrome-mode="home"] #homeSection .home-figma-stage {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2147479000;
  pointer-events: none;
  overflow: hidden;
}

body[data-home-figma-trace="true"][data-app-chrome-mode="home"] #homeSection .home-figma-trace-layer {
  display: block;
  width: 100vw;
  height: auto;
  max-width: none;
  opacity: 0.35;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

#homeSection .home-figma-live {
  display: none;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection:not(.hidden) .home-figma-live {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1001;
  pointer-events: none;
}

body:has(#appSplash:not(.hidden)) #homeSection .home-figma-stage,
body:has(#appSplash:not(.hidden)) #homeSection .home-figma-live {
  display: none;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-header {
  position: absolute;
  left: 5vw;
  right: 5vw;
  top: 17.05vw;
  height: 10vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-brand {
  display: flex;
  align-items: center;
  gap: 2.5vw;
  min-width: 0;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-brand-icon {
  flex: 0 0 auto;
  width: 11.2vw;
  height: 11.2vw;
  object-fit: contain;
  transform: translateY(0.8vw);
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-brand-name {
  font-family: "Onest", system-ui, sans-serif;
  font-size: 5vw;
  font-weight: 600;
  line-height: 9.09vw;
  letter-spacing: 0;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-brand-main {
  color: #FEFDFE;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-brand-accent {
  color: #F57A04;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-brand-tagline {
  margin-top: -0.7vw;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 2.65vw;
  font-weight: 600;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.86);
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2.05vw;
  flex: 0 0 auto;
  pointer-events: auto;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-profile-button {
  pointer-events: auto;
  display: inline-flex;
  align-items: stretch;
  justify-content: stretch;
  flex: 0 0 auto;
  width: 9.55vw;
  height: 9.55vw;
  padding: 0;
  border: 1px solid rgba(244, 178, 74, 0.35);
  border-radius: 50%;
  background: rgba(17, 24, 27, 0.18);
  color: #fff8ea;
  overflow: hidden;
  cursor: pointer;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-profile-avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-size: 4.2vw;
  font-weight: 900;
  line-height: 1;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-menu-button {
  pointer-events: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1vw;
  flex: 0 0 auto;
  width: 9.55vw;
  height: 9.55vw;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3vw;
  background: rgba(17, 24, 27, 0.92);
  color: #fff;
  cursor: pointer;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-menu-button span {
  display: block;
  width: 4.2vw;
  height: 0.45vw;
  border-radius: 999px;
  background: currentColor;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-hero-copy {
  position: absolute;
  left: calc(22 / 440 * 100vw) !important;
  top: calc(164 / 440 * 100vw) !important;
  z-index: 4;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-hero-title {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: #FEFDFE !important;
  width: max-content;
  max-width: calc(200 / 440 * 100vw) !important;
  white-space: nowrap;
  font-size: calc(33 / 440 * 100vw) !important;
  line-height: calc(40 / 440 * 100vw) !important;
  font-weight: 500 !important;
  font-variation-settings: "wght" 500 !important;
  letter-spacing: 0 !important;
  text-shadow: none;
  -webkit-text-stroke: 0 transparent;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none !important;
  font-synthesis-weight: none;
  text-rendering: geometricPrecision;
}


body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-hero-title-line {
  display: block;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-hero-title-line--second {
  transform: none;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-hero-subtitle {
  margin: calc(23 / 440 * 100vw) 0 0;
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #BCBBBA;
  font-size: calc(15 / 440 * 100vw);
  line-height: calc(21 / 440 * 100vw);
  font-weight: 400;
  letter-spacing: 0;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-actions {
  dth: 89.77vw;
  height: 26.82vw;
  pointer-events: auto;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-action-card {
  width: 28.41vw;
  height: 26.82vw;
  border: 1px solid rgba(105, 118, 122, 0.48);
  border-radius: 3.64vw;
  background: rgba(19, 26, 28, 0.78);
  color: #FEFDFE;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-action-icon {
  width: 7.73vw;
  height: 7.73vw;
  margin-top: 4.77vw;
  color: #ff7a1a;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-action-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-action-title {
  margin-top: 3.18vw;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 3.18vw;
  line-height: 3.86vw;
  font-weight: 500;
  color: rgba(254, 253, 254, 0.92);
  white-space: nowrap;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-action-subtitle {
  margin-top: 1.14vw;
  font-family: "Onest", system-ui, sans-serif;
  font-size: 2.5vw;
  line-height: 3.18vw;
  font-weight: 400;
  color: rgba(254, 253, 254, 0.72);
  white-space: nowrap;
}


/* HOME FIGMA ACTION CARDS POSITION FIX START */
body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-actions {
  position: absolute !important;
  left: calc(23 / 440 * 100vw) !important;
  top: calc(328 / 440 * 100vw) !important;
  z-index: 4 !important;

  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: calc(10 / 440 * 100vw) !important;

  width: calc(395 / 440 * 100vw) !important;
  height: calc(118 / 440 * 100vw) !important;
  pointer-events: auto !important;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-action-card {
  flex: 0 0 calc(125 / 440 * 100vw) !important;
  width: calc(125 / 440 * 100vw) !important;
  height: calc(118 / 440 * 100vw) !important;
  border-radius: calc(16 / 440 * 100vw) !important;
  box-sizing: border-box !important;
}
/* HOME FIGMA ACTION CARDS POSITION FIX END */

/* HOME FIGMA HERO TEXT EXACT POSITION START */
/*
Figma hero title:
Соцсеть для: X=22 Y=175 W=200 H=40
рыбаков:     X=22 Y=213 W=137 H=40
Typography: Onest Medium 33 / line-height 40 / letter 0 / #FEFDFE
*/
body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-hero-copy {
  position: absolute !important;
  left: calc(22 / 440 * 100vw) !important;
  top: calc(175 / 440 * 100vw) !important;
  z-index: 4 !important;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-hero-title {
  margin: 0 !important;
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: #FEFDFE !important;
  width: max-content !important;
  max-width: calc(200 / 440 * 100vw) !important;
  white-space: nowrap !important;
  font-size: calc(33 / 440 * 100vw) !important;
  line-height: calc(40 / 440 * 100vw) !important;
  font-weight: 500 !important;
  font-variation-settings: "wght" 500 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 transparent !important;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none !important;
  font-synthesis-weight: none !important;
  text-rendering: geometricPrecision;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-hero-title-line {
  display: block !important;
  white-space: nowrap !important;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-hero-title-line--second {
  width: calc(137 / 440 * 100vw) !important;
  max-width: calc(137 / 440 * 100vw) !important;
  height: calc(40 / 440 * 100vw) !important;
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: #FEFDFE !important;
  font-size: calc(33 / 440 * 100vw) !important;
  line-height: calc(40 / 440 * 100vw) !important;
  font-weight: 500 !important;
  font-variation-settings: "wght" 500 !important;
  letter-spacing: 0 !important;
  transform: translateY(calc(-2 / 440 * 100vw)) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}
/* HOME FIGMA HERO TEXT EXACT POSITION END */

/* HOME FIGMA HERO SUBTITLE EXACT POSITION START */
/*
Figma subtitle global:
X=23 Y=265 W=239 H=42
Hero parent:
X=22 Y=175
So inside parent:
left=1 top=90
Typography:
Onest Regular 14 / line-height 21 / letter 0 / #BCBBBA
*/
body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-hero-copy {
  position: absolute !important;
  left: calc(22 / 440 * 100vw) !important;
  top: calc(175 / 440 * 100vw) !important;
  z-index: 4 !important;
}

body[data-home-redesign="true"][data-app-chrome-mode="home"] #homeSection .home-figma-hero-subtitle {
  position: absolute !important;
  left: calc(1 / 440 * 100vw) !important;
  top: calc(90 / 440 * 100vw) !important;
  width: calc(239 / 440 * 100vw) !important;
  height: calc(42 / 440 * 100vw) !important;
  margin: 0 !important;
  font-family: "Onest", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  color: #BCBBBA !important;
  font-size: calc(14 / 440 * 100vw) !important;
  line-height: calc(21 / 440 * 100vw) !important;
  font-weight: 400 !important;
  font-variation-settings: "wght" 400 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  -webkit-text-stroke: 0 transparent !important;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none !important;
  text-rendering: geometricPrecision;
}
/* HOME FIGMA HERO SUBTITLE EXACT POSITION END */
