/* Блок «Склады» главной (block-warehouses.php). Своя вёрстка с 19.11.2026 вместо Tilda
   (карты T433/T554 + Zero-блоки). Компьютер (шире 640px): карта — левая половина, синяя панель —
   правая, высота 600; тексты панели стоят от середины окна, как у Tilda (её элементы были
   привязаны к центру окна), на её раскладках 1512/1472/1380/1200/980/640. Телефон (до 640px):
   отступ, карта 450 на всю ширину, под ней синяя карточка; раскладки 430/410/360. */

.wsn-wh { position: relative; display: flex; padding-bottom: 180px; font-family: 'Montserrat', Arial, sans-serif; color: #fff; }
.wsn-wh * { box-sizing: border-box; }
.wsn-wh__map { position: relative; width: 50%; height: 600px; background: #e5e3df; }
.wsn-wh__ymap { height: 100%; }
.wsn-wh__panel { position: relative; width: 50%; height: 600px; background: #1084d1; }
.wsn-wh__card { display: none; }
.wsn-wh__notch { position: absolute; left: calc(50% - 18px); top: 0; width: 36px; height: 600px; max-width: none; z-index: 2; }

.wsn-wh__tag, .wsn-wh__lead, .wsn-wh__text { position: absolute; margin: 0; letter-spacing: -0.1px; z-index: 1; }
.wsn-wh__tag { text-align: center; font-weight: 400; white-space: nowrap; }
/* рамка «таблетки» вокруг «Адрес склада»: --x/--y — сдвиг рамки от текста, --w/--h — её размер */
.wsn-wh__tag::before { content: ''; position: absolute; left: var(--x); top: var(--y); width: var(--w); height: var(--h);
	border: 1px solid #fff; border-radius: 1000px; pointer-events: none; }
.wsn-wh__lead { font-weight: 700; }
.wsn-wh__text { font-weight: 300; }
.wsn-wh__text b { font-weight: 600; }

/* ≥1512 */
.wsn-wh__tag { left: 105.5px; top: 75px; width: 115px; font-size: 14px; line-height: 22px; --x: -23px; --y: -13px; --w: 157px; --h: 48px; }
.wsn-wh__lead { left: 81.5px; top: 246px; width: 373px; font-size: 16px; line-height: 22px; }
.wsn-wh__text { left: 81px; top: 320px; width: 490px; font-size: 16px; line-height: 25px; }

@media (max-width: 1511px) {
	.wsn-wh__tag { left: 95.5px; top: 69px; --x: -21px; --y: -13px; }
	.wsn-wh__lead { left: 69px; top: 233px; width: 356px; font-size: 15px; line-height: 21px; }
	.wsn-wh__text { left: 71px; top: 317px; width: 460px; font-size: 15px; line-height: 23px; }
}
@media (max-width: 1471px) {
	.wsn-wh__tag { left: 91.5px; top: 74px; --x: -21px; --y: -14px; }
	.wsn-wh__lead { left: 68px; top: 255px; width: 332px; font-size: 14px; line-height: 20px; }
	.wsn-wh__text { left: 67px; top: 313px; width: 432px; font-size: 14px; line-height: 22px; }
}
@media (max-width: 1379px) {
	.wsn-wh__tag { left: 81.5px; top: 68px; font-size: 12px; line-height: 19px; --x: -18.5px; --y: -12px; --w: 152px; --h: 41px; }
	.wsn-wh__lead { left: 68px; top: 240px; width: 284px; font-size: 12px; line-height: 17px; }
	.wsn-wh__text { left: 67px; top: 291px; width: 364px; font-size: 12px; line-height: 19px; }
}
@media (max-width: 1199px) {
	.wsn-wh__tag { left: 73px; top: 60px; width: 100px; font-size: 10px; line-height: 16px; --x: -12px; --y: -10px; --w: 124px; --h: 33px; }
	.wsn-wh__lead { left: 63px; top: 230px; }
	.wsn-wh__text { left: 62px; top: 279px; width: 358px; }
}
@media (max-width: 979px) {
	.wsn-wh { padding-bottom: 160px; }
	.wsn-wh__tag { left: 62px; top: 44px; --y: -9px; }
	.wsn-wh__lead { left: 50px; top: 163px; width: 210px; }
	.wsn-wh__text { left: 50px; top: 231px; width: 252px; }
}

/* телефон: отступ 140 + белая полоса 90 над картой (у Tilda — пустая распорка и шапка T554) */
@media (max-width: 640px) {
	.wsn-wh { display: block; padding-top: 230px; padding-bottom: 140px; }
	/* как у Tilda (T554): полоса карты — половина высоты окна, сама карта 500px, но не выше полосы */
	.wsn-wh__map { width: 100%; height: 50vh; }
	.wsn-wh__ymap { height: 500px; max-height: 100%; }
	.wsn-wh__panel { width: 100%; height: 419px; background: none; }
	.wsn-wh__notch { display: none; }
	.wsn-wh__card { display: block; position: absolute; left: calc(50% - 205px); top: 12px; width: 410px; height: 402px; background: #1084d1; border-radius: 12px; }
	.wsn-wh__tag { left: calc(50% - 174px); top: 51px; width: 120px; --x: -1px; --y: -10px; --w: 122px; --h: 33px; }
	.wsn-wh__lead { left: calc(50% - 175px); top: 120px; width: 309px; font-size: 13px; line-height: 20px; }
	.wsn-wh__text { left: calc(50% - 175px); top: 187px; width: 351px; font-size: 13px; line-height: 20px; }
}
@media (max-width: 429px) {
	.wsn-wh__panel { height: 408px; }
	.wsn-wh__card { left: calc(50% - 195px); width: 390px; height: 389px; }
	.wsn-wh__tag { left: calc(50% - 164px); top: 56px; --y: -9px; }
	.wsn-wh__lead { left: calc(50% - 165px); width: 284px; font-size: 12px; line-height: 19px; }
	.wsn-wh__text { left: calc(50% - 165px); width: 336px; font-size: 12px; line-height: 19px; }
}
@media (max-width: 409px) {
	.wsn-wh__panel { height: 415px; }
	.wsn-wh__card { left: calc(50% - 170px); width: 340px; }
	.wsn-wh__tag { left: calc(50% - 135px); top: 46px; font-size: 9px; line-height: 14px; --x: -10px; --y: -8px; --w: 140px; --h: 30px; }
	.wsn-wh__lead { left: calc(50% - 145px); top: 110px; }
	.wsn-wh__text { left: calc(50% - 145px); top: 177px; width: 290px; }
}
