:root {
  --ink: #07142f;
  --muted: #5b6780;
  --line: #d9e1ed;
  --soft-line: #edf1f7;
  --blue: #075bd8;
  --blue-dark: #061f45;
  --blue-soft: #eaf3ff;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --green: #16863d;
  --amber: #c68400;
  --purple: #6240a8;
  --rose: #c23d55;
  --sky: #11709b;
  --shadow: 0 18px 55px rgba(8, 20, 48, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--wash);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
select,
input {
  font: inherit;
}

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

svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.topbar,
.area-nav,
main,
.site-footer {
  max-width: 1380px;
  margin: 0 auto;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
  padding: 0 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.clock-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 4px solid var(--blue-dark);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, transparent 58%, rgba(7, 91, 216, 0.16) 59%),
    #fff;
  box-shadow: inset 0 0 0 1px #c4d2e8;
  position: relative;
}

.clock-mark::before,
.clock-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  background: var(--blue-dark);
  border-radius: 3px;
  transform-origin: bottom center;
}

.clock-mark::before {
  height: 12px;
  transform: translate(-50%, -100%) rotate(0deg);
}

.clock-mark::after {
  height: 9px;
  transform: translate(-50%, -100%) rotate(88deg);
}

.clock-mark span {
  width: 5px;
  height: 5px;
  background: var(--blue);
  border-radius: 50%;
  z-index: 1;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2.5rem);
  font-size: 0.94rem;
  font-weight: 600;
}

.main-nav a,
.area-nav a {
  color: #14213d;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.icon-text,
.menu-button,
.login,
.play-button,
.duration-tabs button,
.side-card button,
.time-card {
  border: 0;
  cursor: pointer;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  background: transparent;
  padding: 0.7rem;
}

.login {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.72rem 1.5rem;
  font-weight: 700;
}

.menu-button {
  display: none;
  background: transparent;
  color: var(--ink);
  padding: 0.55rem;
}

.area-nav {
  display: flex;
  gap: 0.7rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 2rem;
  border-top: 1px solid var(--soft-line);
}

.area-nav::-webkit-scrollbar {
  display: none;
}

.area-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 50px;
  padding: 0 1rem;
  border-bottom: 4px solid transparent;
  font-weight: 650;
  white-space: nowrap;
}

.area-nav a.active {
  color: var(--blue);
  border-color: var(--blue);
}

main {
  padding: 1.5rem 2rem 7rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(430px, 1fr) minmax(260px, 290px);
  gap: 2rem;
  align-items: start;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
}

.hero-image {
  min-height: 260px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 55%, rgba(7, 20, 47, 0.58)),
    linear-gradient(135deg, #90b9d9 0%, #dbe9f4 35%, #9eb482 36%, #506b39 60%, #9a382f 61%, #d78451 75%, #283d62 76%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 42% 0 0;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.4) 8% 8.4%, transparent 8.4% 16%),
    linear-gradient(180deg, #b65539 0 31%, #7b2e2b 32% 50%, #315b72 51% 52%, #1a4a6f 53%);
  clip-path: polygon(0 70%, 12% 47%, 25% 56%, 39% 29%, 52% 55%, 68% 39%, 81% 57%, 100% 42%, 100% 100%, 0 100%);
  opacity: 0.92;
}

.hero-image::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  background:
    radial-gradient(ellipse at 30% 35%, rgba(255, 255, 255, 0.85) 0 2%, transparent 3%),
    linear-gradient(180deg, #1d6b7d 0, #244e71 48%, #163b5b 100%);
}

.photo-caption {
  position: absolute;
  left: 1rem;
  bottom: 0.9rem;
  z-index: 2;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 0.35rem;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
.hero-copy h2,
.news-section > h2,
.section-heading h2,
.time-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  line-height: 1.06;
}

h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(3.2rem, 6.2vw, 5.5rem);
  letter-spacing: 0;
}

.date-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  color: #273650;
  font-size: 1.03rem;
}

.date-line span {
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}

.hero-copy h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.listen-row {
  display: grid;
  grid-template-columns: auto minmax(300px, 1fr);
  gap: clamp(1rem, 3vw, 5rem);
  align-items: center;
  margin-top: 1rem;
}

.play-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 50px;
  padding: 0 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #0b69f0, #0048bd);
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(7, 91, 216, 0.23);
}

.play-button svg {
  fill: currentColor;
  stroke: none;
}

.duration-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.duration-tabs button {
  min-height: 42px;
  color: var(--ink);
  background: #fff;
  border-left: 1px solid var(--line);
  font-weight: 700;
}

.duration-tabs button:first-child {
  border-left: 0;
}

.duration-tabs .selected {
  color: #fff;
  background: var(--blue-dark);
}

.progress-ring {
  --size: 92px;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  margin-top: 0.8rem;
  position: relative;
}

.progress-ring i,
.mini-ring::before {
  position: absolute;
  display: block;
  content: "";
  border-radius: 999px;
}

.progress-ring i {
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: #dce7f6;
  transform: rotate(calc(var(--n) * 30deg)) translateY(-38px);
}

.progress-ring i:nth-child(1) { --n: 0; background: #075bd8; }
.progress-ring i:nth-child(2) { --n: 1; background: #2d7ee7; }
.progress-ring i:nth-child(3) { --n: 2; background: #6aa4ee; }
.progress-ring i:nth-child(4) { --n: 3; background: #a4c8f4; }
.progress-ring i:nth-child(5) { --n: 4; }
.progress-ring i:nth-child(6) { --n: 5; }
.progress-ring i:nth-child(7) { --n: 6; }
.progress-ring i:nth-child(8) { --n: 7; }
.progress-ring i:nth-child(9) { --n: 8; }
.progress-ring i:nth-child(10) { --n: 9; background: #9dc4f2; }
.progress-ring i:nth-child(11) { --n: 10; background: #438be9; }
.progress-ring i:nth-child(12) { --n: 11; background: #075bd8; }

.side-panel {
  display: grid;
  gap: 0.8rem;
}

.side-card,
.mobile-city-card,
.news-card,
.time-section,
.time-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.side-card {
  padding: 1.1rem;
}

.side-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.side-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.side-heading svg {
  color: var(--blue-dark);
  width: 1.45rem;
  height: 1.45rem;
}

select,
input {
  width: 100%;
  min-height: 45px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 0.9rem;
  outline: none;
}

.side-card p,
.mobile-city-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.reminder-card input {
  margin: 0.7rem 0;
}

.reminder-card button {
  width: 100%;
  min-height: 40px;
  color: #fff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 800;
}

.ranking-card ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.ranking-card a {
  color: var(--blue);
}

.mobile-city-card {
  display: none;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin: 1rem 0 0.7rem;
}

.section-heading h2,
.time-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
}

.section-heading a {
  color: var(--blue);
  font-weight: 800;
}

.section-heading a::after {
  content: " ->";
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.news-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1rem;
  min-height: 132px;
  padding: 0.95rem;
}

.news-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
}

.news-icon.blue { color: #075bd8; background: #eaf3ff; }
.news-icon.green { color: var(--green); background: #e9f7df; }
.news-icon.amber { color: var(--amber); background: #fff2c6; }
.news-icon.purple { color: var(--purple); background: #f0e9ff; }
.news-icon.rose { color: var(--rose); background: #ffe8eb; }
.news-icon.sky { color: var(--sky); background: #e5f6fb; }

.news-card h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  line-height: 1.25;
}

.news-card p {
  margin-bottom: 0.7rem;
  color: #1d2b45;
  font-size: 0.9rem;
}

.news-card footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.time-section {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 1.2rem;
  align-items: stretch;
  margin-top: 2rem;
  padding: 1.1rem;
}

.time-section p {
  margin-bottom: 0;
  color: var(--muted);
}

.time-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.time-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-areas:
    "ring title"
    "ring text"
    "ring link";
  gap: 0.1rem 1rem;
  min-height: 110px;
  padding: 1rem;
  text-align: left;
}

.time-card.active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.mini-ring {
  grid-area: ring;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) 0 68%, #dce7f6 68% 100%);
  mask: radial-gradient(circle, transparent 48%, #000 50%);
}

.blue-ring { --ring-color: #075bd8; }
.green-ring { --ring-color: #278d53; }
.violet-ring { --ring-color: #6240a8; }

.time-card strong {
  grid-area: title;
  color: var(--ink);
}

.time-card small {
  grid-area: text;
  color: var(--muted);
  font-size: 0.86rem;
}

.time-card em {
  grid-area: link;
  color: var(--blue);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 800;
  margin-top: 0.3rem;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.4rem 2rem 2rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer .brand {
  color: var(--ink);
  font-size: 1.1rem;
}

.site-footer .clock-mark {
  width: 30px;
  height: 30px;
  border-width: 3px;
}

.site-footer p {
  margin: 0;
  font-size: 0.84rem;
}

.bottom-nav {
  display: none;
}

@media (max-width: 1120px) {
  .main-nav,
  .login,
  .icon-text span {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-image,
  .side-panel {
    display: none;
  }

  .mobile-city-card {
    display: grid;
    grid-template-columns: auto minmax(150px, 220px);
    gap: 0.4rem 1rem;
    align-items: center;
    margin-top: 1rem;
    padding: 1rem;
  }

  .mobile-city-card p {
    grid-column: 1 / -1;
  }

  .mobile-city-card .side-heading {
    margin: 0;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .time-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    background: #fff;
    padding-bottom: 76px;
  }

  .site-header {
    position: static;
  }

  .topbar {
    min-height: 86px;
    padding: 0 1.1rem;
    gap: 0.8rem;
  }

  .brand {
    font-size: clamp(1.3rem, 7vw, 1.85rem);
  }

  .clock-mark {
    width: 44px;
    height: 44px;
  }

  .area-nav {
    padding: 0 1rem;
  }

  .area-nav a {
    min-height: 56px;
    padding: 0 1.05rem;
    font-size: 1rem;
  }

  main {
    padding: 1.5rem 1rem 2rem;
  }

  .hero-shell {
    gap: 0;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .title-row {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  h1 {
    font-size: clamp(2.6rem, 13vw, 3.6rem);
    line-height: 1;
  }

  .progress-ring {
    --size: 74px;
    margin-top: 0.6rem;
  }

  .progress-ring i {
    width: 7px;
    height: 7px;
    transform: rotate(calc(var(--n) * 30deg)) translateY(-30px);
  }

  .date-line {
    flex-wrap: wrap;
    font-size: 1rem;
  }

  .hero-copy h2 {
    font-size: 1.7rem;
  }

  .lead {
    font-size: 1rem;
  }

  .listen-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .play-button {
    justify-self: start;
    min-height: 58px;
    padding: 0 1.25rem;
    font-size: 1.05rem;
  }

  .duration-tabs {
    min-width: 0;
    width: 100%;
  }

  .duration-tabs button {
    min-height: 50px;
    font-size: 1rem;
  }

  .mobile-city-card {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 210px);
    margin-top: 1.35rem;
  }

  .section-heading {
    margin-top: 1.5rem;
  }

  .section-heading h2 {
    font-size: 1.55rem;
  }

  .section-heading a {
    white-space: nowrap;
  }

  .news-grid,
  .time-options {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 76px 1fr;
    min-height: 132px;
    padding: 0.85rem;
  }

  .news-icon {
    width: 62px;
    height: 62px;
  }

  .news-icon svg {
    width: 2rem;
    height: 2rem;
  }

  .news-card h3 {
    font-size: 1.06rem;
  }

  .news-card p {
    font-size: 0.95rem;
  }

  .time-section,
  .site-footer {
    display: none;
  }

  .bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 76px;
    padding: 0.45rem 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    gap: 0.15rem;
    color: #17213a;
    font-size: 0.8rem;
    font-weight: 650;
  }

  .bottom-nav a.active {
    color: var(--blue);
  }

  .bottom-nav svg {
    width: 1.55rem;
    height: 1.55rem;
  }
}

@media (max-width: 430px) {
  .topbar {
    min-height: 76px;
  }

  .clock-mark {
    width: 38px;
    height: 38px;
  }

  h1 {
    font-size: clamp(2.2rem, 12.4vw, 3rem);
  }

  .title-row {
    grid-template-columns: minmax(0, 1fr) 62px;
  }

  .progress-ring {
    --size: 58px;
  }

  .progress-ring i {
    width: 6px;
    height: 6px;
    transform: rotate(calc(var(--n) * 30deg)) translateY(-24px);
  }

  .mobile-city-card {
    grid-template-columns: 1fr;
  }

  .news-card {
    grid-template-columns: 58px 1fr;
  }

  .news-icon {
    width: 50px;
    height: 50px;
  }

  .news-icon svg {
    width: 1.55rem;
    height: 1.55rem;
  }
}

/* Homepage shell. Kept here so the production homepage stays styled even if public.css is cached. */
.home-page {
  background: #f7fbff;
}

.home-page .site-header {
  box-shadow: 0 10px 28px rgba(8, 20, 48, 0.06);
}

.home-page .topbar {
  max-width: 1280px;
  min-height: 72px;
}

.home-brand {
  color: #08224d;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 1.35rem;
  font-weight: 850;
}

.home-brand > span:last-child {
  display: grid;
  gap: 0.02rem;
}

.home-brand small {
  color: #55708f;
  font-size: 0.73rem;
  font-weight: 700;
}

.home-main {
  max-width: none;
  padding: 0 0 3rem;
}

.home-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: linear-gradient(90deg, #f6fbff 0%, #edf8ff 48%, #dbf1ff 100%);
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center right;
  background-size: cover;
}

.home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.98) 0%, rgba(247, 251, 255, 0.86) 34%, rgba(247, 251, 255, 0.18) 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 72%, #f7fbff 100%);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 2rem 2rem;
}

.home-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 850;
}

.home-hero h1 {
  max-width: 700px;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(2.45rem, 5vw, 4.35rem);
  line-height: 0.98;
  font-weight: 900;
}

.home-hero h1 span {
  color: #178cf0;
}

.home-hero-content > p:not(.home-kicker) {
  max-width: 520px;
  margin: 0;
  color: #526985;
  font-size: 1.05rem;
  line-height: 1.45;
}

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

.city-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 132px;
  align-items: center;
  gap: 0.55rem;
  max-width: 560px;
  min-height: 58px;
  margin-top: 0.55rem;
  padding: 0.38rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(12, 85, 147, 0.16);
}

.city-search svg {
  margin-left: 0.85rem;
  color: #0e254d;
}

.city-search input {
  min-height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 700;
}

.city-search button {
  min-height: 46px;
  color: #fff;
  background: linear-gradient(135deg, #1c9af5, #0872df);
  border: 0;
  border-radius: 9px;
  font-weight: 850;
  cursor: pointer;
}

.hero-city-badge {
  position: absolute;
  right: max(2rem, calc((100vw - 1280px) / 2 + 2rem));
  bottom: 1.2rem;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.1rem 0.5rem;
  align-items: center;
  padding: 0.55rem 0.75rem;
  color: #fff;
  background: rgba(4, 28, 55, 0.72);
  border-radius: 10px;
  font-weight: 850;
}

.hero-city-badge span {
  grid-row: 1 / span 2;
  width: 11px;
  height: 11px;
  background: #fff;
  border-radius: 999px;
}

.hero-city-badge small {
  color: #cfe9ff;
  font-size: 0.72rem;
}

.home-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 2rem 0;
}

.home-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1rem;
}

.home-section-heading h2 {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1;
  font-weight: 900;
}

.home-section-heading p {
  margin: 0.25rem 0 0;
  color: #647792;
  font-weight: 700;
}

.city-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.city-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce8f4;
  border-radius: 9px;
  box-shadow: 0 12px 26px rgba(8, 20, 48, 0.06);
}

.city-card a {
  display: grid;
}

.city-card-photo {
  position: relative;
  min-height: 145px;
  background-position: center;
  background-size: cover;
}

.city-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 25, 55, 0) 32%, rgba(5, 25, 55, 0.65) 100%);
}

.city-card-photo span {
  position: absolute;
  left: 0.8rem;
  bottom: 0.75rem;
  z-index: 1;
  padding: 0.34rem 0.55rem;
  color: #fff;
  background: rgba(8, 30, 60, 0.78);
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 850;
}

.city-card-body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.82rem 0.9rem;
}

.city-card-body h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.1;
  font-weight: 900;
}

.city-card-body span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.72rem;
  color: var(--blue);
  background: #eaf5ff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.latest-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.latest-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 0.8rem;
  min-height: 140px;
  padding: 0.9rem;
  background: #fff;
  border: 1px solid #dce8f4;
  border-radius: 9px;
  box-shadow: 0 10px 22px rgba(8, 20, 48, 0.05);
}

.latest-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 8px;
}

.latest-meta {
  display: block;
  margin-bottom: 0.25rem;
  color: #5d7190;
  font-size: 0.74rem;
  font-weight: 850;
}

.latest-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.96rem;
  line-height: 1.22;
}

.latest-card p {
  margin: 0;
  color: #52637c;
  font-size: 0.82rem;
  line-height: 1.36;
}

.home-footer {
  grid-template-columns: auto 1fr auto;
  max-width: 1280px;
  margin: 2rem auto 0;
}

.home-footer nav {
  display: flex;
  gap: 1rem;
  font-weight: 800;
}

.city-photo-olsztyn { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/olsztyn.jpg"), linear-gradient(135deg, #96c8e8, #1e5a7c); }
.city-photo-bydgoszcz { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/bydgoszcz.jpg"), linear-gradient(135deg, #87bdd9, #425b79); }
.city-photo-torun { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/torun.jpg"), linear-gradient(135deg, #b77a55, #6b2d34); }
.city-photo-szczecin { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/szczecin.jpg"), linear-gradient(135deg, #86c9eb, #2a6b91); }
.city-photo-wroclaw { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/wroclaw.jpg"), linear-gradient(135deg, #d6a45f, #8d3a34); }
.city-photo-poznan { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/poznan.jpg"), linear-gradient(135deg, #87bbd4, #3c795a); }
.city-photo-krakow { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/krakow.jpg"), linear-gradient(135deg, #d9b16f, #744f86); }
.city-photo-opole { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/opole.jpg"), linear-gradient(135deg, #7cc0dc, #2c7b73); }
.city-photo-warszawa { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/warszawa.jpg"), linear-gradient(135deg, #9ac3df, #515f7c); }
.city-photo-rzeszow { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/rzeszow.jpg"), linear-gradient(135deg, #9fc7de, #57756e); }
.city-photo-lodz { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/lodz.jpg"), linear-gradient(135deg, #cc7a54, #65364a); }
.city-photo-trojmiasto { background-image: linear-gradient(135deg, rgba(13, 80, 140, 0.16), rgba(29, 121, 160, 0.08)), url("/assets/cities/trojmiasto.jpg"), linear-gradient(135deg, #8ecded, #266e8c); }

@media (max-width: 1020px) {
  .home-main-nav {
    display: none;
  }

  .city-card-grid,
  .latest-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .home-page {
    padding-bottom: 0;
  }

  .home-page .topbar {
    min-height: 68px;
  }

  .home-brand {
    font-size: 1.15rem;
  }

  .home-hero {
    min-height: 520px;
  }

  .home-hero-bg {
    inset: auto 0 0;
    height: 54%;
    background-position: center;
  }

  .home-hero-bg::after {
    background:
      linear-gradient(180deg, #f7fbff 0%, rgba(247, 251, 255, 0.78) 22%, rgba(247, 251, 255, 0.08) 76%),
      linear-gradient(180deg, rgba(255, 255, 255, 0) 68%, #f7fbff 100%);
  }

  .home-hero-content {
    padding: 1.65rem 1rem 2rem;
  }

  .home-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.1rem);
  }

  .city-search {
    grid-template-columns: auto minmax(0, 1fr);
    max-width: none;
  }

  .city-search button {
    grid-column: 1 / -1;
  }

  .hero-city-badge {
    right: 1rem;
    bottom: 1rem;
  }

  .home-section {
    padding: 1.7rem 1rem 0;
  }

  .home-section-heading {
    display: grid;
  }

  .city-card-grid,
  .latest-strip {
    grid-template-columns: 1fr;
  }

  .city-card-photo {
    min-height: 170px;
  }

  .latest-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .latest-icon {
    width: 52px;
    height: 52px;
  }

  .home-footer {
    display: grid;
    grid-template-columns: 1fr;
  }
}
