/* ==========================================================================
   Imovina Depovna — imo-depo.icu
   ========================================================================== */

:root {
  --teal:        #0c6e70;
  --teal-dark:   #08585a;
  --teal-soft:   #8fc3c4;   /* фон инпутов в форме */
  --teal-line:   #0c6e70;
  --mint:        #eef8f5;   /* полосы таблицы, аватары */
  --yellow-1:    #fdf6bd;
  --yellow-2:    #fbeb92;
  --ink:         #1e1e1e;
  --ink-soft:    #4a4a4a;
  --muted:       #8a8a8a;
  --line:        #e0e0e0;
  --bg:          #ffffff;
  --footer-bg:   #212121;

  --font-head:   "Archivo", "Arial Black", Impact, sans-serif;
  --font-body:   "Poppins", Arial, Helvetica, sans-serif;

  --container:   1180px;
  --r-card:      16px;
  --r-pill:      999px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }

/* ── Типографика ── */
.h-xl, .h-lg, .h-md {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}
.h-xl { font-size: 52px; }
.h-lg { font-size: 44px; }
.h-md { font-size: 30px; }
.lead { font-size: 15px; color: var(--ink-soft); line-height: 1.65; }

/* ── Кнопки ── */
.btn-yellow {
  display: block; width: 100%; border: none; cursor: pointer;
  background: linear-gradient(90deg, var(--yellow-1) 0%, var(--yellow-2) 100%);
  color: var(--ink); font-weight: 600; font-size: 16px;
  height: 54px; border-radius: var(--r-pill);
  transition: filter .15s;
}
.btn-yellow:hover { filter: brightness(.96); }
.btn-yellow:disabled { opacity: .6; cursor: not-allowed; }

.btn-dark {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff; border: none; cursor: pointer;
  height: 48px; padding: 0 40px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; transition: background .15s;
}
.btn-dark:hover { background: #000; color: #fff; }
.btn-dark--wide { width: 100%; max-width: 450px; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.hd { padding: 18px 0 0; }
.hd__inner {
  max-width: var(--container); margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: #fff; padding: 12px 20px;
  display: flex; align-items: center; gap: 24px;
}
.hd__logo img { height: 42px; width: auto; }
.hd__nav { display: flex; flex-wrap: wrap; gap: 10px 26px; flex: 1; justify-content: center; }
.hd__nav a { font-size: 14px; color: var(--ink); white-space: nowrap; }
.hd__nav a:hover { color: var(--teal); }
.hd__nav a.is-active { color: var(--teal); border-bottom: 1px solid var(--teal); }
.hd__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }

.lang { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.lang img { width: 22px; height: 15px; border-radius: 2px; }
.lang svg { width: 12px; height: 12px; }

.hd__cta {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 6px 5px 18px; font-size: 13px; line-height: 1.15; cursor: pointer;
  background: #fff; max-width: 200px; text-align: left;
}
.hd__cta:hover { border-color: var(--teal); }
.hd__cta-arrow {
  width: 38px; height: 38px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hd__cta-arrow svg { width: 16px; height: 16px; stroke: #fff; }
.hd__login {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer;
}
.hd__login svg { width: 20px; height: 20px; stroke: #fff; }
.hd__burger { display: none; width: 26px; height: 18px; flex-direction: column; justify-content: space-between; cursor: pointer; }
.hd__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 1080px) {
  .hd__nav { gap: 8px 16px; }
  .hd__cta { display: none; }
}
@media (max-width: 860px) {
  .hd__inner { padding: 10px 14px; gap: 12px; }
  .hd__nav { display: none; }
  .hd__nav.is-open {
    display: flex; position: absolute; left: 20px; right: 20px; top: 88px; z-index: 40;
    flex-direction: column; align-items: flex-start; gap: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px;
  }
  .hd__burger { display: flex; order: -1; }
  .hd__logo { flex: 1; }
  .hd__logo img { height: 34px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 24px 0 10px; }
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }

.hero__card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-card);
  background: #fff; padding: 40px 34px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  min-height: 400px;
}
.hero__card h1 { position: relative; z-index: 2; }
.hero__card p { position: relative; z-index: 2; margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.hero__swoosh { position: absolute; right: -30px; top: 22%; width: 78%; z-index: 1; pointer-events: none; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { min-height: 0; padding: 28px 22px; gap: 26px; }
  .hero__swoosh { width: 62%; top: auto; bottom: 12%; right: -18px; }
  .h-xl { font-size: 36px; }
  .h-lg { font-size: 30px; }
  .h-md { font-size: 24px; }
}
@media (max-width: 560px) {
  /* на узких экранах стрелка мешала бы тексту */
  .hero__swoosh { display: none; }
}
@media (max-width: 420px) {
  .h-xl { font-size: 30px; }
}

/* ==========================================================================
   FORM
   ========================================================================== */
.form-card { background: var(--teal); border-radius: var(--r-card); padding: 26px 26px 30px; }
.form-card__label { display: block; color: #fff; font-size: 14px; font-weight: 500; margin: 0 0 7px; }
.form-card__field { margin-bottom: 14px; }
.form-card__input {
  width: 100%; height: 54px; border: none; border-radius: var(--r-pill);
  background: var(--teal-soft); padding: 0 22px;
  font-family: var(--font-body); font-size: 15px; color: #10373a; outline: none;
}
.form-card__input::placeholder { color: #5d8385; }
.form-card__input:focus { box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.form-card__input.is-error { box-shadow: 0 0 0 2px #ff8a80; }

.form-card__phone {
  display: flex; align-items: center; height: 54px;
  background: var(--teal-soft); border-radius: var(--r-pill); overflow: hidden;
}
.form-card__phone.is-error { box-shadow: 0 0 0 2px #ff8a80; }
.form-card__phone-code {
  display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 14px 0 18px;
  border-right: 1px solid rgba(16,55,58,.25); font-size: 15px; color: #10373a; flex-shrink: 0;
}
.form-card__phone-code img { width: 22px; height: 15px; border-radius: 2px; }
.form-card__phone-code svg { width: 11px; height: 11px; opacity: .7; }
.form-card__phone input {
  flex: 1; min-width: 0; height: 100%; border: none; background: transparent; outline: none;
  padding: 0 18px; font-family: var(--font-body); font-size: 15px; color: #10373a;
}
.form-card__phone input::placeholder { color: #5d8385; }

.form-card__error { font-size: 12px; color: #ffd7d2; margin: 5px 0 0; padding-left: 18px; }
.form-card__api-error { font-size: 13px; color: #ffd7d2; text-align: center; margin-bottom: 10px; }
.form-card__note { font-size: 11px; color: rgba(255,255,255,.65); text-align: center; margin: 12px 0 0; line-height: 1.5; }
.form-card .btn-yellow { margin-top: 6px; }

@media (max-width: 420px) {
  .form-card { padding: 20px 18px 24px; }
  .form-card__phone-code { padding: 0 10px 0 14px; gap: 6px; }
  .form-card__phone input { padding: 0 12px; }
}

/* ==========================================================================
   STATS
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.stats__item {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 26px 22px; min-height: 220px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.stats__num { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1.02; letter-spacing: -0.02em; }
.stats__label { font-size: 15px; font-weight: 500; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats__item { min-height: 150px; padding: 18px 16px; }
  .stats__num { font-size: 32px; }
  .stats__label { font-size: 14px; }
}

/* ==========================================================================
   WHY US
   ========================================================================== */
.why__grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 40px; align-items: start; }
.why__text { margin: 26px 0 34px; max-width: 470px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 30px; }
.feature__icon { width: 76px; height: 76px; margin-bottom: 16px; }
.feature__icon img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.feature h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.feature p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
.why__outro { font-size: 17px; font-weight: 600; margin: 40px 0 22px; max-width: 470px; }
.why__phone { padding-top: 20px; }

@media (max-width: 900px) {
  .why__grid { grid-template-columns: 1fr; gap: 24px; }
  .why__phone { order: -1; padding-top: 0; max-width: 340px; margin: 0 auto; }
  .features { gap: 26px 20px; }
  .feature__icon { width: 60px; height: 60px; margin-bottom: 12px; }
}
@media (max-width: 520px) {
  .features { grid-template-columns: 1fr; }
}

/* ==========================================================================
   TRADING / TICKERS
   ========================================================================== */
.trading__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.trading__text { margin: 24px 0 30px; max-width: 430px; }
.tickers { display: flex; flex-direction: column; gap: 16px; }
.ticker {
  border: 1px solid var(--teal-line); border-radius: 14px; padding: 16px 20px; position: relative;
}
.ticker__head { display: flex; align-items: center; gap: 10px; }
.ticker__icon { width: 24px; height: 24px; flex-shrink: 0; }
.ticker__name { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.ticker__sub { font-size: 10.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.ticker__tv { position: absolute; top: 16px; right: 18px; width: 26px; height: 12px; color: var(--ink); }
.ticker__row { display: flex; align-items: baseline; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.ticker__price { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: -0.01em; }
.ticker__chg { font-size: 13px; font-weight: 500; }
.ticker__chg.up { color: #12a05f; }
.ticker__chg.down { color: #e03131; }

@media (max-width: 900px) {
  .trading__grid { grid-template-columns: 1fr; gap: 26px; }
}

/* ==========================================================================
   PARTNERS
   ========================================================================== */
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.partners img { width: 100%; border-radius: 12px; }
@media (max-width: 700px) { .partners { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.how__note {
  border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 22px 26px; font-size: 14px; color: var(--ink-soft);
}
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px; margin: 36px 0 34px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step__num {
  width: 100px; height: 100px; flex-shrink: 0;
  background: var(--teal); border-radius: 14px; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; font-size: 44px;
}
.step h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.step p { margin: 0; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

.pay { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 40px; }
.pay__note { font-size: 13px; color: var(--ink-soft); }
.pay__logos { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.pay__logos img { height: 42px; width: auto; }

@media (max-width: 900px) {
  .how__head { grid-template-columns: 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step__num { width: 74px; height: 74px; font-size: 32px; }
  .pay { justify-content: center; text-align: center; }
  .pay__logos img { height: 34px; }
}

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.reviews__arrows { display: flex; gap: 26px; }
.reviews__arrows button {
  border: none; background: none; cursor: pointer; padding: 4px;
  color: var(--ink); display: flex; align-items: center;
}
.reviews__arrows svg { width: 44px; height: 22px; }
.reviews__arrows button:disabled { opacity: .25; cursor: default; }
.reviews__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; }
.review { border: 1px solid var(--teal-line); border-radius: var(--r-card); padding: 26px 28px; }
.review p { margin: 0 0 22px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; }
.review__author { display: flex; align-items: center; gap: 14px; }
.review__ava {
  width: 34px; height: 34px; border-radius: 8px; background: #bfe3e0; color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0;
}
.review__name { font-size: 17px; font-weight: 500; }
@media (max-width: 780px) { .reviews__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: flex; flex-direction: column; gap: 18px; margin-top: 34px; }
.faq__item { border: 1px solid var(--teal-line); border-radius: var(--r-card); overflow: hidden; }
.faq__q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.faq__q svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform .2s; color: var(--teal); }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }
.faq__a { padding: 0 28px 24px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
@media (max-width: 520px) {
  .faq__q { padding: 18px 18px; font-size: 14px; }
  .faq__a { padding: 0 18px 18px; }
}

/* ==========================================================================
   FEATURES TABLE
   ========================================================================== */
.spec { margin-top: 34px; border-radius: 8px; overflow: hidden; }
.spec__row { display: grid; grid-template-columns: 320px 1fr; gap: 20px; padding: 14px 22px; font-size: 14px; }
.spec__row:nth-child(odd) { background: var(--mint); }
.spec__key { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.spec__val { color: var(--ink-soft); }
@media (max-width: 700px) {
  .spec__row { grid-template-columns: 1fr; gap: 4px; padding: 12px 16px; }
}

/* ── Блок рейтинга ── */
.trust { border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; margin-top: 34px; }
.trust__inner { border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px 28px; text-align: center; }
.trust__title { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; font-size: 18px; font-weight: 600; }
.trust__badge { background: #21a35b; color: #fff; font-size: 10px; font-weight: 600; letter-spacing: .08em; padding: 4px 10px; border-radius: 4px; }
.trust__rating { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 12px 0 14px; font-size: 13px; color: var(--muted); }
.trust__score { font-size: 15px; font-weight: 600; color: #21a35b; }
.trust__stars { color: #f5a623; letter-spacing: 2px; font-size: 15px; }
.trust__rating b { color: var(--ink); }
.trust__text { font-size: 13.5px; color: var(--ink-soft); max-width: 720px; margin: 0 auto; line-height: 1.6; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.ft { background: var(--footer-bg); color: #fff; margin-top: 60px; padding: 34px 0 26px; }
.ft__top { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.ft__logo img { height: 46px; width: auto; }
.ft__nav { display: flex; gap: 28px; flex-wrap: wrap; flex: 1; padding-top: 8px; }
.ft__nav a { font-size: 14px; color: rgba(255,255,255,.9); }
.ft__nav a:hover { color: #fff; }
.ft__mid { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.ft__tagline { font-size: 14px; color: rgba(255,255,255,.9); }
.ft__lang {
  display: flex; align-items: center; gap: 8px; background: #fff; color: var(--ink);
  border-radius: 8px; padding: 8px 14px; font-size: 14px;
}
.ft__lang img { width: 22px; height: 15px; border-radius: 2px; }
.ft__social { display: flex; gap: 14px; margin-top: 14px; }
.ft__social a { display: flex; }
.ft__social svg { width: 18px; height: 18px; fill: #fff; }
.ft__risk { font-size: 11px; color: rgba(255,255,255,.35); line-height: 1.55; margin: 26px 0 22px; }
.ft__copy { font-size: 13px; color: rgba(255,255,255,.8); text-align: center; }

@media (max-width: 860px) {
  .ft__top { gap: 20px; }
  .ft__nav { gap: 14px; }
  .ft__mid { flex-direction: column; align-items: flex-start; }
}
