/* Калькулятор растаможки EmmetCars v2 — по макету (две колонки, тёмный результат) */
.ecx { --y: #f2b705; --y2: #ffcf33; --ink: #141414; --mut: #6b6b6b; --line: #e3e3e0; --soft: #f4f4f1; --dark: #121212;
       color: var(--ink); width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 20px 56px; }
/* как у остальных разделов сайта: .container у сайта display: contents, ширину задаёт сам блок */
.ecx *, .ecx *::before, .ecx *::after { box-sizing: border-box; }
.ecx [hidden] { display: none !important; }
.ecx-intro h1 { font-size: 32px; line-height: 1.15; margin: 0 0 6px; border-left: 4px solid var(--y); padding-left: 14px; }
.ecx-intro h1 span { color: var(--y); }
.ecx-intro p { color: var(--mut); margin: 0 0 22px 18px; max-width: 760px; }

.ecx-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 22px; align-items: start; }
.ecx-card { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 6px 24px rgba(0, 0, 0, .06); margin: 0; }

.ecx-who { display: flex; background: #efefec; border-radius: 14px; padding: 4px; margin-bottom: 20px; }
.ecx-who button { flex: 1; border: 0; background: transparent; padding: 12px; border-radius: 11px; font: inherit;
                  font-weight: 700; font-size: 15px; color: #555; cursor: pointer; }
.ecx-who button.is-on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }

.ecx-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.ecx-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ecx-t { display: block; font-size: 13px; font-weight: 700; color: #444; margin: 0 0 7px; }
.ecx select, .ecx input[type="text"] {
  width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fafaf8; padding: 0 14px;
  font: inherit; font-size: 15px; color: #222; outline: none; transition: border-color .15s, box-shadow .15s; margin: 0;
}
.ecx select:focus, .ecx input[type="text"]:focus { border-color: var(--y); box-shadow: 0 0 0 3px rgba(242, 183, 5, .2); background: #fff; }
.ecx input::placeholder { color: #a3a3a3; }
.ecx-price { display: flex; gap: 8px; }
.ecx-price input { flex: 1 1 auto; min-width: 0; }
.ecx-price select { flex: 0 0 84px; text-align: center; }

.ecx-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ecx-pills button { padding: 10px 13px; border-radius: 10px; border: 0; background: #efefec; font: inherit; font-size: 14px;
                    font-weight: 600; color: #444; cursor: pointer; }
.ecx-pills button.is-on { background: var(--ink); color: #fff; }
/* трицикл: какой руль — карточки-варианты */
.ecx-opts { display: flex; flex-direction: column; gap: 6px; }
.ecx-opts button { display: block; width: 100%; text-align: left; padding: 10px 14px 10px 40px; border-radius: 12px; position: relative;
                   border: 1px solid var(--line); background: #fafaf8; font: inherit; color: #222; cursor: pointer;
                   transition: border-color .15s, background .15s; }
.ecx-opts button::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
                           border-radius: 50%; border: 2px solid #cfcfcf; box-sizing: border-box; transition: border .15s; }
.ecx-opts button b { display: block; font-size: 15px; }
.ecx-opts button small { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; }
.ecx-opts button:hover { border-color: #cfcfcf; }
.ecx-opts button.is-on { border-color: var(--y); background: #fffbea; }
.ecx-opts button.is-on::before { border: 6px solid var(--y); }
.ecx-link { margin-top: 9px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: #b07d00;
            font-weight: 600; cursor: pointer; text-align: left; }
.ecx-link.is-on { color: var(--ink); }
.ecx-date { display: grid; grid-template-columns: 1fr 1.3fr .8fr; gap: 6px; margin-top: 9px; }
.ecx-hint { margin: 6px 0 0; font-size: 13px; color: var(--mut); }
.ecx-hint:empty { display: none; }
.ecx-hint.is-warn { color: #b45309; font-weight: 600; }

.ecx-radio { display: flex; flex-direction: column; gap: 9px; }
.ecx-radio label { display: flex; align-items: center; gap: 10px; font-size: 15px; cursor: pointer; margin: 0; }
.ecx-radio input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; margin: 0;
                   border: 2px solid #cfcfcf; flex: 0 0 18px; cursor: pointer; transition: border .15s; }
.ecx-radio input:checked { border: 6px solid var(--y); }
.ecx-radio label:has(small) { align-items: flex-start; }
.ecx-radio label:has(small) input { margin-top: 2px; }
.ecx-radio small { display: block; font-size: 12px; line-height: 1.35; color: var(--mut); margin-top: 2px; }

.ecx-check { display: flex; align-items: center; gap: 10px; background: #fff7d6; border-radius: 12px; padding: 12px 14px;
             font-size: 14px; font-weight: 600; cursor: pointer; margin: 0; }
.ecx-check input { width: 20px; height: 20px; accent-color: var(--y); margin: 0; flex: 0 0 20px; }
.ecx-check small { display: block; font-weight: 500; color: var(--mut); font-size: 12px; }

.ecx-btn { margin-top: 20px; width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--y); font: inherit;
           font-weight: 800; font-size: 17px; color: #111; cursor: pointer; transition: filter .15s, transform .05s; }
.ecx-btn:hover { filter: brightness(1.05); }
.ecx-btn:active { transform: translateY(1px); }

/* результат */
.ecx-res { background: var(--dark); color: #fff; border-radius: 22px; padding: 24px; position: sticky; top: 90px; scroll-margin-top: 90px; }
.ecx-wait, .ecx-err { margin: 0; color: #bbb; font-size: 15px; line-height: 1.5; }
.ecx-err { color: #ff9b8a; }
.ecx-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 6px; }
.ecx-head h3 { margin: 0; font-size: 18px; color: #fff; }
.ecx-cur { display: flex; background: #222; border-radius: 10px; padding: 3px; }
.ecx-cur button { border: 0; background: transparent; color: #aaa; font: inherit; font-size: 13px; font-weight: 700;
                  padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.ecx-cur button.is-on { background: var(--y); color: #111; }
.ecx-tot { font-size: 42px; font-weight: 900; color: var(--y2); line-height: 1.05; margin: 4px 0 0; }
.ecx-tot small { display: block; font-size: 15px; color: #bbb; font-weight: 500; margin-top: 6px; }
.ecx-nb { font-size: 14px; color: #ddd; margin: 12px 0 0; line-height: 1.45; }
.ecx-nb b { color: #fff; }
.ecx-nb small { display: block; color: #8d8d8d; font-size: 12px; }
.ecx-variant { margin: 20px 0 2px; font-size: 15px; color: var(--y2); }
.ecx-variant:first-child { margin-top: 0; }
.ecx-sec { font-size: 12px; letter-spacing: .08em; color: #8d8d8d; font-weight: 800; margin: 20px 0 4px; text-transform: uppercase; }
.ecx-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0;
           border-bottom: 1px solid #2a2a2a; font-size: 14px; }
.ecx-row b { white-space: nowrap; }
.ecx-row span small { display: block; color: #8d8d8d; font-size: 12px; margin-top: 2px; }
.ecx-row.is-sum { border-bottom: 0; font-weight: 700; }
.ecx-lead { font-size: 14px; color: #ddd; margin: 0 0 8px; line-height: 1.5; }
.ecx-list { margin: 0; }
.ecx-dl { display: flex; align-items: baseline; gap: 6px; padding: 7px 0; font-size: 14px; color: #e6e6e6; }
.ecx-dl span { flex: 0 1 auto; min-width: 0; }
.ecx-dl span small { display: block; color: #8d8d8d; font-size: 12px; margin-top: 2px; }
.ecx-dl i { flex: 1 1 24px; min-width: 16px; border-bottom: 1px dotted #555; transform: translateY(-4px); }
.ecx-dl b { white-space: nowrap; color: #fff; text-align: right; }
.ecx-dl sup, .ecx-notes sup { color: var(--y2); font-size: 11px; }
.ecx-dl.is-ask a { color: var(--y2); text-decoration: underline; font-weight: 700; }
.ecx-sub { margin: 10px 0 2px; font-size: 13px; font-weight: 700; color: var(--y2); }
.ecx-key { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
           background: linear-gradient(135deg, #2a2205, #1b1b1b); border: 1px solid #5c4a0c; border-radius: 16px; padding: 18px; }
.ecx-key span { display: block; font-size: 17px; color: #fff; font-weight: 800; }
.ecx-key p { margin: 6px 0 0; font-size: 12.5px; color: #bbb; line-height: 1.45; }
.ecx-key-sum { text-align: right; flex: 0 0 auto; }
.ecx-key-sum strong { display: block; font-size: 28px; font-weight: 900; color: var(--y2); line-height: 1.1; white-space: nowrap; }
.ecx-key-sum small { display: block; font-size: 12px; color: #aaa; margin-top: 4px; }
.ecx-notes { margin: 14px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: #aaa; }
.ecx-notes li { margin: 0 0 6px; }
.ecx-cta { margin-top: 16px; display: grid; gap: 8px; }
.ecx-cta .p { border: 0; background: var(--y); color: #111; border-radius: 12px; padding: 14px; font: inherit; font-weight: 800;
              font-size: 15px; cursor: pointer; }
.ecx-cta a { display: block; border: 1px solid #444; border-radius: 12px; padding: 12px; text-align: center; font-weight: 700;
             font-size: 14px; color: #fff; text-decoration: none; transition: border-color .15s; }
.ecx-cta a:hover { border-color: var(--y); color: #fff; }
.ecx-note { font-size: 12px; color: #8d8d8d; margin: 12px 0 0; }
@keyframes ecx-flash { 0% { box-shadow: 0 0 0 3px rgba(242, 183, 5, .9); } 100% { box-shadow: 0 0 0 0 rgba(242, 183, 5, 0); } }
.ecx-res.ecx-flash { animation: ecx-flash 1.2s ease-out; }

@media (max-width: 900px) {
  .ecx-grid { grid-template-columns: 1fr; }
  .ecx-res { position: static; }
}
@media (max-width: 640px) {
  .ecx-cols { grid-template-columns: 1fr; }
  .ecx-card, .ecx-res { padding: 18px; border-radius: 18px; }
  .ecx-intro h1 { font-size: 26px; }
  .ecx-intro p { margin-left: 0; }
  .ecx { padding: 20px 12px 40px; }
  .ecx-tot { font-size: 36px; }
  .ecx-key { flex-direction: column; align-items: flex-start; }
  .ecx-key-sum { text-align: left; }
  .ecx-key-sum strong { font-size: 26px; }
}
.ecx-dl b small { display: block; font-weight: 500; color: #9a9a9a; font-size: 12px; text-align: right; margin-top: 1px; }

/* вопросы и ответы под калькулятором */
.ecx .ecx-faq{margin:28px 0 0}.ecx .ecx-faq h2{font-size:19px;font-weight:800;margin:0 0 12px}
.ecx .ecx-faq details{border:1px solid #eee;border-radius:12px;background:#fff;margin-bottom:8px;padding:0 14px}
.ecx .ecx-faq summary{cursor:pointer;padding:12px 0;font-weight:700;font-size:14.5px}
.ecx .ecx-faq details p{margin:0 0 12px;color:#555;font-size:14px;line-height:1.55}
.ecx .ecx-faq__links{font-size:14px;color:#666;margin:12px 0 0}.ecx .ecx-faq__links a{color:#b07d00;font-weight:700}
