@font-face {
  font-family: 'Rubik Mono One';
  src: url('Font/RubikMonoOne-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --panel-bg: rgba(151, 189, 240, 0.459);
  --hover-bg: rgba(114, 170, 241, 0.35);
  --header-bg-start: rgba(94, 141, 202, 0.55);
  --header-bg-end: rgba(151, 189, 240, 0.459);
  --h1-grad-start: #c90a0a;
  --h1-grad-mid: #fd2323;
  --h1-grad-end: #c41212;
  --text-color: #0f1b27;
  --muted: #3b4a5a;
  --accent: #b82218;
  --shadow: rgba(0,0,0,0.12);
  --shadow-hover: rgba(0,0,0,0.15);
  --radius: 16px;
  --gap: 16px;
  --max-width: 1100px;
  --font: system-ui, "Segoe UI", Arial, sans-serif;
  --header-font: 'YandexSans', sans-serif;
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--text-color);
  line-height: 1.5;
  background: #f5f7fa;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wrap { width: 100%; max-width: var(--max-width); padding: 18px; }

/* Общие стеклянные панели */
header, footer, main > *, .card, .prod {
  background: var(--panel-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: var(--radius);
  box-shadow: 0 10px 35px var(--shadow);
  transition: transform .3s, box-shadow .3s, background .3s;
}

/* HEADER */
header {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(180deg, var(--header-bg-start), var(--header-bg-end)), url("img/store.jpg");
  background-size: cover;
  background-position: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(94, 141, 202, 0), rgba(94, 141, 202, 0.55), rgb(199, 220, 246));
  z-index: 1;
}
header .hero { position: relative; z-index: 2; }
header h1 {
  font-family: 'Rubik Mono One', monospace;
  font-size: 150px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 12px;
  background: linear-gradient(90deg, var(--h1-grad-start), var(--h1-grad-mid), var(--h1-grad-end), var(--h1-grad-mid), var(--h1-grad-start));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 3px rgba(255,255,255,0.9);
  text-shadow: 0 2px 10px rgba(0,0,0,0.45);
  animation: gradientMove 20s linear infinite;
}
@keyframes gradientMove { 0% { background-position:0% 0%; } 50% { background-position:100% 0%; } 100% { background-position:0% 0%; } }
header h2, header .info, header .worktime { color:#f5f7fa; text-shadow:0 2px 8px rgba(0,0,0,0.6); }
header h2 { font-family: var(--header-font); font-size: 24px; font-weight: 600; }
header .info, header .worktime { font-size: 15px; opacity: 0.95; }

/* FOOTER */
footer { margin-top:18px; color:var(--muted); font-size:13px; text-align:center; padding:12px 20px; cursor:default; }

/* MAIN общий */
main { display: flex; flex-direction: column; gap: var(--gap); }
main > * { padding: 20px; }
main > *:hover { transform: translateY(-3px); box-shadow:0 14px 40px var(--shadow-hover); background: var(--hover-bg); }
main h2 { font-family: var(--header-font); font-size:22px; font-weight:600; }

/* ПРОДУКТЫ index */
.scroller { display:flex; gap:var(--gap); padding:12px 6px; overflow-x:auto; }
.prod { flex:0 0 220px; padding:12px; display:flex; flex-direction:column; align-items:center; }
.prod img { width:100%; height:140px; object-fit:contain; border-radius:12px; margin-bottom:8px; }
.price { color:var(--accent); font-weight:700; }

/* КАТАЛОГ */
.catalog .selected-panel {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  min-height: 120px;
  border-radius: var(--radius);
}
.catalog .selected-panel img { width:120px; height:90px; object-fit:contain; border-radius:12px; }
.catalog .selected-info h3 { font-size:18px; margin-bottom:4px; }
.catalog .selected-info .price { font-size:18px; font-weight:700; color:var(--accent); }

.catalog .grid {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); /* увеличено на 20% */
  gap: var(--gap);
  margin-top:12px;
}
.catalog .tile {
  padding:12px;
  text-align:center;
  transition: transform .2s, box-shadow .2s, background .2s;
  border-radius:16px; /* скругление плиток */
  background: var(--panel-bg);
}
.catalog .tile img { width:100%; height:120px; object-fit:contain; border-radius:12px; margin-bottom:6px; }
.catalog .tile:hover { transform:translateY(-3px); box-shadow:0 10px 25px var(--shadow-hover); background: var(--hover-bg); }
.catalog .tile.active { outline: 2px solid var(--accent); }

/* CONTACTS */
.contacts {
  display: flex;
  flex-direction: column;
  gap: 12px; /* расстояние между карточками */
  margin-top: 12px;
}

.contacts .card {
  background: var(--hover-bg) /* отдельный белый фон */
  color: var(--text-color);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: transform .2s, box-shadow .2s;
}

.contacts .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* MOBILE */
@media(max-width:600px){
  header h1 { font-size:40px; }
  header h2 { font-size:18px; }
  .prod { flex:0 0 150px; }
  .catalog .selected-panel { flex-direction:column; align-items:flex-start; }
  .catalog .selected-panel img { width:100%; height:auto; }
  .catalog .grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); }
  .catalog .tile img { height:100px; }
}
