/* ============================================================
   real-estate-market.css
   Стили страницы «Рынок недвижимости Лиды»
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.rem-hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-primary-dark);
  padding: 100px 0 80px;
  min-height: 400px;
}

.rem-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 30%, rgba(215,179,154,.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(61,214,176,.08) 0%, transparent 60%);
  pointer-events: none;
}

.rem-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.rem-hero__floater {
  position: absolute;
  border-radius: 50%;
  background: rgba(61,214,176,.07);
  animation: remFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.rem-hero__floater--1 { width: 300px; height: 300px; top: -80px; right: 10%; animation-delay: 0s; }
.rem-hero__floater--2 { width: 180px; height: 180px; bottom: -40px; left: 5%; animation-delay: 3s; }
.rem-hero__floater--3 { width: 120px; height: 120px; top: 40%; right: 30%; animation-delay: 5.5s; }

@keyframes remFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-18px) scale(1.04); }
}

.rem-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.rem-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.rem-hero__eyebrow i { font-size: .75rem; color: #3dd6b0; }

.rem-hero__h1 {
  font-family: var(--font-main);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.rem-hero__h1 span {
  background: linear-gradient(90deg, #3dd6b0, #7ef5e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rem-hero__desc {
  font-size: 1rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 600px;
}

.rem-hero__seo-text {
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 620px;
  border-left: 2px solid rgba(61,214,176,.3);
  padding-left: 14px;
}

.rem-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}

.rem-hero__stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 14px 22px;
  backdrop-filter: blur(10px);
  text-align: center;
  min-width: 110px;
  transition: background .25s, transform .25s;
}

.rem-hero__stat:hover {
  background: rgba(255,255,255,.14);
  transform: translateY(-3px);
}

.rem-hero__stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #3dd6b0;
  line-height: 1.2;
}

.rem-hero__stat-lbl {
  display: block;
  font-size: .7rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .5px;
  margin-top: 4px;
}

.rem-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

.rem-hero__breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
}

.rem-hero__breadcrumb li::after {
  content: '/';
  color: rgba(255,255,255,.3);
}

.rem-hero__breadcrumb li:last-child::after { display: none; }

.rem-hero__breadcrumb a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.rem-hero__breadcrumb a:hover { color: #3dd6b0; }

/* ── Section wrapper ──────────────────────────────────────── */
.rem-section { padding: var(--sp-section-xl) 0; }
.rem-section--gray { background: var(--color-bg-light); }
.rem-section--white { background: var(--color-bg-light); }
.rem-section--dark {
  background: var(--grad-primary-dark);
  position: relative;
  overflow: hidden;
}

.rem-section--dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 85% 50%, rgba(215,179,154,.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ── Market price cards (enhanced over base) ─────────────── */
.rem-prices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.rem-price-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 28px 24px 22px;
  box-shadow: 0 4px 20px rgba(21,89,69,.06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
  position: relative;
  overflow: hidden;
}

.rem-price-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #155945, #3dd6b0);
  opacity: 0;
  transition: opacity .3s;
}

.rem-price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(21,89,69,.12);
  border-color: rgba(21,89,69,.15);
}

.rem-price-card:hover::before { opacity: 1; }

.rem-price-card--accent {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
}

.rem-price-card--accent::before {
  background: rgba(255,255,255,.2);
  opacity: 1;
}

.rem-price-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(21,89,69,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.rem-price-card--accent .rem-price-card__icon {
  background: rgba(255,255,255,.15);
  color: #fff;
}

.rem-price-card__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.rem-price-card--accent .rem-price-card__label { color: rgba(255,255,255,.6); }

.rem-price-card__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 5px;
  line-height: 1.2;
}

.rem-price-card--accent .rem-price-card__value { color: #fff; }

.rem-price-card__sub {
  font-size: .78rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

.rem-price-card--accent .rem-price-card__sub { color: rgba(255,255,255,.65); }

.rem-price-card__delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  margin-top: 8px;
}

.rem-price-card__delta--up {
  background: rgba(30,122,78,.1);
  color: #1e7a4e;
}

.rem-price-card__delta--dn {
  background: rgba(192,92,92,.1);
  color: #c05c5c;
}

.rem-price-card__delta--flat {
  background: rgba(120,120,120,.1);
  color: #787878;
}

/* ── Chart wrapper ────────────────────────────────────────── */
.rem-chart-wrap {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(21,89,69,.06);
}

.rem-chart-wrap canvas { height: 260px !important; }

/* ── Skeleton loading ─────────────────────────────────────── */
.rem-skeleton {
  background: #f0f0f0;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.rem-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  animation: remSkeleton 1.5s infinite;
}

@keyframes remSkeleton {
  100% { transform: translateX(100%); }
}

/* ── Scroll reveal ────────────────────────────────────────── */
.rem-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}

.rem-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rem-reveal--delay-1 { transition-delay: .1s; }
.rem-reveal--delay-2 { transition-delay: .2s; }
.rem-reveal--delay-3 { transition-delay: .3s; }
.rem-reveal--delay-4 { transition-delay: .4s; }
.rem-reveal--delay-5 { transition-delay: .5s; }

/* ── Calculator section overrides ────────────────────────── */
.rem-calc-section {
  background: var(--color-bg-light);
  padding: 80px 0;
}

.rem-section-intro {
  max-width: 680px;
  margin: 0 auto 50px;
  text-align: center;
}

.rem-section-intro .section-title {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--color-secondary);
}

.rem-section-eyebrow {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(21,89,69,.07);
  border-radius: 100px;
  padding: 5px 16px;
  margin-bottom: 14px;
}

.rem-section-intro p {
  font-size: .9rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ── Trends / analytics cards ────────────────────────────── */
.rem-trends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.rem-trend-card {
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(21,89,69,.1);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: transform .35s ease, box-shadow .35s ease;
}

.rem-trend-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--rem-accent, #155945), transparent);
  border-radius: 20px 0 0 20px;
}

.rem-trend-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(21,89,69,.12);
}

.rem-trend-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.rem-trend-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid;
  flex-shrink: 0;
}

.rem-trend-card__badge--analytics { color: #0059ff; border-color: rgba(0,89,255,.25); background: rgba(0,89,255,.06); }
.rem-trend-card__badge--buyer    { color: #1e7a4e; border-color: rgba(30,122,78,.25); background: rgba(30,122,78,.06); }
.rem-trend-card__badge--seller   { color: #9b5200; border-color: rgba(155,82,0,.25);  background: rgba(155,82,0,.06);  }
.rem-trend-card__badge--trend    { color: #6d28d9; border-color: rgba(109,40,217,.25);background: rgba(109,40,217,.06);}
.rem-trend-card__badge--district { color: #c05c5c; border-color: rgba(192,92,92,.25); background: rgba(192,92,92,.06); }
.rem-trend-card__badge--news     { color: #155945; border-color: rgba(21,89,69,.25);  background: rgba(21,89,69,.06);  }

.rem-trend-card__meta {
  font-size: .7rem;
  color: var(--color-text-light);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.rem-trend-card__date { font-weight: 500; }

.rem-trend-card__read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rem-trend-card__read-time::before {
  content: '⏱';
  font-size: .65rem;
}

.rem-trend-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin: 0 0 10px;
  line-height: 1.4;
}

.rem-trend-card__excerpt {
  font-size: .84rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0 0 18px;
}

.rem-trend-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rem-trend-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #155945;
  text-decoration: none;
  white-space: nowrap;
  transition: gap .2s ease, color .2s ease;
}

.rem-trend-card__link i {
  font-size: 0.68rem;
  transition: transform 0.2s ease;
}

.rem-trend-card__link:hover { color: #0e3d2f; gap: 10px; }
.rem-trend-card__link:hover i { transform: translateX(3px); }
.rem-trend-card__link::after { content: none; }

.rem-trend-card__tag {
  font-size: .68rem;
  color: var(--color-text-light);
  background: #f2f2f2;
  padding: 3px 9px;
  border-radius: 100px;
}

/* ── CTA section ──────────────────────────────────────────── */
.rem-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 70px 0;
}

.rem-cta__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
}

.rem-cta__sub {
  font-size: .95rem;
  color: rgba(255,255,255,.7);
  margin: 0 0 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.rem-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--color-primary) !important;
  font-weight: 700;
  font-size: .9rem;
  padding: 16px 36px;
  border-radius: 100px;
  text-decoration: none !important;
  transition: transform .25s, box-shadow .25s;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.rem-cta__btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.3);
  color: var(--color-primary) !important;
}

/* ── FAQ accordion ────────────────────────────────────────── */
.rem-faq {
  max-width: 760px;
  margin: 0 auto;
}

.rem-faq__item {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}

.rem-faq__item[open] {
  border-color: rgba(21,89,69,.3);
  box-shadow: 0 4px 20px rgba(21,89,69,.06);
}

.rem-faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-secondary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.rem-faq__q::-webkit-details-marker { display: none; }
.rem-faq__q::marker { display: none; }

.rem-faq__q::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform .2s;
  line-height: 1;
}

.rem-faq__item[open] .rem-faq__q::after { transform: rotate(45deg); }

.rem-faq__a {
  padding: 0 1.25rem 1rem;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .rem-hero { padding: var(--sp-section-xl) 0; }
  .rem-prices-grid { grid-template-columns: repeat(2, 1fr); }
  .rem-trends-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .rem-hero { padding: var(--sp-section-lg) 0; }
  .rem-hero__stats { gap: 12px; }
  .rem-hero__stat { padding: 12px 16px; min-width: 90px; }
  .rem-hero__stat-num { font-size: 1.25rem; }
  .rem-prices-grid { grid-template-columns: 1fr; }
  .rem-chart-wrap { padding: 18px; }
}
