*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --shop-text: #1f1f1f;
  --shop-muted: #666666;
  --shop-line: #e7e7e7;
  --shop-panel: #f4f4f2;
  --shop-cta: #2f3437;
  --shop-cta-hover: #25292c;
  --shop-accent-soft: #f3efe6;
  --shop-bg: #ffffff;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--shop-text);
  background: var(--shop-bg);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    "Hiragino Sans",
    "Yu Gothic",
    sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* =========================
   shop page base
========================= */

.shop-page {
  width: 100%;
}

.shop-page h1,
.shop-page h2,
.shop-page h3,
.shop-page p,
.shop-page ul,
.shop-page li,
.shop-page a {
  margin-top: 0;
}

.shop-page p:last-child,
.shop-page ul:last-child,
.shop-page li:last-child {
  margin-bottom: 0;
}

.shop-container {
  width: min(100%, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.shop-header {
  margin-bottom: 20px;
}

.shop-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #777;
}

.shop-title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.shop-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--shop-muted);
}

/* =========================
   hero
========================= */

.shop-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.shop-hero__map,
.shop-hero__side {
  width: 100%;
}

.shop-hero__map {
  order: 1;
}

.shop-hero__side {
  order: 2;
  padding-top: 0;
}

/* =========================
   map
========================= */

.shop-map {
  width: 100%;
  min-height: 260px;
  border: 1px solid #ecebe7;
  border-radius: 4px;
  background: var(--shop-panel);
  overflow: hidden;
}

#map {
  width: 100%;
  min-height: 260px;
  background: var(--shop-panel);
}

/* =========================
   search
========================= */

.shop-search {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--shop-line);
  border-radius: 4px;
  background: #fff;
}

.shop-search__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--shop-muted);
}

.shop-search__input {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0 0 8px;
  padding: 0 12px;
  border: 1px solid #dadada;
  border-radius: 4px;
  background: #fff;
  color: var(--shop-text);
  font-size: 16px;
}

.shop-search__input:focus {
  outline: none;
  border-color: #bcbcbc;
}

/* =========================
   buttons
========================= */

.shop-search__button,
.shop-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  height: 46px;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  background: var(--shop-cta);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.shop-search__button {
  width: 100%;
}

.shop-button:hover,
.shop-search__button:hover {
  background: var(--shop-cta-hover);
}

/* =========================
   result
========================= */

.shop-result {
  width: 100%;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--shop-line);
}

.shop-result__title {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: 0;
}

.shop-result__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}

.shop-result__cta {
  margin-top: 16px;
}

.shop-result__cta .shop-button {
  width: 100%;
}

/* =========================
   sections / cards
========================= */

.shop-section {
  margin-top: 44px;
}

.shop-section__title {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.shop-card {
  border-top: 1px solid var(--shop-line);
  padding-top: 14px;
}

.shop-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0;
}

.shop-card__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--shop-muted);
}

.shop-card--empty {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.shop-contact-button {
  margin: 16px 0 0;
}

.shop-contact-button .shop-button {
  width: 100%;
}

/* =========================
   tablet
========================= */

@media (min-width: 768px) {
  .shop-container {
    width: min(100%, calc(100% - 40px));
    padding: 48px 0 72px;
  }

  .shop-header {
    margin-bottom: 28px;
  }

  .shop-title {
    font-size: 32px;
  }

  .shop-subtitle {
    font-size: 14px;
  }

  .shop-hero {
    gap: 28px;
  }

  .shop-map,
  #map {
    min-height: 380px;
  }

  .shop-search {
    padding: 14px;
  }

  .shop-search__input {
    height: 50px;
  }

  .shop-search__button,
  .shop-button {
    min-height: 50px;
    height: 50px;
  }

  .shop-section {
    margin-top: 56px;
  }

  .shop-section__title {
    margin-bottom: 18px;
    font-size: 20px;
  }

  .shop-grid {
    gap: 22px;
  }
}

/* =========================
   desktop
========================= */

@media (min-width: 1025px) {
  .shop-container {
    width: min(1280px, calc(100% - 48px));
    padding: 64px 0 88px;
  }

  .shop-header {
    max-width: 760px;
    margin-bottom: 32px;
  }

  .shop-title {
    font-size: 36px;
  }

  .shop-hero {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
    align-items: start;
  }

  .shop-hero__side {
    max-width: 400px;
  }

  .shop-map,
  #map {
    min-height: 520px;
  }

  .shop-search {
    padding: 14px;
  }

  .shop-search__button,
  .shop-button {
    min-height: 54px;
    height: 54px;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 36px;
  }

  .shop-section {
    margin-top: 64px;
  }

  .shop-section__title {
    font-size: 22px;
  }
}
