:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #041d29;
  color: #f2f7fa;
  --navy: #062638;
  --panel: #0b2b3b;
  --border: #1c4356;
  --muted: #bacbd5;
  --ice: #ecf1f4;
  --ink: #102938;
  --subtle: #47606f;
  --red: #d7193f;
}

* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: inherit; }
a, button, input, select, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid #55c8ee; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.shell { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
.masthead { background: var(--navy); border-bottom: 1px solid #123f55; }
.masthead-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  min-height: 68px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1rem, 2.25vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -.045em;
  white-space: nowrap;
  text-decoration: none;
}
.monogram {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-size: .9rem;
}
.search {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  background: #10384b;
  border: 1px solid #20485b;
  border-radius: 8px;
}
.search:focus-within { border-color: #55c8ee; }
.search input {
  width: 100%;
  min-width: 0;
  padding: 10px 13px;
  border: 0;
  background: transparent;
  color: #fff;
}
.search input:focus-visible { outline: 0; }
.search input::placeholder { color: #bed0dc; }
.search button {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #d9e8ee;
  cursor: pointer;
}
.search-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.search-icon::after {
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  rotate: 45deg;
  background: currentColor;
  content: "";
}
.age {
  border: 1px solid #456474;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: .79rem;
  font-weight: 740;
}
.masthead nav { border-top: 1px solid #153a4d; }
.nav-inner { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); min-height: 44px; }
.nav-inner a {
  padding-block: 12px;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 700;
  text-decoration: none;
}
.nav-inner a:hover { color: #fff; }
.region { margin-left: auto; color: var(--muted); font-size: .87rem; white-space: nowrap; }
.region-flag { margin-right: 4px; }
.language-switch {
  display: inline-flex;
  flex-shrink: 0;
  gap: 3px;
  padding: 3px;
  border: 1px solid #315267;
  border-radius: 8px;
}
.language-switch button {
  min-width: 36px;
  min-height: 32px;
  padding: 4px 7px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 750;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] { background: var(--red); color: #fff; }
.language-switch button:hover { color: #fff; }

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.hero,
.shortlist,
.catalog {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
}
.hero {
  display: flex;
  align-items: center;
  min-height: 284px;
  background:
    linear-gradient(90deg, #092b3be8 0%, #092b3be8 41%, #092b3b82 100%),
    url("stadium.jpg") 67% 55% / cover;
}
.hero-content { padding: clamp(20px, 3.6vw, 40px); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.85rem, 4.25vw, 3.45rem); line-height: 1.04; letter-spacing: -.05em; }
h1 span { color: #a6def3; }
h1 .hero-title-main { color: inherit; }
.hero p {
  max-width: 49ch;
  margin-top: 16px;
  color: #e0eaf0;
  line-height: 1.55;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-top: 16px;
  color: #f4fbff;
  font-size: .9rem;
  font-weight: 750;
  text-underline-offset: 5px;
}
.hero-link:hover { color: #a6def3; }
.shortlist { padding: 20px; }
.shortlist h2 {
  margin-bottom: 14px;
  font-size: clamp(1.12rem, 2.05vw, 1.52rem);
  letter-spacing: -.025em;
}
.shortlist-items { display: grid; gap: 8px; }
.shortlist-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 61px;
  padding: 9px 10px 9px 12px;
  border: 1px solid #295066;
  border-radius: 8px;
  background: linear-gradient(100deg, #20465b, #16394d);
  text-decoration: none;
}
.shortlist-link:hover { background: #29556b; }
.shortlist-name { display: block; font-weight: 760; font-size: .92rem; }
.shortlist-offer { display: block; margin-top: 3px; color: #ffd383; font-size: .85rem; font-weight: 650; }
.score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  padding: 3px 6px;
  border-radius: 5px;
  background: #072a3b;
  color: #fff;
  font-size: .77rem;
  font-weight: 750;
  line-height: 1.25;
}
.score span:first-child { color: #ffcf65; }
.shortlist-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 720;
}

.catalog { margin-top: 20px; padding: clamp(12px, 2.15vw, 23px); scroll-margin-top: 16px; }
.catalog-heading { padding: 1px 0 16px; }
.catalog-heading h2 {
  font-size: clamp(1.49rem, 3vw, 2.15rem);
  letter-spacing: -.035em;
  line-height: 1.2;
}
.catalog-heading p { margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.toolbar, .toolbar-controls, .sort, .expand { display: flex; align-items: center; }
.toolbar {
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 8px 13px;
  border: 1px solid #315267;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #173b4e;
  font-size: .86rem;
}
#results { color: #fff; font-weight: 730; }
.toolbar-controls { flex-wrap: wrap; gap: 10px 16px; }
.sort, .expand { gap: 7px; color: #e1edf2; }
.sort select {
  min-height: 33px;
  max-width: 176px;
  padding: 5px 7px;
  border: 1px solid #436477;
  border-radius: 6px;
  background: #0d2c3d;
  color: #fff;
}
.expand { cursor: pointer; }
.expand input {
  position: relative;
  width: 33px;
  height: 19px;
  margin: 0;
  appearance: none;
  border: 1px solid #577588;
  border-radius: 999px;
  background: #244c60;
  cursor: inherit;
}
.expand input::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  content: "";
}
.expand input:checked { background: #075c82; border-color: #72c9ec; }
.expand input:checked::after { left: 16px; }
.expand input:indeterminate::after { left: 9px; }

.card-stack {
  display: grid;
  gap: 10px;
  padding: 9px;
  border-radius: 0 0 10px 10px;
  background: #e3eaee;
  color: var(--ink);
}
.card-stack:empty { display: none; }
.operator {
  border: 1px solid #d7e2e8;
  border-radius: 10px;
  background: #fff;
  scroll-margin-top: 16px;
  color-scheme: light;
}
.operator:target { box-shadow: 0 0 0 3px #279dca; }
.operator-main {
  display: grid;
  grid-template-columns: 145px minmax(150px, 1.04fr) minmax(150px, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-height: 114px;
  padding: 12px;
}
.brand-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 91px;
  padding-inline: 7px;
  border-radius: 8px;
  background: linear-gradient(140deg, #15384b, #0e2b3b);
  color: var(--brand-accent);
  text-align: center;
}
.brand-name {
  font-size: 1.17rem;
  font-weight: 850;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.brand-panel.has-score { padding-block: 9px 32px; }
.brand-panel .score { position: absolute; right: 6px; bottom: 6px; }
.operator h3 { font-size: 1.16rem; letter-spacing: -.025em; }
.operator-meta {
  display: grid;
  gap: 3px;
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: .85rem;
  line-height: 1.35;
}
.operator-meta div { display: flex; flex-wrap: wrap; gap: 3px 7px; }
.operator-meta dd { margin: 0; font-weight: 680; }
.offer-tag {
  display: inline-flex;
  color: #185679;
  background: #e9f4fa;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: .72rem;
  font-weight: 730;
}
.offer-value { margin-top: 5px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.027em; line-height: 1.24; }
.restriction { margin-top: 6px; color: #a41630; font-size: .8rem; font-weight: 700; line-height: 1.4; }
.visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: .88rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.visit:hover { background: #b51332; }
.operator .visit:focus-visible, .operator a:focus-visible, .operator summary:focus-visible { outline-color: #08739e; }
.operator details {
  border-top: 1px solid #dae4ea;
  border-radius: 0 0 9px 9px;
  background: #f3f7f9;
  font-size: .88rem;
}
.operator summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: inherit;
  color: #294d60;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.operator summary::-webkit-details-marker { display: none; }
.operator summary::after {
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
  content: "";
}
.operator details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.operator summary:hover { background: #e5eff5; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 12px 16px 16px;
  border-top: 1px solid #dbe6ec;
}
.detail-grid h4 { margin: 0 0 7px; color: #163e54; font-size: .89rem; }
.detail-grid ul { padding-left: 17px; margin: 0; color: var(--subtle); line-height: 1.5; }
.detail-grid dl { margin: 0; line-height: 1.45; }
.detail-grid dl div { display: flex; flex-wrap: wrap; gap: 3px 6px; }
.detail-grid dl div + div { margin-top: 4px; }
.detail-grid dt { color: var(--subtle); }
.detail-grid dd { margin: 0; font-weight: 650; }
.empty { padding: 17px; background: #edf3f6; color: var(--ink); border-radius: 0 0 10px 10px; }
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-block: 18px 26px;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}
.footer span:first-child { font-weight: 750; color: #ecf5fa; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 32px); }
  .operator-main { grid-template-columns: 105px minmax(115px, 1fr) minmax(105px, 1fr) auto; gap: 10px; }
  .brand-name { font-size: .98rem; }
  .visit { padding-inline: 11px; }
  .shortlist { padding: 15px; }
}

@media (max-width: 680px) {
  .masthead-inner { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding-block: 10px; }
  .wordmark { width: max-content; }
  .search { grid-row: 2; grid-column: 1 / -1; }
  .nav-inner { gap: 14px; }
  .nav-inner a, .region { font-size: .79rem; }
  .overview-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 15px; }
  .hero { min-height: 242px; }
  .catalog { margin-top: 14px; }
  .toolbar { align-items: flex-start; flex-direction: column; gap: 6px; }
  .toolbar-controls { width: 100%; justify-content: space-between; gap: 5px 10px; }
  .sort span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .operator-main {
    grid-template-columns: minmax(87px, .65fr) minmax(0, 1fr);
    gap: 10px;
    padding: 9px;
  }
  .brand-panel { min-height: 78px; }
  .operator h3 { font-size: 1.03rem; overflow-wrap: anywhere; }
  .operator-meta { margin-top: 5px; font-size: .78rem; }
  .operator-offer { grid-column: 1 / -1; }
  .operator .visit { grid-column: 1 / -1; }
  .offer-value { font-size: 1.08rem; }
  .detail-grid { grid-template-columns: 1fr; gap: 12px; padding-inline: 12px; }
}

@media (max-width: 375px) {
  .region-flag { margin: 0; }
  .region-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

