/* Файл: static/index.css */
/* Участвует в: index.html, app.css */
/* Назначение: стили главного экрана — плитки-разделы и выдача общего поиска (3 версии: >1024 / 768–1024 / <768) */

.home-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.home-tile { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 26px 28px; min-height: 190px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; justify-content: flex-start; }
.home-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.home-tile:active { transform: scale(0.99); }
.home-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--red), var(--bronze)); }
.home-tile__title { font-family: var(--font-display); font-size: 28px; color: var(--burgundy); max-width: 62%; line-height: 1.15; }
.home-tile__sub { margin-top: 10px; font-size: 13px; color: var(--ink-soft); max-width: 60%; }
.home-tile__art { position: absolute; right: 22px; bottom: 16px; font-size: 92px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(43,46,51,.18)); }
.home-tile__art .art-2 { font-size: 54px; position: absolute; right: 52px; bottom: -4px; }
.home-tile--services { background: linear-gradient(135deg, #fff, #F3EEF7); }
.home-tile--products { background: linear-gradient(135deg, #fff, #F7EFE6); }
.home-tile--distribution { background: linear-gradient(135deg, #fff, #EAF2F7); }
.home-tile--orders { background: linear-gradient(135deg, #fff, #EEF5EC); }
.home-quick { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.home-results { margin-bottom: 18px; }
.home-results h3 { font-family: var(--font-display); font-size: 17px; margin: 14px 0 10px; }
.result-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 10px; min-height: 56px; }
.result-row__body { flex: 1; min-width: 0; }
.result-row__name { font-size: 14px; }
.result-row__meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.result-row__price { font-weight: 700; white-space: nowrap; }

/* планшет */
@media (max-width: 1024px) {
  .home-tile { min-height: 170px; padding: 22px; }
  .home-tile__title { font-size: 24px; }
  .home-tile__art { font-size: 78px; }
}
/* телефон: одна колонка, кнопки ≥44px */
@media (max-width: 768px) {
  .home-tiles { grid-template-columns: 1fr; gap: 12px; }
  .home-tile { min-height: 132px; padding: 18px; border-radius: 16px; }
  .home-tile__title { font-size: 22px; max-width: 58%; }
  .home-tile__sub { font-size: 12px; }
  .home-tile__art { font-size: 64px; right: 16px; }
  .home-tile__art .art-2 { font-size: 38px; right: 38px; }
  .home-quick .btn { flex: 1; }
}
