/* Elena Petina — Mortgage Consulting | landing styles */

:root {
  --brand: #0f3a5b;        /* deep blue */
  --brand-2: #1c5d8a;
  --accent: #d4a44a;       /* gold */
  --accent-soft: #f3e6c5;
  --bg: #fafaf7;
  --bg-alt: #f1ede4;
  --ink: #1a2530;
  --ink-soft: #4a5664;
  --line: #e6e2d8;
  --shadow: 0 12px 40px rgba(15, 58, 91, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 17px;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── TOPBAR ───────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center;
  font-size: 18px; letter-spacing: 1px;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; }
.brand__text small { font-weight: 400; font-size: 12px; color: var(--ink-soft); }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--brand); }
.nav__cta {
  padding: 10px 20px; background: var(--brand); color: #fff !important;
  border-radius: 999px; font-weight: 600;
}
.nav__cta:hover { background: var(--brand-2); color: #fff !important; }

.lang-switcher { position: relative; }
.lang-switcher__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); cursor: pointer; transition: background .15s;
}
.lang-switcher__btn:hover { background: var(--bg-alt); }
.lang-switcher__btn::after {
  content: '▾'; font-size: 10px; opacity: .6;
}
.lang-switcher__menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; min-width: 160px;
  display: none; z-index: 200;
}
[dir=rtl] .lang-switcher__menu { left: auto; right: 0; }
.lang-switcher.is-open .lang-switcher__menu { display: block; }
.lang-switcher__menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 6px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14px;
  transition: background .12s;
}
.lang-switcher__menu a:hover { background: var(--bg-alt); }
.lang-switcher__menu a.is-active {
  background: var(--accent-soft); color: var(--brand); font-weight: 700;
}
.lang-switcher__flag {
  display: inline-block; width: 22px; height: 16px;
  border-radius: 3px; background-size: cover; background-position: center;
  border: 1px solid rgba(0,0,0,.08);
}
.lang-switcher__flag--he { background: linear-gradient(to bottom, #fff 0 30%, #0038b8 30% 35%, #fff 35% 65%, #0038b8 65% 70%, #fff 70%); }
.lang-switcher__flag--ru { background: linear-gradient(to bottom, #fff 0 33%, #0039a6 33% 66%, #d52b1e 66%); }
.lang-switcher__flag--en { background: #012169; position: relative; overflow: hidden; }
.lang-switcher__flag--en::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 45%, #fff 45% 55%, transparent 55%),
              linear-gradient(45deg, transparent 45%, #fff 45% 55%, transparent 55%),
              linear-gradient(to bottom, transparent 40%, #fff 40% 60%, transparent 60%),
              linear-gradient(to right, transparent 40%, #fff 40% 60%, transparent 60%);
}

/* ── HERO ─────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; left: -200px; bottom: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(212, 164, 74, .18) 0%, transparent 70%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 2;
}
.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, .12);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900; line-height: 1.15; margin-bottom: 24px;
}
.hero__highlight {
  color: var(--accent);
  display: inline-block;
}
.hero__sub {
  font-size: 19px; opacity: .92; max-width: 540px; margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 16px; transition: all .2s;
}
.btn--primary { background: var(--accent); color: var(--brand); }
.btn--primary:hover { background: #e6b85a; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .35); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }

.hero__photo-frame {
  aspect-ratio: 3 / 4; width: 100%;
  background: rgba(255, 255, 255, .06);
  border: 2px dashed rgba(255, 255, 255, .25);
  border-radius: 20px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo-placeholder {
  display: none;
  text-align: center; padding: 20px; color: rgba(255, 255, 255, .7);
  font-size: 14px;
  align-items: center; justify-content: center; height: 100%;
}

/* ── TRUST STRIP ─────────────────────────────── */
.trust {
  background: var(--brand);
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
}
.trust__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.trust__grid div {
  text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.trust__grid strong { font-size: 32px; font-weight: 900; color: var(--accent); }
.trust__grid span { font-size: 14px; opacity: .85; }

/* ── SECTIONS ─────────────────────────────────── */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section__title {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 900;
  text-align: center; margin-bottom: 12px; color: var(--brand);
}
.section__title--left { text-align: right; }
.section__lead {
  text-align: center; font-size: 18px; color: var(--ink-soft);
  max-width: 640px; margin: 0 auto 56px;
}

/* ── SERVICES ────────────────────────────────── */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; padding: 32px 28px; border-radius: 16px;
  border: 1px solid var(--line);
  transition: all .2s;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.service__icon { font-size: 36px; margin-bottom: 16px; }
.service h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: var(--brand); }
.service p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

/* ── STEPS ──────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: #fff; padding: 28px 24px; border-radius: 16px;
  position: relative; border: 1px solid var(--line);
}
.step__num {
  position: absolute; top: -16px; right: 24px;
  background: var(--accent); color: var(--brand);
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
}
.step h3 { font-size: 18px; font-weight: 700; margin: 20px 0 10px; color: var(--brand); }
.step p { color: var(--ink-soft); font-size: 15px; }

/* ── CASES ──────────────────────────────────── */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case {
  background: #fff; border-radius: 16px; padding: 28px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.case__before-after {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px;
  background: var(--bg-alt); border-radius: 12px; padding: 20px;
  margin-bottom: 20px; align-items: center;
}
.case__col { text-align: center; }
.case__col span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-soft); }
.case__col strong { display: block; font-size: 22px; font-weight: 900; color: var(--brand); margin: 6px 0; }
.case__col small { font-size: 12px; color: var(--ink-soft); }
.case__col--after strong { color: #2d8f50; }
.case__col--after small { color: #2d8f50; font-weight: 700; }
.case__arrow { font-size: 28px; color: var(--accent); }
.case h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; color: var(--brand); }
.case p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* ── MYTHS ──────────────────────────────────── */
.myths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.myth {
  background: #fff; padding: 28px; border-radius: 16px;
  border-right: 4px solid var(--accent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.myth__label {
  display: inline-block; background: var(--accent-soft); color: var(--brand);
  padding: 4px 10px; border-radius: 6px; font-weight: 700;
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.myth h3 { font-size: 18px; margin-bottom: 12px; color: var(--ink); }
.myth__reality { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }
.myth__reality strong { color: var(--brand); }

/* ── ABOUT ──────────────────────────────────── */
.about { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center; }
.about__photo .hero__photo-frame { background: var(--bg-alt); border-color: var(--line); }
.about__copy p { color: var(--ink-soft); font-size: 17px; margin-bottom: 24px; }
.about__list { list-style: none; margin-bottom: 32px; }
.about__list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.about__list li:last-child { border: none; }

/* ── CONTACT ─────────────────────────────────── */
.section--cta {
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  text-align: center;
}
.contact h2 {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 900;
  margin-bottom: 12px;
}
.contact > p { font-size: 18px; opacity: .9; margin-bottom: 48px; }
.contact__cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 900px; margin: 0 auto;
}
.contact__card {
  background: rgba(255, 255, 255, .08);
  padding: 32px 24px; border-radius: 16px;
  text-decoration: none; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 1px solid rgba(255, 255, 255, .15);
  transition: all .2s;
}
.contact__card:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-2px);
}
.contact__card-icon { font-size: 36px; margin-bottom: 8px; }
.contact__card strong { font-size: 18px; }
.contact__card span { font-size: 13px; opacity: .8; }

/* ── FOOTER ──────────────────────────────────── */
.footer { background: #0a2436; color: #fff; padding: 40px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer strong { font-size: 17px; }
.footer p { font-size: 14px; opacity: .7; }
.footer__legal { text-align: left; }
.footer__legal p:first-child { margin-bottom: 4px; }

/* ── CALCULATOR ──────────────────────────────── */
.calc {
  background: #fff; border-radius: 20px; padding: 40px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-top: 32px;
}
.calc__inputs { display: flex; flex-direction: column; gap: 16px; }
.calc__field { display: flex; flex-direction: column; gap: 6px; }
.calc__field label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.calc__field input {
  padding: 12px 16px; border: 2px solid var(--line); border-radius: 10px;
  font-size: 17px; font-weight: 600; color: var(--ink);
  font-family: inherit;
  transition: border-color .15s;
}
.calc__field input:focus { outline: none; border-color: var(--brand); }

.calc__results {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff; border-radius: 14px; padding: 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.calc__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.15);
}
.calc__row:last-of-type { border: none; }
.calc__row span:first-child { font-size: 14px; opacity: .85; }
.calc__row span:last-child { font-size: 20px; font-weight: 900; }
.calc__row.calc__row--big span:last-child { font-size: 28px; color: var(--accent); }
.calc__warning {
  margin-top: 16px; padding: 12px; background: rgba(255,255,255,.1);
  border-radius: 8px; font-size: 13px; line-height: 1.5;
}

/* ── LEAD FORM ──────────────────────────────── */
.lead {
  max-width: 640px; margin: 0 auto;
  background: #fff; border-radius: 20px; padding: 40px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.lead__field { display: flex; flex-direction: column; gap: 6px; }
.lead__field--full { grid-column: 1 / -1; }
.lead__field label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.lead__field input, .lead__field select, .lead__field textarea {
  padding: 12px 16px; border: 2px solid var(--line); border-radius: 10px;
  font-size: 16px; color: var(--ink); font-family: inherit;
  transition: border-color .15s;
}
.lead__field input:focus, .lead__field select:focus, .lead__field textarea:focus {
  outline: none; border-color: var(--brand);
}
.lead__field textarea { resize: vertical; min-height: 80px; }
.lead button {
  width: 100%; padding: 16px; background: var(--brand); color: #fff;
  border: none; border-radius: 10px; font-size: 17px; font-weight: 700;
  cursor: pointer; transition: background .2s;
  font-family: inherit;
}
.lead button:hover { background: var(--brand-2); }
.lead__ok {
  display: none; margin-top: 20px; padding: 16px;
  background: #e8f5ee; border: 1px solid #6cbf8a; border-radius: 10px;
  color: #1d6b3a; text-align: center; font-weight: 600;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner, .about { grid-template-columns: 1fr; gap: 40px; }
  .services, .cases, .myths, .steps { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__cards { grid-template-columns: 1fr; }
  .nav { display: none; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 64px 0; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__legal { text-align: center; }
  .calc { grid-template-columns: 1fr; padding: 24px; }
  .lead__row { grid-template-columns: 1fr; }
  .lead { padding: 24px; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 32px; }
  .trust__grid strong { font-size: 26px; }
}
