:root {
  color-scheme: light;
  --bg: #F4F7FC;
  --paper: #FFFFFF;
  --mist: #F4F7FC;
  --ink: #172033;
  --muted: #4d6074;
  --line: #d9e3ef;
  --accent: #101D3A;
  --accent-bright: #2563EB;
  --accent-soft: #E8F4FF;
  --sky: #38BDF8;
  --teal: #0f7f8c;
  --danger: #b42318;
  --ok: #0b7a45;
  --shadow: 0 10px 28px rgba(15, 76, 129, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent-bright); }

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 0.75rem;
  top: 0.75rem;
  z-index: 5;
  background: var(--paper);
  padding: 0.4rem 0.6rem;
}

.wrap {
  width: min(1120px, calc(100% - 1.5rem));
  margin-inline: auto;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 3;
}

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: 4rem;
  padding: 0.6rem 0;
}

.brand {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  flex: 1 1 auto;
  min-width: 0;
}

.session {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  flex: 1 1 100%;
  min-width: 0;
}

.session form { margin: 0; }

.session a,
.menu-toggle {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.menu-toggle {
  font: inherit;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-bottom: 0.85rem;
}

.site-nav a {
  color: var(--accent);
  background: var(--mist);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.soon {
  font-size: 0.95rem;
  color: var(--muted);
}

.js .site-nav { display: none; }
.js .site-nav.open { display: flex; flex-direction: column; }

main { padding: 1.25rem 0 2.5rem; }

h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 0.55rem; }

h2 { font-size: 1.25rem; margin: 0 0 0.45rem; }

h3 { font-size: 1.05rem; margin: 0.8rem 0 0.3rem; }

.lead { font-size: 1.2rem; max-width: 36rem; margin: 0 0 0.45rem; font-weight: 600; color: var(--accent); }

.hero {
  background:
    radial-gradient(42rem 16rem at 100% 0%, #d7f6f8 0%, transparent 58%),
    linear-gradient(180deg, #f3f8ff, #fff 78%);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.15rem 1rem 1.2rem;
  box-shadow: var(--shadow);
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.search-bar,
.filters,
form.stack,
.card form,
fieldset {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.search-bar { margin-top: 0.4rem; }

.card,
.listing-card,
.category-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card { padding: 1rem; margin: 0.9rem 0; }

.category-grid,
.cards {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.category-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  min-height: 7.4rem;
  padding: 1.05rem 1.1rem;
  color: var(--ink);
  text-decoration: none;
  border-left: 6px solid var(--cat, var(--accent-bright));
}

.category-card:hover,
.listing-card:hover { border-color: var(--accent-bright); }

.listing-card { overflow: hidden; }

.listing-card a { text-decoration: none; }

.listing-card .body { padding: 0.9rem 1rem 1rem; }

.placeholder,
.photos img,
.listing-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--mist);
  display: block;
}

.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.photos { list-style: none; padding: 0; display: grid; gap: 0.75rem; }

.meta, .gol, .nota, .crumbs { color: var(--muted); }

.price { font-weight: 700; color: var(--accent); font-size: 1.2rem; }

label { display: block; font-weight: 600; }

input[type="file"] {
  width: 100%;
  max-width: 100%;
  min-height: 2.75rem;
  font: inherit;
  font-size: 1rem;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]),
select,
textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

textarea { min-height: 7rem; resize: vertical; }

button,
a.button {
  font: inherit;
  background: var(--accent-bright);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 0.65rem 1rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

button.secondary,
a.button.secondary,
.session button {
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line);
}

button.danger {
  background: #fff;
  color: var(--danger);
  border: 1px solid #f0c7ce;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #8eb7ef;
  outline-offset: 2px;
}

.error { color: var(--danger); }

.ok { color: var(--ok); }

.text { white-space: pre-wrap; overflow-wrap: anywhere; }

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--mist);
  padding: 1.4rem 0 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin-bottom: 0.7rem;
}

.site-footer a { text-decoration: none; }

ul { margin: 0; padding-left: 1.2rem; }

@media (min-width: 768px) {
  .menu-toggle { display: none; }
  .session { flex: 0 1 auto; }
  .js .site-nav,
  .site-nav { display: flex; flex-direction: row; }
  .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid,
  .city-grid,
  .editorial-grid,
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters button { grid-column: 1 / -1; justify-self: start; }
  .hero { padding: 2.2rem 2rem; }
}

@media (min-width: 1024px) {
  .category-grid,
  .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding: 1.8rem 1.7rem 1.6rem; }
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(16rem, 0.95fr);
    grid-template-areas:
      "copy art"
      "actions art"
      "search art";
    gap: 0.7rem 1.5rem;
    align-items: center;
  }
  .hero-copy { grid-area: copy; }
  .hero-actions { grid-area: actions; margin: 0; }
  .hero-search { grid-area: search; margin: 0; }
  .hero-art {
    grid-area: art;
    align-self: stretch;
    display: flex;
    overflow: hidden;
    border-radius: 18px;
  }
  .hero-scene { height: 100%; min-height: 18rem; aspect-ratio: auto; object-fit: cover; }
}

@media (min-width: 1440px) {
  .wrap { width: min(1180px, calc(100% - 2rem)); }
}

.brand { display: inline-flex; align-items: center; gap: 0.65rem; }
.brand-mark { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; display: block; }
.mark-compact { display: none; }

.hero-layout { display: grid; gap: 0.9rem; }
.hero-sub { margin: 0; max-width: 40rem; }
.hero-art { position: relative; min-width: 0; }
.hero-scene {
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 440;
  display: block;
  border-radius: 18px;
  background: #e7f3ff;
}
.float-cards {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.6rem;
}
.float-cards p {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  box-shadow: var(--shadow);
  font-size: 1rem;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}
.badge.alert { background: #fde8e6; color: var(--danger); }
.badge.ok { background: #e5f6ee; color: var(--ok); }
.badge.teal { background: #e5f7f8; color: var(--teal); }
.icon {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  color: var(--accent-bright);
}
.cat-chirii { --cat: #0d4ed8; }
.cat-joburi { --cat: #0f7f8c; }
.cat-marketplace { --cat: #0b7a45; }
.cat-auto { --cat: #0b2f6b; }
.cat-servicii { --cat: #1278d6; }
.cat-afaceri { --cat: #0c8f9e; }
.cat-icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--cat, var(--accent-bright));
  color: #fff;
}
.cat-icon svg { width: 1.7rem; height: 1.7rem; display: block; }
.cat-copy { display: grid; gap: 0.2rem; min-width: 0; }
.cat-title { font-size: 1.12rem; font-weight: 700; }
.cat-text { color: var(--muted); font-weight: 500; }
.category-card:hover {
  transform: translateY(-3px);
  border-color: var(--cat, var(--accent-bright));
}
.search-panel { display: grid; gap: 0.55rem; }
.reason-list { display: grid; gap: 0.7rem; }
.reason-list article { margin: 0; }
.city-list, .choice-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.city-list a, .choice-list a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--accent);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.hero-art { animation: rise 0.45s ease; }

@media (max-width: 390px) {
  .brand-full { display: none; }
  .mark-compact { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 768px) {
  .search-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-panel button { grid-column: 1 / -1; justify-self: start; }
}

.band { margin: 0.85rem 0 1rem; }
.band h2 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
.intro { color: var(--muted); margin: 0 0 1rem; max-width: 42rem; }
.city-more { margin-top: 1rem; }
.city-grid,
.editorial-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
}
.city-card,
.editorial-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.city-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e7f3ff;
}
.city-card span,
.editorial-card { gap: 0.35rem; }
.city-card span { display: grid; padding: 0.9rem 1rem 1.05rem; }
.city-card strong,
.editorial-card strong { font-size: 1.15rem; }
.city-card em { font-style: normal; color: var(--accent-bright); font-weight: 600; }
.editorial-card { padding: 1.1rem; min-height: 11rem; }
.editorial-card span:last-child { color: var(--muted); }
.city-card:hover,
.editorial-card:hover { transform: translateY(-3px); }
.empty-panel {
  margin: 0;
  padding: 1.15rem 1rem;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--mist);
}
.reason-list { list-style: none; padding: 0; }
.reason-list li,
.invite {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}
.invite {
  background: linear-gradient(135deg, #e7f0ff, #e7f8f8);
  padding: 1.3rem 1.15rem;
}
.search-panel button { min-height: 3rem; font-weight: 700; }

@media (max-width: 767px) {
  .hero-actions { display: grid; }
  .hero-actions .button,
  .search-panel button { width: 100%; }
}

@media (min-width: 1024px) {
  .editorial-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-art { display: block; align-self: center; overflow: visible; }
  .hero-scene {
    height: auto;
    aspect-ratio: 720 / 440;
    object-fit: contain;
  }
  .float-cards {
    position: absolute;
    left: 0.55rem;
    bottom: 0.55rem;
    width: min(12.5rem, 48%);
    margin: 0;
  }
  .float-cards p { padding: 0.35rem 0.6rem; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  background: #101D3A;
  border-bottom: 3px solid #38BDF8;
}
.site-header .topbar {
  min-height: 3.7rem;
  gap: 0.45rem 0.7rem;
}
.site-header .brand { color: #fff; gap: 0.45rem; }
.brand-mark { width: 2.6rem; height: 1.6rem; }
.wordmark { display: grid; line-height: 1; }
.word-ro { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; }
.word-uk { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.01em; }
.word-uk b { color: #DC2626; margin-right: 0.15rem; }
.site-header .site-nav { flex: 1 1 100%; padding-bottom: 0.55rem; }
.site-header .site-nav a {
  background: transparent;
  color: #fff;
  font-weight: 600;
  min-height: 2.4rem;
  padding: 0.15rem 0.5rem;
}
.site-header .site-nav a.is-current {
  background: #2563EB;
  color: #fff;
}
.site-header .site-nav svg { display: block; }
.site-header .soon { color: #d5e4ff; }
.site-header .session { color: #fff; margin-left: auto; }
.site-header .session-name {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.site-header .session a,
.site-header .session button {
  color: #fff;
  text-decoration: none;
  background: transparent;
  border-radius: 999px;
}
.site-header .session button {
  border: 1px solid rgba(255, 255, 255, 0.7);
  min-height: 2rem;
  padding: 0.15rem 0.7rem;
  font: inherit;
  cursor: pointer;
}
.site-header a.button.ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
}
.site-header a.button.yellow {
  background: #FACC15;
  color: #172033;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}
.site-header .menu-toggle { background: #2563EB; }

.banner {
  position: relative;
  min-height: 22rem;
  color: #fff;
  overflow: hidden;
  background: #101D3A;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(16, 29, 58, 0.62), rgba(16, 29, 58, 0.18) 42%, rgba(16, 29, 58, 0.68));
}
.banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
}
.banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.7rem 0 0.4rem;
}
.banner h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.uk-badge {
  display: inline-block;
  background: #DC2626;
  color: #fff;
  border-radius: 5px;
  padding: 0 0.2em;
  line-height: 1.05;
}
.banner-lead {
  margin: 0.2rem 0 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
}
.search-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 38rem;
  margin: 0.75rem auto 0;
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.28rem 0.28rem 0.85rem;
}
.search-pill input {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  min-height: 2.4rem;
  padding: 0.2rem 0.3rem;
  border-radius: 0;
}
.search-pill button {
  border-radius: 999px;
  background: #2563EB;
  min-width: 7.2rem;
  padding-inline: 1rem;
}
.banner-points {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.4rem;
  margin: 0.45rem 0 0;
  padding: 0;
}
.banner-points a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 3px rgba(16, 29, 58, 0.85);
}
.banner-points strong,
.banner-points small { display: block; }
.banner-points small { font-weight: 500; color: #e7eefc; }
.point-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #FACC15;
  color: #172033;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.point-icon svg { width: 1.2rem; height: 1.2rem; }
.unfinished-note {
  display: inline-block;
  margin: 0.35rem 0 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(8, 20, 48, 0.55);
  color: #fff;
  font-size: 0.95rem;
}
.filter-band {
  display: grid;
  gap: 0.55rem;
  margin: 0.45rem auto 0;
}
.filter-band label { font-size: 0.95rem; }
.filter-band input,
.filter-band select { min-height: 2.6rem; }

.section-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.35rem 1rem;
  margin-bottom: 0.7rem;
}
.section-row h2 {
  margin: 0;
  color: #101D3A;
  box-shadow: inset 0 -3px 0 #FACC15;
}
.section-row p { margin: 0; color: var(--muted); flex: 1 1 16rem; }
.text-link { font-weight: 700; white-space: nowrap; }
.photo-grid,
.news-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}
.photo-card,
.city-tile,
.news-tile {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  background: #101D3A;
  min-height: 9.4rem;
}
.photo-card img,
.city-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: auto;
  transition: transform 0.25s ease;
}
.photo-card:hover img,
.city-tile:hover img { transform: scale(1.04); }
.photo-card .news-visual { z-index: 0; }
.photo-card::after,
.city-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 29, 58, 0.05) 40%, rgba(16, 29, 58, 0.88) 100%);
}
.city-tile::after {
  background: linear-gradient(180deg, rgba(16, 29, 58, 0) 62%, rgba(16, 29, 58, 0.82) 100%);
}
.photo-body,
.city-name,
.unfinished,
.news-tile .badge,
.news-tile strong,
.news-tile small {
  position: relative;
  z-index: 1;
}
.photo-body {
  margin-top: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.35rem;
  align-items: end;
  width: 100%;
  padding: 0.55rem;
}
.photo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #2563EB;
  display: grid;
  place-items: center;
}
.photo-icon svg { width: 1.05rem; height: 1.05rem; }
.photo-copy { display: grid; min-width: 0; }
.photo-copy strong,
.city-name,
.news-tile strong { font-size: 1rem; text-shadow: 0 1px 2px rgba(16, 29, 58, 0.8); }
.photo-copy small,
.news-tile small {
  color: #e7eefc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chevron { font-size: 1.4rem; line-height: 1; }
.unfinished {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  z-index: 2;
  background: rgba(8, 20, 48, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  font-size: 0.95rem;
}
.city-name {
  margin-top: auto;
  padding: 0.45rem 0.6rem;
}
.news-tile {
  display: grid;
  align-content: end;
  gap: 0.25rem;
  min-height: 9.2rem;
  padding: 0.7rem;
  background: #12356f;
}
.news-visual {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1d4e9a, #101D3A 55%, #17356e);
}
.news-visual.alt { background: linear-gradient(135deg, #2457b5, #102848); }
.news-visual.guide { background: linear-gradient(135deg, #0f7f8c, #101D3A); }
.news-tile .badge { justify-self: start; background: #FACC15; color: #172033; }
.credit-list { display: grid; gap: 0.75rem; padding-left: 1.2rem; }
.credit-list a { overflow-wrap: anywhere; }

@media (max-width: 767px) {
  .search-pill { border-radius: 16px; }
  .search-pill button { width: auto; }
  .photo-grid,
  .city-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .filter-band { grid-template-columns: 1.1fr 1.1fr 0.8fr; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .site-header .topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "brand session" "nav nav";
    align-items: center;
    column-gap: 1rem;
    row-gap: 0;
    min-height: 0;
    padding: 0.4rem 0 0.15rem;
  }
  .site-header .brand { grid-area: brand; flex: none; min-width: max-content; }
  .site-header .session {
    grid-area: session;
    margin: 0;
    justify-content: flex-end;
    justify-self: end;
    flex-wrap: wrap;
    min-width: 0;
  }
  .site-header .site-nav {
    grid-area: nav;
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.1rem 0.15rem;
    padding: 0 0 0.3rem;
  }
  .site-header .site-nav a {
    padding: 0.1rem 0.45rem;
    white-space: nowrap;
    min-height: 2.1rem;
  }
}

@media (min-width: 1024px) {
  .site-header a.button { min-height: 2.3rem; padding: 0.3rem 0.7rem; white-space: nowrap; }
  .banner { min-height: 24rem; }
  .photo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-card,
  .city-tile { min-height: 11rem; }
}
@media (min-width: 1024px) and (max-height: 860px) {
  .banner { min-height: 18.5rem; }
}

@media (min-width: 1280px) {
  .photo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.home-split {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.4rem;
}
.home-news,
.home-ads {
  min-width: 0;
  background: #fff;
  border: 1px solid #d7e0ee;
  border-radius: 16px;
  padding: 1rem;
}
.home-news h2,
.home-ads h2 {
  margin: 0 0 0.7rem;
  color: #101D3A;
  font-size: 1.2rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #101D3A;
}
.home-ads h2 { border-bottom-color: #2563EB; }
.panel-empty { margin: 0; font-weight: 700; }
.panel-meta { margin: 0.3rem 0 0; font-size: 0.95rem; }
.home-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.home-feed a { font-weight: 700; }
.home-feed p { margin: 0.15rem 0 0; color: #52637a; }
.home-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0; }
.home-actions a { min-height: 2.75rem; }
@media (min-width: 1024px) {
  .home-split { grid-template-columns: 1fr 1fr; align-items: start; }
}

.home-panels {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.4rem;
}
.home-flights,
.home-alerts {
  min-width: 0;
  border-radius: 16px;
  overflow: hidden;
}
.home-flights { background: #101D3A; color: #fff; }
.home-alerts { background: #fff; border: 1px solid #d7e0ee; color: #172033; }
.home-panel-head { padding: 0.85rem 1rem; }
.home-flights .home-panel-head { background: #0c1730; }
.home-alerts .home-panel-head { background: #DC2626; color: #fff; }
.home-panel-head h2 { margin: 0; font-size: 1.05rem; letter-spacing: 0.02em; }
.home-panel-body { padding: 0.9rem 1rem 1rem; }
.home-filters {
  display: grid;
  gap: 0.6rem;
  margin: 0.7rem 0;
}
.home-filters label { display: grid; gap: 0.25rem; font-size: 0.92rem; }
.home-filters select,
.home-filters input {
  min-height: 2.75rem;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d7e0ee;
  background: #fff;
  color: #172033;
  padding: 0.35rem 0.5rem;
}
.home-table-scroll { overflow-x: auto; }
.home-flights table { width: 100%; border-collapse: collapse; min-width: 0; }
.home-flights th,
.home-flights td { white-space: normal; }
.home-flights th,
.home-flights td {
  text-align: left;
  padding: 0.45rem 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
}
.home-alert-list { list-style: none; margin: 0; padding: 0; }
.home-alert-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e6edf5;
}
.home-alert-list a,
.home-feed a { font-weight: 700; color: #101D3A; text-decoration: none; }
.home-alert-list p,
.home-feed p { margin: 0.2rem 0 0; color: #52637a; }
.row-meta { font-size: 0.86rem; }
.row-meta a { font-weight: 600; color: #2563EB; }
.alert-mark,
.story-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #101D3A;
  color: #fff;
  font-weight: 800;
}
.story-mark { width: 4.2rem; height: 3.2rem; background: #F4F7FC; color: #101D3A; border: 1px solid #d7e0ee; }
.live-pill {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 1.4rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #0b7a45;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.home-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.split-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.split-head h2 { flex: 1 1 auto; }
.panel-more { margin: 0.7rem 0 0; }
.home-feed li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.7rem; align-items: start; }
@media (min-width: 1024px) {
  .home-panels { grid-template-columns: 1fr 1fr; align-items: start; }
  .home-filters { grid-template-columns: 1fr 1fr 1fr; }
}

.alert-bar {
  background: #101d3a;
  color: #fff;
  padding: 1rem 0 1.2rem;
}
.alert-bar a { color: #dbeafe; }
.alert-bar .badge { background: #1e3a5f; color: #fff; }

.flight-board {
  background: #1b1f24;
  color: #f8fafc;
  padding: 1rem 0 1.4rem;
}
.flight-board a,
.flight-board button { color: #dbeafe; }
.flight-board button,
.alert-bar button {
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  margin: 0.25rem 0.25rem 0 0;
}
.board-filters {
  display: grid;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.board-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.board-table th,
.board-table td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid #334155;
  vertical-align: top;
}
.status-ok { color: #4ade80; }
.status-wait { color: #facc15; }
.status-bad { color: #f87171; }

@media (max-width: 767px) {
  .board-table thead { display: none; }
  .board-table,
  .board-table tbody,
  .board-table tr,
  .board-table td { display: block; width: 100%; }
  .board-table tr {
    margin: 0.7rem 0;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #334155;
  }
}

@media (min-width: 768px) {
  .board-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Prima pagină: patru panouri și șase pictograme în ecranul de 1366×768. */
body.home main { padding-top: 0; }
body.home .banner { min-height: 0; height: auto; }
body.home .banner-points { display: none; }
body.home .banner h1 { font-size: 1.7rem; line-height: 1.05; margin: 0; }
body.home .banner-lead { font-size: 0.9rem; line-height: 1.2; margin: 0.15rem 0 0; }
body.home .banner-inner { padding: 0.7rem 0 0.55rem; }
body.home .search-pill { width: min(46rem, calc(100% - 1.2rem)); margin: 0.4rem auto 0; }
body.home .home-alert-list li {
  display: grid;
  grid-template-columns: 1.15rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0;
}
body.home .alert-mark { width: 1.15rem; height: 1.15rem; border-radius: 4px; font-size: 0.68rem; }
body.home .search-pill input,
body.home .search-pill button { min-height: 2rem; }

.home-shortcuts {
  list-style: none;
  margin: 0.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.home-shortcuts a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 4.2rem;
  padding: 0.3rem 0.35rem;
  background: #fff;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  color: #101D3A;
  text-decoration: none;
  text-align: center;
}
.home-shortcuts svg { width: 1.15rem; height: 1.15rem; color: #2563EB; }
.home-shortcuts strong { font-size: 0.82rem; line-height: 1.15; }
.home-shortcuts small {
  color: #52637a;
  font-size: 0.68rem;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.alert-title,
.story-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #101D3A;
  text-decoration: none;
}
.alert-date,
.alert-source { white-space: nowrap; font-size: 0.75rem; color: #52637a; }
.alert-source { color: #2563EB; font-weight: 700; text-decoration: none; }
.story-copy { min-width: 0; }
.story-summary {
  margin: 0;
  color: #52637a;
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-badge {
  justify-self: start;
  padding: 0.05rem 0.35rem;
  border-radius: 4px;
  background: #101D3A;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.home-ad-list li {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

@media (min-width: 768px) {
  .home-shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.home .home-alert-list li {
    grid-template-columns: 1.25rem minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0;
  }
}

@media (min-width: 1100px) {
  body.home .wrap { width: min(1760px, calc(100% - 20px)); }
  .site-header { height: 60px; overflow: hidden; }
  .site-header .topbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 57px;
    min-height: 0;
    padding: 0;
    gap: 0.35rem;
  }
  .site-header .brand { flex: 0 0 auto; min-width: 0; }
  .site-header .brand-mark { width: 2rem; height: 1.25rem; }
  .site-header .word-ro { font-size: 0.58rem; }
  .site-header .word-uk { font-size: 0.84rem; }
  .site-header .site-nav {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }
  .site-header .site-nav a {
    min-height: 0;
    height: 1.7rem;
    padding: 0 0.38rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .site-header .soon { font-size: 0.62rem; }
  .site-header .session {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.28rem;
    font-size: 0.78rem;
  }
  .site-header .session-name { max-width: 7.5rem; font-size: 0.78rem; }
  .site-header .session a,
  .site-header .session button,
  .site-header .session a.button {
    min-height: 0;
    height: 1.7rem;
    padding: 0 0.45rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }
  body.home .banner {
    height: 148px;
    min-height: 148px;
    max-height: 148px;
  }
  body.home .banner h1 { font-size: 1.55rem; }
  body.home .banner-lead { font-size: 0.82rem; }
  body.home .banner-inner { padding: 0.85rem 0 0.35rem; }
  body.home .search-pill { max-width: 46rem; padding: 0.12rem 0.12rem 0.12rem 0.75rem; }
  body.home .search-pill input { font-size: 0.92rem; }
  body.home .search-pill input,
  body.home .search-pill button { min-height: 1.85rem; }
  body.home .search-pill button { min-width: 5.2rem; }
  body.home .home-panels,
  body.home .home-split {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 10px 0;
    align-items: stretch;
  }
  body.home .home-flights,
  body.home .home-alerts {
    height: 178px;
    display: flex;
    flex-direction: column;
  }
  body.home .home-panel-head {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0.25rem 0.7rem;
  }
  body.home .home-panel-head h2 {
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  body.home .update-note {
    flex: 0 0 auto;
    max-width: 11.5rem;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: normal;
  }
  body.home .home-panel-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.1rem 0.65rem 0.28rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.home .home-alert-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  body.home .home-alert-list li { padding: 0; border-bottom: 0; }
  body.home .alert-mark { width: 1.15rem; height: 1.15rem; border-radius: 4px; font-size: 0.68rem; }
  body.home .alert-title,
  body.home .alert-date,
  body.home .alert-source { font-size: 0.75rem; }
  body.home .panel-more {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.35rem;
    margin: 0.05rem 0 0;
    font-size: 0.75rem;
    line-height: 1.2;
  }
  body.home .home-alerts .update-note { color: #52637a; max-width: none; white-space: nowrap; }
  body.home .panel-empty { font-size: 0.84rem; }
  body.home .panel-meta { font-size: 0.75rem; margin-top: 0.2rem; }
  body.home .home-shortcuts {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    height: 70px;
    margin: 0;
    gap: 8px;
  }
  body.home .home-shortcuts a { height: 70px; min-height: 0; padding: 0.15rem 0.3rem; }
  body.home .home-news,
  body.home .home-ads {
    height: 200px;
    margin: 0;
    padding: 0.35rem 0.65rem 0.3rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
  }
  body.home .split-head { flex-wrap: nowrap; gap: 0.45rem; }
  body.home .home-news h2,
  body.home .home-ads h2 {
    font-size: 0.95rem;
    margin: 0;
    padding-bottom: 0.15rem;
    white-space: nowrap;
  }
  body.home .split-head a { font-size: 0.75rem; white-space: nowrap; }
  body.home .home-feed {
    flex: 1 1 auto;
    min-height: 0;
    gap: 0;
    align-content: stretch;
  }
  body.home .home-feed li {
    min-height: 0;
    align-items: center;
    gap: 0.45rem;
    padding: 0.12rem 0;
  }
  body.home .story-mark { width: 2.15rem; height: 2.15rem; font-size: 0.8rem; }
  body.home .story-title { font-size: 0.78rem; }
  body.home .story-summary,
  body.home .row-meta { font-size: 0.68rem; line-height: 1.2; }
  body.home .home-feed p { margin: 0; }
}

.home-alerts .update-note { color: #172033; font-size: 0.72rem; font-weight: 700; }
.home-news .update-note { color: #52637a; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.8rem 0 1rem;
  padding: 0;
  list-style: none;
}
.topic-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid #d7e0ee;
  border-radius: 999px;
  background: #fff;
  color: #101D3A;
  text-decoration: none;
  font-weight: 700;
}
.topic-nav a[aria-current="page"] { background: #101D3A; color: #fff; }
.alert-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
.alert-card img,
.article-photo {
  width: 7.5rem;
  height: 5.6rem;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 10px;
}
.topic-mark {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #101D3A;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.article-sections { display: grid; gap: 0.85rem; margin: 1rem 0; }
.article-sections h2 { margin: 0; font-size: 1.05rem; color: #101D3A; }
.article-sections p { margin: 0.25rem 0 0; }
.source-button { margin: 1rem 0; }

.direct-board { margin: 1rem 0 1.6rem; }
.direct-board h1 { color: #101D3A; font-size: 1.6rem; }
.direct-filters {
  display: grid;
  gap: 0.7rem;
  margin: 0.8rem 0 1rem;
}
.direct-filters label { display: grid; gap: 0.25rem; font-weight: 700; color: #101D3A; }
.direct-filters select,
.direct-filters input,
.follow-flight,
.direct-filters button {
  min-height: 2.75rem;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d7e0ee;
  background: #fff;
  color: #172033;
  padding: 0.35rem 0.6rem;
  font: inherit;
}
.follow-flight,
.direct-filters button {
  background: #101D3A;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.direct-table { width: 100%; border-collapse: collapse; }
.direct-table th,
.direct-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid #d7e0ee;
}
.direct-routes { padding-left: 1.1rem; }
.direct-board .card label { display: flex; gap: 0.45rem; align-items: center; min-height: 2.4rem; }

@media (max-width: 767px) {
  .direct-table thead { display: none; }
  .direct-table,
  .direct-table tbody,
  .direct-table tr,
  .direct-table td { display: block; width: 100%; }
  .direct-table tr { margin: 0.8rem 0; padding-bottom: 0.4rem; border-bottom: 1px solid #d7e0ee; }
  .direct-table td { border-bottom: 0; padding: 0.2rem 0; }
  .direct-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #52637a;
  }
}

@media (min-width: 800px) {
  .direct-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

