:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #eef3f6;
  --text: #1f2328;
  --muted: #6b7280;
  --line: #d9e1e7;
  --accent: #168a72;
  --accent-dark: #0f6958;
  --amber: #f5b942;
  --shadow: 0 18px 50px rgba(31, 35, 40, .12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(22, 138, 114, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 138, 114, .035) 1px, transparent 1px),
    linear-gradient(180deg, #f7fafb 0%, #f2f8f5 42%, #f5f7fa 100%);
  background-position: center top;
  background-size: 42px 42px, 42px 42px, auto;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(245, 247, 250, .92);
  border-bottom: 1px solid rgba(217, 225, 231, .85);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--text);
  color: var(--amber);
  font-size: 18px;
  font-weight: 900;
}

.nav {
  justify-self: center;
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(217, 225, 231, .92);
  border-radius: 8px;
  color: #46524f;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 12px 30px rgba(31, 35, 40, .07);
}

.nav a,
.site-footer a {
  text-decoration: none;
}

.nav a {
  padding: 9px 14px;
  border-radius: 7px;
  white-space: nowrap;
  transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.nav a:hover {
  background: rgba(22, 138, 114, .09);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.header-action,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.auth-area {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 44px;
}

.telegram-login-widget {
  min-width: 116px;
}

.user-panel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 5px 5px 5px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(31, 35, 40, .08);
}

.user-panel span {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-panel button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: #edf4f2;
  color: var(--accent-dark);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.header-action,
.primary-button {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 138, 114, .22);
}

.header-action:hover,
.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  background: #edf4f2;
  color: var(--accent-dark);
}

.compact {
  min-height: 42px;
  width: 100%;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  padding: clamp(28px, 5vw, 58px) clamp(18px, 4vw, 56px) 28px;
  max-width: 1440px;
  margin: 0 auto;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 26px 4% 18px 0;
  z-index: 0;
  pointer-events: none;
  border-radius: var(--radius);
  background:
    linear-gradient(118deg, transparent 6%, rgba(22, 138, 114, .13) 30%, rgba(245, 185, 66, .06) 47%, transparent 78%);
  filter: blur(16px);
  opacity: .92;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  grid-column: 1 / 2;
  max-width: 660px;
  padding-top: 10px;
}

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

h1 {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-bottom: 16px;
  font-size: 62px;
  line-height: 1.04;
  letter-spacing: 0;
}

.headline-main,
.headline-sub {
  display: block;
}

.headline-main {
  font-size: 64px;
  font-weight: 920;
  letter-spacing: 0;
}

.headline-sub {
  max-width: 720px;
  color: #26302f;
  font-size: 47px;
  font-weight: 850;
  line-height: 1.12;
}

.headline-accent,
.headline-country {
  position: relative;
  display: inline-block;
  font-weight: 930;
}

.headline-accent {
  isolation: isolate;
  color: var(--accent-dark);
  padding: 0 .07em;
}

.headline-accent--animated {
  color: transparent;
  background: linear-gradient(90deg, #0b473c 0%, var(--accent) 36%, #4c9b70 58%, #0b473c 100%);
  background-size: 180% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  animation: headlineTextFlow 5.8s ease-in-out infinite;
}

.headline-accent::before {
  content: "";
  position: absolute;
  inset: .08em -.03em .1em;
  z-index: -1;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(22, 138, 114, .11)),
    linear-gradient(90deg, rgba(245, 185, 66, .12), rgba(22, 138, 114, .13));
  border: 1px solid rgba(22, 138, 114, .13);
  box-shadow: 0 12px 28px rgba(22, 138, 114, .10);
  transform: skewX(-6deg);
}

.headline-country {
  color: #0a5145;
  font-weight: 940;
}

.headline-country::after {
  content: "";
  position: absolute;
  right: .04em;
  bottom: .03em;
  left: .04em;
  height: 3px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(22, 138, 114, .22), rgba(245, 185, 66, .66), rgba(22, 138, 114, .22));
}

@keyframes headlineTextFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .headline-accent--animated {
    animation: none;
  }
}

.lead {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.search-panel {
  grid-column: 1 / 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 18px 54px rgba(22, 138, 114, .12);
}

.field {
  min-width: 0;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  height: 40px;
  border: 1px solid #cfd8de;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.field input:focus,
.field select:focus {
  outline: 2px solid rgba(22, 138, 114, .24);
  border-color: var(--accent);
}

.field select:disabled {
  color: #8a949e;
  background: #f1f4f6;
}

.search-actions {
  grid-column: span 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-actions .primary-button,
.search-actions .secondary-button {
  width: 100%;
}

.search-status {
  grid-column: span 4;
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.search-status:empty {
  display: none;
}

.market-preview {
  grid-column: 2 / 3;
  grid-row: 1 / span 2;
  align-self: stretch;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #18211f;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(31, 35, 40, .22);
}

.listing-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
}

.listing-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}

.listing-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(31, 35, 40, .14);
}

.listing-link:focus-visible {
  outline: 3px solid rgba(22, 138, 114, .28);
  outline-offset: 3px;
}

.listing-photo {
  background-color: #d7e0e5;
  background-size: cover;
  background-position: center;
}

.listing-photo.no-photo {
  display: grid;
  place-items: center;
  color: #52605d;
  font-size: 13px;
  font-weight: 850;
  background: linear-gradient(135deg, #dfe7e8, #b9c8c9);
}

.photo-one {
  background-image: url("https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=720&q=80");
}

.photo-two {
  background-image: url("https://images.unsplash.com/photo-1503376780353-7e6692767b70?auto=format&fit=crop&w=720&q=80");
}

.photo-three {
  background-image: url("https://images.unsplash.com/photo-1549317661-bd32c8ce0db2?auto=format&fit=crop&w=720&q=80");
}

.photo-four {
  background-image: url("https://images.unsplash.com/photo-1542362567-b07e54358753?auto=format&fit=crop&w=720&q=80");
}

.listing-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
}

.listing-body h2 {
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.25;
}

.listing-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.listing-body strong {
  color: var(--accent-dark);
  font-size: 18px;
}

.muted-card {
  opacity: .88;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 18px 48px;
}

.source-button {
  min-width: 120px;
  padding: 10px 18px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.source-button.is-selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 138, 114, .16);
}

.source-button:not(.is-selected) {
  background: #fff1f2;
  border-color: #f0a0a8;
  color: #9f1239;
}

.source-button:hover {
  transform: translateY(-1px);
}

.account-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 1180px;
  margin: -28px auto 42px;
  padding: 0 18px;
}

.account-summary-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.account-summary-button:hover {
  border-color: rgba(22, 138, 114, .38);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.account-summary-button:focus-visible {
  outline: 3px solid rgba(22, 138, 114, .28);
  outline-offset: 3px;
}

.results-section {
  padding-top: 54px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1180px;
  margin: 0 auto;
}

.results-grid .listing-card {
  grid-template-columns: 1fr;
  min-height: 330px;
}

.results-grid .listing-photo {
  min-height: 176px;
}

.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.saved-search-card {
  display: grid;
  gap: 12px;
  min-height: 180px;
  padding: 18px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.saved-search-card:hover {
  border-color: rgba(22, 138, 114, .38);
  box-shadow: 0 14px 34px rgba(31, 35, 40, .12);
  transform: translateY(-2px);
}

.saved-search-card:focus-visible {
  outline: 3px solid rgba(22, 138, 114, .28);
  outline-offset: 3px;
}

.saved-search-card h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.saved-search-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.saved-search-card span {
  align-self: end;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 850;
}

body.modal-open {
  overflow: hidden;
}

.listing-modal[hidden] {
  display: none;
}

.listing-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
}

.listing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 20, .62);
  backdrop-filter: blur(5px);
}

.listing-modal__panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: min(92vh, 900px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid rgba(217, 225, 231, .9);
  border-radius: var(--radius);
  box-shadow: 0 26px 80px rgba(15, 23, 20, .28);
}

.listing-modal__close {
  position: sticky;
  top: 10px;
  left: calc(100% - 54px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 10px 10px -50px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.listing-modal__close:hover {
  color: var(--accent-dark);
}

.detail-loading,
.detail-error {
  padding: 72px 28px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.detail-error {
  color: #9f1239;
}

.detail-view {
  padding: 26px;
}

.detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding-right: 46px;
}

.detail-header h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
}

.detail-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.detail-price {
  display: grid;
  gap: 6px;
  min-width: 240px;
  padding-top: 4px;
  text-align: right;
}

.detail-price strong {
  color: var(--accent-dark);
  font-size: 28px;
  line-height: 1.1;
}

.detail-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
  gap: 22px;
  margin-top: 22px;
}

.detail-gallery {
  display: grid;
  gap: 10px;
  align-content: start;
}

.detail-photo {
  display: grid;
  place-items: center;
  min-height: 420px;
  overflow: hidden;
  background: #d7e0e5;
  border-radius: var(--radius);
}

.detail-photo img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
}

.detail-photo-empty {
  color: #52605d;
  font-weight: 900;
  background: linear-gradient(135deg, #dfe7e8, #b9c8c9);
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.detail-thumbs img {
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
  border-radius: 8px;
  background: #d7e0e5;
}

.detail-side h3,
.detail-section h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.detail-side h3:not(:first-child) {
  margin-top: 22px;
}

.detail-specs {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-spec {
  display: grid;
  grid-template-columns: minmax(120px, .75fr) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-spec dt,
.detail-spec dd {
  margin: 0;
}

.detail-spec dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.detail-spec dd {
  font-size: 14px;
  font-weight: 780;
}

.detail-section {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.detail-description {
  margin: 0;
  color: #374151;
  white-space: pre-line;
}

.detail-equipment {
  columns: 2;
  margin: 0;
  padding-left: 20px;
  color: #374151;
}

.detail-equipment li {
  margin: 4px 0;
  break-inside: avoid;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.detail-actions .secondary-button {
  min-width: 160px;
}

.detail-actions .secondary-button.is-active {
  background: var(--accent);
  color: #fff;
}

.site-notice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 16px;
  background: #17211f;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(15, 23, 20, .24);
  font-size: 14px;
  font-weight: 760;
}

.empty-results {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 64px clamp(18px, 4vw, 56px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.tariff-section,
.payment-section {
  background: var(--bg);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.1;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
}

.steps,
.tariffs,
.info-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.steps article,
.tariff-card,
.info-columns article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.steps span {
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0;
}

.steps h3,
.tariff-card h3,
.info-columns h3 {
  margin: 8px 0 8px;
  font-size: 20px;
}

.steps p,
.tariff-card li,
.info-columns p {
  color: var(--muted);
}

.tariff-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.tariff-card.featured {
  border-color: rgba(22, 138, 114, .42);
  box-shadow: var(--shadow);
}

.price {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 28px;
  font-weight: 900;
}

.tariff-card ul {
  flex: 1;
  margin: 0 0 22px;
  padding-left: 20px;
}

.tariff-card li {
  margin: 8px 0;
}

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

.info-columns a {
  color: var(--accent-dark);
  font-weight: 750;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 30px clamp(18px, 4vw, 56px);
  background: #17211f;
  color: rgba(255, 255, 255, .76);
  font-size: 14px;
}

.site-footer strong {
  color: #fff;
  font-size: 17px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer p {
  grid-column: 1 / -1;
  margin: 0;
  color: rgba(255, 255, 255, .58);
}

.legal-page {
  background: var(--bg);
}

.legal-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 40px 22px 80px;
}

.legal-wrap h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.legal-wrap h2 {
  margin: 30px 0 10px;
  font-size: 21px;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--muted);
}

.legal-wrap a {
  color: var(--accent-dark);
  font-weight: 750;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 750;
}

.legal-note {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.legal-tariffs {
  margin: 24px 0 10px;
}

.legal-wrap .tariff-card h2 {
  margin: 0;
  font-size: 22px;
}

.legal-requisites {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
  }

  h1 {
    gap: 6px;
    font-size: 52px;
  }

  .headline-main {
    font-size: 56px;
  }

  .headline-sub {
    font-size: 40px;
  }

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

  .hero-copy,
  .search-panel,
  .market-preview {
    grid-column: auto;
    grid-row: auto;
  }

  .market-preview {
    align-self: auto;
    grid-template-rows: none;
    max-width: 760px;
  }

  .steps,
  .tariffs {
    grid-template-columns: 1fr;
  }

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

  .detail-header,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-price {
    min-width: 0;
    text-align: left;
  }

  .detail-photo {
    min-height: 340px;
  }

  .tariff-card {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-actions {
    grid-column: 1;
    grid-row: 2;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
  }

  .auth-area,
  .telegram-login-widget,
  .user-panel {
    max-width: 100%;
    min-width: 0;
  }

  .user-panel {
    width: auto;
  }

  .nav {
    grid-row: 3;
  }

  .header-action {
    display: none;
  }

  h1 {
    gap: 5px;
    font-size: 42px;
  }

  .headline-main {
    font-size: 40px;
  }

  .headline-sub {
    font-size: 32px;
  }

  .search-panel {
    grid-template-columns: 1fr 1fr;
  }

  .search-actions {
    grid-column: span 2;
    grid-template-columns: 1fr;
  }

  .listing-card,
  .info-columns,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .listing-modal {
    padding: 10px;
  }

  .detail-view {
    padding: 18px;
  }

  .detail-header {
    padding-right: 38px;
  }

  .detail-photo {
    min-height: 260px;
  }

  .detail-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-spec {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .detail-equipment {
    columns: 1;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .listing-photo {
    min-height: 160px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .search-panel {
    grid-template-columns: 1fr;
  }

  .search-actions {
    grid-column: span 1;
  }

  h1 {
    font-size: 34px;
  }

  .headline-main {
    font-size: 34px;
  }

  .headline-sub {
    font-size: 28px;
  }
}
