/* ReWize homepage concept — layout after "Luxury Real Estate Agency Website Design"
   (Ronas IT, Dribbble), rebuilt in the ReWize brand kit: Geologica only, palette from
   brands/rewize.toml + rewize-property-redesign/docs/DESIGN.md. */

@font-face { font-family: "Geologica"; src: url("assets/fonts/Geologica-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Geologica"; src: url("assets/fonts/Geologica-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geologica"; src: url("assets/fonts/Geologica-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geologica"; src: url("assets/fonts/Geologica-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geologica"; src: url("assets/fonts/Geologica-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

/* ---------- Theme tokens ---------- */

/* Version A: "Φως" (daylight). Web palette from the property-page redesign, teal accent. */
.theme-day {
  --page: #FCFCFC;
  --surface: #FFFFFF;
  --tile: #F5F6F8;
  --ink: #14292A;
  --ink-soft: #2C484A;
  --muted: #5F6673;
  --faint: #687080;
  --hint: #8B929E; /* placeholders only */
  --line: #E7E9EE;
  --accent: #25767C;
  --accent-ink: #25767C;
  --accent-hi: #39ABB4; /* brand green, light: text on dark panels and photos */
  --btn: #25767C;
  --btn-ink: #FFFFFF;
  --panel: #0E292B;
  --panel-2: #134144;
  --panel-ink: rgba(255, 255, 255, 0.96);
  --panel-muted: rgba(255, 255, 255, 0.70);
  --chip: #E9F1F2;
  --chip-ink: #1D5D62;
  --lux: #25767C;
  --shadow: 0 18px 40px -24px rgba(14, 41, 43, 0.30);
}

/* On the dark panels the brand green is too dark to read: there the accents take its light shade. */
:is(.service, .footer, .tile--feature, .sl-match, .sl-card--cta, .co-today, .co-role--rw, .co-door--dark, .co-story,
  .ov-tile--date, .ov-appt__when.is-today, .ov-chat, .pr-top--dear, .pr-calc__out, .bl-cta__card--dark, .lp-call,
  .pn-agent, .ar-toc__cta, .at-toc__cta, .fv-tray) { --accent: var(--accent-hi); --accent-ink: var(--accent-hi); --lux: var(--accent-hi); }

/* Version B: "Νύχτα" (midnight). Article palette from brands/rewize.toml, gold accent. */
.theme-night {
  --page: #0B2123;
  --surface: #0F3133;
  --tile: #102E30;
  --ink: rgba(255, 255, 255, 0.96);
  --ink-soft: rgba(210, 220, 235, 0.94);
  --muted: rgba(255, 255, 255, 0.70);
  --faint: rgba(180, 190, 210, 0.86);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #39ABB4;
  --accent-ink: #39ABB4;
  --accent-hi: #39ABB4;
  --btn: #39ABB4;
  --btn-ink: #0B2123;
  --panel: #0E292B;
  --panel-2: #134144;
  --panel-ink: rgba(255, 255, 255, 0.96);
  --panel-muted: rgba(255, 255, 255, 0.70);
  --chip: rgba(255, 255, 255, 0.08);
  --chip-ink: rgba(255, 255, 255, 0.92);
  --lux: #39ABB4;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.7);
}
body.theme-night { background-color: #0B2123; background-image: linear-gradient(180deg, #0B2123 0%, #0F3133 100%); }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Geologica", system-ui, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.frame { max-width: 1440px; margin: 0 auto; padding: 16px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* The "light word" device: the shot's italic serif becomes Geologica 300 in the accent. */
.soft { font-weight: 300; color: var(--accent-ink); }

.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink);
  font-size: 15px; font-weight: 500; cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn--light { background: #FFFFFF; color: #0E292B; height: 40px; font-size: 14px; }

/* ---------- Hero (full screen) ---------- */

/* Rounded and slightly shorter than the screen, so the next section peeks in below. */
.hero {
  position: relative;
  margin: 12px 12px 0;
  border-radius: 28px;
  min-height: calc(100vh - 84px);
  min-height: calc(100svh - 84px);
  overflow: hidden;
  color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  padding: 112px 24px 72px;
  isolation: isolate;
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; z-index: -2; opacity: 0.8; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 72% 62% at 50% 50%, rgba(8,29,30,0.74) 0%, rgba(8,29,30,0.46) 55%, rgba(8,29,30,0.18) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%);
}
.theme-night .hero::after {
  background:
    radial-gradient(ellipse 70% 60% at 50% 52%, rgba(9,32,34,0.82) 0%, rgba(9,32,34,0.50) 55%, rgba(9,32,34,0.30) 100%),
    linear-gradient(180deg, rgba(9,32,34,0.60) 0%, rgba(9,32,34,0) 35%);
}

/* Tabs cut into the top edge of the hero (inverted corners). */
.tab {
  position: absolute; top: 0; z-index: 3;
  background: var(--page); color: var(--ink);
  display: flex; align-items: center; gap: 4px;
  height: 56px; padding: 0 10px;
  border-radius: 0 0 20px 20px;
}
.tab::before, .tab::after {
  content: ""; position: absolute; top: 0; width: 20px; height: 20px;
}
.tab::before { left: -20px; background: radial-gradient(circle at 0 100%, transparent 19.5px, var(--page) 20px); }
.tab::after { right: -20px; background: radial-gradient(circle at 100% 100%, transparent 19.5px, var(--page) 20px); }
.tab--left { left: 0; border-radius: 0 0 20px 0; padding: 0 26px 0 28px; }
.tab--left::before { display: none; }
.tab--center { left: 50%; transform: translateX(-50%); }
.tab--right { right: 0; border-radius: 0 0 0 20px; padding: 0 20px 0 16px; }
.tab--right::after { display: none; }
.theme-night .tab { background: #0B2123; }
.theme-night .tab::before { background: radial-gradient(circle at 0 100%, transparent 19.5px, #0B2123 20px); }
.theme-night .tab::after { background: radial-gradient(circle at 100% 100%, transparent 19.5px, #0B2123 20px); }

.logo { display: block; height: 22px; width: auto; }
.logo--dark { display: none; }
.theme-night .logo--day { display: none; }
.theme-night .logo--dark { display: block; height: 24px; }

.nav a {
  font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-soft); transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: var(--tile); color: var(--ink); }
.lang { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); padding: 8px 10px; }
.login {
  font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 999px;
  background: var(--tile); color: var(--ink);
}

.hero__center { width: 100%; max-width: 1120px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  margin: 0; font-size: clamp(44px, 7vw, 104px); line-height: 0.98;
  font-weight: 600; letter-spacing: -0.035em; text-shadow: 0 2px 28px rgba(8, 29, 30, 0.5);
}
.hero h1 .line2 { display: block; font-weight: 300; }
.hero h1 .smart { color: var(--accent-hi); font-weight: 400; }
.theme-night .hero h1 .line2 { color: #39ABB4; }
.theme-night .hero h1 .smart { color: #39ABB4; }

/* Scroll cue: tells people there is more below the hero. */
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.9);
}
.hero__scroll span {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px);
  animation: nudge 1.8s ease-in-out infinite;
}
.hero__scroll svg { width: 18px; height: 18px; }
.hero__scroll:hover span { background: rgba(255, 255, 255, 0.25); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll span { animation: none; } }
.hero__lead {
  margin: 24px 0 40px; max-width: 520px;
  font-size: 16px; line-height: 1.6; font-weight: 300; color: rgba(255, 255, 255, 0.92);
}
.hero__browse {
  margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35); padding-bottom: 2px;
}
.hero__browse:hover { color: #FFFFFF; border-color: #FFFFFF; }

/* Property search */
.search { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.modes {
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.modes input { position: absolute; opacity: 0; pointer-events: none; }
.modes span {
  display: block; padding: 9px 22px; border-radius: 999px; cursor: pointer;
  font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, 0.9); transition: background .2s ease, color .2s ease;
}
.modes input:checked + span { background: #FFFFFF; color: #14292A; }
.modes input:focus-visible + span { outline: 2px solid #25767C; outline-offset: 2px; }
.theme-night .modes input:checked + span { background: #39ABB4; color: #0B2123; }

.search__bar {
  width: 100%;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr auto; align-items: center; gap: 4px;
  padding: 8px 8px 8px 12px; text-align: left;
  background: rgba(255, 255, 255, 0.97); color: #14292A;
  border-radius: 999px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55);
}
.theme-night .search__bar { background: rgba(9, 32, 34, 0.88); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(12px); }
.field {
  display: flex; align-items: center; gap: 12px; padding: 6px 14px;
  border-right: 1px solid #E7E9EE; min-width: 0;
}
.theme-night .field { border-color: rgba(255, 255, 255, 0.12); }
.field:nth-child(4) { border-right: 0; }
.field > div { min-width: 0; flex: 1; }
.field__icon {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; background: #F5F6F8; color: #25767C;
}
.theme-night .field__icon { background: rgba(57, 171, 180, 0.14); color: #39ABB4; }
.field__icon svg { width: 18px; height: 18px; }
.field label { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.04em; color: var(--muted); }
.theme-night .field label { color: rgba(255, 255, 255, 0.6); }
.field select, .field input {
  display: block; width: 100%; border: 0; background: transparent; padding: 2px 0 0;
  font-size: 14px; font-weight: 600; appearance: none; outline: none;
  text-overflow: ellipsis; white-space: nowrap;
}
.field select { cursor: pointer; }
.field input::placeholder { color: var(--hint); font-weight: 400; }
.theme-night .field input::placeholder { color: rgba(255, 255, 255, 0.45); }
.theme-night .field select option { color: #14292A; }
.btn--search { height: 56px; padding: 0 28px; white-space: nowrap; }
.btn--search svg { width: 18px; height: 18px; }

/* ---------- Search results ---------- */

.results { padding: 88px 24px 24px; scroll-margin-top: 16px; }
.results[hidden] { display: none; }
.results__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.results h2 { margin: 8px 0 0; font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.results__tools { display: flex; align-items: center; gap: 10px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.sort select {
  height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; font-size: 14px; font-weight: 500; cursor: pointer;
}
.theme-night .sort select option { color: #14292A; }
.results__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
.results .card:nth-child(n) .card__media { aspect-ratio: 4 / 3; }
.results__empty { padding: 48px 0; font-size: 16px; color: var(--muted); text-align: center; }

/* ---------- About ---------- */

.about { padding: 56px 0 96px; }
.about__grid { display: grid; grid-template-columns: 200px 1fr; gap: 48px; }
.about__lead {
  margin: 0; font-size: clamp(26px, 3.1vw, 42px); line-height: 1.22;
  font-weight: 500; letter-spacing: -0.02em; max-width: 880px;
}
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 72px; }
.stat__num { font-size: clamp(40px, 4.4vw, 60px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; }
.stat__num small { font-size: 0.5em; font-weight: 400; color: var(--accent-ink); margin-left: 2px; }
.stat__label { margin-top: 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ---------- Strip of staggered cards ---------- */

.strip {
  display: grid; grid-template-columns: 1.15fr 1fr 0.95fr 1.15fr 1fr; gap: 16px;
  align-items: start; padding: 0 0 120px;
}
.tile {
  position: relative; display: block; overflow: hidden; border-radius: 20px;
  background: var(--tile); box-shadow: var(--shadow);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile:nth-child(1) { height: 380px; }
.tile:nth-child(2) { height: 320px; margin-top: 60px; }
.tile:nth-child(3) { height: 300px; margin-top: 110px; }
.tile:nth-child(4) { height: 360px; margin-top: 20px; }
.tile:nth-child(5) { height: 330px; margin-top: 80px; }
.tile__tag {
  position: absolute; left: 14px; bottom: 14px;
  padding: 7px 12px; border-radius: 999px; font-size: 12px; font-weight: 500;
  background: rgba(255, 255, 255, 0.92); color: #14292A;
}
.tile--feature {
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%);
  color: var(--panel-ink); padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
}
.theme-night .tile--feature { background: linear-gradient(160deg, #39ABB4 0%, #25767C 100%); color: #0B2123; }
.tile--feature h3 { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; }
.tile--feature h3 span { font-weight: 300; display: block; }
.tile--feature p { margin: 0; font-size: 13px; line-height: 1.5; opacity: 0.75; }
.arrow {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: #FFFFFF; color: #0E292B;
  transition: transform .25s ease;
}
.theme-night .tile--feature .arrow { background: #0B2123; color: #39ABB4; }
.tile:hover .arrow { transform: rotate(45deg); }
.arrow svg { width: 16px; height: 16px; }

/* ---------- Services panel ---------- */

.service {
  display: grid; grid-template-columns: 1fr 1.25fr; min-height: 520px;
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%); color: var(--panel-ink);
}
.theme-night .service { background: linear-gradient(160deg, #102E30 0%, #0B2123 100%); border: 1px solid rgba(255, 255, 255, 0.12); }
.service__copy { padding: 64px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.service h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; }
.service h2 span { display: block; font-weight: 300; color: var(--accent-hi); }
.theme-night .service h2 span { color: #39ABB4; }
.service p { margin: 0 0 28px; max-width: 420px; font-size: 15px; line-height: 1.65; font-weight: 300; color: var(--panel-muted); }
.service ul { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.service li {
  font-size: 13px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16); color: rgba(255, 255, 255, 0.86);
}
.service__img { position: relative; }
.service__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service__img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--panel) 0%, rgba(14, 41, 43, 0) 30%);
}
.theme-night .service__img::before { background: linear-gradient(90deg, #0D2729 0%, rgba(9, 32, 34, 0) 30%); }

/* ---------- Best properties ---------- */

.best { padding: 120px 0 96px; }
.best__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.best h2 { margin: 0; font-size: clamp(36px, 4.4vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.best__nav { display: flex; gap: 8px; }
.round {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; display: grid; place-items: center; cursor: pointer;
  transition: background .2s ease;
}
.round:hover { background: var(--tile); }
.round svg { width: 18px; height: 18px; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 1fr);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.is-expanded { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; }
.card { scroll-snap-align: start; display: block; }
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 4 / 3.3; border-radius: 20px; overflow: hidden; background: var(--tile); }
.card:nth-child(even) .card__media { aspect-ratio: 4 / 2.9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.badge {
  position: absolute; top: 14px; left: 14px; padding: 6px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--lux); color: #FFFFFF;
}
.theme-night .badge { color: #0B2123; }
.card__price { margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.card__ppsqm { margin-left: 6px; font-size: 13px; color: var(--faint); font-weight: 300; letter-spacing: 0; }
.card__title { margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.card__title sup { font-size: 0.55em; }
.card__area { margin-top: 2px; font-size: 14px; color: var(--muted); font-weight: 300; }
.chips { display: flex; gap: 6px; margin-top: 12px; }
.chips span {
  font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 999px;
  background: var(--chip); color: var(--chip-ink);
}
.more {
  display: flex; width: 100%; height: 56px; margin-top: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s ease;
}
.more:hover { background: var(--tile); }

/* ---------- Footer ---------- */

.footer {
  border-radius: 28px; padding: 56px; margin-top: 16px;
  background: linear-gradient(160deg, var(--panel) 0%, var(--panel-2) 100%); color: var(--panel-ink);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
.theme-night .footer { background: #081A1B; border: 1px solid rgba(255, 255, 255, 0.08); }
.footer img { height: 26px; width: auto; }
.footer p { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--panel-muted); max-width: 300px; font-weight: 300; }
.footer h4 { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.footer a { display: block; font-size: 14px; padding: 5px 0; color: rgba(255, 255, 255, 0.86); }
.footer a:hover { color: #FFFFFF; }
.footer__base {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px;
  padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.45);
}

/* Version switcher (review aid only) */
.switch {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgba(30, 37, 48, 0.88); backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}
.switch a { font-size: 13px; font-weight: 500; padding: 8px 14px; border-radius: 999px; color: rgba(255, 255, 255, 0.75); }
.switch a.is-active { background: #FFFFFF; color: #14292A; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .search__bar { grid-template-columns: 1fr 1fr; border-radius: 28px; padding: 12px; }
  .field:nth-child(2) { border-right: 0; }
  .btn--search { grid-column: 1 / -1; }
  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .tile:nth-child(n+4) { display: none; }
  .service { grid-template-columns: 1fr; }
  .service__img { min-height: 320px; }
  .service__img::before { background: linear-gradient(180deg, var(--panel) 0%, rgba(14, 41, 43, 0) 30%); }
  .footer { grid-template-columns: 1fr 1fr; }
  .rail.is-expanded { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .frame { padding: 10px; }
  .wrap { padding: 0 16px; }
  .tab--center { display: none; }
  .hero { padding: 96px 14px 96px; margin: 8px 8px 0; border-radius: 22px; min-height: calc(100svh - 64px); }
  .hero__scroll { bottom: 16px; }
  .hero__lead { margin: 18px 0 28px; font-size: 15px; }
  .search__bar { grid-template-columns: 1fr; border-radius: 24px; }
  .results { padding: 64px 16px 16px; }
  .results__grid { grid-template-columns: 1fr; }
  .sort span { display: none; }
  .field { border-right: 0; border-bottom: 1px solid #E7E9EE; }
  .theme-night .field { border-color: rgba(255, 255, 255, 0.12); }
  .field:nth-child(4) { border-bottom: 0; }
  .about { padding: 72px 0 56px; }
  .about__grid { grid-template-columns: 1fr; gap: 20px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; }
  .strip { grid-template-columns: 1fr 1fr; padding-bottom: 72px; }
  .tile:nth-child(3) { display: none; }
  .tile:nth-child(n) { height: 240px; margin-top: 0; }
  .tile:nth-child(2) { margin-top: 40px; }
  .service__copy { padding: 40px 24px; }
  .best { padding: 72px 0 56px; }
  .best__nav { display: none; }
  .rail { grid-auto-columns: 82%; }
  .rail.is-expanded { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; padding: 36px 24px; }
  .footer__base { flex-direction: column; }
}
