/* Главная. Размеры — с досок Home-Desktop (1440) и Home-Mobile (390). Карточки товаров и сетка — из theme.css (rs-card, rs-products--related). */

.rs-home { margin: 0; padding: 0; }
.rs-home .is-layout-flow > *, .rs-home.is-layout-flow > * { margin-block: 0; }
.rs-home-sec { max-width: 1344px; margin-inline: auto !important; padding-inline: var(--rs-gutter); padding-top: 72px; box-sizing: content-box; }
.rs-home h2, .rs-home p { margin-block: 0; }
.rs-home a { text-decoration: none; }

.rs-home-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.rs-home-title { font-size: 30px; font-weight: 600; line-height: 1.2; margin: 0; }
.rs-home-more, .rs-home-more a { font-weight: 600; color: var(--rs-orange-text); margin: 0; }

/* ---------- Баннер ---------- */
.rs-home-sec.rs-hero { padding-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 24px; }
.rs-hero__banner { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 460px; padding: clamp(28px, 4vw, 56px); border-radius: 20px; background: var(--rs-orange); color: var(--rs-dark); }
.rs-hero__top { display: flex; flex-direction: column; gap: 20px; }
.rs-hero__top > * { margin: 0; }
.rs-hero__tag { align-self: flex-start; padding: 6px 12px; border-radius: 6px; background: var(--rs-dark); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .04em; line-height: 1.5; }
.rs-hero__title { font-size: clamp(34px, 4vw, 56px); font-weight: 700; line-height: 1.05; text-wrap: balance; }
.rs-hero__lead { max-width: 520px; font-size: 19px; line-height: 1.5; }
.rs-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.rs-hero__actions .wp-block-button__link { display: flex; align-items: center; height: 56px; padding: 0 28px; border-radius: 10px; font-weight: 600; box-sizing: border-box; }
.rs-hero__catalog .wp-block-button__link { background: var(--rs-dark); color: #fff; }
.rs-hero__catalog .wp-block-button__link:hover { background: #3A332D; color: #fff; }
.rs-hero__map .wp-block-button__link { background: transparent; border: 1.5px solid var(--rs-dark); color: var(--rs-dark); }
.rs-hero__map .wp-block-button__link:hover { background: var(--rs-dark); color: #fff; }

.rs-hero-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-height: 460px; padding: 32px; border-radius: 20px; border: 1px solid var(--rs-line); background: #fff; color: var(--rs-dark); overflow: hidden; box-sizing: border-box; }
.rs-hero-card:hover { color: var(--rs-dark); }
.rs-hero-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rs-hero-card__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rs-hero-card__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rs-muted); }
.rs-hero-card__short { display: none; }
.rs-hero-card__name { font-family: var(--wp--preset--font-family--unbounded); font-weight: 600; font-size: 28px; line-height: 1.15; }
.rs-hero-card__note { font-size: 15px; color: var(--rs-muted); }
.rs-hero-card .rs-badge--save { flex: none; }
.rs-hero-card__img { align-self: center; width: 100%; max-width: 300px; height: 280px; object-fit: contain; }
.rs-hero-card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.rs-hero-card__prices { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.rs-hero-card__price { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rs-hero-card__store { font-size: 15px; color: var(--rs-muted); }
.rs-hero-card__button { display: flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 10px; background: var(--rs-orange); font-weight: 600; }

/* ---------- Почему у нас ---------- */
.rs-home-sec.rs-why { padding-top: 24px; }
.rs-why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); border: 1px solid var(--rs-line); border-radius: 16px; overflow: hidden; }
.rs-why__list li { display: flex; gap: 14px; align-items: flex-start; padding: 22px 24px; border-right: 1px solid var(--rs-line); color: var(--rs-orange-text); }
.rs-why__list li:last-child { border-right: 0; }
.rs-why__list svg { flex: none; }
.rs-why__list li > span { display: flex; flex-direction: column; color: var(--rs-dark); }
.rs-why__list b { font-size: 16px; }
.rs-why__list li > span > span { font-size: 14px; color: var(--rs-muted); }
.rs-why__short { display: none !important; }

/* ---------- Плитки разделов ---------- */
.rs-home-catalog { display: flex; flex-direction: column; gap: 24px; }
.rs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.rs-tile { position: relative; display: flex; justify-content: space-between; gap: 12px; height: 180px; padding: 22px; border: 1px solid var(--rs-line); border-radius: 16px; background: #fff; color: var(--rs-dark); overflow: hidden; box-sizing: border-box; }
.rs-tile:hover { color: var(--rs-dark); border-color: var(--rs-dark); }
.rs-tile__text { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 150px; }
.rs-tile__name { font-size: 18px; font-weight: 600; line-height: 1.25; }
.rs-tile__new { padding: 2px 8px; border-radius: 6px; background: var(--rs-dark); color: #fff; font-size: 12px; font-weight: 600; }
.rs-tile__img { flex: none; align-self: flex-end; }
.rs-tile__img img { display: block; width: 130px; height: 136px; object-fit: contain; }
.rs-tile--more { flex-direction: column; gap: 12px; border: 0; background: var(--rs-dark); color: #fff; }
.rs-tile--more:hover { color: #fff; background: #3A332D; }
.rs-tile__list { font-size: 14px; line-height: 1.5; color: var(--rs-footer-text); }
.rs-tile__all { display: flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; color: var(--rs-orange); }

/* ---------- Карточки товаров ---------- */
.rs-home-popular { display: flex; flex-direction: column; gap: 24px; }
.rs-home-popular .rs-home-head { align-items: center; }
.rs-products--home .wc-block-product-template { margin-top: 0 !important; }
.rs-home .rs-home-band { margin-top: 72px; background: var(--rs-dark); color: #fff; }
.rs-home-band .rs-card { color: var(--rs-dark); }
.rs-home-sec.rs-band__in { display: flex; flex-direction: column; gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.rs-band__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.rs-band__intro { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.rs-band__intro > * { margin: 0; }
.rs-band__tag { align-self: flex-start; padding: 5px 10px; border-radius: 6px; background: var(--rs-orange); color: var(--rs-dark); font-size: 13px; font-weight: 600; line-height: 1.5; }
.rs-band__title { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 600; line-height: 1.1; }
.rs-band__lead { font-size: 18px; color: var(--rs-footer-text); }
.rs-band__action { margin: 0; }
.rs-band__action .wp-block-button__link { display: flex; align-items: center; height: 52px; padding: 0 24px; border-radius: 10px; background: var(--rs-orange); color: var(--rs-dark); font-weight: 600; box-sizing: border-box; }

/* ---------- Бренды ---------- */
.rs-brands__body { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.rs-brand-main { flex: 1 1 360px; display: flex; align-items: center; gap: 20px; padding: 24px; border-radius: 16px; background: var(--rs-peach); color: var(--rs-dark); }
.rs-brand-main:hover { color: var(--rs-dark); }
.rs-brand-main__img { flex: none; width: 120px; height: 120px; object-fit: contain; }
.rs-brand-main__text { display: flex; flex-direction: column; gap: 6px; }
.rs-brand-main__name { font-family: var(--wp--preset--font-family--unbounded); font-weight: 700; font-size: 24px; }
.rs-brand-main__about { font-size: 15px; line-height: 1.5; }
.rs-brands__grid { flex: 999 1 560px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.rs-brand { display: grid; place-items: center; height: 76px; padding: 0 12px; border: 1px solid var(--rs-line); border-radius: 12px; background: #fff; color: var(--rs-dark); font-weight: 600; font-size: 15px; text-align: center; }
.rs-brand:hover { color: var(--rs-dark); border-color: var(--rs-dark); }
.rs-brand__img { display: block; max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }

/* ---------- Отзывы и блог ---------- */
.rs-home-sec.rs-home-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(520px, 100%), 1fr)); gap: 48px; }
.rs-home-duo > * { min-width: 0; }
.rs-home-duo .rs-home-title { font-size: 26px; }
.rs-home-duo > .wp-block-group, .rs-home-blog { display: flex; flex-direction: column; gap: 20px; }
.rs-reviews__list { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.rs-review { margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; border-radius: 16px; background: var(--rs-light); }
.rs-review__text { margin: 0; padding: 0; border: 0; font-size: 16px; line-height: 1.55; }
.rs-review__author { font-size: 14px; font-weight: 600; color: var(--rs-muted); }

.rs-posts .wp-block-post-template { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.rs-post { position: relative; display: flex; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--rs-line); border-radius: 16px; }
.rs-post:hover { border-color: var(--rs-dark); }
.rs-post > * { margin: 0; }
.rs-post__img { flex: none; width: 104px; height: 88px; border-radius: 10px; background: #fff; }
.rs-post__img img { width: 104px; height: 88px; object-fit: contain; border-radius: 10px; display: block; }
.rs-post__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rs-post__text > * { margin: 0; }
.rs-post__date { font-size: 13px; color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.rs-post__title { font-family: var(--wp--preset--font-family--onest); font-size: 17px; font-weight: 600; line-height: 1.35; }
.rs-post__title a { color: var(--rs-dark); }
.rs-post__title a::after { content: ""; position: absolute; inset: 0; }
.rs-post:hover .rs-post__title a { color: var(--rs-orange-text); }

.rs-birthday { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 56px 18px 22px; border-radius: 16px; background: var(--rs-dark); color: #fff; }
.rs-birthday > * { margin: 0; }
.rs-birthday__title, .rs-birthday__title a { font-weight: 700; color: #fff; }
.rs-birthday__title a::after { content: ""; position: absolute; inset: 0; }
.rs-birthday__text { font-size: 14px; color: var(--rs-footer-text); }
.rs-birthday::after { content: ""; position: absolute; right: 22px; top: 50%; width: 20px; height: 20px; margin-top: -10px; background: var(--rs-orange);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Магазины ---------- */
.rs-home-sec.rs-home-shops { padding-bottom: 80px; display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 16px; }
.rs-shops { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; }
.rs-shop { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--rs-line); border-radius: 16px; }
.rs-shop__address { font-size: 20px; font-weight: 700; }
.rs-shop__row { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--rs-muted); }
.rs-shop__phones { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rs-shop__phones a { color: var(--rs-dark); white-space: nowrap; }
.rs-shop__route { align-self: flex-start; font-weight: 600; color: var(--rs-orange-text); }

@media (max-width: 1100px) {
	.rs-products--home .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Телефон ---------- */
@media (max-width: 781px) {
	.rs-home-sec { padding-top: 40px; }
	.rs-home-title { font-size: 22px; }
	.rs-home-more, .rs-home-more a { font-size: 15px; }
	.rs-home-sec.rs-hero { padding-top: 16px; gap: 12px; }
	.rs-hero__banner { min-height: 0; gap: 16px; padding: 24px 20px; border-radius: 18px; }
	.rs-hero__top { gap: 16px; }
	.rs-hero__tag { padding: 5px 10px; font-size: 12px; }
	.rs-hero__title { font-size: 28px; line-height: 1.08; }
	.rs-hero__lead { font-size: 16px; }
	.rs-hero__extra { display: none; }
	.rs-hero__actions .rs-hero__map { display: none; }
	.rs-hero__actions .wp-block-button, .rs-hero__actions .wp-block-button__link { width: 100%; }
	.rs-hero__actions .wp-block-button__link { justify-content: center; height: 52px; }
	.rs-hero-card { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 14px; min-height: 0; padding: 14px; border-radius: 18px; }
	.rs-hero-card__img { order: -1; flex: none; width: 104px; max-width: 104px; height: 120px; }
	.rs-hero-card__top { flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
	.rs-hero-card__top .rs-badge--save { order: 3; }
	.rs-hero-card__long { display: none; }
	.rs-hero-card__short { display: inline; }
	.rs-hero-card__eyebrow { font-size: 12px; }
	.rs-hero-card__name { font-size: 19px; }
	.rs-hero-card__note, .rs-hero-card__button { display: none; }
	.rs-hero-card__foot { flex: 1 0 100%; margin-top: -4px; }
	.rs-hero-card__price { font-size: 22px; }
	.rs-hero-card__store { font-size: 13px; }

	.rs-home-sec.rs-why { padding-top: 12px; }
	.rs-why__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; border-radius: 0; overflow: visible; }
	.rs-why__list li { flex-direction: column; gap: 6px; padding: 14px; border: 0; border-radius: 14px; background: var(--rs-light); }
	.rs-why__list svg { width: 24px; height: 24px; }
	.rs-why__list b { font-size: 14px; line-height: 1.3; }
	.rs-why__list li > span > span { font-size: 13px; line-height: 1.35; }
	.rs-why__long { display: none !important; }
	.rs-why__short { display: inline !important; }

	.rs-home-catalog { gap: 16px; }
	.rs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.rs-tile { flex-direction: column; gap: 6px; height: 156px; padding: 14px; border-radius: 14px; }
	.rs-tile__text { max-width: none; gap: 4px; }
	.rs-tile__name { font-size: 15px; }
	.rs-tile__new { padding: 1px 7px; font-size: 11px; }
	.rs-tile__img img { width: 96px; height: 80px; }
	.rs-tile--more { justify-content: space-between; }
	.rs-tile__list { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.4; }
	.rs-tile__all { font-size: 14px; }

	/* Популярное и обувь — лентой с прокруткой, карточки по 220px. */
	.rs-home-popular { gap: 16px; padding-inline: 0; }
	.rs-home-popular > .rs-home-head { padding-inline: 16px; }
	.rs-products--home .wc-block-product-template { display: flex !important; gap: 12px !important; padding: 0 16px !important; overflow-x: auto; scrollbar-width: none; }
	.rs-products--home .wc-block-product { flex: none; width: 220px !important; }
	.rs-products--home .rs-card { border-radius: 14px; }
	.rs-home .rs-home-band { margin-top: 40px; }
	.rs-home-sec.rs-band__in { gap: 20px; padding-block: 36px; padding-inline: 0; }
	.rs-band__head { display: contents; }
	.rs-band__intro { order: 0; gap: 10px; padding-inline: 16px; }
	.rs-products--shoes { order: 1; }
	.rs-band__action { order: 2; padding-inline: 16px; }
	.rs-band__tag { padding: 4px 9px; font-size: 12px; }
	.rs-band__title { font-size: 24px; line-height: 1.15; }
	.rs-band__lead { font-size: 15px; }
	.rs-band__action .wp-block-button, .rs-band__action .wp-block-button__link { width: 100%; justify-content: center; }
	.rs-band__action .wp-block-button__link { height: 52px; }

	.rs-brands__body { margin-top: 16px; }
	.rs-brand-main { flex-basis: 100%; gap: 14px; padding: 16px; border-radius: 14px; }
	.rs-brand-main__img { width: 80px; height: 80px; }
	.rs-brand-main__name { font-size: 18px; }
	.rs-brand-main__about { font-size: 14px; line-height: 1.45; }
	.rs-brands__grid { flex: 1 1 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
	.rs-brand { height: 56px; padding: 0 8px; border-radius: 12px; font-size: 13px; }
	.rs-brand__img { max-height: 36px; }

	.rs-home-sec.rs-home-duo { gap: 40px; }
	.rs-home-duo .rs-home-title { font-size: 22px; }
	.rs-home-duo > .wp-block-group, .rs-home-blog { gap: 12px; }
	.rs-reviews__list { flex-direction: row; gap: 12px; margin: 16px calc(-1 * var(--rs-gutter)) 0; padding: 0 var(--rs-gutter); overflow-x: auto; scrollbar-width: none; }
	.rs-review { flex: none; width: 290px; justify-content: space-between; padding: 18px; border-radius: 14px; }
	.rs-review__text { font-size: 15px; line-height: 1.5; }
	.rs-review__author { font-size: 13px; }
	.rs-posts .wp-block-post-template { gap: 12px; }
	.rs-post { gap: 12px; padding: 10px; border-radius: 14px; }
	.rs-post__img, .rs-post__img img { width: 72px !important; height: 64px !important; }
	.rs-post__date { font-size: 12px; }
	.rs-post__title { font-size: 15px; line-height: 1.3; }
	.rs-birthday { padding: 16px; border-radius: 14px; }
	.rs-birthday::after { display: none; }
	.rs-birthday__text { font-size: 13px; line-height: 1.4; }

	.rs-home-sec.rs-home-shops { padding-bottom: 32px; gap: 12px; }
	.rs-shops { gap: 12px; }
	.rs-shop { gap: 6px; padding: 16px; border-radius: 14px; }
	.rs-shop__address { font-size: 18px; }
	.rs-shop__row { font-size: 14px; }
	.rs-shop__row svg { display: none; }
	.rs-shop__row + .rs-shop__row { display: none; }
	.rs-shop__phones { font-size: 15px; }
	.rs-shop__route { align-self: stretch; display: flex; align-items: center; justify-content: center; height: 44px; margin-top: 6px; border: 1.5px solid var(--rs-dark); border-radius: 10px; color: var(--rs-dark); }
}
