/* Wejście na stronę główną undersun.pl — wszystko w zakresie #us-wejscie, żeby nie ruszać stylów motywu */
#us-wejscie { --zolty: #FDCF02; --czern: #0a0a09; --kosc: #f4f2ea; --szary: #8d8b83; --chlod: #cfd8e3;
  --display: 'Anton', 'Oswald', 'Arial Narrow', sans-serif; --krzywa: cubic-bezier(.16,.84,.24,1);
  position: relative; margin-top: var(--us-nav, 110px); height: calc(100svh - var(--us-nav, 110px)); min-height: 560px;
  background: radial-gradient(ellipse 60% 60% at 50% 45%, #1c1b17 0%, var(--czern) 70%); color: var(--kosc); overflow: hidden; isolation: isolate; }
#us-wejscie * { box-sizing: border-box; }
#us-wejscie canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#us-wejscie a { color: inherit; text-decoration: none; }
.us-pyt { position: absolute; top: 34px; left: 0; right: 0; text-align: center; z-index: 3; pointer-events: none; }
.us-brow { text-transform: uppercase; letter-spacing: .2em; font-size: 12px; font-weight: 700; color: var(--zolty); margin: 0 0 8px; }
.us-pyt h2 { margin: 0; font-weight: 600; font-size: 20px; line-height: 1.3; color: #d6d3c8; }

.us-droga { position: absolute; bottom: 70px; width: min(460px, 36vw); display: flex; flex-direction: column; gap: 10px; z-index: 3; transition: opacity .6s ease, transform .8s var(--krzywa); }
.us-lewa { left: 5vw; } .us-prawa { right: 5vw; text-align: right; align-items: flex-end; }
.us-nr { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--szary); font-weight: 700; }
.us-tyt { font-family: var(--display); text-transform: uppercase; font-size: clamp(44px, 4.6vw, 80px); line-height: .95; color: var(--kosc); }
.us-tyt em { font-style: normal; color: var(--zolty); }
.us-prawa .us-tyt em { color: var(--chlod); }
.us-txt { font-size: 15px; line-height: 1.55; color: #cfccc2; max-width: 360px; }
.us-dalej { display: inline-flex; align-items: center; gap: 12px; margin-top: 4px; padding: 14px 24px; border-radius: 999px; border: 1.5px solid rgba(244,242,234,.35); font-weight: 800; font-size: 15px; transition: background .35s, color .35s, border-color .35s; }
.us-dalej b { transition: transform .3s var(--krzywa); }
.us-meta { font-size: 12px; color: var(--szary); }
#us-wejscie[data-wybor="1"] .us-lewa .us-dalej { background: var(--zolty); color: #111; border-color: var(--zolty); }
#us-wejscie[data-wybor="2"] .us-prawa .us-dalej, #us-wejscie.pamiec-hurt:not([data-wybor="1"]) .us-prawa .us-dalej { background: var(--kosc); color: #111; border-color: var(--kosc); }
#us-wejscie[data-wybor="1"] .us-lewa .us-dalej b, #us-wejscie[data-wybor="2"] .us-prawa .us-dalej b { transform: translateX(5px); }
#us-wejscie[data-wybor="1"] .us-prawa, #us-wejscie[data-wybor="2"] .us-lewa { opacity: .32; }
#us-wejscie[data-wybor="1"] .us-lewa, #us-wejscie[data-wybor="2"] .us-prawa { transform: translateY(-6px); }
#us-wejscie[data-wybrano] .us-droga { pointer-events: none; }
.us-przewin { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 12px; letter-spacing: .08em; color: var(--szary); z-index: 3; pointer-events: none; }

.us-etykiety { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; }
.us-etykiety .etyk { position: absolute; left: 0; top: 0; display: block; width: 0; height: 0; transition: opacity .5s ease; }
.us-etykiety .etyk i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--zolty); box-shadow: 0 0 0 4px rgba(253,207,2,.18); }
.us-etykiety .etyk b { position: absolute; white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--kosc); padding: 6px 10px; border-radius: 999px; background: rgba(10,10,9,.9); border: 1px solid rgba(244,242,234,.22); line-height: 1.2; }
.us-etykiety .etyk-g b { left: 50%; bottom: 14px; transform: translateX(-50%); }
.us-etykiety .etyk-g::after { content: ''; position: absolute; left: 0; bottom: 4px; width: 1px; height: 10px; background: rgba(244,242,234,.4); }
.us-etykiety .etyk-d b { left: 50%; top: 14px; transform: translateX(-50%); }
.us-etykiety .etyk-d::after { content: ''; position: absolute; left: 0; top: 4px; width: 1px; height: 10px; background: rgba(244,242,234,.4); }
.us-etykiety .etyk-p b { left: 16px; top: -12px; }
.us-etykiety .etyk-l b { right: 16px; top: -12px; }
.us-etykiety .etyk-akc b { background: var(--zolty); color: #111; border-color: var(--zolty); }

/* treść strony pod spodem: mniejszy odstęp od góry, bo menu nie zasłania już pierwszej sekcji */
#us-wejscie ~ .hero { padding-top: 90px; }

@media (max-width: 760px) {
  #us-wejscie { min-height: 600px; }
  .us-pyt { top: 18px; } .us-pyt h2 { font-size: 17px; }
  .us-droga { width: auto; left: 16px; right: 16px; gap: 4px; padding: 14px 18px; border-radius: 18px; background: rgba(14,14,12,.66); border: 1px solid rgba(244,242,234,.12); backdrop-filter: blur(10px); text-align: left; align-items: stretch; transform: none !important; opacity: 1 !important; }
  .us-lewa { bottom: calc(132px + env(safe-area-inset-bottom, 0px)); } .us-prawa { bottom: calc(46px + env(safe-area-inset-bottom, 0px)); }
  .us-tyt { font-size: 30px; } .us-txt, .us-meta { display: none; } .us-nr { font-size: 10px; }
  .us-dalej { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); margin: 0; width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .us-dalej b { font-size: 18px; }
  #us-wejscie[data-wybor="1"] .us-lewa, #us-wejscie[data-wybor="2"] .us-prawa { border-color: rgba(253,207,2,.6); }
  .us-przewin { bottom: 14px; font-size: 11px; }
  .us-etykiety .etyk b { font-size: 11px; }
}

/* wejście pod przezroczystym menu, na cały ekran */
body.us-ma-wejscie #us-wejscie { margin-top: 0; height: 100svh; }
body.us-ma-wejscie .us-pyt { top: calc(var(--us-nav, 110px) + 24px); }
/* menu strony: ciemne, dopóki widać wejście */
body.us-ma-wejscie .navbar { transition: background-color .45s ease, border-color .45s ease; }
body.us-ma-wejscie .navbar .brand { margin-right: 28px; }
body.us-menu-ciemne .navbar { background-color: rgba(10,10,9,.62) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(244,242,234,.08) !important; }
body.us-menu-ciemne .navbar .menu-button { filter: invert(1); }
@media (min-width: 992px) {
  body.us-menu-ciemne .navbar .nav-link, body.us-menu-ciemne .navbar .drop-text-block { color: #f4f2ea; transition: color .3s; }
  body.us-menu-ciemne .navbar .nav-link:hover, body.us-menu-ciemne .navbar .drop-text-block:hover { color: #FDCF02; }
}
@media (max-width: 760px) {
  .us-lewa { bottom: calc(176px + env(safe-area-inset-bottom, 0px)); } .us-prawa { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .us-przewin { display: none; }
}

/* === dwie drogi: jeden styl, wyrównane === */
.us-drogi { position: absolute; left: 5vw; right: 5vw; bottom: 64px; z-index: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: space-between; align-items: stretch; gap: 32px; pointer-events: none; }
.us-drogi .us-droga { position: static; width: auto; text-align: left; align-items: flex-start; pointer-events: auto; }
.us-drogi .us-prawa .us-tyt em, .us-drogi .us-tyt em { color: var(--zolty); }
.us-drogi .us-dalej { margin-top: auto; }
.us-drogi .us-txt { min-height: 3.1em; }
#us-wejscie[data-wybor="1"] .us-lewa .us-dalej, #us-wejscie[data-wybor="2"] .us-prawa .us-dalej { background: var(--zolty); color: #111; border-color: var(--zolty); }
#us-wejscie.pamiec-hurt:not([data-wybor="1"]) .us-prawa .us-dalej { background: none; color: inherit; border-color: rgba(244,242,234,.35); }
/* pytanie znika, gdy klient wskazał drogę */
.us-pyt { transition: opacity .5s ease, transform .6s var(--krzywa); }
#us-wejscie[data-wybor="1"] .us-pyt, #us-wejscie[data-wybor="2"] .us-pyt { opacity: 0; transform: translateY(-10px); }
@media (max-width: 760px) {
  .us-drogi { left: 16px; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 10px; }
  .us-drogi .us-droga { position: relative; left: auto; right: auto; bottom: auto; }
  .us-drogi .us-txt { display: none; }
}

/* pytanie: większe i czytelne także na tle słońca */
.us-pyt h2 { display: inline-block; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.05; color: var(--kosc);
  padding: 10px 26px; border-radius: 999px; background: radial-gradient(ellipse at center, rgba(10,10,9,.72) 0%, rgba(10,10,9,.45) 60%, rgba(10,10,9,0) 100%);
  text-shadow: 0 2px 18px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.6); }
@media (max-width: 760px) { .us-pyt h2 { font-size: 28px; padding: 8px 18px; } }

/* pytanie: spokojne, w kroju strony, bez tła */
.us-pyt h2 { display: block; font-family: inherit; text-transform: none; letter-spacing: .01em; font-weight: 500; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.3; color: #fff; padding: 0; background: none; border-radius: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 0 22px rgba(10,10,9,.9), 0 0 44px rgba(10,10,9,.7); }
@media (max-width: 760px) { .us-pyt h2 { font-size: 21px; padding: 0; } }
body.us-ma-wejscie .us-pyt { top: calc(var(--us-nav, 110px) + 4px); }
@media (max-width: 760px) { body.us-ma-wejscie .us-pyt { top: calc(var(--us-nav, 70px) + 6px); } }

/* pytanie: z powrotem wersja z dopiskiem „Undersun · Kościan · od 2016” (Mateusz 24.11), wyżej, z lekkim cieniem */
.us-pyt h2 { display: block; font-family: inherit; text-transform: none; letter-spacing: normal; font-weight: 600; font-size: 20px; line-height: 1.3; color: #d6d3c8; padding: 0; background: none; border-radius: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 18px rgba(10,10,9,.85); }
.us-brow { text-shadow: 0 0 14px rgba(10,10,9,.9); }
@media (max-width: 760px) { .us-pyt h2 { font-size: 17px; } }

/* === zastępcze słońce z CSS: przed wczytaniem 3D i na urządzeniach bez 3D === */
#us-wejscie canvas { opacity: 0; transition: opacity 1.2s ease; }
#us-wejscie.us-3d-gotowe canvas { opacity: 1; }
#us-wejscie::before, #us-wejscie::after { content: ''; position: absolute; left: 50%; pointer-events: none; transition: opacity 1.2s ease; z-index: 0; }
#us-wejscie::before { top: 44%; width: min(34vh, 52vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,222,90,.75) 0%, rgba(253,196,20,.5) 40%, rgba(253,170,0,.16) 62%, rgba(253,160,0,0) 72%);
  box-shadow: 0 0 140px 50px rgba(253,190,2,.10); }
#us-wejscie::after { top: 46%; width: min(120vh, 150vw); height: min(30vh, 38vw); transform: translate(-50%, -50%) rotate(-12deg); border-radius: 50%;
  border: 2px dotted rgba(253,200,40,.35); filter: blur(.4px); }
#us-wejscie.us-3d-gotowe::before, #us-wejscie.us-3d-gotowe::after { opacity: 0; }
@media (max-width: 760px) { #us-wejscie::before { top: 40%; } #us-wejscie::after { top: 41%; } }

/* logo w menu: dalej od krawędzi i z większym odstępem od pozycji menu (Mateusz 24.11) */
body.us-ma-wejscie .navbar .brand { margin-left: 28px; margin-right: 44px; }
@media (max-width: 991px) { body.us-ma-wejscie .navbar .brand { margin-left: 12px; margin-right: 0; } }
@media (min-width: 992px) and (max-width: 1399px) { body.us-ma-wejscie .navbar .brand { margin-left: 16px; margin-right: 24px; } }
/* 992–1399 px: menu zajmuje całą szerokość — ciaśniejsze odstępy między pozycjami, żeby zmieścił się odstęp przy logo */
@media (min-width: 992px) and (max-width: 1399px) {
  body.us-ma-wejscie .navbar .brand { margin-left: 16px; margin-right: 20px; }
  body.us-ma-wejscie .navbar .nav-link { padding-left: 6px; padding-right: 6px; }
  body.us-ma-wejscie .navbar .shop-button { padding-left: 18px; padding-right: 18px; margin-left: 12px; }
}

/* polskie znaki (ogonki Ę, Ą) nie mogą wchodzić na opis pod tytułem */
#us-wejscie .us-tyt { line-height: 1.08; padding-bottom: .1em; }
#us-wejscie .us-drogi .us-droga { gap: 12px; }
@media (max-width: 760px) { #us-wejscie .us-tyt { line-height: 1.12; padding-bottom: .06em; } #us-wejscie .us-drogi .us-droga { gap: 4px; } }

/* przejście z ciemnego wejścia na jasną treść + mniejszy odstęp nad ofertą (Mateusz 24.11) */
#us-wejscie ~ .hero { padding-top: 96px; }
#us-wejscie ~ .hero::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 72px; pointer-events: none;
  background: linear-gradient(to bottom, #0a0a09 0%, rgba(10,10,9,.55) 35%, rgba(10,10,9,0) 100%); }
@media (max-width: 760px) { #us-wejscie ~ .hero { padding-top: 76px; } #us-wejscie ~ .hero::before { height: 56px; } }

/* ciemne menu musi wygrać z regułą strony body.us-scrolled .navbar (jasne tło po przewinięciu) */
body.us-ma-wejscie.us-menu-ciemne .navbar.w-nav:not(.shop) { background-color: rgba(10,10,9,.62) !important; box-shadow: none; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }

/* === 24.11 wieczór: jeden krój pisma i spokojniejsze menu na starcie === */
/* tytuły kart w kroju strony (Sofia Pro) z żółtą kropką jak nagłówki niżej */
#us-wejscie .us-tyt { font-family: sofia-pro, 'Figtree', system-ui, sans-serif !important; font-weight: 700; text-transform: none; letter-spacing: -.015em; font-size: clamp(36px, 3.5vw, 58px); line-height: 1.08; padding-bottom: .06em; }
#us-wejscie .us-tyt::after { content: '.'; color: var(--zolty); }
@media (max-width: 760px) { #us-wejscie .us-tyt { font-size: 26px; } }
/* menu nad wejściem: przyciski z żółtą obwódką zamiast pełnego tła — główny wybór robią karty */
body.us-ma-wejscie.us-menu-ciemne .navbar .shop-button { background: transparent !important; color: var(--us-zolty, #FDCF02) !important; box-shadow: inset 0 0 0 1.5px #FDCF02; transition: background .35s, color .35s; }
body.us-ma-wejscie.us-menu-ciemne .navbar .shop-button div { color: #FDCF02 !important; }
body.us-ma-wejscie.us-menu-ciemne .navbar .shop-button:hover { background: #FDCF02 !important; }
body.us-ma-wejscie.us-menu-ciemne .navbar .shop-button:hover div { color: #111 !important; }
