/* dev-loft 11.10.2026, этап 3: главная с подбором плитки */
.lgh { --lgh-accent: #e8461e; --lgh-accent-d: #c93a16; --lgh-ink: #23201d; --lgh-mute: #77706a; --lgh-line: #eadfd6; --lgh-tint: #fbf4ee; color: var(--lgh-ink); }
.lgh *, .lgh *::before, .lgh *::after { box-sizing: border-box; }
.lgh a { text-decoration: none; }

/* первый экран */
.lgh-hero { padding: 40px 0 32px; background: linear-gradient(135deg, #fff3ea 0%, #ffe4d6 55%, #fde9df 100%); border-bottom: 1px solid var(--lgh-line); }
.lgh-hero__head { margin-bottom: 22px; }
.lgh-hero__title { margin: 0 0 8px; font-size: 38px; line-height: 1.15; font-weight: 700; color: var(--lgh-ink); text-transform: none; letter-spacing: 0; }
.lgh-hero__sub { margin: 0; font-size: 17px; color: #5d544d; }
.lgh-pick { background: #fff; border-radius: 14px; padding: 22px; box-shadow: 0 10px 30px rgba(178, 74, 30, .12); }
.lgh-pick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lgh-f { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: 400; }
.lgh-f > span { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--lgh-mute); }
.lgh-f select { width: 100%; height: 46px; padding: 0 36px 0 12px; border: 1px solid #ddd2c8; border-radius: 8px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23e8461e' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; font-size: 15px; color: var(--lgh-ink); -webkit-appearance: none; appearance: none; cursor: pointer; }
.lgh-f select:focus { outline: none; border-color: var(--lgh-accent); box-shadow: 0 0 0 3px rgba(232, 70, 30, .15); }
.lgh-f--btn { justify-content: flex-end; flex-direction: row; align-items: flex-end; gap: 10px; }
.lgh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--lgh-accent); color: #fff !important; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; }
.lgh-btn:hover { background: var(--lgh-accent-d); }
.lgh-f--btn .lgh-btn { flex: 1; }
.lgh-btn.is-busy { opacity: .75; }
.lgh-btn.is-empty { background: #bdb3ab; cursor: default; }
.lgh-btn--ghost { background: #fff; color: var(--lgh-accent) !important; box-shadow: inset 0 0 0 2px var(--lgh-accent); }
.lgh-btn--ghost:hover { background: var(--lgh-accent); color: #fff !important; }
.lgh-reset { height: 46px; padding: 0 6px; border: 0; background: none; color: var(--lgh-mute); font-size: 14px; text-decoration: underline; cursor: pointer; }
.lgh-types { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lgh-type { display: inline-flex; gap: 8px; align-items: center; padding: 9px 16px; border-radius: 30px; background: rgba(255, 255, 255, .8); border: 1px solid #f1cdbd; color: var(--lgh-ink); font-size: 15px; }
.lgh-type b { color: var(--lgh-accent); font-weight: 700; }
.lgh-type:hover { background: #fff; border-color: var(--lgh-accent); color: var(--lgh-ink); }

/* секции */
.lgh-sec { padding: 44px 0; }
.lgh-sec--tint { background: var(--lgh-tint); }
.lgh-h2 { margin: 0 0 20px; font-size: 28px; font-weight: 700; color: var(--lgh-ink); text-transform: none; letter-spacing: 0; }
.lgh-row-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.lgh-row-head .lgh-h2 { margin: 0; }
.lgh-more { color: var(--lgh-accent); font-weight: 600; }
.lgh-more:hover { color: var(--lgh-accent-d); text-decoration: underline; }

/* подборки */
.lgh-sets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lgh-set { position: relative; display: block; border-radius: 12px; overflow: hidden; background: #eee; aspect-ratio: 4 / 3; color: #fff; }
.lgh-set__img { position: absolute; inset: 0; background: #d9cfc6 center / cover no-repeat; transition: transform .4s; }
.lgh-set::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .62) 100%); }
.lgh-set:hover .lgh-set__img { transform: scale(1.05); }
.lgh-set__name { position: absolute; left: 16px; right: 16px; bottom: 34px; z-index: 1; font-size: 19px; font-weight: 700; line-height: 1.2; color: #fff; }
.lgh-set__n { position: absolute; left: 16px; bottom: 12px; z-index: 1; font-size: 14px; color: #ffd9c9; }

/* цвета */
.lgh-switch { display: inline-flex; padding: 4px; border-radius: 30px; background: #fff; border: 1px solid var(--lgh-line); }
.lgh-switch button { border: 0; background: none; padding: 8px 16px; border-radius: 26px; font-size: 14px; color: var(--lgh-mute); cursor: pointer; }
.lgh-switch button.is-on { background: var(--lgh-accent); color: #fff; }
.lgh-colors { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.lgh-color { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 12px; background: #fff; border: 1px solid var(--lgh-line); color: var(--lgh-ink); text-align: center; }
.lgh-color:hover { border-color: var(--lgh-accent); color: var(--lgh-ink); }
.lgh-color__sw { width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.lgh-color__name { font-size: 14px; font-weight: 600; }
.lgh-color__n { font-size: 13px; color: var(--lgh-mute); }
.lgh-color.is-empty { display: none; }

/* производители */
.lgh-brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.lgh-brand { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 96px; padding: 14px; border-radius: 12px; border: 1px solid var(--lgh-line); background: #fff; color: var(--lgh-ink); text-align: center; }
.lgh-brand:hover { border-color: var(--lgh-accent); box-shadow: 0 6px 18px rgba(178, 74, 30, .12); color: var(--lgh-ink); }
.lgh-brand img { max-width: 100%; max-height: 48px; }
.lgh-brand__name { font-size: 18px; font-weight: 700; }
.lgh-brand__n { font-size: 13px; color: var(--lgh-mute); }
.lgh-note { margin: 16px 0 0; color: var(--lgh-mute); font-size: 15px; }

/* шоурум */
.lgh-show { display: grid; grid-template-columns: 1fr 1.1fr; gap: 30px; align-items: stretch; }
.lgh-show__lead { font-size: 17px; margin: 0 0 14px; }
.lgh-show__addr, .lgh-show__open { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: #4a433d; }
.lgh-show__tel { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.lgh-show__tel a { color: var(--lgh-ink); }
.lgh-show__tel a:hover { color: var(--lgh-accent); }
.lgh-show__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.lgh-show__photo { min-height: 320px; border-radius: 14px; background: #ddd center / cover no-repeat; }

@media (max-width: 1199px) {
  .lgh-colors { grid-template-columns: repeat(5, 1fr); }
  .lgh-brands { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991px) {
  .lgh-pick__grid { grid-template-columns: repeat(2, 1fr); }
  .lgh-f--btn { grid-column: 1 / -1; }
  .lgh-sets { grid-template-columns: repeat(2, 1fr); }
  .lgh-show { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .lgh-hero { padding: 24px 0 22px; }
  .lgh-hero__title { font-size: 27px; }
  .lgh-hero__sub { font-size: 15px; }
  .lgh-pick { padding: 16px; }
  .lgh-pick__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lgh-f select { height: 44px; font-size: 14px; padding-right: 30px; background-position: right 10px center; }
  .lgh-sec { padding: 32px 0; }
  .lgh-h2 { font-size: 23px; }
  .lgh-sets { gap: 12px; }
  .lgh-set__name { font-size: 16px; left: 12px; right: 12px; bottom: 30px; }
  .lgh-set__n { left: 12px; bottom: 10px; font-size: 13px; }
  .lgh-colors { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .lgh-color__sw { width: 44px; height: 44px; }
  .lgh-brands { grid-template-columns: repeat(2, 1fr); }
  .lgh-show__photo { min-height: 220px; }
}

/* 12.10.2026: подборки по рисунку и поверхности - идут подряд, без лишнего отступа между блоками */
.lgh-sec--sub { padding-top: 0; }
