/* PROVORS: общие маршруты розничной витрины. Поверх существующих компонентов. */
:root {
  --flow-paper: #faf6f0;
  --flow-linen: #f0e7dc;
  --flow-ink: #27211c;
  --flow-muted: #66564a;
  --flow-rust: #843c30;
}

.site-header { background: var(--flow-paper); }
.site-header__inner { min-height: 72px; padding-block: 10px; }
.site-nav__list { gap: clamp(12px, 1.5vw, 24px); }
.site-nav__link { color: var(--flow-ink); font-size: .95rem; }
.site-nav__link[href="/kontakty/"] { color: var(--flow-rust); }
.site-header .site-header__phone { text-decoration: underline; text-decoration-color: #b29988; text-underline-offset: 4px; }
.site-header .site-header__phone:hover { text-decoration-color: currentColor; }
.site-nav--open .site-nav__link { display: flex; align-items: center; min-height: 44px; }
.site-nav--open .site-nav__list { gap: 0; }
.site-header__cta { display: none; }
#main-content { min-height: 55vh; }
[class][id]:target, #form-b2b, #form-primerka, #consultation { scroll-margin-top: 92px; }
.card--hidden:target { display: flex; }

.journey-intro {
  background: var(--flow-linen);
  color: var(--flow-ink);
  border-bottom: 1px solid var(--color-border);
}
.journey-intro__inner {
  padding-block: clamp(27px, 5vw, 68px);
  display: grid;
  align-items: center;
  gap: clamp(18px, 4vw, 58px);
}
.journey-intro__copy { min-width: 0; }
.journey-intro__copy h1 {
  margin: 3px 0 12px;
  font-size: clamp(2.15rem, 4.8vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: -.033em;
  text-wrap: balance;
}
.flow-kicker { color: var(--flow-rust); font-size: .86rem; font-weight: 600; letter-spacing: .065em; }
.flow-lead { max-width: 58ch; color: var(--flow-muted); font-size: clamp(1rem, 2vw, 1.17rem); line-height: 1.5; text-wrap: pretty; }
.journey-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; }
.journey-actions .btn { max-width: 100%; white-space: normal; }
.flow-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--flow-rust);
  font-weight: 600;
  line-height: 1.32;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-wrap: pretty;
}
.flow-link:hover { color: var(--color-cta-hover); }
.journey-intro__media { margin: 0; min-width: 0; }
.journey-intro__media img { width: 100%; aspect-ratio: 2.5; height: auto; object-fit: cover; border-radius: var(--radius-sm); }
@media (min-width: 768px) {
  .journey-intro__inner:has(.journey-intro__media) { grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); }
  .journey-intro__media img { aspect-ratio: 1.55; }
}
.flow-section { padding-block: clamp(26px, 5vw, 70px); }
.flow-section--soft { background: var(--flow-linen); }
.flow-head { margin-bottom: clamp(13px, 3vw, 28px); }
.flow-head h2 { font-size: clamp(1.75rem, 4vw, 2.7rem); letter-spacing: -.025em; line-height: 1.1; margin-bottom: 7px; text-wrap: balance; }
.flow-head p { max-width: 66ch; color: var(--flow-muted); line-height: 1.55; }
.flow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.flow-tile {
  min-width: 0;
  display: block;
  background: #fffdfa;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.flow-tile h3 { margin-bottom: 4px; font-size: 1.29rem; }
.flow-tile p { color: var(--flow-muted); line-height: 1.48; font-size: .97rem; }
a.flow-tile:hover { border-color: var(--flow-rust); color: var(--flow-rust); }
.flow-tile .store-card__actions .btn { min-width: 0; max-width: 100%; white-space: normal; }
.flow-tile .flow-link { margin-top: 4px; }
.flow-note { color: var(--flow-muted); background: var(--flow-linen); padding: 14px 17px; margin-block: 15px; border-left: 3px solid var(--flow-rust); }
.flow-note p { color: inherit; }
.flow-prose { max-width: 68ch; }
.flow-prose > * + * { margin-top: var(--space-sm); }
.flow-prose li + li { margin-top: 6px; }
.flow-prose ul, .flow-prose ol { padding-inline-start: 1.2em; }
.flow-form-disclosure { max-width: 660px; }
.flow-form-disclosure summary { min-height: 44px; cursor: pointer; color: var(--flow-rust); font-weight: 600; padding: 10px 0; }
.flow-form-disclosure[open] summary { margin-bottom: 10px; }
.flow-store-list { display: grid; gap: 0; list-style: none; }
.flow-store-list a { display: block; min-height: 44px; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
.flow-store-list small { display: block; color: var(--flow-muted); font-size: .92rem; }
.flow-store-list a:hover { color: var(--flow-rust); }
.site-footer--journeys { padding-block: 35px 22px; }
.site-footer--journeys .flow-footer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.site-footer--journeys .flow-footer-links { display: grid; align-content: start; grid-template-columns: 1fr; }
.site-footer--journeys a:not(.site-logo) { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer--journeys .site-logo { display: inline-block; margin-bottom: 10px; }
.site-footer--journeys p { color: #f5e5da; }
.site-footer--journeys .site-footer__copy { margin-top: 22px; }
@media (max-width: 639px) {
  .site-footer--journeys .flow-footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer--journeys .flow-footer-grid > :first-child { grid-column: 1 / -1; }
}
.flow-grid .photo-trigger { width: 100%; }
.flow-section .product-card__body { min-width: 0; }
.flow-section .product-card__button { white-space: normal; }
@media (max-width: 639px) {
  main .grid--3:has(> .product-card) { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  main .grid--3:has(> .product-card) .product-card__body { padding: 9px; }
  main .grid--3:has(> .product-card) .product-card__title { font-size: 1.02rem; }
  main .grid--3:has(> .product-card) .product-card__button { font-size: .85rem; padding: 7px; min-height: 44px; width: 100%; }
  main .grid--3:has(> .product-card) .product-card__meta { overflow-wrap: anywhere; }
}
.site-footer--journeys .flow-link { color: #f5e5da; text-align: left; }
.site-footer--journeys a:hover, .site-footer--journeys .flow-link:hover { color: #fff; text-decoration: underline; }
.flow-section .stores-jump { margin-block: 0 var(--space-md); }
.flow-stores .flow-tile { padding: 11px 14px; }
.flow-stores .flow-link { min-height: auto; margin-top: 2px; }
.flow-store-cards .store-card__photo, .stores-grid .store-card__photo { aspect-ratio: 2; }
ol.flow-grid { padding-inline-start: 0; list-style: none; }
.journey-actions + .flow-note { margin-block-start: 16px; }
.flow-policy .journey-intro__copy { max-width: 740px; }
@media (max-width: 639px) {
  .journey-intro__inner { padding-block: 22px; gap: 14px; }
  .journey-intro__media img { max-height: 128px; }
  body.page-home .journey-intro__media img { max-height: 116px; }
  .flow-head p { font-size: .96rem; }
  .flow-stores { grid-template-columns: 1fr; }
  .journey-actions { margin-top: 12px; column-gap: 12px; }
}
@media (max-width: 1139.98px) {
  html:not(.flow-nav-ready) .site-header__inner { flex-wrap: wrap; }
  html:not(.flow-nav-ready) .site-nav { display: block; flex-basis: 100%; order: 3; }
  html:not(.flow-nav-ready) .site-nav__list { flex-wrap: wrap; }
  html:not(.flow-nav-ready) .site-menu-toggle { display: none; }
}
.flow-store-actions { display: flex; flex-wrap: wrap; column-gap: 18px; }
.flow-store-actions .flow-link { min-height: 44px; }
.flow-store-actions a + a { color: var(--flow-muted); }
.flow-delivery-steps { max-width: 64ch; margin-block: 18px 14px; padding-inline-start: 1.38rem; }
.flow-delivery-steps li { padding-block: 5px; color: var(--flow-muted); line-height: 1.5; }
.flow-delivery-steps strong { color: var(--flow-ink); }

.flow-hours { white-space: nowrap; }

/* Розничный проход: адрес и часы не зависят от формы или меню. */
#stores .store-card__actions,
#rug-stores .flow-store-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 16px;
  row-gap: 4px;
  margin-block: 4px;
  padding-block: 0;
}
#stores .store-card__actions .btn {
  width: auto;
  min-width: 0;
  min-height: 44px;
}
#stores .store-card__actions .flow-link,
#rug-stores .flow-store-actions .flow-link { min-height: 44px; }
#rug-stores .flow-store-actions .stage1-store-phone { color: var(--flow-rust); }
#catalog .stage1-gallery-stores { margin-top: 2px; }
@media (max-width: 639px) {
  #stores .stores-jump a { padding-block: 8px; }
}
