/* Валютный конвертер — стили отдельной страницы */
.currency-hero {
  position: relative;
  overflow: hidden;
  padding: 62px 0 42px;
}
.currency-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  align-items: center;
  gap: 46px;
}
.currency-hero-copy { padding: 5px 0 14px; }
.currency-hero-title {
  max-width: 680px;
  margin: 18px 0 17px;
  font-size: clamp(42px, 5.4vw, 66px);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: -.065em;
}
.currency-hero-title em { color: var(--green); font-style: normal; }
.currency-hero-text {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}
.currency-hero-meta { display: flex; flex-wrap: wrap; gap: 13px 22px; margin-top: 25px; color: #617067; font-size: 12px; }
.currency-hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.currency-hero-meta i { width: 7px; height: 7px; border-radius: 50%; background: #66a886; box-shadow: 0 0 0 4px #e5f1e9; }
.currency-hero-visual { position: relative; min-height: 316px; display: grid; place-items: center; isolation: isolate; }
.currency-hero-glow { position: absolute; z-index: -1; width: 330px; height: 300px; inset: 3px 0 auto auto; border-radius: 50%; background: radial-gradient(circle, #deeee1 0, rgba(223,238,226,.62) 46%, rgba(223,238,226,0) 72%); }
.currency-hero-card {
  position: relative;
  width: min(100%, 410px);
  padding: 24px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 25px;
  background: rgba(255,255,255,.87);
  box-shadow: 0 22px 58px rgba(32,73,51,.12);
  transform: rotate(1deg);
}
.currency-hero-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #65756b; font-size: 12px; font-weight: 700; }
.currency-hero-daily { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #dcebe0; border-radius: 999px; color: #2c7655; background: #f2f8f3; font-size: 10px; font-weight: 800; }
.currency-hero-daily i { width: 6px; height: 6px; border-radius: 50%; background: #58a878; }
.currency-hero-pair { display: grid; grid-template-columns: 1fr 36px 1fr; align-items: center; gap: 12px; margin: 25px 0 20px; }
.currency-hero-currency { display: flex; align-items: center; gap: 11px; min-width: 0; }
.currency-hero-token { display: grid; flex: 0 0 47px; place-items: center; width: 47px; height: 47px; border: 1px solid #dfe9e1; border-radius: 15px; color: var(--green-deep); background: #f5faf6; font-size: 13px; font-weight: 850; letter-spacing: -.03em; }
.currency-hero-currency strong { display: block; color: #24372d; font-size: 16px; line-height: 1.15; }
.currency-hero-currency small { display: block; margin-top: 4px; color: #859188; font-size: 10px; }
.currency-hero-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: 20px; }
.currency-hero-divider { height: 1px; background: #e8eee9; }
.currency-hero-foot { display: flex; align-items: center; gap: 12px; margin-top: 17px; color: #64736a; font-size: 11px; line-height: 1.55; }
.currency-hero-foot-mark { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #337957; background: #eef6ef; font-size: 16px; }
.currency-hero-foot strong { display: block; color: #31463a; font-size: 11px; }
.currency-hero-foot small { display: block; color: #819087; font-size: 10px; }

.currency-calculator-shell { margin-top: 3px; }
.currency-tool { max-width: 1000px; margin: 0 auto; }
.currency-card {
  padding: clamp(20px, 3.3vw, 34px);
  border: 1px solid #e1e9e2;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.currency-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.currency-card-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.currency-card-kicker::before { content: ""; width: 17px; height: 1px; background: currentColor; }
.currency-card-head h2 { margin: 10px 0 7px; font-size: clamp(23px, 3vw, 30px); line-height: 1.15; letter-spacing: -.045em; }
.currency-card-head p { max-width: 620px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.currency-plain-button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 11px; border: 1px solid #e3ebe4; border-radius: 11px; color: #66756b; background: #fff; cursor: pointer; font-size: 11px; font-weight: 700; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.currency-plain-button:hover { border-color: #c4dccc; color: var(--green-deep); background: #f5faf6; }
.currency-plain-button:disabled { opacity: .6; cursor: wait; }
.currency-plain-button svg { width: 15px; height: 15px; }
.currency-controls { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 18px; }
.currency-controls-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px minmax(0, 1fr); align-items: end; gap: 12px; grid-column: 1 / -1; }
.currency-control-label { display: block; min-width: 0; color: #526259; font-size: 11px; font-weight: 750; }
.currency-control-label > span:first-child { display: block; margin-bottom: 8px; }
.currency-amount-wrap, .currency-select-wrap, .currency-number-wrap, .currency-date-wrap {
  display: flex;
  align-items: center;
  min-height: 58px;
  border: 1px solid #dfe8e1;
  border-radius: 14px;
  background: #fbfdfb;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.currency-amount-wrap:focus-within, .currency-select-wrap:focus-within, .currency-number-wrap:focus-within, .currency-date-wrap:focus-within { border-color: #79b391; background: #fff; box-shadow: 0 0 0 3px rgba(35,119,90,.09); }
.currency-amount-code, .currency-select-code { display: grid; flex: 0 0 auto; place-items: center; min-width: 50px; min-height: 36px; margin-left: 8px; padding: 0 8px; border-radius: 10px; color: var(--green-deep); background: #eaf4ed; font-size: 11px; font-weight: 850; }
.currency-amount-input { width: 100%; min-width: 0; height: 54px; padding: 0 13px 0 10px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 20px; font-weight: 730; letter-spacing: -.03em; }
.currency-amount-input::placeholder { color: #a4b0a7; }
.currency-select-wrap { position: relative; gap: 5px; padding-right: 10px; }
.currency-select-wrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid #718077; border-bottom: 1.5px solid #718077; pointer-events: none; transform: translateY(-70%) rotate(45deg); }
.currency-select-code { min-width: 47px; margin-left: 8px; font-size: 10px; }
.currency-select { width: 100%; min-width: 0; height: 54px; padding: 0 27px 0 5px; appearance: none; border: 0; outline: 0; color: #33443a; background: transparent; cursor: pointer; font-size: 12px; font-weight: 650; text-overflow: ellipsis; }
.currency-swap-wrap { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; }
.currency-swap-button { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #dce8df; border-radius: 13px; color: var(--green); background: #f2f8f3; cursor: pointer; transition: color .16s ease, background .16s ease, transform .2s ease; }
.currency-swap-button:hover { color: #fff; background: var(--green); transform: rotate(180deg); }
.currency-swap-button svg { width: 19px; height: 19px; }
.currency-controls-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; grid-column: 1 / -1; margin-top: 1px; }
.currency-number-wrap, .currency-date-wrap { min-height: 47px; padding: 0 13px; }
.currency-number-input, .currency-date-input { width: 100%; min-width: 0; height: 45px; border: 0; outline: 0; color: #33443a; background: transparent; font-size: 13px; font-weight: 700; }
/* Keep the keyboard focus ring on the rounded field wrapper, not as a square around its inner input. */
.currency-amount-input:focus-visible, .currency-select:focus-visible, .currency-number-input:focus-visible, .currency-date-input:focus-visible { outline: 0; box-shadow: none; }
.currency-number-suffix { padding-left: 8px; color: #7e8b82; font-size: 12px; font-weight: 700; }
.currency-help-text { display: block; margin-top: 6px; color: #89958d; font-size: 10px; line-height: 1.4; font-weight: 450; }
.currency-result-card { margin-top: 23px; padding: 22px 24px 18px; border-radius: 19px; color: #fff; background: linear-gradient(125deg, #174e3b 0%, #23775a 100%); box-shadow: 0 14px 32px rgba(23,78,59,.17); }
.currency-result-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
.currency-result-heading { color: rgba(255,255,255,.76); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.currency-rate-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(255,255,255,.1); font-size: 10px; font-weight: 750; }
.currency-rate-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #97d8a7; }
.currency-result-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); align-items: end; gap: 24px; }
.currency-result-amount-label { display: block; margin-bottom: 6px; color: rgba(255,255,255,.7); font-size: 11px; }
.currency-result-amount { display: block; overflow-wrap: anywhere; font-size: clamp(30px, 5vw, 44px); line-height: 1.08; font-weight: 760; letter-spacing: -.055em; }
.currency-result-brief { display: block; margin-top: 10px; color: rgba(255,255,255,.78); font-size: 11px; line-height: 1.5; }
.currency-rate-panel { padding: 15px 17px; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; background: rgba(255,255,255,.08); }
.currency-rate-panel > span { display: block; color: rgba(255,255,255,.7); font-size: 10px; }
.currency-rate-value { display: block; margin-top: 5px; font-size: 17px; line-height: 1.3; font-weight: 750; letter-spacing: -.02em; }
.currency-rate-date { display: block; margin-top: 5px; color: rgba(255,255,255,.69); font-size: 10px; }
.currency-status { min-height: 20px; margin: 16px 0 0; color: rgba(255,255,255,.76); font-size: 10px; line-height: 1.5; }
.currency-status[data-state="loading"] { color: #f0e3b2; }
.currency-status[data-state="offline"], .currency-status[data-state="error"] { color: #ffe2bd; }
.currency-status[data-state="live"] { color: #d5f0dc; }
.currency-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 16px; }
.currency-action-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid #e0e9e2; border-radius: 11px; color: #53645a; background: #fff; cursor: pointer; font-size: 10px; font-weight: 750; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.currency-action-button:hover { border-color: #b8d4c2; color: var(--green-deep); background: #f7faf7; }
.currency-action-button svg { width: 14px; height: 14px; }
.currency-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 19px; border-top: 1px solid #edf1ee; }
.currency-quick-label { margin-right: 3px; color: #758279; font-size: 10px; font-weight: 750; }
.currency-quick-button { min-height: 31px; padding: 0 11px; border: 1px solid #e5ece6; border-radius: 999px; color: #53645a; background: #f9fbf9; cursor: pointer; font-size: 10px; font-weight: 750; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.currency-quick-button:hover { border-color: #b9d8c4; color: var(--green-deep); background: #edf6ef; }
.currency-attribution { margin: 15px 0 0; color: #849087; font-size: 10px; line-height: 1.65; }
.currency-attribution a { color: var(--green); text-underline-offset: 2px; }
.currency-noscript { margin-top: 14px; padding: 13px 15px; border-radius: 12px; color: #654f2a; background: #fff7e8; font-size: 12px; line-height: 1.55; }

.currency-info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.currency-info-card { min-height: 185px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255,255,255,.83); }
.currency-info-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: var(--green); background: var(--green-soft); font-size: 15px; font-weight: 850; }
.currency-info-card h3 { margin: 17px 0 7px; font-size: 15px; line-height: 1.35; letter-spacing: -.02em; }
.currency-info-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.currency-formula { display: inline-block; margin: 10px 0 2px; padding: 8px 10px; border-radius: 9px; color: #194a38; background: #edf5ef; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; font-weight: 750; }
.currency-source-panel { padding: 22px 25px; border: 1px solid #e4ebe5; border-radius: 18px; background: #fff; }
.currency-source-panel p { margin: 0; color: #617067; font-size: 13px; line-height: 1.75; }
.currency-source-panel p + p { margin-top: 11px; }
.currency-source-panel a { color: var(--green); text-underline-offset: 3px; }
.currency-disclaimer { margin-top: 16px; }
.currency-faq-list { display: grid; gap: 10px; }
.currency-faq-item { border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.currency-faq-item summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 730; }
.currency-faq-item summary::-webkit-details-marker { display: none; }
.currency-faq-item summary::after { content: "+"; display: grid; flex: 0 0 25px; place-items: center; height: 25px; border-radius: 8px; color: var(--green); background: var(--green-soft); font-size: 18px; font-weight: 500; }
.currency-faq-item[open] summary::after { content: "−"; }
.currency-faq-answer { padding: 0 20px 17px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.currency-faq-answer p { margin: 0; }

@media (max-width: 1120px) {
  .currency-hero-inner { grid-template-columns: minmax(0, 1.08fr) minmax(270px, .92fr); gap: 25px; }
  .currency-hero-title { font-size: clamp(40px, 6vw, 58px); }
  .currency-controls-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px minmax(0, 1fr); gap: 9px; }
  .currency-select { font-size: 11px; }
}
@media (max-width: 800px) {
  .currency-hero { padding-top: 45px; }
  .currency-hero-inner { grid-template-columns: 1fr; gap: 19px; }
  .currency-hero-copy { padding-bottom: 0; }
  .currency-hero-title { max-width: 640px; font-size: clamp(40px, 8vw, 58px); }
  .currency-hero-visual { min-height: 260px; }
  .currency-hero-card { width: min(100%, 470px); }
  .currency-controls { grid-template-columns: 1fr; }
  .currency-controls-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 43px minmax(0, 1fr); }
  .currency-result-grid { grid-template-columns: 1fr; gap: 17px; }
  .currency-rate-panel { max-width: none; }
  .currency-info-grid { grid-template-columns: 1fr; }
  .currency-info-card { min-height: 0; }
}
@media (max-width: 560px) {
  .currency-hero { padding: 37px 0 30px; }
  .currency-hero-title { margin-top: 14px; font-size: clamp(37px, 10.5vw, 51px); }
  .currency-hero-text { font-size: 14px; }
  .currency-hero-meta { gap: 11px 17px; margin-top: 20px; font-size: 10px; }
  .currency-hero-visual { min-height: 240px; }
  .currency-hero-card { padding: 19px; border-radius: 20px; }
  .currency-hero-pair { gap: 7px; margin: 20px 0 16px; }
  .currency-hero-currency { gap: 8px; }
  .currency-hero-token { flex-basis: 40px; width: 40px; height: 40px; border-radius: 13px; font-size: 11px; }
  .currency-hero-currency strong { font-size: 14px; }
  .currency-hero-currency small { font-size: 9px; }
  .currency-card { padding: 19px 15px; border-radius: 19px; }
  .currency-card-head { gap: 10px; margin-bottom: 21px; }
  .currency-card-head h2 { font-size: 23px; }
  .currency-card-head p { font-size: 11px; }
  .currency-plain-button { min-height: 34px; padding-inline: 9px; font-size: 0; }
  .currency-plain-button svg { width: 16px; height: 16px; }
  .currency-controls-main { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); gap: 10px 7px; }
  .currency-amount-field { grid-column: 1 / -1; }
  .currency-from-field { grid-column: 1; }
  .currency-swap-wrap { grid-column: 2; grid-row: 2; padding-bottom: 7px; }
  .currency-to-field { grid-column: 3; }
  .currency-amount-wrap, .currency-select-wrap { min-height: 53px; }
  .currency-amount-input, .currency-select { height: 50px; }
  .currency-select { padding-left: 2px; font-size: 10px; }
  .currency-select-code { min-width: 39px; margin-left: 6px; padding-inline: 5px; font-size: 9px; }
  .currency-amount-code { min-width: 42px; margin-left: 6px; padding-inline: 6px; font-size: 10px; }
  .currency-amount-input { padding-left: 8px; font-size: 18px; }
  .currency-swap-button { width: 38px; height: 38px; }
  .currency-controls-extra { grid-template-columns: 1fr; gap: 13px; }
  .currency-result-card { padding: 18px 16px 15px; border-radius: 16px; }
  .currency-result-head { align-items: flex-start; flex-direction: column; gap: 9px; margin-bottom: 15px; }
  .currency-result-grid { gap: 15px; }
  .currency-result-amount { font-size: clamp(29px, 9vw, 38px); }
  .currency-rate-value { font-size: 15px; }
  .currency-actions { gap: 7px; }
  .currency-action-button { flex: 1 1 auto; padding-inline: 9px; font-size: 9px; }
  .currency-quick { gap: 6px; }
  .currency-quick-label { flex-basis: 100%; }
  .currency-quick-button { padding-inline: 9px; }
  .currency-source-panel { padding: 17px; }
  .currency-source-panel p { font-size: 12px; }
  .currency-faq-item summary { padding: 15px 16px; font-size: 12px; }
  .currency-faq-answer { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .currency-plain-button, .currency-swap-button, .currency-action-button, .currency-quick-button { transition-duration: .01ms !important; }
}
