:root {
  color-scheme: light;
  --gstd-navy: #061735;
  --gstd-blue: #0f6fff;
  --gstd-cyan: #12c8d4;
  --gstd-ink: #0b1934;
  --gstd-muted: #63708a;
  --gstd-surface: #ffffff;
  --gstd-line: #dbe5f2;
  --gstd-bg: #f4f7fb;
  --gstd-open: #159947;
  --gstd-closed: #d73545;
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--gstd-bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--gstd-ink); background: var(--gstd-bg); }
button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.gstd-sr-only,
.gstd-directory__status {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.gstd-directory {
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(18, 200, 212, .1), transparent 26rem),
    radial-gradient(circle at 95% 5%, rgba(15, 111, 255, .11), transparent 28rem),
    var(--gstd-bg);
}

.gstd-directory__header {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #04142f 0%, #08295b 64%, #0b4781 100%);
  padding: 20px max(18px, env(safe-area-inset-right)) 22px max(18px, env(safe-area-inset-left));
}

.gstd-directory__header::before,
.gstd-directory__header::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(18, 200, 212, .22);
  border-radius: 50%;
  pointer-events: none;
}
.gstd-directory__header::before { width: 250px; height: 250px; left: -175px; top: -185px; box-shadow: 0 0 0 36px rgba(18, 200, 212, .035); }
.gstd-directory__header::after { width: 230px; height: 230px; right: -95px; bottom: -174px; box-shadow: 0 0 0 34px rgba(18, 200, 212, .05), 0 0 0 68px rgba(18, 200, 212, .035); }

.gstd-directory__header-inner,
.gstd-directory__main { width: min(1120px, 100%); margin: 0 auto; }

.gstd-directory__header-inner {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.gstd-directory__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.03em;
}
.gstd-directory__brand img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0,0,0,.18)); }
.gstd-directory__brand span { font-size: 1.42rem; }
.gstd-directory__header h1 {
  margin: 0;
  max-width: 720px;
  color: #fff;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.gstd-directory__main { padding: 16px 20px 34px; }
.gstd-directory__filters {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 9px;
  border: 1px solid rgba(210, 223, 239, .94);
  border-radius: 18px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 34px rgba(4, 28, 65, .1);
  backdrop-filter: blur(16px);
}

.gstd-field { min-width: 0; }
.gstd-field__control { position: relative; display: flex; align-items: center; min-width: 0; }
.gstd-field__control > svg {
  position: absolute;
  z-index: 2;
  left: 14px;
  width: 18px;
  height: 18px;
  fill: #0f6fff;
  pointer-events: none;
}
.gstd-field input {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #ccd9ea;
  border-radius: 13px;
  background: #fff;
  color: var(--gstd-ink);
  padding: 0 42px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.gstd-field--search input { padding-right: 14px; }
.gstd-field input:focus { border-color: var(--gstd-blue); background: #fff; box-shadow: 0 0 0 4px rgba(15,111,255,.12); }
.gstd-field input::placeholder { color: #6f7d92; opacity: 1; }

.gstd-city-combobox { isolation: isolate; }
.gstd-field__toggle {
  position: absolute;
  z-index: 3;
  right: 4px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #53647d;
  cursor: pointer;
}
.gstd-field__toggle:hover { background: #eef5ff; color: var(--gstd-blue); }
.gstd-field__toggle span { font-size: 1.15rem; line-height: 1; transition: transform .16s ease; }
.gstd-city-combobox.is-open .gstd-field__toggle span { transform: rotate(180deg); }
.gstd-city-combobox__options {
  position: absolute;
  display: block;
  z-index: 50;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  max-height: 268px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #c9d8eb;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(4, 28, 65, .18);
}
.gstd-city-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--gstd-ink);
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}
.gstd-city-option:hover,
.gstd-city-option.is-active { background: #eef5ff; color: #0757c8; }
.gstd-city-option[aria-selected="true"] { background: #e5f0ff; color: #064dab; font-weight: 800; }
.gstd-city-option small { flex: 0 0 auto; color: #77859a; font-size: .72rem; }
.gstd-city-option--empty { justify-content: center; color: var(--gstd-muted); cursor: default; }

.gstd-directory__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 16px;
}
.gstd-menu-card {
  --card-accent: var(--gstd-blue);
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 16px;
  min-height: 146px;
  overflow: hidden;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--gstd-line);
  border-radius: 20px;
  background: var(--gstd-surface);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(12, 38, 74, .07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gstd-menu-card:hover { transform: translateY(-3px); border-color: #bed1eb; box-shadow: 0 18px 38px rgba(12, 38, 74, .13); }
.gstd-menu-card:focus-visible { outline: 3px solid rgba(15,111,255,.32); outline-offset: 3px; }
.gstd-menu-card__identity { display: grid; justify-items: center; align-content: center; gap: 9px; min-width: 0; }
.gstd-menu-card__logo {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid #e2eaf4;
  border-radius: 18px;
  background: linear-gradient(145deg, #eef4fc, #fff);
  color: var(--card-accent);
  font-size: 1.3rem;
  font-weight: 950;
}
.gstd-menu-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.gstd-menu-card__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: max-content;
  max-width: 88px;
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .03em;
  white-space: nowrap;
}
.gstd-menu-card__status i { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 3px currentColor; opacity: .9; }
.gstd-menu-card__status.is-open { color: var(--gstd-open); }
.gstd-menu-card__status.is-closed { color: var(--gstd-closed); }

.gstd-menu-card__body { display: grid; min-width: 0; gap: 7px; }
.gstd-menu-card__headline { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.gstd-menu-card__name {
  min-width: 0;
  overflow: hidden;
  color: #091a37;
  font-size: 1.08rem;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gstd-card-discount { flex: 0 0 auto; padding: 6px 8px; border-radius: 9px; background: #fff0f1; color: #cf2035; font-size: .68rem; font-weight: 950; }
.gstd-menu-card__location { display: flex; align-items: center; gap: 6px; min-width: 0; color: #68768c; font-size: .84rem; }
.gstd-menu-card__location svg { flex: 0 0 auto; width: 15px; height: 15px; fill: #7790b1; }
.gstd-menu-card__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 1px; }
.gstd-menu-card__fact {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 27px;
  padding: 5px 7px;
  border: 1px solid #e2eaf4;
  border-radius: 9px;
  background: #f7f9fc;
  color: #40516a;
  font-size: .72rem;
  font-weight: 750;
  line-height: 1.15;
}
.gstd-menu-card__fact svg { flex: 0 0 auto; width: 14px; height: 14px; fill: var(--card-accent); }
.gstd-menu-card__fact--delivery { flex-basis: auto; }
.gstd-menu-card__arrow { color: #8ca0ba; font-size: 2rem; font-weight: 300; transition: transform .18s ease; }
.gstd-menu-card:hover .gstd-menu-card__arrow { transform: translateX(3px); color: var(--gstd-blue); }

.gstd-directory__more { display: flex; justify-content: center; margin-top: 22px; }
.gstd-directory__button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  background: var(--gstd-blue);
  color: #fff;
  padding: 0 23px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15,111,255,.22);
}
.gstd-directory__button:hover { filter: brightness(.96); }
.gstd-directory__button:disabled { opacity: .55; cursor: wait; }

.gstd-directory__state { display: grid; justify-items: center; gap: 12px; padding: 48px 20px; text-align: center; color: var(--gstd-muted); }
.gstd-directory__state strong { color: var(--gstd-ink); font-size: 1.15rem; }
.gstd-directory__state p { max-width: 500px; margin: 0; line-height: 1.55; }
.gstd-directory__spinner { width: 38px; height: 38px; border: 4px solid #dce8f8; border-top-color: var(--gstd-blue); border-radius: 50%; animation: gstd-spin .8s linear infinite; }
@keyframes gstd-spin { to { transform: rotate(360deg); } }

.gstd-directory__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px calc(22px + env(safe-area-inset-bottom));
}
.gstd-directory__brand-card {
  display: grid;
  width: min(100%, 236px);
  justify-items: center;
  gap: 4px;
  padding: 9px 12px 10px;
  border: 1px solid rgba(201, 213, 229, .82);
  border-radius: 15px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 22px rgba(6, 23, 53, .06);
  color: var(--gstd-muted);
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gstd-directory__brand-card:hover,
.gstd-directory__brand-card:focus-visible { transform: translateY(-1px); border-color: rgba(15,111,255,.4); box-shadow: 0 11px 28px rgba(6,23,53,.1); }
.gstd-directory__brand-card:focus-visible { outline: 3px solid rgba(15,111,255,.28); outline-offset: 3px; }
.gstd-directory__brand-card > span { font-size: 8px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.gstd-directory__brand-card img { display: block; width: auto; max-width: 205px; height: 42px; object-fit: contain; }

.gstd-skip { position: fixed; z-index: 999; left: 16px; top: -60px; padding: 10px 14px; border-radius: 10px; background: #fff; color: #061735; font-weight: 800; transition: top .15s ease; }
.gstd-skip:focus { top: 12px; }

@media (max-width: 760px) {
  .gstd-directory__header { padding: 16px 14px 18px; }
  .gstd-directory__header-inner { gap: 8px; }
  .gstd-directory__brand img { width: 46px; height: 46px; }
  .gstd-directory__brand span { font-size: 1.28rem; }
  .gstd-directory__header h1 { font-size: 1.28rem; }
  .gstd-directory__main { padding: 11px 10px 28px; }
  .gstd-directory__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 7px; border-radius: 15px; }
  .gstd-field input { min-height: 43px; border-radius: 11px; padding-left: 35px; font-size: .82rem; }
  .gstd-field--search input { padding-right: 8px; }
  .gstd-field__control > svg { left: 11px; width: 16px; height: 16px; }
  .gstd-field__toggle { right: 2px; width: 36px; height: 36px; }
  .gstd-city-combobox__options { top: calc(100% + 5px); max-height: 235px; }
  .gstd-directory__list { grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
  .gstd-menu-card { grid-template-columns: 78px minmax(0, 1fr) 18px; gap: 12px; min-height: 138px; padding: 13px 11px 13px 13px; border-radius: 17px; }
  .gstd-menu-card__identity { gap: 8px; }
  .gstd-menu-card__logo { width: 74px; height: 74px; border-radius: 15px; }
  .gstd-menu-card__status { max-width: 78px; font-size: .64rem; }
  .gstd-menu-card__name { font-size: 1rem; }
  .gstd-card-discount { padding: 5px 6px; font-size: .64rem; }
  .gstd-menu-card__facts { gap: 5px; }
  .gstd-menu-card__fact { min-height: 25px; padding: 4px 6px; font-size: .68rem; }
}

@media (max-width: 420px) {
  .gstd-directory__header { padding-top: 14px; }
  .gstd-directory__brand img { width: 44px; height: 44px; }
  .gstd-directory__brand span { font-size: 1.22rem; }
  .gstd-directory__header h1 { font-size: 1.2rem; }
  .gstd-field input { font-size: .75rem; padding-left: 33px; }
  .gstd-field--city input { padding-right: 35px; }
  .gstd-menu-card__headline { align-items: flex-start; }
  .gstd-menu-card__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .gstd-menu-card__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gstd-menu-card__fact { overflow: hidden; }
  .gstd-menu-card__fact--delivery { grid-column: 1 / -1; width: fit-content; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
