:root {
  --red: #e21b22;
  --yellow: #ffd200;
  --text: #333;
  --muted: #777;
  --line: #e3e3e3;
  --bg: #f4f4f4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg) repeating-linear-gradient(45deg, transparent 0 2px, rgba(0,0,0,.015) 2px 4px);
  line-height: 1.6;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1020px; margin: 0 auto; padding: 0 16px; }

/* Горна лента */
.topbar {
  background: #777;
  border-bottom-left-radius: 50% 12px;
  border-bottom-right-radius: 50% 12px;
  font-size: 15px;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 10px; flex-wrap: wrap; }
.topbar a { color: #fff; }

/* Хедър */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 40px;
}
.nav-right { justify-self: end; }
.logo img { display: block; max-width: 100%; height: auto; width: 300px; }

.btn {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(#fff, #ececec);
  border: 1px solid #d5d5d5;
  box-shadow: 0 0 0 3px #f7f7f7, 0 1px 2px rgba(0,0,0,.15);
  color: #888;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 15px;
}
.btn:hover { color: var(--red); text-decoration: none; }

/* Основна карта */
.card {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  padding-top: 30px;
  padding-bottom: 30px;
}
.card section { padding: 0 44px; }
.card section + section { margin-top: 36px; }

h1, h2 {
  margin: 0 0 14px;
  padding: 18px 20px;
  border: 1px solid #dcdcdc;
  background: linear-gradient(90deg, #fff, #eee 40%, #eee 60%, #fff);
  font-size: 22px;
  color: #555;
}
h1 { font-size: 24px; }
h3 { margin: 0 0 4px; color: var(--red); font-size: 19px; }

/* Магазини */
.stores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.store {
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  padding: 18px 20px;
  background: #fcfcfc;
}
.addr { margin: 0 0 12px; font-weight: bold; }
.store dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: 15px; }
.store dt { color: var(--muted); }
.store dd { margin: 0; }
.map { font-weight: bold; font-size: 15px; }

/* Контакти */
.contacts { display: flex; flex-wrap: wrap; gap: 18px 50px; font-size: 17px; }
.label { display: block; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }

.footer { text-align: center; color: var(--muted); font-size: 14px; padding-top: 22px; padding-bottom: 30px; }

/* Мобилни */
@media (max-width: 640px) {
  .header { grid-template-columns: 1fr 1fr; padding-bottom: 24px; }
  .logo { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .nav-left { grid-row: 2; }
  .nav-right { grid-row: 2; }
  .card section { padding: 0 4px; }
  h1, h2 { font-size: 19px; padding: 12px 14px; }
}

.mapframe { display: block; width: 100%; height: 220px; border: 0; margin: 0 0 14px; background: #eee; }
