/*
Theme Name: PREGEL RU
Theme URI: https://pregel.ru
Author: PREGEL
Author URI: https://pregel.ru
Description: Одностраничная тема WordPress для мониторинга цен на земельные участки в Калининградской области. Современный дизайн с фильтрацией участков, картой регионов и формой обратной связи.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pregel-ru
Tags: one-page, real-estate, landing-page, custom-colors, custom-logo
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg:          #F7F6F3;
  --surface:     #FFFFFF;
  --navy:        #0A1628;
  --navy2:       #12233D;
  --navy3:       #1A3050;
  --amber:       #C69C3E;
  --amber-hover: #D4AA4C;
  --amber-lt:    rgba(198,156,62,.08);
  --amber-lt2:   rgba(198,156,62,.15);
  --teal:        #2A8C7A;
  --teal-lt:     #EBF7F4;
  --red:         #D4453A;
  --red-lt:      #FDF1F0;
  --text:        #141414;
  --text2:       #596273;
  --text3:       #9BA3B2;
  --border:      #E4E0D8;
  --border2:     #EDEBE6;
  --shadow-sm:   0 1px 3px rgba(10,22,40,.04), 0 4px 12px rgba(10,22,40,.03);
  --shadow:      0 2px 8px rgba(10,22,40,.06), 0 8px 32px rgba(10,22,40,.04);
  --shadow-lg:   0 8px 24px rgba(10,22,40,.1), 0 20px 56px rgba(10,22,40,.06);
  --display:     'Cormorant Garamond', Georgia, serif;
  --body:        'Outfit', system-ui, sans-serif;
  --radius:      10px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: var(--amber); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a   { transition: color .2s; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.45);
  font-size: 11px;
  letter-spacing: .06em;
  padding: 7px 0;
  text-align: center;
  font-weight: 500;
}
.topbar strong { color: var(--amber); }
.topbar a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(198,156,62,.3);
  transition: border-color .2s;
}
.topbar a:hover { border-color: var(--amber); }

/* ============================================================
   NAVIGATION
   ============================================================ */
nav {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
  padding: 0 48px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: sticky;
  top: 0;
  z-index: 300;
  backdrop-filter: blur(12px);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo { width: 36px; height: 36px; position: relative; }
.nav-logo svg { width: 36px; height: 36px; }
.nav-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .02em;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--amber);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
  border: none;
  cursor: pointer;
  font-family: var(--body);
  letter-spacing: .01em;
}
.nav-cta:hover {
  background: var(--amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(198,156,62,.35);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 88px 48px 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(198,156,62,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(42,140,122,.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, rgba(10,22,40,.4), transparent);
  pointer-events: none;
}
.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(198,156,62,.12);
  border: 1px solid rgba(198,156,62,.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--amber);
  margin-bottom: 32px;
  animation: fadeUp .7s ease;
}
.hero-dot {
  width: 6px; height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: blink 2.5s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero h1 {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
  max-width: 780px;
  animation: fadeUp .7s ease .08s both;
}
.hero h1 em { font-style: italic; color: var(--amber); }
.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.55);
  max-width: 580px;
  margin-top: 22px;
  line-height: 1.75;
  font-weight: 300;
  animation: fadeUp .7s ease .16s both;
}
.hero-metrics {
  display: flex;
  gap: 56px;
  margin-top: 52px;
  animation: fadeUp .7s ease .24s both;
}
.metric { text-align: left; }
.metric-num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.metric-label {
  font-size: 11.5px;
  color: rgba(255,255,255,.4);
  letter-spacing: .05em;
  margin-top: 6px;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  animation: fadeUp .7s ease .32s both;
}
.btn-p {
  background: var(--amber);
  color: #fff;
  padding: 15px 34px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all .25s;
  border: none;
  cursor: pointer;
  font-family: var(--body);
}
.btn-p:hover {
  background: var(--amber-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(198,156,62,.35);
}
.btn-s {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  padding: 15px 34px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
  font-family: var(--body);
}
.btn-s:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 48px;
}
.trust-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text2);
  font-weight: 500;
}
.trust-icon { font-size: 18px; }

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
section { padding: 88px 48px; }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}
.section-title {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.18;
}
.section-desc {
  color: var(--text2);
  font-size: 16px;
  max-width: 560px;
  margin-top: 10px;
  line-height: 1.7;
}

/* ============================================================
   PRICE DROPS (Снижения цен)
   ============================================================ */
.drops-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}
.drops-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
  transition: all .2s;
  font-family: var(--body);
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--amber);
  color: var(--amber);
  background: var(--amber-lt);
}
.drops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 32px;
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--amber);
}
.card-badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.badge {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.badge-drop           { background: var(--red); color: #fff; }
.badge-drop.big       { font-size: 13px; padding: 5px 12px; }
.badge-new            { background: var(--teal); color: #fff; }
.badge-verified       { background: var(--navy); color: var(--amber); font-size: 10px; }
.card-img {
  height: 160px;
  background: linear-gradient(135deg, var(--navy2), var(--navy3));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.15);
  font-size: 48px;
  position: relative;
  overflow: hidden;
}
.card-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(10,22,40,.6));
}
.card-img-loc {
  position: absolute;
  bottom: 10px; left: 14px;
  z-index: 1;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.card-img-loc span {
  color: var(--amber);
  font-weight: 400;
  font-style: italic;
  font-family: var(--display);
  font-size: 14px;
}
.card-body    { padding: 18px; }
.card-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.card-meta-item { display: flex; align-items: center; gap: 4px; }
.card-prices    { display: flex; align-items: baseline; gap: 12px; }
.card-price-old { color: var(--text3); text-decoration: line-through; font-size: 14px; }
.card-price-new { font-family: var(--display); font-size: 26px; font-weight: 700; color: var(--navy); }
.card-saved {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--teal);
  font-weight: 600;
  background: var(--teal-lt);
  padding: 5px 10px;
  border-radius: 5px;
  width: fit-content;
}
.card-footer {
  padding: 0 18px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-date { font-size: 11.5px; color: var(--text3); }
.card-link {
  font-size: 12.5px;
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
}
.card-link:hover { color: var(--amber-hover); }

/* ============================================================
   REGIONS (Регионы)
   ============================================================ */
.regions { background: var(--navy); color: #fff; }
.regions .section-title { color: #fff; }
.regions .section-desc  { color: rgba(255,255,255,.45); }
.regions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.region {
  display: block;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius);
  padding: 22px;
  transition: all .3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.region:hover {
  background: rgba(255,255,255,.07);
  border-color: var(--amber);
  transform: translateY(-2px);
}
.region-emoji  { font-size: 24px; margin-bottom: 10px; }
.region-name   { font-family: var(--display); font-size: 19px; font-weight: 600; }
.region-german {
  color: var(--amber);
  font-size: 12.5px;
  font-style: italic;
  font-family: var(--display);
  margin-top: 1px;
}
.region-stats {
  display: flex;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.4);
}
.region-price { color: var(--amber); font-weight: 600; font-size: 14px; margin-top: 6px; }

/* ============================================================
   STEPS (Порядок работы)
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 44px;
  position: relative;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 60px; right: 60px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.step-dot {
  width: 64px; height: 64px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 24px;
  transition: all .3s;
}
.step:hover .step-dot { border-color: var(--amber); background: var(--amber-lt); }
.step-title { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.step-desc  { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* ============================================================
   FEATURES (Преимущества)
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.feat {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
}
.feat:hover { border-color: var(--amber); box-shadow: var(--shadow); }
.feat-icon {
  width: 44px; height: 44px;
  background: var(--amber-lt);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feat-title { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.feat-desc  { font-size: 13.5px; color: var(--text2); line-height: 1.65; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta {
  background: linear-gradient(135deg, var(--navy), var(--navy2));
  color: #fff;
  text-align: center;
  padding: 88px 48px;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(198,156,62,.08), transparent);
  pointer-events: none;
}
.cta .section-title { color: #fff; font-size: 40px; }
.cta-sub {
  color: rgba(255,255,255,.5);
  font-size: 16px;
  margin-top: 10px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-form {
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 36px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-input {
  flex: 1;
  min-width: 180px;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--body);
  outline: none;
  transition: border-color .2s;
}
.cta-input::placeholder { color: rgba(255,255,255,.3); }
.cta-input:focus { border-color: var(--amber); }
.cta-note {
  font-size: 11.5px;
  color: rgba(255,255,255,.3);
  margin-top: 14px;
  letter-spacing: .02em;
}
.cta-note a { color: var(--amber); text-decoration: none; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 36px 48px;
  color: rgba(255,255,255,.3);
  font-size: 12px;
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  font-family: var(--display);
  font-size: 18px;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  letter-spacing: .02em;
}
footer a { color: var(--amber); text-decoration: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .drops-grid, .features   { grid-template-columns: repeat(2, 1fr); }
  .regions-grid             { grid-template-columns: repeat(2, 1fr); }
  .steps                    { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps::before            { display: none; }
}
@media (max-width: 640px) {
  nav                         { padding: 0 20px; gap: 10px; }
  .nav-links a:not(.nav-cta)  { display: none; }
  .nav-cta                    { display: flex !important; }
  .hero                       { padding: 56px 20px 72px; }
  .hero h1                    { font-size: 34px; }
  .hero-metrics               { gap: 24px; flex-wrap: wrap; }
  .hero-actions               { flex-direction: column; gap: 10px; }
  section                     { padding: 64px 20px; }
  .drops-grid,
  .features,
  .regions-grid,
  .steps                      { grid-template-columns: 1fr; }
  .cta-form                   { flex-direction: column; }
  .trust-inner                { gap: 20px; }
  .drops-header               { flex-direction: column; align-items: flex-start; }
  footer                      { padding: 24px 20px; }
  .footer-inner               { flex-direction: column; text-align: center; }
}
